New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 626204 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
inactive
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

SystemWebViewGoogle apk crash on launch

Project Member Reported by hush@chromium.org, Jul 7 2016

Issue description

ToT build @ 544b99fe2c3a445dfdc1e3bbc3a70eb58626eea0.
The build has dcheck off (if it is on, it crashes on an earlier location where we dcheck fd >= 0)
The crash stack is:
07-07 02:30:35.892 17250 17250 F DEBUG   : Abort message: '[FATAL:child_process_launcher_android.cc(175)] Check failed: 0 <= fd. : Success



DebugBreak at base/debug/debugger_posix.cc:219

logging::LogMessage::~LogMessage() at base/logging.cc:748

logging::ErrnoLogMessage::~ErrnoLogMessage() at base/logging.cc:863

content::StartChildProcess(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, int, std::__1::unique_ptr<content::FileDescriptorInfo, std::__1::default_delete<content::FileDescriptorInfo> >, std::__1::map<int, base::MemoryMappedFile::Region, std::__1::less<int>, std::__1::allocator<std::__1::pair<int const, base::MemoryMappedFile::Region> > > const&, base::Callback<void (int), (base::internal::CopyMode)1> const&) at content/browser/android/child_process_launcher_android.cc:175 (discriminator 11)

LaunchOnLauncherThread at content/browser/child_process_launcher.cc:253 (discriminator 4)

void base::internal::FunctorTraits<void (*)(base::Callback<void (decltype(nullptr), base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::Process, int), (base::internal::CopyMode)1> const&, content::BrowserThread::ID, int, content::SandboxedProcessLauncherDelegate*, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, mojo::edk::ScopedPlatformHandle, base::CommandLine*)>::Invoke<base::Callback<void (decltype(nullptr), base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::Process, int), (base::internal::CopyMode)1> const&, content::BrowserThread::ID const&, int const&, content::SandboxedProcessLauncherDelegate* const&, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, mojo::edk::ScopedPlatformHandle, base::CommandLine* const&>(void (*)(base::Callback<void (decltype(nullptr), base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::Process, int), (base::internal::CopyMode)1> const&, content::BrowserThread::ID, int, content::SandboxedProcessLauncherDelegate*, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, mojo::edk::ScopedPlatformHandle, base::CommandLine*), base::Callback<void (decltype(nullptr), base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>, base::Process, int), (base::internal::CopyMode)1> const&, content::BrowserThread::ID const&, int const&, content::SandboxedProcessLauncherDelegate* const&, base::ScopedGeneric<int, base::internal::ScopedFDCloseTraits>&&, mojo::edk::ScopedPlatformHandle&&, base::CommandLine* const&) at base/bind_internal.h:90 (discriminator 9)

base::Callback<void (), (base::internal::CopyMode)1>::Run() const at base/callback.h:389 (discriminator 1)

base::MessageLoop::RunTask(base::PendingTask const&) at base/message_loop/message_loop.cc:493

base::MessageLoop::DeferOrRunPendingTask(base::PendingTask const&) at base/message_loop/message_loop.cc:502

base::MessageLoop::DoWork() at base/message_loop/message_loop.cc:624

base::MessagePumpDefault::Run(base::MessagePump::Delegate*) at base/message_loop/message_pump_default.cc:35

base::RunLoop::Run() at base/run_loop.cc:35

base::MessageLoop::Run() at base/message_loop/message_loop.cc:295

content::BrowserThreadImpl::ProcessLauncherThreadRun(base::MessageLoop*) at content/browser/browser_thread_impl.cc:210

content::BrowserThreadImpl::Run(base::MessageLoop*) at content/browser/browser_thread_impl.cc:255

base::Thread::ThreadMain() at base/threading/thread.cc:256

ThreadFunc at base/threading/platform_thread_posix.cc:70

 

Comment 1 by boliu@chromium.org, Jul 7 2016

what's your exact set up? that looks like multi process related?

Comment 2 by hush@chromium.org, Jul 7 2016

with dcheck on, the failure is at:
07-07 02:39:43.087 17972 17972 F DEBUG   : Abort message: '[FATAL:resource_bundle_android.cc(156)] Check failed: g_locale_pack_fd >= 0 (-1 vs. 0)

Comment 3 by hush@chromium.org, Jul 7 2016

This only crashes on N (get the latest NR* build from flashstation). OK on L. And that explains why this is not caught by any test bots.

Comment 4 by hush@chromium.org, Jul 7 2016

yeah, it is indeed multiprocess related. I just disabled it and it worked.

Comment 5 by hush@chromium.org, Jul 7 2016

well even though single process does not crash, there are warning messages suggesting something is wrong with the locale pak?
07-07 02:46:54.946 18802 18802 W chromium: [WARNING:resource_bundle_android.cc(88)] locale_path_within_apk.empty() for locale 
07-07 02:46:54.946 18802 18802 W chromium: [WARNING:aw_browser_main_parts.cc(64)] Failed to load locale .pak from the apk. Bringing up WebView without any locale


Comment 6 by hush@chromium.org, Jul 7 2016

So... the single process webview apk is really messed up: WebView will crash on context menu because webview can't find the translated resources for menu texts.

07-07 03:01:23.578 20733 20733 W ResourceType: Failure getting entry for 0x7f0b0000 (t=10 e=0) (error -2147483647)
07-07 03:01:23.579 20733 20733 W System.err: android.content.res.Resources$NotFoundException: Resource ID #0x7f0b0000
07-07 03:01:23.580 20733 20733 W System.err: 	at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:190)
07-07 03:01:23.580 20733 20733 W System.err: 	at android.content.res.Resources.loadXmlResourceParser(Resources.java:2094)
07-07 03:01:23.580 20733 20733 W System.err: 	at android.content.res.Resources.getLayout(Resources.java:1111)
07-07 03:01:23.580 20733 20733 W System.err: 	at android.view.MenuInflater.inflate(MenuInflater.java:108)
07-07 03:01:23.580 20733 20733 W System.err: 	at org.chromium.content.browser.WebActionModeCallback.createActionMenu(WebActionModeCallback.java:174)
07-07 03:01:23.581 20733 20733 W System.err: 	at org.chromium.content.browser.WebActionModeCallback.onCreateActionMode(WebActionModeCallback.java:145)
07-07 03:01:23.581 20733 20733 W System.err: 	at org.chromium.content.browser.FloatingWebActionModeCallback.onCreateActionMode(FloatingWebActionModeCallback.java:31)
07-07 03:01:23.581 20733 20733 W System.err: 	at com.android.internal.policy.DecorView$ActionModeCallback2Wrapper.onCreateActionMode(DecorView.java:2247)
07-07 03:01:23.581 20733 20733 W System.err: 	at com.android.internal.policy.DecorView.startActionMode(DecorView.java:858)
07-07 03:01:23.581 20733 20733 W System.err: 	at com.android.internal.policy.DecorView.startActionModeForChild(DecorView.java:814)
07-07 03:01:23.581 20733 20733 W System.err: 	at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:827)
07-07 03:01:23.581 20733 20733 W System.err: 	at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:827)
07-07 03:01:23.581 20733 20733 W System.err: 	at android.view.ViewGroup.startActionModeForChild(ViewGroup.java:827)
07-07 03:01:23.581 20733 20733 W System.err: 	at android.view.View.startActionMode(View.java:5800)
07-07 03:01:23.581 20733 20733 W System.err: 	at org.chromium.content.browser.ContentViewCore.startFloatingActionMode(ContentViewCore.java:2227)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.content.browser.ContentViewCore.startActionMode(ContentViewCore.java:2212)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.content.browser.ContentViewCore.showSelectActionMode(ContentViewCore.java:2187)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.content.browser.ContentViewCore.onSelectionEvent(ContentViewCore.java:2290)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.android_webview.AwContents.nativeOnDraw(Native Method)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.android_webview.AwContents.access$4700(AwContents.java:98)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.android_webview.AwContents$AwViewMethodsImpl.onDraw(AwContents.java:2976)
07-07 03:01:23.582 20733 20733 W System.err: 	at org.chromium.android_webview.AwContents.onDraw(AwContents.java:1307)
07-07 03:01:23.582 20733 20733 W System.err: 	at com.android.webview.chromium.WebViewChromium.onDraw(WebViewChromium.java:1697)
07-07 03:01:23.582 20733 20733 W System.err: 	at android.webkit.WebView.onDraw(WebView.java:2534)
07-07 03:01:23.582 20733 20733 W System.err: 	at android.view.View.draw(View.java:17067)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.View.updateDisplayListIfDirty(View.java:16049)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.View.updateDisplayListIfDirty(View.java:16012)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.View.updateDisplayListIfDirty(View.java:16012)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)
07-07 03:01:23.583 20733 20733 W System.err: 	at android.view.View.updateDisplayListIfDirty(View.java:16012)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3748)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3728)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.View.updateDisplayListIfDirty(View.java:16012)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:656)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:662)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:770)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2796)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2604)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2211)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
07-07 03:01:23.584 20733 20733 W System.err: 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.view.Choreographer.doCallbacks(Choreographer.java:683)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.view.Choreographer.doFrame(Choreographer.java:619)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.os.Handler.handleCallback(Handler.java:751)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.os.Handler.dispatchMessage(Handler.java:95)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.os.Looper.loop(Looper.java:154)
07-07 03:01:23.585 20733 20733 W System.err: 	at android.app.ActivityThread.main(ActivityThread.java:6077)
07-07 03:01:23.585 20733 20733 W System.err: 	at java.lang.reflect.Method.invoke(Native Method)
07-07 03:01:23.585 20733 20733 W System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
07-07 03:01:23.586 20733 20733 W System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
07-07 03:01:23.644 20733 20733 F chromium: [FATAL:jni_android.cc(236)] Please include Java exception stack in crash report

Comment 7 by boliu@chromium.org, Jul 7 2016

Feels like the multiprocess crash is an unrelated issue.. no evidence
I've noticed over the past couple of days that my system_webview_google_apk compiles have a non-functional ResourceRewriter class. That might be the issue here too - 0x7f0b0000 is an un-rewritten resource ID. It should start with 0x02.

However I just synced, and it looks like it's not happening any more.
The ResourceRewriter breakage was: bug #625336
Is this fixed now?
Status: Fixed (was: Available)
Yes.
Owner: hush@chromium.org
Status: Assigned (was: Fixed)
Actually, it might not be. hush, could you please check if the original multiprocess crash repros now that the resource rewriter bug is fixed?

Comment 13 by hush@chromium.org, Jul 12 2016

Status: Fixed (was: Assigned)
The original multiprocess crash is gone too. Thanks!

Sign in to add a comment