Edit epub file on extended monitor/display does not respond

Bug #1846960 reported by David Bradley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre 4.0.0 x64 - win10 Home (updated to Oct 6th/2019)

- I've a pdf file that was converted to EPub using Calibre 3.46.
- been editing the epub file from edit book context menu selection.
- and edit-book-frame is created on the all monitors (main and extended)

- placed the edit-book-frame onto an extended monitor (that is a 2nd monitor connected to my laptop)

- 3.46 has no issues when relaunching the edit book of the Epub file/component with the
edit-book-frame on the extended monitor.

- NB: the edit-book-frame is relaunched based on the last monitor/extended monitor position the edit-book-frame was at.

Issue
- with calibre 4.0.0 the edit-book-frame of an epub file/component the frame on the extended monitor is seen. But it freezes/hangs and does not respond, no display (is just a frame, no menu, etc).

1) have a laptop (Win10 Home)
2) add an extended monitor to the hdmi port)
3) open Calibre 4.0.0 that has titles which have an epub format component
4) select the title and edit-book
5) move the edit-book-frame to the extended monitor
6) close the edit-book-frame
7) close Calibre
8) open Calibre 4.0.0 and repeat step 4
9) ISSUE: the frame hangs/freezes and remains blank

FYI
Tried with extended monitor being:
- to left of main display position
- to right of main display position
- above main display position
- below main display position

So negative or positive position of edit-book-frame onto an extended monitor is not the case. Its just any edit-book-frame onto an extended monitor.

I've found no way to recover the edit-book-frame to the main display.

Note: If the last position the edit-book-frame (assume top-left x,y) is on the main display, there is no problem in 4.0.0.

This is not the viewer, but the edit-epub file viewer.

Note: 3.46 deals with extended monitors as expected. (No freezes, no hangs,....).

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1846960

Works for me on my win10 laptop with an intel GPU. You can reset the
windows onto the main desktop with https://www.howtogeek.com/howto/windows/bring-misplaced-off-screen-windows-back-to-your-desktop-keyboard-trick/

For example. Or got to Preferences->Miscellaneous in calibre and open
the configuration folder and delete the file tweak_book_gui.json which
is where window positions are stored for the editor.

Revision history for this message
David Bradley (dbrad) wrote :

Please note it is a different physical monitor/display. Not a desktop.
The physical monitor extension setting changes the size of the desktop to include it.

Maybe its terminology, but win10 supports virtual desktops. Where as I've an additional monitor/display as a physical display attachment.

Thank you for the quick response.

Revision history for this message
Kovid Goyal (kovid) wrote :

Yeah I meant external monitor.

Revision history for this message
David Bradley (dbrad) wrote :

If I force close the hanging window in the extended display, the win msg is:
   calibre-parallel.exe not responding

The other day I got an error message. IOError: access denied permission.

Today I do not get the IOError message at all.

I've disabled my anti-virus, but the problem persists.

a) Is there any design documentation I can look at. So as to see if I can find the issue.
b) Is there a logging capability?

Revision history for this message
Kovid Goyal (kovid) wrote :

https://manual.calibre-ebook.com/develop.html

And you can run calibre in debug mode by right clicking the preferences
icon, however this is unlikely to be useful as from your problem
description it is likely that Qt is having issues with the external
monitor/GPU and calibre logging happens in a layer above Qt

Revision history for this message
Martin Brady (charvez) wrote :

I seem to have a similar (or same) problem. I am using multiple monitors and when I load Calibre, I can open books, but if I ty to 'Edit Metadata' it stop working. I have run it in debug mode and get:-

calibre Debug log
calibre 4.4 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (6, 6, 3) && FanFicFare (3, 13, 0) && Prettify Cover 0.9.12 && Kobo Books (1, 7, 0) && CalibreSpy (1, 0, 75) && EpubCheck (0, 2, 1) && Hyphenate This! (0, 0, 8)
calibre 4.4 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: DeDRM (6, 6, 3) && FanFicFare (3, 13, 0) && Prettify Cover 0.9.12 && Kobo Books (1, 7, 0) && CalibreSpy (1, 0, 75) && EpubCheck (0, 2, 1) && Hyphenate This! (0, 0, 8)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 81.5518394649 x 81.6428571429
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.42] splash screen shown
[0.42] Initializing db...
[0.64] db initialized
[0.64] Constructing main UI...
Traceback (most recent call last):
  File "site-packages\calibre\gui2\ui.py", line 157, in __init__
  File "site-packages\calibre\gui2\ui.py", line 171, in init_iaction
  File "site-packages\calibre\customize\__init__.py", line 612, in load_actual_plugin
  File "importlib\__init__.py", line 37, in import_module
  File "site-packages\calibre\customize\zipplugin.py", line 185, in load_module
  File "calibre_plugins.prettify_cover.action", line 29, in <module>
  File "site-packages\calibre\customize\zipplugin.py", line 185, in load_module
  File "calibre_plugins.prettify_cover.dialogs", line 30, in <module>
ImportError: cannot import name QWebPage
FFF: INFO: 2019-11-25 13:52:51,187: calibre_plugins.fanficfare_plugin.prefs(207): Attempting to read settings from predecessor--FFDL
FFF: INFO: 2019-11-25 13:52:51,187: calibre_plugins.fanficfare_plugin.prefs(212): Using default settings
FFF: DEBUG: 2019-11-25 13:52:51,188: calibre_plugins.fanficfare_plugin.fff_plugin(208): Plugin FanFicFare macmenuhack file_path:C:\Users\Martin\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
CalibreSpy: initialization_complete
[3.01] main UI initialized...
[3.01] Hiding splash screen
[20.03] splash screen hidden
[20.03] Started up in 20.03 seconds with 792 books

Any help would be greatly appreciated.

Revision history for this message
Kovid Goyal (kovid) wrote :

This will be because the window is opening offscreen, probably because you recently
connected a secondary monitor or tv or similar. You can bring the window back onscreen
by using the technique described here:
https://www.technipages.com/bring-off-screen-window-back-onto-screen

Revision history for this message
Martin Brady (charvez) wrote :

Thank you Kovid for such a quick response as well as a fabulous program. Changing the resolution to something different and then changing it back has worked beautifully!

Kovid Goyal (kovid)
Changed in calibre:
status: New → Fix Released
Revision history for this message
David Bradley (dbrad) wrote :

Unfortunately this is a workaround, not a fix. You have to do this every time as manual intervention, ouch.

If you change the resolution of your windows, any desktop icons/shortcuts will be rearranged, and some out-placed to newer positions. When you revert back, the rearrangement of icons etc stays in the out-placed state.

Note: my monitor remain plugged in all the time, implying no changing of the screen stuff.

Revision history for this message
Denis Fournier (monarch02) wrote :

Hello, I have a problem since I redid my computer (motherboard, cpu, memory) I have as before 2 screens the same, my caliber is on my screen 1 as before the changes but when I want to open a book it doesn't work it tells me (book viewer doesn't respond) when I close this page a window opens and says (caliber-parallel.exe doesn't respond) and when I move the caliber page on my screen 2 everything works normally. all the updates have been done

can someone help me please

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.