After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552382 - Loading PDF file hang on Loading...
Loading PDF file hang on Loading...
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: PDF
2.23.x
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-15 16:40 UTC by Oxmosys
Modified: 2008-10-04 18:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Debug log while reproducing loading bug (5.35 KB, text/plain)
2008-09-18 04:13 UTC, Hew McLachlan
Details

Description Oxmosys 2008-09-15 16:40:04 UTC
Please describe the problem:
When I double click a PDF file in Nautilus, Evince opens and shows a window showing "Loading...". However, the loading never completes. When I close the window and double click the file again in Nautilus, Evince loads the file properly.

I've been able to reproduce this bug on both compiz and metacity. Most of time when evince opens maximized. It seems to happen more regularly with compiz than metacity and it happens something like 40% of the time.

Steps to reproduce:
1. Opens a PDF file with evince, by double-clicking on the PDF file.


Actual results:
Sometime, I only see "Loading.." and the PDF content never appears on the screen.

Expected results:
I should be able to see the content of the PDF file.

Does this happen every time?
Not everytime, you must open a PDF file many times before the bug reproduces.

Other information:
Comment 1 Chris Coulson 2008-09-16 11:44:33 UTC
One important point from the Ubuntu bug report - Evince doesn't actually hang when loading the PDF, and you don't need to close Evince and re-open it in order to see the correct content. The PDF will display correctly immediately on resizing or moving the Evince window.
Comment 2 Sebastien Bacher 2008-09-16 11:57:38 UTC
ubuntu bug https://bugs.launchpad.net/ubuntu/+source/evince/+bug/256048
Comment 3 Chris Coulson 2008-09-16 11:59:08 UTC
Thanks Sebastien, I didn't even notice that the link to the Ubuntu bug hadn't been posted.
Comment 4 Carlos Garcia Campos 2008-09-16 12:06:23 UTC
I cannot reproduce it, but if anybody who is able to reproduce it could run evince in debug mode, the output would be very useful. Here are the instructions to run evince in debug mode:

http://live.gnome.org/Evince/Debugging

Thanks. 
Comment 5 Hew McLachlan 2008-09-18 04:13:45 UTC
Created attachment 118923 [details]
Debug log while reproducing loading bug

I've attached the log of opening the pdf and watching it stick on "Loading...". Hopefully it is of some use :-)

I just noticed that this is caused by moving the mouse while evince is starting up! There seem to be two loading stages: The first has the whole application greyed out and "Loading..." (while opening the document), and the second has a blank page displayed with "Loading..." (the actual bug). If you keep your mouse still while the document is opening in the first stage, it will open successfully. If you move the mouse even one pixel while it is loading in this first stage, the blank page will appear and still be "Loading...". 

This is most easily reproducible with a large document that takes a while to load, but you can also wave your mouse madly on small documents to trigger it. (The more you concentrate / don't move for testing, the harder it is to find the bug! Typical :-P)
Comment 6 Oxmosys 2008-09-18 06:14:07 UTC
I confirm that this issue appears only when moving the mouse while opening a PDF file. It does not appear when the mouse stay still.
Comment 7 Chris Coulson 2008-09-18 07:07:07 UTC
Hew - that was well spotted!
Comment 8 Carlos Garcia Campos 2008-09-26 10:41:39 UTC
Ok, I finally managed to find some time to look at this. The problem should be fixed now in svn. Thank you all for your help. 
Comment 9 Oxmosys 2008-09-26 15:55:07 UTC
Unfortunately, I'm still able to reproduce this bug with svn snapshot with changelog that ends with :

2008-09-26  Carlos Garcia Campos  <carlosgc@gnome.org>

	* shell/ev-pixbuf-cache.c: (copy_job_to_job_info):

	Make sure copy_job_page_and_selection_to_job_info is always called
	before copy_job_to_job_info. Fixes bug #552382.
Comment 10 Carlos Garcia Campos 2008-09-27 15:52:20 UTC
Really? then I'm going to need another debug log because I'm unable to reproduce it again. 
Comment 11 Oxmosys 2008-09-27 16:53:05 UTC
Yes, I removed evince from ubuntu (apt-get remove evince), downloaded svn sources (svn merge ..), verified that the changelog contained your fix, packaged the svn sources for ubuntu and then installed the resulting .deb file, so no error is possible I think, perhaps that your patch improves things, but not for every configuration?
Comment 12 Christian Ramseier 2008-09-29 13:54:15 UTC
I can also still reproduce it with this document: http://launchpadlibrarian.net/18034495/Menuplan (right click, save as...)

Not sure, but maybe we have to add ...

g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0, job_info->region);

... to "copy_job_to_job_info" after "copy_job_page_and_selection_to_job_info" was called to make the "Loading" go away?

Cheers, Chris
Comment 13 Carlos Garcia Campos 2008-10-04 17:46:40 UTC
(In reply to comment #12)
> I can also still reproduce it with this document:
> http://launchpadlibrarian.net/18034495/Menuplan (right click, save as...)
> 
> Not sure, but maybe we have to add ...
> 
> g_signal_emit (pixbuf_cache, signals[JOB_FINISHED], 0, job_info->region);
> 
> ... to "copy_job_to_job_info" after "copy_job_page_and_selection_to_job_info"
> was called to make the "Loading" go away?
>

Yes!, you are right. It should be fixed in svn trunk now. Thank you very much. 

> Cheers, Chris
> 

Comment 14 Oxmosys 2008-10-04 18:24:50 UTC
I confirm that revision 3215 fixes that bug! Thank you very much!