qpdfview closes upon laptop lid closure

Asked by ralphl

When qpdfview is running and I close my laptop lid (set to suspend on lid closure), qpdfview closes and I have to double click the document to bring it back up. It also loses my place in the document. This does not happen if I use the suspend function from the main menu. I am running xubuntu 14.04. If I open a document with Document Viewer (Evince) it behaves correctly and does not drop out, when the lid is closed. I don't know what could cause qpdfview to detect a different kind of suspend--whether it was caused by lid closure or by menu selection, but the behavior happens as described. It is the only app that I have found that behaves this way.

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
ralphl
Solved:
Last query:
Last reply:
Revision history for this message
Adam Reichold (adamreichold) said :
#1

Hello,

I think what you describes sounds like the program crashing instead of just closing. Also since there is no functionality within qpdfview that reacts to ACPI or similar events, I guess that the problem happens at the toolkit level and maybe within processing of keyboard events and/or shortcuts.

To to diagnose this further: Could you open a terminal, start qpdfview from there using "qpdfview --unique" and check if there are any error messages on the terminal after you closed and reopened the lid? Also you could check if other Qt5-based applications may show similar behaviour.

Best regards, Adam.

Revision history for this message
ralphl (lachenmaier) said :
#2

Here is the output you requested. Yes, there are error messages. Also, I see that I have libpoppler-qt5-1 and libpoppler-qt4-4 installed, if this makes any difference. It only aborts if I close the lid--not if I do "suspend" from the main menu.
I don't know what other applications that I have that might be Qt-5 based. Can you tell me some that I might execute?

ralph@lat1:~$ qpdfview --unique
QXcbConnection: XCB error: 3 (BadWindow), sequence: 509, resource id: 0, major code: 15 (QueryTree), minor code: 0

Thanks for the response.
Ralph

Revision history for this message
Adam Reichold (adamreichold) said :
#3

Hello again,

since you are using 14.04, you got the first Debian/Ubuntu package of qpdfview that defaults to using Qt5 hence you have poppler-qt5 installed. Some other application might use Poppler's Qt4 bindings hence you also got poppler-qt4. The error message itself also very much hints at a tool kit problem since the Qt 5 integration in 14.04 is also pretty new.

Googling the error message, the problems seem common with various programs on this Ubuntu version. If you want to try another application, Qt Creator from the official repositories should also use Qt5 but it is quite heavy. The unstable Scribus builds from [1] seem to be an alternative.

You can also try if using qpdfview with Qt4 will resolve this for now by using the dailydebs from [2] which however do contain unstable code from qpdfview's trunk.

Best regards, Adam.

[1] https://launchpad.net/~scribus/+archive/ubuntu/ppa

[2] https://code.launchpad.net/~adamreichold/+recipe/qpdfview-dailydeb

Revision history for this message
ralphl (lachenmaier) said :
#4

I installed the repository https://code.launchpad.net/~adamreichold/+recipe/qpdfview-dailydeb and then installed 0.4.14.99~1947~59~ubuntu14.04.1. This seemed to fix the problem.