hhannine / superpaper

A cross-platform multi monitor wallpaper manager.
MIT License
1.14k stars 46 forks source link

Crash on start in Windows 10 #37

Closed OskarPersson closed 4 years ago

OskarPersson commented 4 years ago

The application fails to start on Windows 10 (Pro Version 1909, build 18363.778). No window ever appears and I get no error message. I've tried both the portable and installer version.

hhannine commented 4 years ago

Try to run the portable version with the debug flag -d from the command prompt?

If that doesn't work try to change the general_settings file to have logging=true and see if the log file is made?

OskarPersson commented 4 years ago

Here is the contents of the log file:

Enabled logging to file.
use_hotkeys: True
hk_binding_next: ('control', 'super', 'w')
hk_binding_pause: ('control', 'super', 'shift', 'p')
Uncaught exception type: <class 'wx._core.wxAssertionError'>
NoneType: None
Exception: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ..\..\src\common\intl.cpp(1699) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
NoneType: None
<traceback object at 0x00000213FD8D2940>
NoneType: None
hhannine commented 4 years ago

Thank you. Unfortunately the issue seems to somewhat non-trivial and I've not run into it before.

What locale are you using your Windows in? Is system default language something else than english?

OskarPersson commented 4 years ago

The Windows Display Language is set to English (United States).

The "Preferred languages" are in the following order:

  1. English (United States) Default app language Windows display language

  2. English (Sweden)

  3. Svenska (Sverige) (which means "Swedish (Sweden)") Default input language

hhannine commented 4 years ago

Well that's strange; my languages are very similar if not exactly the same with the replacement of Swedish -> Finnish.

I'll have to research this issue.

hhannine commented 4 years ago

I repackaged the windows files, would you test them if they work for you? The new files have "hotfix" in the name.

OskarPersson commented 4 years ago

Works great, thanks!

hhannine commented 4 years ago

Superb, thank you. I'll close this and replace the original packages.