twiddli / happypanda

A cross platform manga/doujinshi manager with namespace & tag support
http://pewpew.moe/project/happypanda
Other
168 stars 32 forks source link

A critical error has been encountered. #186

Closed decentblack closed 7 years ago

decentblack commented 7 years ago

When I try to start Happypanda, I get an error message that says "A critical error has ben encountered. Stability from this point onward cannot be guaranteed." and the program just doesn't start. Any idea how I could troubleshoot or fix this?

twiddli commented 7 years ago

start by checking your logs

decentblack commented 7 years ago

Here's what I get:

15-07 15:32 INFO main DB Version: 0.26 15-07 15:32 CRITICAL app File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 664, in _load_unlocked File "", line 634, in _load_backward_compatible File "C:\Python\35\lib\site-packages\cx_Freeze\initscripts__startup__.py", line 12, in File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 664, in _load_unlocked File "", line 634, in _load_backward_compatible File "C:\Python\35\lib\site-packages\cx_Freeze\initscripts\Console.py", line 24, in File "version\main.py", line 258, in File "version\main.py", line 251, in start File "version\main.py", line 187, in start_main_window File "D:\Code\Github\Happypanda\version\app.py", line 90, in init File "D:\Code\Github\Happypanda\version\app.py", line 229, in initUI File "D:\Code\Github\Happypanda\version\app.py", line 636, in init_toolbar File "D:\Code\Github\Happypanda\version\misc.py", line 264, in set_toolbutton_text

15-07 15:32 CRITICAL app <class 'AttributeError'>: 'NoneType' object has no attribute 'text'

twiddli commented 7 years ago

Did you truncate the content? Please include everything. If it's too much, post it on pastebin. Also try removing your setting.ini file.

decentblack commented 7 years ago

I cut off the top part, here's the whole thing

15-07 15:32 INFO main Starting Happypanda... 15-07 15:32 INFO main Happypanda Version 1.1 15-07 15:32 INFO main OS: Windows 8.1

15-07 15:32 INFO main DB Version: 0.26 15-07 15:32 CRITICAL app File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 664, in _load_unlocked File "", line 634, in _load_backward_compatible File "C:\Python\35\lib\site-packages\cx_Freeze\initscripts__startup__.py", line 12, in File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 664, in _load_unlocked File "", line 634, in _load_backward_compatible File "C:\Python\35\lib\site-packages\cx_Freeze\initscripts\Console.py", line 24, in File "version\main.py", line 258, in File "version\main.py", line 251, in start File "version\main.py", line 187, in start_main_window File "D:\Code\Github\Happypanda\version\app.py", line 90, in init File "D:\Code\Github\Happypanda\version\app.py", line 229, in initUI File "D:\Code\Github\Happypanda\version\app.py", line 636, in init_toolbar File "D:\Code\Github\Happypanda\version\misc.py", line 264, in set_toolbutton_text

15-07 15:32 CRITICAL app <class 'AttributeError'>: 'NoneType' object has no attribute 'text'

twiddli commented 7 years ago

Hi, I cannot reproduce this error. Did you download HP from here?

decentblack commented 7 years ago

Yeah. The way I have my library set up is that I have an individual folder for each artist, so I had to add each folder (around 80 folders) within the HP program. Could having too many folders cause any issues?

twiddli commented 7 years ago

No, the error is occurring when building the UI, which is very weird.

Could you try downloading HP in a completely empty folder and see if the issue persists?

decentblack commented 7 years ago

The program runs if I make a new installation, but it doesn't have my old settings so I will have to re-add my directories and re-tag everything.

twiddli commented 7 years ago

No, just copy over the settings.inifile and db folder. Do it one at a time and start up HP inbetween to see if any of them are causing the issue.

decentblack commented 7 years ago

Moving the settings.ini file causes the crash, while moving the db folder doesn't. Moving the db folder runs fine with my previous library, so I tried pasting the "monitor paths = " section from my old settings into the new one, and it looks like that has fixed it (program runs, old monitor paths and library have been imported successfully). Thanks for the fast responses!

twiddli commented 7 years ago

glad you got it working

goyter commented 7 years ago

Hi, just thought I'd say that I also got this error, but changing "current sort = artist" to "current sort = title" in settings.ini fixed it.