10-18-2020, 03:57 PM | #61 |
Addict
Posts: 234
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
@betterred
The keystrokes are seen by Calibre and actioned. It is the result that differs. In normal mode, Calibre doesn't close down fast enough for the restart to work as the restart process sees the original process and exits. |
10-18-2020, 04:08 PM | #62 |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
But why would calibre behave differently in Safe and Normal modes - would it even know. More likely that something which runs in Normal mode but not in Safe mode is 'interfering' in Normal mode.
Eyeballing the two process list (Safe and Normal) might provide a clue, or do a diff if you don't trust your eyes BR |
10-19-2020, 08:13 AM | #63 |
Guru
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
...and now I have to eat my words.
Running calibre 5.3 (linux), just updated a plugin and installed a second plugin, then hit the restart button. Calibre closed its window, waited a few seconds, and popped up the "another calibre is running" dialog. I waited a few more seconds and manually re-ran it and all is good. So restart is still giving me problems, even when it's highly unlikely to be thrashing. Irritating, but not a big deal. |
10-19-2020, 08:28 AM | #64 |
Addict
Posts: 234
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
|
10-19-2020, 11:49 AM | #65 | |
Bibliophagist
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
10-19-2020, 01:12 PM | #66 | |
Guru
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
Quote:
I just ran restart from the favorites menu (without adjusting any plugins) and it worked fine. I'd bet that if I removed a plugin, it would then fail. Or maybe not. Or maybe it fails right after it does a news download or count pages and there's a lingering inactive background thread. If I watch the calibre processes, I can see the main thread exit and then the worker threads exit, and calibre won't restart until the last worker thread is gone. I'm pretty sure this is related to idle background threads that take a while to wake up and exit, and it only occurs when there *is* a worker thread, and system load characteristics make it exit late. Maybe the problem isn't there in safe mode not because of safe mode, but because calibre was freshly started and didn't get a chance to start any worker threads. Or maybe the worker threads were sill in memory instead of VM and took no time to exit. I think the only way to fix this bug is to figure out what the blocker is, and just loop on waiting for it to shutdown, maybe with a nice UI countdown timer, and THEN restart. The end result would be the same time with less user interaction. And for some, less frustration. I bet people with SSD disks never see this, but I was wrong about the memory upgrade fixing it. |
|
10-19-2020, 01:53 PM | #67 |
Custom User Title
Posts: 8,645
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Another thing that might be in factor is that Windows 10, at least, uses memory compression by default. It's definitely more efficient than paging it out but I wonder if it may cause issues if Calibre gets compressed.
In the case of memory compression, its the CPU that's the bottleneck rather than the HDD. Last edited by ownedbycats; 10-19-2020 at 01:56 PM. |
10-20-2020, 05:36 AM | #68 |
Addict
Posts: 234
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
|
10-20-2020, 07:17 AM | #69 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@georgemk: See if this helps: https://github.com/kovidgoyal/calibr...d7f91aa13cb001
Now calibre will start even if the listener could not be established, you will just get an error message that you can close/ignore. |
10-20-2020, 07:30 AM | #70 |
Guru
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
|
10-20-2020, 08:34 AM | #71 | |
Addict
Posts: 234
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
|
Quote:
Thank you so much. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CTRL & SHIFT Not Working When Selecting Multiple Books | Apache | Calibre | 5 | 08-06-2017 07:33 PM |
Book view ctrl+v | rbruce1314 | Sigil | 25 | 05-15-2015 07:12 AM |
Ctrl-7 for <p> tags | phossler | Editor | 3 | 02-25-2014 05:40 PM |
Calibre 0.7.22 Ctrl D not working as well as 0.7.21 | logs | Calibre | 2 | 10-08-2010 01:33 PM |
iLiad No 'Ctrl' on iLiad?! | ericshliao | iRex Developer's Corner | 7 | 11-06-2008 06:12 PM |