subsync icon indicating copy to clipboard operation
subsync copied to clipboard

[v0.17.0] Crashes on startup on Windows 11 Pro ver: 21H2 - 22000.348

Open vsantolo opened this issue 4 years ago • 6 comments

I get this error on startup:

C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ....\src\common\intl.cpp(1694) 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!

Traceback (most recent call last): File "subsync_main_.py", line 73, in gui File "subsync\gui\mainwin.py", line 56, in init File "subsync\gui\layout\mainwin.py", line 45, in init File "subsync\gui\subpanel.py", line 63, in init File "subsync\gui\subpanel.py", line 15, in init File "subsync\gui\layout\subpanel.py", line 42, in init wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ....\src\common\intl.cpp(1694) 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!

vsantolo avatar Nov 26 '21 12:11 vsantolo

I just installed subsync 0.17 in archlinux(with python 3.10) from aur. I comment here because one of the errors seems the same I had: File "subsync_main_.py", line 73, in gui I had some more info about this though and the problem was that the window size had unexpected type float. I solve it by change it to int. So maybe this help you too and also inform the developer about the issue(at least this one) which seems to be on linux too. EDIT: After I tried to use the app I also get error when tried to load a subtitle or a video and also the problem is the float type. So there are more problems of this type which need to be fixed.

dancer69 avatar Dec 13 '21 14:12 dancer69

Same issue here in Windows 11 for 0.17.0.

0.16.0 works fine.

githupper avatar Jan 02 '22 14:01 githupper

Same here. I hope this is being worked on.

Master-Of-Shadows avatar Feb 12 '22 21:02 Master-Of-Shadows

Same for me.

m33ts4k0z avatar May 15 '22 09:05 m33ts4k0z

Hi everyone, This looks like it still needs to be solved.

After updating to Windows 11, I started having the same issue:

`C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ....\src\common\intl.cpp(1694) 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!

Traceback (most recent call last): File "subsync_main_.py", line 73, in gui File "subsync\gui\mainwin.py", line 56, in init File "subsync\gui\layout\mainwin.py", line 45, in init File "subsync\gui\subpanel.py", line 63, in init File "subsync\gui\subpanel.py", line 15, in init File "subsync\gui\layout\subpanel.py", line 42, in init wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ....\src\common\intl.cpp(1694) 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!`

Did anyone have success fixing it?

This is really a nice software.

Slepetys avatar Jan 12 '23 15:01 Slepetys

FYI, 0.17 portable is hopeless the MSI (extract via powertools or maybe lessmsi works too) has an apparently working subsync-cmd.exe (although I have other problems making it work)

ghostlyghastly avatar Mar 10 '23 19:03 ghostlyghastly