Bug: renderViewPage error on loading PDF
Status: RESOLVED
Priority: P1
Resolution: FIXED
Created: 2021-07-13 10:57:37+00:00
Resolved: 2023-03-16 00:58:44+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

Load the attached PDF in Firefox.


Actual results:

The PDF does not load, I get a renderViewPage error.

An error occurred while rendering the page.
PDF.js v2.9.273 (build: e394da586)
Message: 
Stack: putBinaryImageMask@resource://pdf.js/build/pdf.js:4799:11
paintImageMaskXObject@resource://pdf.js/build/pdf.js:6186:25
executeOperatorList@resource://pdf.js/build/pdf.js:5016:22
_next@resource://pdf.js/build/pdf.js:3754:39
_scheduleNext/<@resource://pdf.js/build/pdf.js:3742:16
FrameRequestCallback*_scheduleNext@resource://pdf.js/build/pdf.js:3741:16
renderContinueCallback@resource://pdf.js/web/viewer.js:11644:9
paintOnCanvas/renderTask.onContinue@resource://pdf.js/web/viewer.js:11836:16
_continue@resource://pdf.js/build/pdf.js:3733:19
operatorListChanged@resource://pdf.js/build/pdf.js:3722:12
_renderPageChunk@resource://pdf.js/build/pdf.js:2415:26
pump/<@resource://pdf.js/build/pdf.js:2448:14
promise callback*pump@resource://pdf.js/build/pdf.js:2435:21
_pumpOperatorList@resource://pdf.js/build/pdf.js:2478:5
render@resource://pdf.js/build/pdf.js:2154:12
paintOnCanvas@resource://pdf.js/web/viewer.js:11830:37
draw@resource://pdf.js/web/viewer.js:11681:108
renderView@resource://pdf.js/web/viewer.js:4110:14
forceRendering/<@resource://pdf.js/web/viewer.js:10585:29
promise callback*forceRendering@resource://pdf.js/web/viewer.js:10584:43
renderHighestPriority@resource://pdf.js/web/viewer.js:4038:24
update@resource://pdf.js/web/viewer.js:10423:25
webViewerScaleChanging@resource://pdf.js/web/viewer.js:2519:34
dispatch@resource://pdf.js/web/viewer.js:3511:16
_setScaleUpdatePages@resource://pdf.js/web/viewer.js:10160:19
_setScale@resource://pdf.js/web/viewer.js:10229:12
set currentScaleValue@resource://pdf.js/web/viewer.js:9811:10
scrollPageIntoView@resource://pdf.js/web/viewer.js:10348:9
setHash@resource://pdf.js/web/viewer.js:6926:24
setInitialView@resource://pdf.js/web/viewer.js:1704:27
load/</<@resource://pdf.js/web/viewer.js:1308:14
promise callback*load/<@resource://pdf.js/web/viewer.js:1261:119
promise callback*load@resource://pdf.js/web/viewer.js:1256:22
open/<@resource://pdf.js/web/viewer.js:1028:12
promise callback*open@resource://pdf.js/web/viewer.js:1027:32
onOpenWithData@resource://pdf.js/web/viewer.js:848:14
windowMessage@resource://pdf.js/web/viewer.js:13605:21
EventListener.handleEvent*initPassiveLoading@resource://pdf.js/web/viewer.js:13557:12
initPassiveLoading@resource://pdf.js/web/viewer.js:836:27
webViewerOpenFileViaURL@resource://pdf.js/web/viewer.js:2179:24
webViewerInitialized@resource://pdf.js/web/viewer.js:2169:28
promise callback*run@resource://pdf.js/web/viewer.js:747:29
webViewerLoad@resource://pdf.js/web/viewer.js:14232:29
EventListener.handleEvent*@resource://pdf.js/web/viewer.js:14242:12
@resource://pdf.js/web/viewer.js:14244:3
@resource://pdf.js/web/viewer.js:14246:12
viewer.js:1181:15
    _otherError resource://pdf.js/web/viewer.js:1181
    (Async: promise callback)
    _otherError resource://pdf.js/web/viewer.js:1180
    webViewerPageRendered resource://pdf.js/web/viewer.js:2214
    (Async: promise callback)
    webViewerPageRendered resource://pdf.js/web/viewer.js:2213
    dispatch resource://pdf.js/web/viewer.js:3511
    finishPaintTask resource://pdf.js/web/viewer.js:11668
    resultPromise resource://pdf.js/web/viewer.js:11696
    (Async: promise callback)
    draw resource://pdf.js/web/viewer.js:11684
    renderView resource://pdf.js/web/viewer.js:4110
    forceRendering resource://pdf.js/web/viewer.js:10585
    (Async: promise callback)
    forceRendering resource://pdf.js/web/viewer.js:10584
    renderHighestPriority resource://pdf.js/web/viewer.js:4038
    update resource://pdf.js/web/viewer.js:10423
    webViewerScaleChanging resource://pdf.js/web/viewer.js:2519
    dispatch resource://pdf.js/web/viewer.js:3511
    _setScaleUpdatePages resource://pdf.js/web/viewer.js:10160
    _setScale resource://pdf.js/web/viewer.js:10229
    set currentScaleValue resource://pdf.js/web/viewer.js:9811
    scrollPageIntoView resource://pdf.js/web/viewer.js:10348
    setHash resource://pdf.js/web/viewer.js:6926
    setInitialView resource://pdf.js/web/viewer.js:1704
    load resource://pdf.js/web/viewer.js:1308
    (Async: promise callback)
    load resource://pdf.js/web/viewer.js:1261
    (Async: promise callback)
    load resource://pdf.js/web/viewer.js:1256
    open resource://pdf.js/web/viewer.js:1028
    (Async: promise callback)
    open resource://pdf.js/web/viewer.js:1027
    onOpenWithData resource://pdf.js/web/viewer.js:848
    windowMessage resource://pdf.js/web/viewer.js:13605
    (Async: EventListener.handleEvent)
    initPassiveLoading resource://pdf.js/web/viewer.js:13557
    initPassiveLoading resource://pdf.js/web/viewer.js:836
    webViewerOpenFileViaURL resource://pdf.js/web/viewer.js:2179
    webViewerInitialized resource://pdf.js/web/viewer.js:2169
    (Async: promise callback)
    run resource://pdf.js/web/viewer.js:747
    webViewerLoad resource://pdf.js/web/viewer.js:14232
    (Async: EventListener.handleEvent)
    <anonymous> resource://pdf.js/web/viewer.js:14242
    <anonymous> resource://pdf.js/web/viewer.js:14244
    <anonymous> resource://pdf.js/web/viewer.js:14246


renderView: "[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://pdf.js/build/pdf.js :: putBinaryImageMask :: line 4799"  data: no]" viewer.js:4117:19
    renderView resource://pdf.js/web/viewer.js:4117
    (Async: promise callback)
    renderView resource://pdf.js/web/viewer.js:4112
    forceRendering resource://pdf.js/web/viewer.js:10585
    (Async: promise callback)
    forceRendering resource://pdf.js/web/viewer.js:10584
    renderHighestPriority resource://pdf.js/web/viewer.js:4038
    update resource://pdf.js/web/viewer.js:10423
    webViewerScaleChanging resource://pdf.js/web/viewer.js:2519
    dispatch resource://pdf.js/web/viewer.js:3511
    _setScaleUpdatePages resource://pdf.js/web/viewer.js:10160
    _setScale resource://pdf.js/web/viewer.js:10229
    set currentScaleValue resource://pdf.js/web/viewer.js:9811
    scrollPageIntoView resource://pdf.js/web/viewer.js:10348
    setHash resource://pdf.js/web/viewer.js:6926
    setInitialView resource://pdf.js/web/viewer.js:1704
    load resource://pdf.js/web/viewer.js:1308
    (Async: promise callback)
    load resource://pdf.js/web/viewer.js:1261
    (Async: promise callback)
    load resource://pdf.js/web/viewer.js:1256
    open resource://pdf.js/web/viewer.js:1028
    (Async: promise callback)
    open resource://pdf.js/web/viewer.js:1027
    onOpenWithData resource://pdf.js/web/viewer.js:848
    windowMessage resource://pdf.js/web/viewer.js:13605
    (Async: EventListener.handleEvent)
    initPassiveLoading resource://pdf.js/web/viewer.js:13557
    initPassiveLoading resource://pdf.js/web/viewer.js:836
    webViewerOpenFileViaURL resource://pdf.js/web/viewer.js:2179
    webViewerInitialized resource://pdf.js/web/viewer.js:2169
    (Async: promise callback)
    run resource://pdf.js/web/viewer.js:747
    webViewerLoad resource://pdf.js/web/viewer.js:14232
    (Async: EventListener.handleEvent)
    <anonymous> resource://pdf.js/web/viewer.js:14242
    <anonymous> resource://pdf.js/web/viewer.js:14244
    <anonymous> resource://pdf.js/web/viewer.js:14246



Expected results:

The PDF loads.