Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-13-2020, 05:04 PM   #1
baslow
Junior Member
baslow began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Location: Upper Manhattan, New York
Device: Kindle Paperwhite (10th Gen)
Calibre 5.7.2 Hangs When Restarted In Debug Mode

I am running Calibre 5.7.2 in Ubuntu 20.10.

In order to diagnose a problem with the DeDRM plugin I have tried, multiple times, to reboot in debug mode, both from the menu and by using Shift+Ctl+R. Each time, the program hangs. Nothing is clickable and when I minimize the window I see the box that reads "Starting up, please wait...Initializing user interface".

I end up having to kill the process.

Anyone else experiencing this? Any ideas?

UPDATE:
After killing the process, I do get this log, which doesn't seem to me to shed any light:

DBusExport: Failed to detect window status notifier, with error: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
calibre Debug log
calibre 5.7.2 embedded-python: True is64bit: True
Linux-5.8.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.8.0-33-generic', '#36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
calibre 5.7.2 embedded-python: True is64bit: True
Linux-5.8.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.8.0-33-generic', '#36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 102.45378151260503 x 102.35820895522387
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.09] splash screen shown
[0.09] Initializing db...
[0.11] db initialized
[0.11] Constructing main UI...
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[0.68] main UI initialized...
[0.68] Hiding splash screen
Starting QuickView
[506.27] splash screen hidden
[506.28] Started up in 506.28 seconds with 252 books
Thank you.

Last edited by baslow; 12-13-2020 at 05:09 PM.
baslow is offline   Reply With Quote
Old 12-13-2020, 05:13 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,627
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Since you have Calibre 5.7.2, go download and install the DeDRM v7.0.0b4 plugin.
JSWolf is offline   Reply With Quote
Old 12-13-2020, 05:50 PM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,091
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by baslow View Post
I am running Calibre 5.7.2 in Ubuntu 20.10.

In order to diagnose a problem with the DeDRM plugin I have tried, multiple times, to reboot in debug mode, both from the menu and by using Shift+Ctl+R. Each time, the program hangs. Nothing is clickable and when I minimize the window I see the box that reads "Starting up, please wait...Initializing user interface".

I end up having to kill the process.

Anyone else experiencing this? Any ideas?

UPDATE:
After killing the process, I do get this log, which doesn't seem to me to shed any light:

DBusExport: Failed to detect window status notifier, with error: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
calibre Debug log
calibre 5.7.2 embedded-python: True is64bit: True
Linux-5.8.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.8.0-33-generic', '#36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
calibre 5.7.2 embedded-python: True is64bit: True
Linux-5.8.0-33-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.8.0-33-generic', '#36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 36, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 102.45378151260503 x 102.35820895522387
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.09] splash screen shown
[0.09] Initializing db...
[0.11] db initialized
[0.11] Constructing main UI...
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[0.68] main UI initialized...
[0.68] Hiding splash screen
Starting QuickView
[506.27] splash screen hidden
[506.28] Started up in 506.28 seconds with 252 books

Thank you.
Your debug should look a lot like this:
Spoiler:
Code:
$ calibre-debug -g
calibre 5.7.1  embedded-python: True is64bit: True
Linux-5.4.0-56-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.4.0-56-generic', '#62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 0) && Baen (1, 2, 0) && Barnes & Noble (1, 2, 16) && Diaps Editing Toolbag (0, 3, 7) && EpubSplit (3, 0, 0) && Goodreads (1, 5, 1) && Hyphenate This! (0, 1, 3) && KindleUnpack - The Plugin (0, 82, 3) && Kobo Books (1, 8, 0) && Modify ePub (1, 6, 1) && Quality Check (1, 10, 1) && Webscription (1, 2, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 85.08374384236453 x 85.18427947598252
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.08] splash screen shown
[0.08] Initializing db...
[0.30] db initialized
[0.30] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[1.61] main UI initialized...
[1.61] Hiding splash screen
Starting QuickView
[1.96] splash screen hidden
[1.96] Started up in 1.96 seconds with 3417 books


You seem to be having a problem with your database or HD.
Quote:
[506.27] splash screen hidden
[506.28] Started up in 506.28 seconds with 252 books
I recommend you rename your library folder then start calibre--it will start with a new empty library--then change to your old library and run library maintenance on it.

bernie

P.S. I have no problems with DeDRM
gbm is offline   Reply With Quote
Old 12-14-2020, 11:24 AM   #4
baslow
Junior Member
baslow began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Location: Upper Manhattan, New York
Device: Kindle Paperwhite (10th Gen)
Thanks.
There may be problems with my database or HD but the "startup time" seems to be a reflection of how long I wait before I kill the process; the debug window pops up immediately AFTER I kill the process and shows a startup time roughly equal to how quickly I let Calibre run before doing so.
baslow is offline   Reply With Quote
Old 12-14-2020, 11:45 AM   #5
baslow
Junior Member
baslow began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Location: Upper Manhattan, New York
Device: Kindle Paperwhite (10th Gen)
Seems I need to learn more about posting to this forum; timed out trying to update my incomplete previous post.

It is debug mode, not DeDRM, that I meant to be asking about.

The DRM plugin I've been running was loaded from a file downloaded recently, DeDRM_plugin_7.0.0b4.zip. It has mostly worked but I was trying to investigate its failure with a specific book -- AZW3, purchased from Amazon for my Kindle Paperwhite. Apprentice Alf recommends removing the book, running Calibre in debug mode, and then adding the book again to generate a verbose record.

My problem is not with the general operation of Calibre, which runs fine in regular mode so far. I've renamed the library, started over, run a library maintenance check and found nothing.

So, to be clearer than I was before: Is anyone experiencing difficulties running Calibre 5.7.2 in debug mode?
baslow is offline   Reply With Quote
Old 12-15-2020, 03:57 AM   #6
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,024
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by baslow View Post
Thanks.
There may be problems with my database or HD but the "startup time" seems to be a reflection of how long I wait before I kill the process; the debug window pops up immediately AFTER I kill the process and shows a startup time roughly equal to how quickly I let Calibre run before doing so.
It did that for me too, many versions ago. I have no idea what triggers it, as it hasn't been doing it for quite a while now.
mbovenka is offline   Reply With Quote
Old 12-15-2020, 10:47 AM   #7
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,091
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by baslow View Post
Seems I need to learn more about posting to this forum; timed out trying to update my incomplete previous post.

It is debug mode, not DeDRM, that I meant to be asking about.

The DRM plugin I've been running was loaded from a file downloaded recently, DeDRM_plugin_7.0.0b4.zip. It has mostly worked but I was trying to investigate its failure with a specific book -- AZW3, purchased from Amazon for my Kindle Paperwhite. Apprentice Alf recommends removing the book, running Calibre in debug mode, and then adding the book again to generate a verbose record.

My problem is not with the general operation of Calibre, which runs fine in regular mode so far. I've renamed the library, started over, run a library maintenance check and found nothing.

So, to be clearer than I was before: Is anyone experiencing difficulties running Calibre 5.7.2 in debug mode?
Ok I just upgraded to calibre 5.7.2 and ran debug from a cold start no problems.

Spoiler:
Code:
$ calibre-debug -g
calibre 5.7.2  embedded-python: True is64bit: True
Linux-5.4.0-56-generic-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.4.0-56-generic', '#62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020')
Python 3.8.5
Interface language: None
Successfully initialized third party plugins: DeDRM (7, 0, 0) && Baen (1, 2, 0) && Barnes & Noble (1, 2, 16) && Diaps Editing Toolbag (0, 3, 7) && EpubSplit (3, 0, 0) && Goodreads (1, 5, 1) && Hyphenate This! (0, 1, 3) && KindleUnpack - The Plugin (0, 82, 3) && Kobo Books (1, 8, 0) && Modify ePub (1, 6, 1) && Quality Check (1, 10, 1) && Webscription (1, 2, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 85.08374384236453 x 85.18427947598252
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.05] splash screen shown
[0.05] Initializing db...
[0.30] db initialized
[0.30] Constructing main UI...
libpng warning: iCCP: known incorrect sRGB profile
Looking for desktop notifier support from: org.freedesktop.Notifications
org.freedesktop.Notifications found in 0.0 seconds
[1.83] main UI initialized...
[1.83] Hiding splash screen
Starting QuickView
[2.27] splash screen hidden
[2.27] Started up in 2.27 seconds with 3417 books


Recommendations:
Down grade calibre to 5.6.0--using the Reverting to a previous version instructions at https://calibre-ebook.com/download_linux
run calibre in debug see if that fixes the problem.

From past experience possible hd drive going bad, a corrupted font, or a malformed epub.

bernie
gbm is offline   Reply With Quote
Old 12-15-2020, 11:38 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just run calibre in a terminal as


calibre-debug -g


if for some reason you cant restart in debug mode.
kovidgoyal is offline   Reply With Quote
Old 12-17-2020, 04:09 PM   #9
baslow
Junior Member
baslow began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Location: Upper Manhattan, New York
Device: Kindle Paperwhite (10th Gen)
Quote:
Originally Posted by kovidgoyal View Post
Just run calibre in a terminal as


calibre-debug -g


if for some reason you cant restart in debug mode.
Thank you! That worked... so now I can get on to figuring out my ORIGINAL problem! (And, by the way, thank you for Calibre!)
baslow is offline   Reply With Quote
Old 12-17-2020, 05:07 PM   #10
baslow
Junior Member
baslow began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2020
Location: Upper Manhattan, New York
Device: Kindle Paperwhite (10th Gen)
...and, for the sake of closure, I will report that I was able to generate detailed output using Kovid's suggestion, which allowed me to figure out that the problem I was experiencing with DeDRM was due to, um, stupidity on my part.

I hadn't added any DRM'ed books for quite a while and had neglected to add the serial number for my NEW Kindle. So when I downloaded the books recently, specifying my current device, the plugin didn't have the key it needed. Once I saw the messages output in debug mode it only took a couple of minutes to figure out the problem.

Thanks to everyone!
baslow is offline   Reply With Quote
Reply

Tags
debug, hanging


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Calibre on Windows in debug mode hakan42 Development 9 04-10-2024 05:34 PM
Calibre starts only in debug mode? tjod Devices 6 09-11-2020 05:04 PM
How to start Calibre for macOS in debug mode adrianf Calibre 17 06-02-2020 05:29 AM
Does calibre-portable support debug mode? badbob001 Calibre 1 04-19-2019 04:08 PM
Run Calibre in Debug Mode Output to File toomuchreading Calibre 1 03-07-2016 04:58 PM


All times are GMT -4. The time now is 03:15 PM.


MobileRead.com is a privately owned, operated and funded community.