Bug #10246
closedCHIRP-next crashing at start MacOS
100%
Description
Hello,
CHIRP-next is crashing during app start:
processor: Apple Silicon M1 Pro
platform: MacOS Ventura 13.1
Debug log:
[2023-01-09 10:55:09,183] main - INFO: Python/3.8.2 // Darwin/macOS-13.1-x86_64-i386-64bit // CHIRP/next-20230108 // wx/4.2.0 osx-cocoa (phoenix) wxWidgets 3.2.0
[2023-01-09 10:55:09,184] chirp.wxui - DEBUG: Got system locale None
[2023-01-09 10:55:09,184] chirp.wxui - DEBUG: Failed to set up translations: 'NoneType' object has no attribute 'lower'
[2023-01-09 10:55:09,185] chirp.directory - INFO: Registered CHIRP_Fake_Live_Radio = FakeLiveRadio
[2023-01-09 10:55:09,185] chirp.directory - INFO: Registered CHIRP_Fake_Live_Radio_Slow = FakeLiveSlowRadio
[2023-01-09 10:55:09,185] chirp.directory - INFO: Registered CHIRP_Fake_Live_Radio_Errors = FakeLiveRadioWithErrors
[2023-01-09 10:55:09,185] chirp.directory - INFO: Registered CHIRP_Fake_Clone_Radio_Errors = FakeCloneFail
Traceback (most recent call last):
File "chirpwx.py", line 8, in <module>
File "chirp/wxui/__init__.py", line 93, in chirpmain
wx._core.wxAssertionError: C++ assertion ""lang != wxLANGUAGE_UNKNOWN"" failed at /Users/robind/projects/bb2/dist-osx-py38/build/ext/wxWidgets/src/common/intl.cpp(425) in Init(): Initializing unknown locale doesn't make sense, did you mean to use wxLANGUAGE_DEFAULT perhaps?
Files
Updated by Dan Smith almost 2 years ago
Thanks, what locale is your system running? (language, country, etc)
Updated by Bartlomiej Baldyga almost 2 years ago
Dan Smith wrote in #note-1:
Thanks, what locale is your system running? (language, country, etc)
This is the output of my "locale" command:
% locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
Updated by Dan Smith almost 2 years ago
And you're running the published .app build? That's ... bizarre.
Updated by Bartlomiej Baldyga almost 2 years ago
and my system preferences screenshot:
Updated by Dan Smith almost 2 years ago
Ah, okay, your LANG= is unset, mine is LANG="en_US.UTF-8", must be because of your polish language default.
I will at least make it not crash in that case, but I need to figure out why LANG isn't getting set.
Updated by Bartlomiej Baldyga almost 2 years ago
Bartlomiej Baldyga wrote in #note-5:
and my system preferences screenshot:
Yes, i've just downloaded .app from the following url: https://trac.chirp.danplanet.com/chirp_next/next-20230109/chirp-next-20230109.app.zip
Updated by Dan Smith almost 2 years ago
- Target version set to chirp-py3
I'll queue something for tomorrow that will hopefully address the crash at least. Not sure why wx.Locale can't figure out your system locale, but that's a different thing.
Updated by Dan Smith almost 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset github|670364724d6acbda7544d0859a814cc2776799d6.
Updated by Bartlomiej Baldyga almost 2 years ago
Dan Smith wrote in #note-9:
Applied in changeset github|670364724d6acbda7544d0859a814cc2776799d6.
Hi Dan,
I can confirm that fix works for me.
Thank you