New issue
Advanced search Search tips

Issue 831373 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

SECURITY_DCHECK(!NeedsLayout()); hit in LayoutObject::AssetLaidOut

Project Member Reported by khushals...@chromium.org, Apr 10 2018

Issue description

I'm running into this quite consistently on reddit.com on Android. Synced at rev: 54c9e082cd7ae0ade12652d2b34d38af202bf2fe.
 
Khushal, can you post the stack trace?
I can still repro on ToT. I can't get it to symbolize the stack trace for some reason. Tried both debug and release builds. It dumps the layout tree in the log though, may be that would be of some help.

04-12 17:33:24.206 30607 30640 I chromium: [INFO:layout_object.cc(4010)] 
04-12 17:33:24.206 30607 30640 I chromium: LayoutView 0xbd404010                  	#document
04-12 17:33:24.206 30607 30640 I chromium:   LayoutBlockFlow 0xbd4f7468           	HTML
04-12 17:33:24.206 30607 30640 I chromium:     LayoutBlockFlow 0xbd4f7534         	BODY class="dayMode"
04-12 17:33:24.206 30607 30640 I chromium:       LayoutBlockFlow 0xbd4f7600       	DIV id="container"
04-12 17:33:24.206 30607 30640 I chromium:         LayoutBlockFlow 0xbd4f6214     	DIV class="App"
04-12 17:33:24.206 30607 30640 I chromium:           LayoutBlockFlow 0xbd4f5fb0   	DIV class="AppMainPage"
04-12 17:33:24.206 30607 30640 I chromium:             LayoutBlockFlow 0xbd4f6c70 	DIV class="NavFrame"
04-12 17:33:24.206 30607 30640 I chromium:               LayoutBlockFlow 0xbd4f5a1c	DIV
04-12 17:33:24.206 30607 30640 I chromium:                 LayoutBlockFlow (positioned) 0xbd4f5bb4	NAV class="TopNav"
04-12 17:33:24.206 30607 30640 I chromium:                   LayoutBlockFlow (relative positioned) (floating) 0xbd4f607c	DIV class="pull-left TopNav-padding TopNav-left"
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow 0xbd4f5e18	A class="MobileButton TopNav-padding TopNav-snoo"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutSVGRoot 0xbd434280	svg class="SVG-icon SnooIcon"
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutSVGContainer 0xbd43c838	g
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutSVGEllipse 0xbd44c1f0	circle
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutSVGPath 0xbd43c920	path
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow 0xbd4f5c80	H1 class="TopNav-text TopNav-padding"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutBlockFlow 0xbd4f6148	DIV class="TopNav-text-community-menu-button TopNav-text-vcentering"
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutBlockFlow 0xbd4f6e08	DIV class="TopNav-text-vcentering"
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutSVGRoot (relative positioned) 0xbd434148	svg class="Logo SVG-icon"
04-12 17:33:24.206 30607 30640 I chromium:                             LayoutSVGContainer 0xbd43c1e0	g
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGEllipse 0xbd44c100	circle
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c750	path
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c668	path
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c580	path
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c498	path
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c3b0	path
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutSVGPath 0xbd43c2c8	path
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutBlockFlow 0xbd4f739c	DIV class="MobileButton community-button"
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutInline 0xbd500210	SPAN class="icon icon-nav-arrowdown "
04-12 17:33:24.206 30607 30640 I chromium:                             LayoutInline 0xbd500390	<pseudo:before>
04-12 17:33:24.206 30607 30640 I chromium:                               LayoutTextFragment (anonymous) 0xbd4eb730 "?" 
04-12 17:33:24.206 30607 30640 I chromium:                   LayoutBlockFlow (positioned) 0xbd4f6940	DIV class="TopNav-padding TopNav-right"
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow (positioned) 0xbd4f6874	<pseudo:before>
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutTextFragment (anonymous) 0xbd4eba78 "" 
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow (floating) 0xbd4f6478	DIV class="MobileButton TopNav-floaty"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutInline (relative positioned) 0xbd500410	SPAN class="icon icon-large icon-post_edit"
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutInline 0xbd500510	<pseudo:before>
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutTextFragment (anonymous) 0xbd4eb7d8 "?" 
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow (floating) 0xbd4f4fc0	DIV class="MobileButton TopNav-floaty"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutInline (relative positioned) 0xbd500490	SPAN class="icon icon-search icon-large"
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutInline 0xbd500610	<pseudo:before>
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutTextFragment (anonymous) 0xbd4eb928 "?" 
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutBlockFlow (floating) 0xbd4f67a8	DIV class="MobileButton TopNav-floaty"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutInline (relative positioned) 0xbd500590	SPAN class="icon icon-menu icon-large "
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutInline 0xbd500690	<pseudo:before>
04-12 17:33:24.206 30607 30640 I chromium:                           LayoutTextFragment (anonymous) 0xbd4eb9d0 "?" 
04-12 17:33:24.206 30607 30640 I chromium:                   LayoutBlockFlow (positioned) 0xbd4f6a0c	<pseudo:after>
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutTextFragment (anonymous) 0xbd4ebb20 "" 
04-12 17:33:24.206 30607 30640 I chromium:                 LayoutBlockFlow 0xbd4f63ac	DIV class="NavFrame__below-top-nav"
04-12 17:33:24.206 30607 30640 I chromium:                   LayoutBlockFlow 0xbd4f6ed4	DIV class="PostsFromSubredditPage"
04-12 17:33:24.206 30607 30640 I chromium:                     LayoutFlexibleBox (relative positioned) 0xbd404228	NAV class="SubNav"
04-12 17:33:24.206 30607 30640 I chromium:                       LayoutBlockFlow 0xbd54b600	DIV class="SubNav__leftContent"
04-12 17:33:24.206 30607 30640 I chromium:                         LayoutBlockFlow 0xbd54b6cc	DIV class="SortAndTimeSelector "
04-12 17:33:24.206 30607 30640 I chromium:            
04-12 17:33:24.243 30607 30640 F chromium: [FATAL:layout_object.h(347)] Security DCHECK failed: !NeedsLayout(). 
And here is the stack trace:

                                                                     FILE:LINE
  000d260d  logging::LogMessage::~LogMessage()                                                                                                                                                                                                                                                                                                                                                                                                                                                             base/logging.cc:594:29
  00a600fb  blink::LayoutObject::AssertLaidOut() const                                                                                                                                                                                                                                                                                                                                                                                                                                                     third_party/blink/renderer/core/layout/layout_object.h:347:5
  00a5bd41  blink::LayoutObject::AssertSubtreeIsLaidOut() const                                                                                                                                                                                                                                                                                                                                                                                                                                            third_party/blink/renderer/core/layout/layout_object.h:353:22
  00a5a65b  blink::LocalFrameView::UpdateLayout()                                                                                                                                                                                                                                                                                                                                                                                                                                                          third_party/blink/renderer/core/frame/local_frame_view.cc:1342:20
  00a5fee1  blink::LocalFrameView::UpdateStyleAndLayoutIfNeededRecursiveInternal()                                                                                                                                                                                                                                                                                                                                                                                                                         third_party/blink/renderer/core/frame/local_frame_view.cc:3524:5
  00a5f269  blink::LocalFrameView::UpdateStyleAndLayoutIfNeededRecursive()                                                                                                                                                                                                                                                                                                                                                                                                                                 third_party/blink/renderer/core/frame/local_frame_view.cc:3487:3
  00a5e99f  blink::LocalFrameView::UpdateLifecyclePhasesInternal(blink::DocumentLifecycle::LifecycleState)                                                                                                                                                                                                                                                                                                                                                                                                 third_party/blink/renderer/core/frame/local_frame_view.cc:3219:3
  00c9645f  blink::PageAnimator::UpdateAllLifecyclePhases(blink::LocalFrame&)                                                                                                                                                                                                                                                                                                                                                                                                                              third_party/blink/renderer/core/page/page_animator.cc:100:9
  00a17895  blink::WebViewImpl::UpdateLifecycle(blink::WebWidget::LifecycleUpdate)                                                                                                                                                                                                                                                                                                                                                                                                                         third_party/blink/renderer/core/exported/web_view_impl.cc:1833:3
  v------>  blink::WebWidget::UpdateAllLifecyclePhases()                                                                                                                                                                                                                                                                                                                                                                                                                                                   third_party/blink/public/web/web_widget.h:91:45
  00a173f5  blink::WebViewImpl::ResizeViewWhileAnchored(float, float, bool)                                                                                                                                                                                                                                                                                                                                                                                                                                third_party/blink/renderer/core/exported/web_view_impl.cc:1719:0
  00a175b3  blink::WebViewImpl::ResizeWithBrowserControls(blink::WebSize const&, float, float, bool)                                                                                                                                                                                                                                                                                                                                                                                                       third_party/blink/renderer/core/exported/web_view_impl.cc:1775:5
  00ec2cf7  content::RenderViewImpl::ResizeWebWidget()                                                                                                                                                                                                                                                                                                                                                                                                                                                     content/renderer/render_view_impl.cc:1957:14
  00ec8b7d  content::RenderWidget::Resize(content::ResizeParams const&)                                                                                                                                                                                                                                                                                                                                                                                                                                    content/renderer/render_widget.cc:1392:3
  00ec78f3  content::RenderWidget::OnResize(content::ResizeParams const&)                                                                                                                                                                                                                                                                                                                                                                                                                                  content/renderer/render_widget.cc:802:3
  00ec2ed1  content::RenderViewImpl::OnResize(content::ResizeParams const&)                                                                                                                                                                                                                                                                                                                                                                                                                                content/renderer/render_view_impl.cc:2021:19
  v------>  void base::DispatchToMethod<media::GpuVideoDecodeAcceleratorHost*, void (media::GpuVideoDecodeAcceleratorHost::*)(AcceleratedVideoDecoderHostMsg_PictureReady_Params const&), std::__ndk1::tuple<AcceleratedVideoDecoderHostMsg_PictureReady_Params> >(media::GpuVideoDecodeAcceleratorHost* const&, void (media::GpuVideoDecodeAcceleratorHost::*)(AcceleratedVideoDecoderHostMsg_PictureReady_Params const&), std::__ndk1::tuple<AcceleratedVideoDecoderHostMsg_PictureReady_Params>&&)      /usr/local/google/home/khushalsagar/code/clankium/src/base/tuple.h:60:3
  00a895fd  void IPC::DispatchToMethod<media::GpuVideoDecodeAcceleratorHost, void (media::GpuVideoDecodeAcceleratorHost::*)(AcceleratedVideoDecoderHostMsg_PictureReady_Params const&), void, std::__ndk1::tuple<AcceleratedVideoDecoderHostMsg_PictureReady_Params> >(media::GpuVideoDecodeAcceleratorHost*, void (media::GpuVideoDecodeAcceleratorHost::*)(AcceleratedVideoDecoderHostMsg_PictureReady_Params const&), void*, std::__ndk1::tuple<AcceleratedVideoDecoderHostMsg_PictureReady_Params>&&)  ipc/ipc_message_templates.h:51:0
  00ec5f41  bool IPC::MessageT<ViewMsg_Resize_Meta, std::__ndk1::tuple<content::ResizeParams>, void>::Dispatch<content::RenderWidget, content::RenderWidget, void, void (content::RenderWidget::*)(content::ResizeParams const&)>(IPC::Message const*, content::RenderWidget*, content::RenderWidget*, void*, void (content::RenderWidget::*)(content::ResizeParams const&))                                                                                                                               ipc/ipc_message_templates.h:146:7
  00ec5247  content::RenderWidget::OnMessageReceived(IPC::Message const&)                                                                                                                                                                                                                                                                                                                                                                                                                                  content/renderer/render_widget.cc:670:5
  00ec0315  content::RenderViewImpl::OnMessageReceived(IPC::Message const&)                                                                                                                                                                                                                                                                                                                                                                                                                                content/renderer/render_view_impl.cc:1110:5
  0084af49  content::ChildThreadImpl::ChildThreadMessageRouter::RouteMessage(IPC::Message const&)                                                                                                                                                                                                                                                                                                                                                                                                          content/child/child_thread_impl.cc:362:38
  00017e35  IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&)                                                                                                                                                                                                                                                                                                                                                                                                                             ipc/ipc_channel_proxy.cc:320:14
  000b9889  base::OnceCallback<void ()>::Run() &&                                                                                                                                                                                                                                                                                                                                                                                                                                                          base/callback.h:95:12
  000c20f3  base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)                                                                                                                                                                                                                                                                                                                                                                                                                           base/debug/task_annotator.cc:101:33
  0041d523  blink::scheduler::internal::ThreadControllerImpl::DoWork(blink::scheduler::internal::SequencedTaskSource::WorkType)                                                                                                                                                                                                                                                                                                                                                                            third_party/blink/renderer/platform/scheduler/base/thread_controller_impl.cc:162:21
  000b9889  base::OnceCallback<void ()>::Run() &&                                                                                                                                                                                                                                                                                                                                                                                                                                                          base/callback.h:95:12
  000c20f3  base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)                                                                                                                                                                                                                                                                                                                                                                                                                           base/debug/task_annotator.cc:101:33
  000d6a79  base::internal::IncomingTaskQueue::RunTask(base::PendingTask*)                                                                                                                                                                                                                                                                                                                                                                                                                                 base/message_loop/incoming_task_queue.cc:124:19
  000d8539  base::MessageLoop::RunTask(base::PendingTask*)                                                                                                                                                                                                                                                                                                                                                                                                                                                 base/message_loop/message_loop.cc:354:25
  000d873f  base::MessageLoop::DeferOrRunPendingTask(base::PendingTask)                                                                                                                                                                                                                                                                                                                                                                                                                                    base/message_loop/message_loop.cc:364:5
  000d880d  base::MessageLoop::DoWork()                                                                                                                                                                                                                                                                                                                                                                                                                                                                    base/message_loop/message_loop.cc:408:16
  000d9647  base::MessagePumpDefault::Run(base::MessagePump::Delegate*)                                                                                                                                                                                                                                                                                                                                                                                                                                    message_loop/message_pump_default.cc:37:31
  000d82ff  base::MessageLoop::Run(bool)                                                                                                                                                                                                                                                                                                                                                                                                                                                                   base/message_loop/message_loop.cc:306:12
  000eedfb  base::RunLoop::Run()                                                                                                                                                                                                                                                                                                                                                                                                                                                                           base/run_loop.cc:130:14
  00ecddff  content::RendererMain(content::MainFunctionParams const&)                                                                                                                                                                                                                                                                                                                                                                                                                                      content/renderer/renderer_main.cc:248:23
  00f6c9ad  content::ContentMainRunnerImpl::Run()                                                                                                                                                                                                                                                                                                                                                                                                                                                          content/app/content_main_runner.cc:706:12
  00018719  service_manager::Main(service_manager::MainParams const&)                                                                                                                                                                                                                                                                                                                                                                                                                                      services/service_manager/embedder/main.cc:452:29
  v------>  content::JNI_ContentMain_Start(_JNIEnv*, base::android::JavaParamRef<_jclass*> const&)                                                                                                                                                                                                                                                                                                                                                                                                         content/app/android/content_main.cc:41:10
  00f6c251  Java_org_chromium_content_app_ContentMain_nativeStart                                                                                                                                                                                                                                                                                                                                                                                                                                          out/an-debug/gen/content/public/android/content_jni_headers/content/jni/ContentMain_jni.

Comment 4 by e...@chromium.org, Apr 18 2018

Status: Available (was: Untriaged)

Sign in to add a comment