pdf.js: PDF viewer hangs on rendering some documents




PDF Viewer
5 years ago
4 years ago


(Reporter: maikmerten, Unassigned)


19 Branch

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [pdfjs-c-integration])


(2 attachments)



5 years ago
Created attachment 715896 [details]

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130218103317

Steps to reproduce:

Trying to display some PDF files with the built-in PDF viewer in Firefox 19 on Ubuntu 12.04 LTS.



Actual results:

Rendering of the PDF hangs, either starting with the first page (02-..-requirements.pdf) or some later page (04-...-update.pdf). The whole PDF preview UI is frozen. Rest of the browser UI is unaffected, I can happily switch to another tab or close the PDF preview tab. When switching back to an affected PDF tab no redraw will happen either.

Expected results:

PDF rendered, no viewer hang.


5 years ago
Component: Untriaged → PDF Viewer

Comment 1

5 years ago
WFM with FF19 on Win 7, no hang/freeze.
WFM also with FF19 on Ubuntu 12.04 x86 and 12.10 x86:
Mozilla/5.0 (X11; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0

Comment 3

5 years ago
Hmmm... perhaps this is dependant on the graphics driver? FWIW, on the affected machine I use integrated intel graphics (I'll upload an excerpt of the Xorg log).

During the hangs CPU usage is low, so this doesn't appear to be an issue of getting hung up in an endless loop somewhere.

Comment 4

5 years ago
Created attachment 715979 [details]
Excerpt of the Xorg log file of the affected machine

Comment 5

5 years ago
A screencast of the observed behaviour is available at


Notice how rendering hangs whenever approaching certain parts of the document. Nonetheless, one can scroll away, resurrecting the viewer.


5 years ago
Priority: -- → P3
Whiteboard: [pdfjs-c-integration]

Comment 6

5 years ago
Please take a look at the 5MB arabic-like PDF file in the " http://www.sonymobile.com/global-zh/support/phones/xperia-neo-l/support-documents/ " and check to see why the file will get hung and be hard to change pages. This PDF file can be well viewed on Chrome. Thanks.

Comment 7

5 years ago

This file causes for me either:
 - lockup while scrolling it (can be recovered by switching to another tab and back)
 - total lockup of the affected tab (other tabs work fine, the affected one does not render, at all)
 - entire Firefox window is locked up (unresponsive, is not (re)drawn at all), other windows continue to work

FF 20 on Win 7 64 bit (where is the version string hidden these days?)
Radeon HD 6470M, driver version 8.911.4.100

The same happens with FF 20 on WinXP that I access over Remote Desktop.

Comment 8

4 years ago

This file freezes the entire Firefox process (unresponsive); I have to kill the process.

- Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0
- Got the same result on safe mode
- Got the same result on a new profile

Comment 9

4 years ago
(In reply to Seungbeom Kim from comment #8)
> http://ajt.ktug.org/2011/0501karnes.pdf
> This file freezes the entire Firefox process (unresponsive); I have to kill
> the process.

I just forgot to mention that the freeze happens always when I go from page 7 to page 8, at least for me.
You need to log in before you can comment on or make changes to this bug.