Skip to content

Unhandled rejection: TypeError: Illegal constructor #38

@lcopley

Description

@lcopley

I have a pdf of a scanned book (bad me. : ( Couldn't find it legit). When I run it through the code on my AVD, I get the white screen, page 1 /142, and nothing else except this in logcat:

07-15 21:59:53.345 8223-8223/com.sample.pdfwebviewer I/Web Console﹕ Warning: Setting up fake worker. at file:///android_asset/pdfviewer/pdf.js:235
07-15 22:00:16.934 8223-8223/com.sample.pdfwebviewer I/Web Console﹕ Warning: Unhandled rejection: TypeError: Illegal constructor
TypeError: Illegal constructor
at Object.createBlob (file:///android_asset/pdfviewer/pdf.worker.js:1439:12)
at Object.createObjectURL (file:///android_asset/pdfviewer/pdf.worker.js:1455:24)
at Object.JpegStream_getIR as getIR
at Object.PartialEvaluator_buildPaintImageXObject as buildPaintImageXObject
at Object.next (file:///android_asset/pdfviewer/pdf.worker.js:11210:24)
at Object.Promise (file:///android_asset/pdfviewer/pdf.js:1237:16)
at Object.PartialEvaluator_getOperatorList as getOperatorList
at Object.onResolve (file:///android_asset/pdfviewer/pdf.worker.js:2752:33)
at Object.runHandlers (file:///android_asset/pdfviewer/pdf.js:1159:35) at file:///android_asset/pdfviewer/pdf.js:235

I thought maybe my AVD didn't have enough memory (going to check that RSN), but I wondered if the run handlers to which the logcat refers are the real problem--what they heck are they?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions