Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2020, 03:57 PM   #61
georgemk
Connoisseur
georgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tongue
 
Posts: 73
Karma: 22580
Join Date: Oct 2019
Device: nook Simple Touch with Glowlight
@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.
georgemk is offline   Reply With Quote
Old 10-18-2020, 04:08 PM   #62
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 16,567
Karma: 19427098
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
BetterRed is offline   Reply With Quote
Advert
Old 10-19-2020, 08:13 AM   #63
compurandom
Fanatic
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 527
Karma: 294266
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.
compurandom is offline   Reply With Quote
Old 10-19-2020, 08:28 AM   #64
georgemk
Connoisseur
georgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tongue
 
Posts: 73
Karma: 22580
Join Date: Oct 2019
Device: nook Simple Touch with Glowlight
Quote:
Originally Posted by compurandom View Post
...and now I have to eat my words.
Well interesting. So it is happening on Linux too.

I've given up as I've spent probably 24 hours doing various tests and code reading over the last week.

I know how to work around it. So I'll live with the work round.
georgemk is offline   Reply With Quote
Old 10-19-2020, 11:49 AM   #65
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 8,585
Karma: 39207265
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by compurandom View Post
...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.
If you remove the updated plugin and the new plugin, does the problem go away? If so, can you share the names of those two plugins?
DNSB is offline   Reply With Quote
Advert
Old 10-19-2020, 01:12 PM   #66
compurandom
Fanatic
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 527
Karma: 294266
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by DNSB View Post
If you remove the updated plugin and the new plugin, does the problem go away? If so, can you share the names of those two plugins?
This is NOT a new problem, and highly unlikely that it is related to any specific plugin being installed. I just didn't expect it with my recent memory upgrade -- it was only a few seconds, where it use to be 10 seconds, so maybe the memory upgrade helped. It doesn't happen every time. I've seen this through all of version 4 and probably before that.

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.
compurandom is offline   Reply With Quote
Old 10-19-2020, 01:53 PM   #67
ownedbycats
Guru
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
Posts: 804
Karma: 277662
Join Date: Oct 2018
Device: Kobo 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.
ownedbycats is offline   Reply With Quote
Old Yesterday, 05:36 AM   #68
georgemk
Connoisseur
georgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tongue
 
Posts: 73
Karma: 22580
Join Date: Oct 2019
Device: nook Simple Touch with Glowlight
Quote:
Originally Posted by compurandom View Post
I bet people with SSD disks never see this, but I was wrong about the memory upgrade fixing it.
Guess who only has SDD drives in his machine
georgemk is offline   Reply With Quote
Old Yesterday, 07:17 AM   #69
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: 37,912
Karma: 16793211
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.
kovidgoyal is online now   Reply With Quote
Old Yesterday, 07:30 AM   #70
compurandom
Fanatic
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 527
Karma: 294266
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by ownedbycats View Post
Another thing that might be in factor is that
In the case of memory compression, its the CPU that's the bottleneck rather than the HDD.
Good point. And I do have memory compression enabled.
Perhaps an easy experiment is on order.
compurandom is offline   Reply With Quote
Old Yesterday, 08:34 AM   #71
georgemk
Connoisseur
georgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tonguegeorgemk can tie a knot in a cherry stem with his or her tongue
 
Posts: 73
Karma: 22580
Join Date: Oct 2019
Device: nook Simple Touch with Glowlight
Quote:
Originally Posted by kovidgoyal View Post
@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.
You are a genius sir. Yes it works for Ctrl R and Ctrl Shift R. And for completeness when I updated a plugin, the button request restart work as well. Ditto the Preference menu debug menu option.

Thank you so much.
georgemk is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 12:43 AM.


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