Bug: PDF Viewer fails to render certain PDF
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2022-02-27 21:07:32+00:00
Resolved: 2022-05-03 03:05:39+00:00

Steps to reproduce:

User-Agent: `Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0`

Visit https://drive.google.com/uc?id=1yjYZQB-qhrtEGCV_3yWWtWs_eLihYYm3


Actual results:

PDF page is empty

Console errors:
```
An error occurred while rendering the page.
PDF.js v2.13.189 (build: 2bb96a708)
Message: 
Stack: putBinaryImageData@resource://pdf.js/build/pdf.js:4998:11
paintInlineImageXObject@resource://pdf.js/build/pdf.js:6850:25
paintImageXObject@resource://pdf.js/build/pdf.js:6801:10
executeOperatorList@resource://pdf.js/build/pdf.js:5378:20
_next@resource://pdf.js/build/pdf.js:3293:37
__webpack_modules__</_scheduleNext/<@resource://pdf.js/build/pdf.js:3281:14
FrameRequestCallback*_scheduleNext@resource://pdf.js/build/pdf.js:3280:14
renderContinueCallback@resource://pdf.js/web/viewer.js:12201:9
__webpack_modules__</paintOnCanvas/renderTask.onContinue@resource://pdf.js/web/viewer.js:12386:16
_continue@resource://pdf.js/build/pdf.js:3272:17
operatorListChanged@resource://pdf.js/build/pdf.js:3261:10
_renderPageChunk@resource://pdf.js/build/pdf.js:1987:26
__webpack_modules__</_pumpOperatorList/pump/<@resource://pdf.js/build/pdf.js:2026:14
promise callback*pump@resource://pdf.js/build/pdf.js:2013:21
_pumpOperatorList@resource://pdf.js/build/pdf.js:2056:5
render@resource://pdf.js/build/pdf.js:1725:12
paintOnCanvas@resource://pdf.js/web/viewer.js:12380:37
draw@resource://pdf.js/web/viewer.js:12238:108
renderView@resource://pdf.js/web/viewer.js:7964:14
__webpack_modules__</forceRendering/<@resource://pdf.js/web/viewer.js:10999:29
promise callback*forceRendering@resource://pdf.js/web/viewer.js:10998:43
renderHighestPriority@resource://pdf.js/web/viewer.js:7871:24
update@resource://pdf.js/web/viewer.js:10788:25
webViewerScaleChanging@resource://pdf.js/web/viewer.js:2486:34
dispatch@resource://pdf.js/web/viewer.js:3622:15
_setScaleUpdatePages@resource://pdf.js/web/viewer.js:10524:19
_setScale@resource://pdf.js/web/viewer.js:10549:12
set currentScaleValue@resource://pdf.js/web/viewer.js:9978:10
scrollPageIntoView@resource://pdf.js/web/viewer.js:10719:9
setHash@resource://pdf.js/web/viewer.js:4270:24
setInitialView@resource://pdf.js/web/viewer.js:1699:27
__webpack_modules__</load/</<@resource://pdf.js/web/viewer.js:1307:14
promise callback*__webpack_modules__</load/<@resource://pdf.js/web/viewer.js:1259:119
promise callback*load@resource://pdf.js/web/viewer.js:1254:22
__webpack_modules__</open/<@resource://pdf.js/web/viewer.js:1019:12
promise callback*open@resource://pdf.js/web/viewer.js:1018:32
onOpenWithTransport@resource://pdf.js/web/viewer.js:818:14
windowMessage@resource://pdf.js/web/viewer.js:14078:21
EventListener.handleEvent*initPassiveLoading@resource://pdf.js/web/viewer.js:14058:12
initPassiveLoading@resource://pdf.js/web/viewer.js:816:27
webViewerOpenFileViaURL@resource://pdf.js/web/viewer.js:2182:24
webViewerInitialized@resource://pdf.js/web/viewer.js:2172:28
promise callback*run@resource://pdf.js/web/viewer.js:743:29
webViewerLoad@resource://pdf.js/web/viewer.js:14783:29
EventListener.handleEvent*@resource://pdf.js/web/viewer.js:14793:12
@resource://pdf.js/web/viewer.js:14795:3
@resource://pdf.js/web/viewer.js:14797:12

renderView: "[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://pdf.js/build/pdf.js :: putBinaryImageData :: line 4998"  data: no]"
```


Expected results:

PDF should be rendered