Project

General

Profile

Actions

Bug #10246

closed

CHIRP-next crashing at start MacOS

Added by Bartlomiej Baldyga over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
01/09/2023
Due date:
% Done:

100%

Estimated time:
Chirp Version:
next (py3)
Model affected:
app
Platform:
MacOS
Debug Log:
I read the instructions above:

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

Screenshot 2023-01-09 at 16.07.38.png (167 KB) Screenshot 2023-01-09 at 16.07.38.png Bartlomiej Baldyga, 01/09/2023 03:08 PM
Actions #1

Updated by Dan Smith over 1 year ago

Thanks, what locale is your system running? (language, country, etc)

Actions #2

Updated by Dan Smith over 1 year ago

  • Assignee set to Dan Smith
Actions #3

Updated by Bartlomiej Baldyga over 1 year 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=
Actions #4

Updated by Dan Smith over 1 year ago

And you're running the published .app build? That's ... bizarre.

Actions #5

Updated by Bartlomiej Baldyga over 1 year ago

and my system preferences screenshot:

Actions #6

Updated by Dan Smith over 1 year 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.

Actions #7

Updated by Bartlomiej Baldyga over 1 year 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

Actions #8

Updated by Dan Smith over 1 year 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.

Actions #9

Updated by Dan Smith over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #10

Updated by Bartlomiej Baldyga over 1 year ago

Dan Smith wrote in #note-9:

Applied in changeset github|670364724d6acbda7544d0859a814cc2776799d6.

Hi Dan,

I can confirm that fix works for me.

Thank you

Actions

Also available in: Atom PDF