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

Issue 666427 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Regression: renderer crash and browser DCHECK when printing any page

Project Member Reported by alex...@chromium.org, Nov 17 2016

Issue description

Repro steps (Linux Debug ToT synced to r432912):

1) Go to http://csreis.github.io/
2) Hit Ctrl-P
3) Wait for print-preview to show up, ensure a real printer is selected, and hit print
4) Observe:

Received signal 11 <unknown> 000000000000
#0 0x7fcd865a9a6e base::debug::StackTrace::StackTrace()
#1 0x7fcd865a95af base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7fcd869f5330 <unknown>
#3 0x7fcd839aaf9c SkCanvas::getDevice()
#4 0x7fcd83942f0b skia::GetMetaData()
#5 0x7fcd7ab40215 printing::MetafileSkiaWrapper::GetMetafileFromCanvas()
#6 0x7fcd813a9e5b content::PepperPluginInstanceImpl::PrintPDFOutput()
#7 0x7fcd813a9cb1 content::PepperPluginInstanceImpl::PrintPageHelper()
#8 0x7fcd813aa05a content::PepperPluginInstanceImpl::PrintEnd()
#9 0x7fcd813ebd51 content::PepperWebPluginImpl::printEnd()
#10 0x7fcd76984c2d blink::WebPluginContainerImpl::printEnd()
#11 0x7fcd76968c81 blink::ChromePluginPrintContext::end()
#12 0x7fcd7695cfca blink::WebLocalFrameImpl::printEnd()
#13 0x7fcd8b468caa printing::PrepareFrameAndViewForPrint::FinishPrinting()
#14 0x7fcd8b468b65 printing::PrepareFrameAndViewForPrint::~PrepareFrameAndViewForPrint()
#15 0x7fcd8b468e49 printing::PrepareFrameAndViewForPrint::~PrepareFrameAndViewForPrint()
#16 0x7fcd8b4771e2 std::default_delete<>::operator()()
#17 0x7fcd8b4751fc std::unique_ptr<>::reset()
#18 0x7fcd8b47223d printing::PrintWebViewHelper::FinishFramePrinting()
#19 0x7fcd8b47872f printing::PrintWebViewHelper::PrintPagesNative()
#20 0x7fcd8b47213f printing::PrintWebViewHelper::PrintPages()
#21 0x7fcd8b471dd9 printing::PrintWebViewHelper::OnFramePreparedForPrintPages()
#22 0x7fcd87488925 _ZN4base8internal13FunctorTraitsIMN18OAuth2TokenService7FetcherEFvvEvE6InvokeIPS3_JEEEvS5_OT_DpOT0_
#23 0x7fcd87488841 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN18OAuth2TokenService7FetcherEFvvEJPS5_EEEvOT_DpOT0_
#24 0x7fcd8b4773c7 _ZN4base8internal7InvokerINS0_9BindStateIMN8printing18PrintWebViewHelperEFvvEJNS0_17UnretainedWrapperIS4_EEEEEFvvEE7RunImplIRKS6_RKSt5tupleIJS8_EEJLm0EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#25 0x7fcd8b47730c _ZN4base8internal7InvokerINS0_9BindStateIMN8printing18PrintWebViewHelperEFvvEJNS0_17UnretainedWrapperIS4_EEEEEFvvEE3RunEPNS0_13BindStateBaseE
#26 0x7fcd874b4aeb base::internal::RunMixin<>::Run()
#27 0x7fcd8b469489 printing::PrepareFrameAndViewForPrint::CallOnReady()
#28 0x7fcd8b46910c printing::PrepareFrameAndViewForPrint::CopySelectionIfNeeded()
#29 0x7fcd8b46d20d printing::PrintWebViewHelper::RenderPagesForPrint()
#30 0x7fcd8b46b882 printing::PrintWebViewHelper::OnPrintForPrintPreview()
#31 0x7fcd8777bf5d _ZN4base20DispatchToMethodImplIPN10extensions17SandboxedUnpackerEMS2_FvRKNS_15DictionaryValueEERKSt5tupleIJS4_EEJLm0EEEEvRKT_T0_OT1_NS_13IndexSequenceIJXspT2_EEEE
#32 0x7fcd8b477030 _ZN4base16DispatchToMethodIPN8printing18PrintWebViewHelperEMS2_FvRKNS_15DictionaryValueEERKSt5tupleIJS4_EEEEvRKT_T0_OT1_
#33 0x7fcd8b476faf _ZN3IPC16DispatchToMethodIN8printing18PrintWebViewHelperEMS2_FvRKN4base15DictionaryValueEEvSt5tupleIJS4_EEEEvPT_T0_PT1_RKT2_
#34 0x7fcd8b4747a5 _ZN3IPC8MessageTI34PrintMsg_PrintForPrintPreview_MetaSt5tupleIJN4base15DictionaryValueEEEvE8DispatchIN8printing18PrintWebViewHelperES9_vMS9_FvRKS4_EEEbPKNS_7MessageEPT_PT0_PT1_T2_
#35 0x7fcd8b46ae99 printing::PrintWebViewHelper::OnMessageReceived()
#36 0x7fcd80ff3e57 content::RenderFrameImpl::OnMessageReceived()
#37 0x7fcd8352e27b IPC::MessageRouter::RouteMessage()
#38 0x7fcd7f325db8 content::ChildThreadImpl::ChildThreadMessageRouter::RouteMessage()
#39 0x7fcd8352e1fe IPC::MessageRouter::OnMessageReceived()
#40 0x7fcd7f32a6a9 content::ChildThreadImpl::OnMessageReceived()
#41 0x7fcd834d0698 IPC::ChannelProxy::Context::OnDispatchMessage()
#42 0x7fcd834d70ff _ZN4base8internal13FunctorTraitsIMN3IPC12ChannelProxy7ContextEFvRKNS2_7MessageEEvE6InvokeIRK13scoped_refptrIS4_EJS7_EEEvS9_OT_DpOT0_
#43 0x7fcd834d6fe6 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN3IPC12ChannelProxy7ContextEFvRKNS4_7MessageEEJRK13scoped_refptrIS6_ES9_EEEvOT_DpOT0_
#44 0x7fcd834d6f73 _ZN4base8internal7InvokerINS0_9BindStateIMN3IPC12ChannelProxy7ContextEFvRKNS3_7MessageEEJ13scoped_refptrIS5_ES6_EEEFvvEE7RunImplIRKSA_RKSt5tupleIJSC_S6_EEJLm0ELm1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#45 0x7fcd834d6e8c _ZN4base8internal7InvokerINS0_9BindStateIMN3IPC12ChannelProxy7ContextEFvRKNS3_7MessageEEJ13scoped_refptrIS5_ES6_EEEFvvEE3RunEPNS0_13BindStateBaseE
#46 0x7fcd865af8f1 _ZNO4base8internal8RunMixinINS_8CallbackIFvvELNS0_8CopyModeE0ELNS0_10RepeatModeE0EEEE3RunEv
#47 0x7fcd865af2c2 base::debug::TaskAnnotator::RunTask()
#48 0x7fcd7716eda1 blink::scheduler::TaskQueueManager::ProcessTaskFromWorkQueue()
#49 0x7fcd7716c722 blink::scheduler::TaskQueueManager::DoWork()
#50 0x7fcd771751bc _ZN4base8internal13FunctorTraitsIMN5blink9scheduler16TaskQueueManagerEFvNS_9TimeTicksEbEvE6InvokeIRKNS_7WeakPtrIS4_EEJRKS5_RKbEEEvS7_OT_DpOT0_
#51 0x7fcd77175094 _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKMN5blink9scheduler16TaskQueueManagerEFvNS_9TimeTicksEbERKNS_7WeakPtrIS6_EEJRKS7_RKbEEEvOT_OT0_DpOT1_
#52 0x7fcd77174ff4 _ZN4base8internal7InvokerINS0_9BindStateIMN5blink9scheduler16TaskQueueManagerEFvNS_9TimeTicksEbEJNS_7WeakPtrIS5_EES6_bEEEFvvEE7RunImplIRKS8_RKSt5tupleIJSA_S6_bEEJLm0ELm1ELm2EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#53 0x7fcd77174ecc _ZN4base8internal7InvokerINS0_9BindStateIMN5blink9scheduler16TaskQueueManagerEFvNS_9TimeTicksEbEJNS_7WeakPtrIS5_EES6_bEEEFvvEE3RunEPNS0_13BindStateBaseE
#54 0x7fcd865af8f1 _ZNO4base8internal8RunMixinINS_8CallbackIFvvELNS0_8CopyModeE0ELNS0_10RepeatModeE0EEEE3RunEv
#55 0x7fcd865af2c2 base::debug::TaskAnnotator::RunTask()
#56 0x7fcd8664105a base::MessageLoop::RunTask()
#57 0x7fcd866412e4 base::MessageLoop::DeferOrRunPendingTask()
#58 0x7fcd866415ce base::MessageLoop::DoWork()
#59 0x7fcd86658f23 base::MessagePumpDefault::Run()
#60 0x7fcd86640bda base::MessageLoop::RunHandler()
#61 0x7fcd866e9674 base::RunLoop::Run()

Followed by the browser process DCHECK:

[84471:84616:1117/113226:FATAL:print_job_worker.cc(287)] Check failed: page_number_ == PageNumber::npos() (0 vs. -1)
#0 0x7f723139ca6e base::debug::StackTrace::StackTrace()
#1 0x7f723140ae1f logging::LogMessage::~LogMessage()
#2 0x7f7233ac2374 printing::PrintJobWorker::OnDocumentChanged()
#3 0x7f7232519e2d _ZN4base8internal13FunctorTraitsIMN10extensions28ExtensionWebContentsObserverEFvPN7content15RenderFrameHostEEvE6InvokeIPS3_JS6_EEEvS8_OT_DpOT0_
#4 0x7f7233abe5b6 _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKMN8printing14PrintJobWorkerEFvPNS4_15PrintedDocumentEEJPS5_S7_EEEvOT_DpOT0_
#5 0x7f7233abe548 _ZN4base8internal7InvokerINS0_9BindStateIMN8printing14PrintJobWorkerEFvPNS3_15PrintedDocumentEEJNS0_17UnretainedWrapperIS4_EENS0_18RetainedRefWrapperIS5_EEEEEFvvEE7RunImplIRKS8_RKSt5tupleIJSA_SC_EEJLm0ELm1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#6 0x7f7233abe45c _ZN4base8internal7InvokerINS0_9BindStateIMN8printing14PrintJobWorkerEFvPNS3_15PrintedDocumentEEJNS0_17UnretainedWrapperIS4_EENS0_18RetainedRefWrapperIS5_EEEEEFvvEE3RunEPNS0_13BindStateBaseE
#7 0x7f72322a7aeb base::internal::RunMixin<>::Run()
#8 0x7f7233abcf9c printing::(anonymous namespace)::HoldRefCallback()
#9 0x7f7233abec97 _ZN4base8internal13FunctorTraitsIPFvRK13scoped_refptrIN8printing19PrintJobWorkerOwnerEERKNS_8CallbackIFvvELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEvE6InvokeIJRKS2_INS3_8PrintJobEESE_EEEvSG_DpOT_
#10 0x7f7233abec1d _ZN4base8internal12InvokeHelperILb0EvE8MakeItSoIRKPFvRK13scoped_refptrIN8printing19PrintJobWorkerOwnerEERKNS_8CallbackIFvvELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJRKS4_INS5_8PrintJobEESG_EEEvOT_DpOT0_
#11 0x7f7233abebc3 _ZN4base8internal7InvokerINS0_9BindStateIPFvRK13scoped_refptrIN8printing19PrintJobWorkerOwnerEERKNS_8CallbackIFvvELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJS3_INS4_8PrintJobEESD_EEESA_E7RunImplIRKSH_RKSt5tupleIJSJ_SD_EEJLm0ELm1EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEE
#12 0x7f7233abeadc _ZN4base8internal7InvokerINS0_9BindStateIPFvRK13scoped_refptrIN8printing19PrintJobWorkerOwnerEERKNS_8CallbackIFvvELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEEJS3_INS4_8PrintJobEESD_EEESA_E3RunEPNS0_13BindStateBaseE
#13 0x7f72313a28f1 _ZNO4base8internal8RunMixinINS_8CallbackIFvvELNS0_8CopyModeE0ELNS0_10RepeatModeE0EEEE3RunEv
#14 0x7f72313a22c2 base::debug::TaskAnnotator::RunTask()
#15 0x7f723143405a base::MessageLoop::RunTask()
#16 0x7f72314342e4 base::MessageLoop::DeferOrRunPendingTask()
#17 0x7f72314345ce base::MessageLoop::DoWork()
#18 0x7f723144bf23 base::MessagePumpDefault::Run()
#19 0x7f7231433bda base::MessageLoop::RunHandler()
#20 0x7f72314dc674 base::RunLoop::Run()
#21 0x7f7231582868 base::Thread::Run()
#22 0x7f723158310a base::Thread::ThreadMain()
#23 0x7f723156a0ea base::(anonymous namespace)::ThreadFunc()

This is almost certainly due to thestig's refactor of printing code for OOPIFs as part of  issue 631513 .
 
Are you seeing a renderer failure causing the browser to DCHECK? I've seen this before so this may be a pre-existing condition.

Something similar to the first crash has been filed as bug 666425, but I believe that's really  bug 666154 .
Components: -Internals>Sandbox>SiteIsolation Internals>Printing
Labels: -Pri-1 Pri-2
Owner: ----
Status: Available (was: Assigned)
I have a source tree sitting at r429513, well before any printing OOPIF CLs. I added a CHECK(false) to the start of PepperPluginInstanceImpl::PrintPDFOutput() to simulate the  bug 666154  crash to easily reproduce this bug. It's a pre-existing condition that I've seen before but never filled a bug for. *guilty look*
Project Member

Comment 3 by sheriffbot@chromium.org, Nov 20 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Recharge-Cold
Owner: thestig@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment