Bug 236851 - ASSERTION FAILED: needsPreparationForDisplay() when opening certain PDFs in PDF.js viewer
Summary: ASSERTION FAILED: needsPreparationForDisplay() when opening certain PDFs in P...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 235969
  Show dependency treegraph
 
Reported: 2022-02-18 11:42 PST by Tim Nguyen (:ntim)
Modified: 2022-08-30 14:02 PDT (History)
2 users (show)

See Also:


Attachments
Sample crashing PDF (519.38 KB, application/pdf)
2022-02-18 11:42 PST, Tim Nguyen (:ntim)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2022-02-18 11:42:49 PST
Created attachment 452553 [details]
Sample crashing PDF

ASSERTION FAILED: needsPreparationForDisplay()
./html/HTMLCanvasElement.cpp(1033) : void WebCore::HTMLCanvasElement::prepareForDisplay()
1   0x1334fc320 WTFCrash
2   0x1477c9f74 WTFCrashWithInfo(int, char const*, char const*, int)
3   0x14a710804 WebCore::HTMLCanvasElement::prepareForDisplay()
4   0x14a277a88 WebCore::Document::prepareCanvasesForDisplayIfNeeded()
5   0x14b1307ac WebCore::Page::doAfterUpdateRendering()::$_50::operator()(WebCore::Document&) const
6   0x14b130728 WTF::Detail::CallableWrapper<WebCore::Page::doAfterUpdateRendering()::$_50, void, WebCore::Document&>::call(WebCore::Document&)
7   0x14a1cacc0 WTF::Function<void (WebCore::Document&)>::operator()(WebCore::Document&) const
8   0x14b0e03b4 WebCore::Page::forEachDocumentFromMainFrame(WebCore::Frame const&, WTF::Function<void (WebCore::Document&)> const&)
9   0x14b0d08b4 WebCore::Page::forEachDocument(WTF::Function<void (WebCore::Document&)> const&) const
10  0x14b0d80e8 WebCore::Page::doAfterUpdateRendering()
11  0x14b0d7a68 WebCore::Page::updateRendering()
12  0x1195250d0 WebKit::WebPage::updateRendering()
13  0x1187f720c WebKit::TiledCoreAnimationDrawingArea::updateRendering(WebKit::TiledCoreAnimationDrawingArea::UpdateRenderingType)
14  0x1187fc084 WebKit::TiledCoreAnimationDrawingArea::updateRenderingRunLoopCallback()
15  0x118818794 WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebKit::WebPage&, WebKit::WebPageCreationParameters const&)::$_0::operator()() const
16  0x118818710 WTF::Detail::CallableWrapper<WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea(WebKit::WebPage&, WebKit::WebPageCreationParameters const&)::$_0, void>::call()
17  0x14ab44a3c WTF::Function<void ()>::operator()() const
18  0x14b3bc4ec WebCore::RunLoopObserver::runLoopObserverFired()
19  0x14b3bc454 WebCore::RunLoopObserver::runLoopObserverFired(__CFRunLoopObserver*, unsigned long, void*)
20  0x1ad796d00 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
21  0x1ad796b50 __CFRunLoopDoObservers
22  0x1ad795634 CFRunLoopRunSpecific
23  0x1ae672040 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
24  0x1ae702394 -[NSRunLoop(NSRunLoop) run]
25  0x1ad40c8b4 _xpc_objc_main
26  0x1ad40c1d0 xpc_main
27  0x117aad858 WebKit::XPCServiceMain(int, char const**)
28  0x119950e28 WKXPCServiceMain
29  0x102703eac main
30  0x1028b508c
Comment 1 Radar WebKit Bug Importer 2022-02-18 11:44:09 PST
<rdar://problem/89158103>
Comment 2 Tim Nguyen (:ntim) 2022-08-30 14:02:55 PDT
Can no longer reproduce