Getting error: RuntimeError: unreachable

I have one user who is reporting occasionally getting this error. I haven’t been able to reproduce it on any other computer but it crashes the whole PDF display. The user is using Chrome 85 (32 bit) on a Windows 7 computer. Maybe you can give some insight into what is happening and what triggers this?

PDFJSDocumentType.js:104 RuntimeError: unreachable
    at https://www./pdfjs-express/core/pdfjs/pdfjsexpress.view-only.wasm:wasm-function[12]:0x8e0
    at https://www./pdfjs-express/core/pdfjs/pdfjsexpress.view-only.wasm:wasm-function[14]:0x992
    at __alloc (https://www./pdfjs-express/core/pdfjs/pdfjsexpress.view-only.wasm:wasm-function[15]:0x9fa)
    at https://www./pdfjs-express/core/pdfjs/pdfjsexpress.view-only.wasm:wasm-function[43]:0x12c9
    at I#createBuffer (https://www./pdfjs-express/core/pdfjs/pdfjsexpress.view-only.wasm:wasm-function[44]:0x1332)
    at e.value (https://www./pdfjs-express/core/pdfjs/PDFJSDocumentType.js:2203:117)
    at y (https://www./pdfjs-express/core/pdfjs/PDFJSDocumentType.js:2220:301)
    at https://www./pdfjs-express/core/pdfjs/PDFJSDocumentType.js:2227:285
    at L (https://www./pdfjs-express/core/pdfjs/PDFJSDocumentType.js:2177:340)
    at Generator._invoke (https://www./pdfjs-express/core/pdfjs/PDFJSDocumentType.js:2177:92)
error @ PDFJSDocumentType.js:104
(anonymous) @ PDFJSDocumentType.js:2285
Promise.catch (async)
(anonymous) @ PDFJSDocumentType.js:2285
Promise.then (async)
_changeEvents @ PDFJSDocumentType.js:2284
(anonymous) @ webviewer-core.min.js:237
pa @ webviewer-core.min.js:234
(anonymous) @ webviewer-core.min.js:562
a @ webviewer-core.min.js:214
(anonymous) @ webviewer-core.min.js:212
n @ webviewer-core.min.js:212
Promise.then (async)
y @ webviewer-core.min.js:212
(anonymous) @ webviewer-core.min.js:212
fa @ webviewer-core.min.js:212
ka @ webviewer-core.min.js:558
(anonymous) @ webviewer-core.min.js:289
a @ webviewer-core.min.js:214
(anonymous) @ webviewer-core.min.js:212
n @ webviewer-core.min.js:212
Promise.then (async)
y @ webviewer-core.min.js:212
(anonymous) @ webviewer-core.min.js:212
fa @ webviewer-core.min.js:212
Ga.Jx @ webviewer-core.min.js:288
loadDocument @ webviewer-ui.min.js:68
Dp @ webviewer-ui.min.js:68
(anonymous) @ webviewer-ui.min.js:68
r.watch.immediate @ message.8c491df8.js:160
Cn @ vendor.e61d7432.js:769
Yt @ vendor.e61d7432.js:769
h @ vendor.e61d7432.js:769
Tf @ vendor.e61d7432.js:769
ig @ vendor.e61d7432.js:769
Promise.then (async)
ag @ vendor.e61d7432.js:769
og @ vendor.e61d7432.js:769
Bw @ vendor.e61d7432.js:769
b @ vendor.e61d7432.js:769
Xu @ vendor.e61d7432.js:766
Cl @ vendor.e61d7432.js:766
set value @ vendor.e61d7432.js:766
(anonymous) @ message.8c491df8.js:160
Promise.then (async)
(anonymous) @ message.8c491df8.js:160
Cn @ vendor.e61d7432.js:769
Yt @ vendor.e61d7432.js:769
Ml.t.__weh.t.__weh @ vendor.e61d7432.js:769
Is @ vendor.e61d7432.js:769
ig @ vendor.e61d7432.js:769
Promise.then (async)
ag @ vendor.e61d7432.js:769
og @ vendor.e61d7432.js:769
Bw @ vendor.e61d7432.js:769
b @ vendor.e61d7432.js:769
Xu @ vendor.e61d7432.js:766
Cl @ vendor.e61d7432.js:766
set value @ vendor.e61d7432.js:766
l @ message.8c491df8.js:141
(anonymous) @ message.8c491df8.js:141
async function (async)
(anonymous) @ message.8c491df8.js:141
h @ message.8c491df8.js:92
R @ message.8c491df8.js:92
m @ message.8c491df8.js:92
setTimeout (async)
p @ message.8c491df8.js:92
M @ message.8c491df8.js:92
(anonymous) @ message.8c491df8.js:141
Cn @ vendor.e61d7432.js:769
Yt @ vendor.e61d7432.js:769
h @ vendor.e61d7432.js:769
Tf @ vendor.e61d7432.js:769
ig @ vendor.e61d7432.js:769
Promise.then (async)
ag @ vendor.e61d7432.js:769
og @ vendor.e61d7432.js:769
Bw @ vendor.e61d7432.js:769
b @ vendor.e61d7432.js:769
Xu @ vendor.e61d7432.js:766
Cl @ vendor.e61d7432.js:766
set value @ vendor.e61d7432.js:766
V.pageMode.le.onUpdate:modelValue.u.<computed>.u.<computed> @ message.8c491df8.js:141
Cn @ vendor.e61d7432.js:769
Yt @ vendor.e61d7432.js:769
zw @ vendor.e61d7432.js:769
Y @ vendor.e61d7432.js:790
A8.e.type.Sn.onInput.t.<computed>.t.<computed> @ vendor.e61d7432.js:790
Cn @ vendor.e61d7432.js:769
Yt @ vendor.e61d7432.js:769
n @ vendor.e61d7432.js:769
PDFJSDocumentType.js:104 Uncaught (in promise) Error: RuntimeError: unreachable
    at error (VM165 PDFJSDocumentType.js:104)
    at VM165 PDFJSDocumentType.js:2285

Hello pearl,

Unfortunately it’s difficult to investigate further without being able to reproduce the issue on our side. Would you be able to provide some steps that we can take to reproduce the issue? A sample project could be useful as it may be something in your customized code that is causing the issue.

Does this happen with specific PDFs?

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron