Bug 235660 - ASSERTION FAILED: m_pdfDocument under WebKit::PDFPlugin::installPDFDocument()
Summary: ASSERTION FAILED: m_pdfDocument under WebKit::PDFPlugin::installPDFDocument()
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-26 11:33 PST by Ryan Haddad
Modified: 2022-07-29 08:58 PDT (History)
4 users (show)

See Also:


Attachments
crash log (86.08 KB, text/plain)
2022-01-26 11:33 PST, Ryan Haddad
no flags Details
test list from crashing worker (310.90 KB, text/plain)
2022-01-26 12:30 PST, Ryan Haddad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2022-01-26 11:33:12 PST
Big Sur AppleSilicon Debug WK2 EWS bots seem to be frequently seeing an assertion failure attributed to fast/replaced/frame-removed-during-resize.html. This test is not crashing on trunk bots, so there is probably another test running before this one that is triggering this crash.

CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more.
ASSERTION FAILED: m_pdfDocument
/Volumes/Data/worker/macOS-AppleSilicon-Big-Sur-Debug-Build-EWS/build/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm(1663) : void WebKit::PDFPlugin::installPDFDocument()
1   0x13d1e889c WTFCrash
2   0x1040067c0 WebKit::Daemon::Decoder::~Decoder()
3   0x1044efcc0 WebKit::PDFPlugin::installPDFDocument()
4   0x1044ef81c WebKit::PDFPlugin::receivedNonLinearizedPDFSentinel()
5   0x10451b3d0 WebKit::PDFPlugin::receivedNonLinearizedPDFSentinel()::$_2::operator()() const
6   0x10451b2e4 WTF::Detail::CallableWrapper<WebKit::PDFPlugin::receivedNonLinearizedPDFSentinel()::$_2, void>::call()
7   0x13d21304c WTF::Function<void ()>::operator()() const
8   0x13d2a3f14 WTF::RunLoop::performWork()
9   0x13d2a8ce0 WTF::RunLoop::performWork(void*)
10  0x196376ad4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
11  0x196376a20 __CFRunLoopDoSource0
12  0x19637670c __CFRunLoopDoSources0
13  0x196375094 __CFRunLoopRun
14  0x1963745e8 CFRunLoopRunSpecific
15  0x19711d688 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
16  0x1971afb70 -[NSRunLoop(NSRunLoop) run]
17  0x195feb768 _xpc_objc_main
18  0x195feaf94 xpc_main
19  0x1038fe1ec WebKit::XPCServiceMain(int, char const**)
20  0x1057a8a68 WKXPCServiceMain
21  0x1027bbe8c main
22  0x196295450 start
com.apple.WebKit.WebContent.Development terminated (pid 1559) because the process crashed
LEAK: 1 WebPageProxy


https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Big-Sur-Debug-WK2-Tests-EWS/r450006-22209/results.html
Comment 1 Ryan Haddad 2022-01-26 11:33:21 PST
Created attachment 450046 [details]
crash log
Comment 2 Radar WebKit Bug Importer 2022-01-26 11:33:51 PST
<rdar://problem/88086949>
Comment 3 Ryan Haddad 2022-01-26 12:00:16 PST
Since my comment about this "not crashing on trunk bots" is admittedly vague, what I mean to say is that it is only happening on EWS, not on post-commit bots, which means it could be somehow related to the order in which tests are run since EWS skips tests that are known to fail.
Comment 4 Ryan Haddad 2022-01-26 12:30:34 PST
Created attachment 450056 [details]
test list from crashing worker

fast/replaced/encrypted-pdf-as-object-and-embed.html runs right before this test on the worker that crashes, so maybe that is related.

Attaching the list of tests that run on the worker that crashes.
Comment 5 Ryan Haddad 2022-01-26 16:58:27 PST
Speculatively skipped fast/replaced/encrypted-pdf-as-object-and-embed.html in r288655 in an attempt to minimize false positives on EWS.