New issue
Advanced search Search tips

Issue 710742 link

Starred by 2 users

Issue metadata

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

Blocking:
issue 568536



Sign in to add a comment

DCHECK failure in print preview

Project Member Reported by yhirano@chromium.org, Apr 12 2017

Issue description

Chrome Version: ToT (59)

What steps will reproduce the problem?
1) Launch chrome with DCHECK on, go to http://testng.org/doc/index.html.
2) For any syntax, click on 'Print' icon in top right corner.
3) Observe the Print preview.

What happens?

DCHECK failure

See  issue 568536 .
 
Cc: -hirosh...@chromium.org
Owner: hirosh...@chromium.org
Status: Assigned (was: Available)
[1:1:0412/131751.397418:FATAL:DocumentLoader.cpp(631)] Check failed: !frame_->GetPage()->Suspended(). 
#0 0x7fba19fc606b base::debug::StackTrace::StackTrace()
#1 0x7fba19fc4d6c base::debug::StackTrace::StackTrace()
#2 0x7fba1a037caf logging::LogMessage::~LogMessage()
#3 0x7fba00837d4a blink::DocumentLoader::ResponseReceived()
#4 0x7fba0a223672 blink::RawResource::DidAddClient()
#5 0x7fba0a22ac6d blink::Resource::FinishPendingClients()
#6 0x7fba0a22a9f9 blink::Resource::ResourceCallback::RunTask()
#7 0x7fba09c0f285 _ZN4base8internal13FunctorTraitsIMN5blink18HRTFDatabaseLoaderEFvvEvE6InvokeIPS3_JEEEvS5_OT_DpOT0_
#8 0x7fba0a232431 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN5blink8Resource16ResourceCallbackEFvvEJPS6_EEEvOT_DpOT0_
#9 0x7fba0a2323d7 _ZN4base8internal7InvokerINS0_9BindStateIMN5blink8Resource16ResourceCallbackEFvvEJN3WTF17UnretainedWrapperIS5_LNS8_22FunctionThreadAffinityE1EEEEE$
FvvEE7RunImplIRKS7_RKSt5tupleIJSB_EEJLm0EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#10 0x7fba0a23231c _ZN4base8internal7InvokerINS0_9BindStateIMN5blink8Resource16ResourceCallbackEFvvEJN3WTF17UnretainedWrapperIS5_LNS8_22FunctionThreadAffinityE1EEEE$
EFvvEE3RunEPNS0_13BindStateBaseE
#11 0x7fba09bdbf8d _ZNKR4base8CallbackIFvvELNS_8internal8CopyModeE1ELNS2_10RepeatModeE1EE3RunEv
#12 0x7fba09bdc569 WTF::Function<>::operator()()
#13 0x7fba09bdbc61 blink::TaskHandle::Runner::Run()
#14 0x7fba09bdd65f _ZN4base8internal13FunctorTraitsIMN5blink10TaskHandle6RunnerEFvRKS3_EvE6InvokeIRKNS_7WeakPtrIS4_EEJS6_EEEvS8_OT_DpOT0_
#15 0x7fba09bdd53f _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN5blink10TaskHandle6RunnerEFvRKS5_ERKNS_7WeakPtrIS6_EEJS8_EEEvOT_OT0_DpOT1_
#16 0x7fba09bdd4b3 _ZN4base8internal7InvokerINS0_9BindStateIMN5blink10TaskHandle6RunnerEFvRKS4_EJNS_7WeakPtrIS5_EES4_EEEFvvEE7RunImplIRKS9_RKSt5tupleIJSB_S4_EEJLm0E$
m1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#17 0x7fba09bdd3cc _ZN4base8internal7InvokerINS0_9BindStateIMN5blink10TaskHandle6RunnerEFvRKS4_EJNS_7WeakPtrIS5_EES4_EEEFvvEE3RunEPNS0_13BindStateBaseE
#18 0x7fba19fcc57e _ZNO4base8CallbackIFvvELNS_8internal8CopyModeE0ELNS2_10RepeatModeE0EE3RunEv
#19 0x7fba19fcbcbe base::debug::TaskAnnotator::RunTask()
#20 0x7fba0a01a2a5 blink::scheduler::TaskQueueManager::ProcessTaskFromWorkQueue()
#21 0x7fba0a0171ed blink::scheduler::TaskQueueManager::DoWork()
#22 0x7fba0a022594 _ZN4base8internal13FunctorTraitsIMN5blink9scheduler16TaskQueueManagerEFvbEvE6InvokeIRKNS_7WeakPtrIS4_EEJRKbEEEvS6_OT_DpOT0_
#23 0x7fba0a02249f _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN5blink9scheduler16TaskQueueManagerEFvbERKNS_7WeakPtrIS6_EEJRKbEEEvOT_OT0_DpOT1_
#24 0x7fba0a022413 _ZN4base8internal7InvokerINS0_9BindStateIMN5blink9scheduler16TaskQueueManagerEFvbEJNS_7WeakPtrIS5_EEbEEEFvvEE7RunImplIRKS7_RKSt5tupleIJS9_bEEJLm0$
Lm1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#25 0x7fba0a02232c _ZN4base8internal7InvokerINS0_9BindStateIMN5blink9scheduler16TaskQueueManagerEFvbEJNS_7WeakPtrIS5_EEbEEEFvvEE3RunEPNS0_13BindStateBaseE
#26 0x7fba19fcc57e _ZNO4base8CallbackIFvvELNS_8internal8CopyModeE0ELNS2_10RepeatModeE0EE3RunEv
#27 0x7fba19fcbcbe base::debug::TaskAnnotator::RunTask()
...

DCHECK assumes that the page is not suspended, but it is, in the following case.

 - The DocumentLoader requests a resource with valid substitute data when the page is suspended
 - The resource gets Cached synchronously.
 - The DocumentLoader is added to the resource as a ResourceClient.
  - As it's available, ResourceCallback::CallbackHandler().Schedule() is called.
 - ResourceCallback calls ResourceClient callbacks asynchronously without consulting with FetchContext::DefersLoading().
  => DCHECK FAILURE!

hiroshige@, can you look into the issue?
Blocking: 568536

Sign in to add a comment