Quote:
Originally Posted by DNSB
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.