Leseratte10 / acsm-calibre-plugin

Calibre plugin for ACSM->EPUB and ACSM->PDF conversion.
https://www.mobileread.com/forums/showthread.php?t=341975
GNU General Public License v3.0
652 stars 23 forks source link

Calibre crash upon linking ADE account #62

Closed syamaka closed 1 month ago

syamaka commented 1 year ago

Bug description

When trying to link ADE account (with any method), Calibre crashes and I get "wait/force quit" message. Tried almost all previous versions of ACSM plugin, and got the same issue. I'm running Calibre v. 6.23 on Ubuntu 22.04.2 LTS.

Operating system

Linux

Which version of Calibre are you running?

6.23

Which version of the ACSM Input plugin are you running?

v0.0.16

Import type

No response

Further information

No response

Leseratte10 commented 1 year ago

Interesting, I've never heard of that happening.

Can you try running Calibre in debug mode (open a terminal and run calibre-debug -g) and post the log that appears when it crashes?

syamaka commented 1 year ago

This is all I get after running Calibre in debug mode (using Calibre UI; there's no log file created when I run it through command line as you suggested):

Using calibre Qt style: True calibre Debug log calibre 6.23 embedded-python: True Linux-5.19.0-41-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF') ('Linux', '5.19.0-41-generic', '#42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2') Python 3.10.1 Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) calibre 6.23 embedded-python: True Linux-5.19.0-41-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF') ('Linux', '5.19.0-41-generic', '#42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2') Python 3.10.1 Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) QPA platform: wayland devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 102.04823529411765 x 102.66947368421053 [0.00] Starting up... [0.01] Showing splash screen... [0.15] splash screen shown [0.15] Initializing db... [0.20] db initialized [0.20] Constructing main UI... [1.23] main UI initialized... [1.23] Hiding splash screen Starting QuickView

Leseratte10 commented 1 year ago

So if you're saying that this is from Calibre's own "run in debug mode" thing, then this is probably a log just from Calibre starting, not from you trying to link your ADE account, right? Because when linking an account it'd crash and could no longer display the log?

When you run calibre-debug -g on the command line you should get the same stuff you posted here printed on the command line. And hopefully some more logs from my plugin during authorization. You can then just copy-paste it from the terminal.

syamaka commented 1 year ago

So if you're saying that this is from Calibre's own "run in debug mode" thing, then this is probably a log just from Calibre starting, not from you trying to link your ADE account, right? Because when linking an account it'd crash and could no longer display the log?

That's all I got in the log file saved in tmp folder. And I guess yes, when linking an account it'd crash and there's no data after that point in the log file.

When you run calibre-debug -g on the command line you should get the same stuff you posted here printed on the command line. And hopefully some more logs from my plugin during authorization. You can then just copy-paste it from the terminal.

Same here; no more data:

calibre 6.24 embedded-python: True Linux-5.19.0-41-generic-x86_64-with-glibc2.35 Linux ('64bit', 'ELF') ('Linux', '5.19.0-41-generic', '#42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2') Python 3.10.1 Interface language: None Successfully initialized third party plugins: DeACSM (0, 0, 16) && DeDRM (10, 0, 9) QPA platform: wayland devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 102.04823529411765 x 102.66947368421053 Using calibre Qt style: True [0.00] Starting up... [0.01] Showing splash screen... [0.52] splash screen shown [0.52] Initializing db... [0.68] db initialized [0.68] Constructing main UI... [2.72] main UI initialized... [2.72] Hiding splash screen Starting QuickView [3.14] splash screen hidden [3.20] Started up in 3.20 seconds with 2 books Killed p.s: Upgraded Calibre to latest version; still facing the issue.

Leseratte10 commented 1 year ago

Hm. "Killed" ...

There must be some reason why Calibre gets killed. When you run dmesg -wT as root in a terminal while Calibre crashes, does that display something that looks interesting? If not, can you run calibre through strace (strace calibre) and post the last 20-ish lines of that output when it crashes?

Is this a new or new-ish installation of Calibre (and thus could be a generic Calibre issue) or have you been using Calibre successfully in the past without my plugin?

Where exactly does it crash? You can successfully see the settings window where it says "Not authorized for any ADE ID", and as soon as you click "Create anonymous authorization" it crashes and you don't see the warning dialog ("You are about to create ...")?

I'll set up a test VM with Ubuntu 22.04.2 just to make sure and see if I can reproduce the crash, but if this was a general issue with Ubuntu then more people would probably have reported that by now ...

EDIT: I've set up a new VM with Ubuntu 22.04.2, Calibre 6.24 and DeACSM 0.0.16 and I can't reproduce the crash.

Leseratte10 commented 1 month ago

No more response, assuming that the issue is no longer relevant. If it is, please re-open and answer the questions above.