Evince freeze over slow XDMCP connection
Submitted by Nathan Bell
Link to original bug (#707481)
Description
If I'm using evince over an XDMCP connection (not through an SSH tunneled XDMCP connection) I notice two different results to opening a PS or PDF file:
- Over a gigabit connection it works as expected.
- Over a 100 mbit connection it freezes, only displaying the yellow "Loading" popup forever. The loading animation works, leading the expectation that the PS or PDF file will eventually load. On some files, if I load the file in presentation mode, then exit presentation mode, it loads fine. In others, I can scroll the second page and pages 2 through the end work fine. Very rarely does this help the first page load. Many files, most of which are one page, never load except in presentation mode (exiting leaves a blank window).
On the slow connection it also sends a very large amount of X11 traffic. I don't have exact numbers anymore, but a typical 30 second tcpdump would create a file several hundred kilobytes in size to a megabyte or two. When evince is frozen, this file is at least 100 megabytes. Looking at a single 21 second dump, totaling 139 megabytes, only a negligible amount of which was not X11 traffic.
The pattern is not always repeating, and I can't tell what came from evince vs. other programs, but there are a lot of CreateWindow, DestroyWindow, ChangeSaveSet, and ChangeWindowAttributes calls.
My setup: Diskless box, booted over PXE to a CentOS 6.4 server, connected over XDMCP to a Fedora 19 server. I've experienced this bug in 3.8.3, 3.9.90, and built from the latest source. It works, in the exact same system setup, with 3.6.1.
Version: git master