mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.76k stars 10.03k forks source link

[17:29:56.765] TypeError: container is null @ resource://pdf.js/web/viewer.js:1348 #3690

Closed fmms closed 11 years ago

fmms commented 11 years ago

I get the following

[17:29:56.765] TypeError: container is null @ resource://pdf.js/web/viewer.js:1348
[17:32:43.083] "PDF c79c336f9cc7a242a4cd36f2317f7b59 [1.4 PDFsharp 1.31.1789-g (www.pdfsharp.com) / PDFsharp 1.31.1789-g (www.pdfsharp.com)] (PDF.js: 0.8.510)

when opening https://bug570667.bugzilla-attachments.gnome.org/attachment.cgi?id=226471

This is the same PDF as in #2618

Snuffleupagus commented 11 years ago

I'm not able to reproduce this, but I do understand why it's happening and the fix should be easy.

brendandahl commented 11 years ago

I also cannot reproduce, can you give any further steps to reproduce?

timvandermeij commented 11 years ago

@brendandahl Strange, I can also reproduce it. I've done nothing, just opening the URL provided. Let me check if the patch from @Snuffleupagus solves the issue.

Edit: It only seems to happen with the addon version. I cannot reproduce it locally. I am pretty sure the patch from @Snuffleupagus fixes the problem, but I am not 100% sure since it only seems to happen with the addon and that is only updated when a patch is merged.

timvandermeij commented 11 years ago

I can confirm that the patch from @Snuffleupagus works. The problem doesn't occur the first time, but on each reload of the page. The addon with the patch from @Snuffleupagus does solve this.