![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,502
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Strange Startup behavior
Since upgrading to 2.25 from 2.22 (Windows Vista 32-bit), I've been experiencing issues where calibre quite often gets hung up at the Splash Screen on "Initializing user interface". Killing the process and trying again usually makes it go OK. When launching from the desktop shortcut, this seems to happen a little less than 50% of the time. Now for some odd details:
Now, I personally have no problem with leaving the splash-screen disabled and going about my business, but I admit this seemingly debug-proof (at least with my limited debug knowledge/tools) issue has piqued my curiosity. Anybody know of anything else I can try to see where things might be going wrong? Last edited by DiapDealer; 04-18-2015 at 10:24 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When the usual debug tools fail, the best approach is to run from source and stick in a few print statements. Since your problem seems to be splash screen related, look in gui2/main.py around line 180. And gui2/ui.py around line 338
Add in some print statements to see where it is getting stuck. You will need to redirect the prints to a log file, since on windowd gui programs have no working stdout, like this print ('whatever', file=open('/path/to/log/file.txt', 'ab')) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh and in case you did not know already, here is how to run calibre from source on windows: http://manual.calibre-ebook.com/deve...nt-environment
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This commit will probably fix the issue, though I cant be sure since I cannot replicate it: https://github.com/kovidgoyal/calibr...bf683591a56876
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,502
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Oh, hey. Thanks!
I may see if I can pull the source before that commit and do some before and after testing. Or I may just wait until the next release to see if the problem goes away. ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You willing to wait a whole week?
![]() |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,502
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
For what it's worth, I'm still trying to get it to hang when running from 2.25 source and just can't get it to happen (of course).
![]() Delete the CALIBRE_DEVELOP_FROM env variable and it usually hangs within two or three tries. Last edited by DiapDealer; 04-21-2015 at 08:15 AM. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,502
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Following up after installing v2.26.
Have not had the newest version hang yet. Had a marathon open close session right off the bat and gave up after about 30 times. I'd say the changes to address this issue have worked. Thanks! ![]() |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Glad to hear it
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange behavior w/ SS hack | twowheels | Kindle Developer's Corner | 5 | 06-21-2012 01:14 PM |
Odd startup behavior from a new K3 | bfollowell | Amazon Kindle | 18 | 12-28-2010 05:24 PM |
strange behavior | zeroh | Nook Color & Nook Tablet | 3 | 12-09-2010 11:14 AM |
strange behavior | valb2953 | Calibre | 1 | 11-22-2010 01:12 PM |
Strange behavior under the sunlight | italianReader | Onyx Boox | 7 | 08-04-2010 03:44 AM |