ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
342 stars 36 forks source link

MY GUI is covered all black #475

Closed Wathfea closed 1 year ago

Wathfea commented 1 year ago

Hello everyone,

I used pyapp 0.28 with Python 3.9.6 on MacOs Ventura 13.1

When I build my app the whole GUI is covered in black, but it seems behind the black layer the application is working. When I move the cursor I see it is changes on the ment to bee places of buttons and inputs.

Here is my setup.py

from setuptools import setup

APP = ['affy.py']
DATA_FILES = ['resources']
OPTIONS = {
    'argv_emulation': True,
    'iconfile': 'logo-affy.icns',
    'plist': {
        'CFBundleName': 'Affy',
        'CFBundleShortVersionString': '1.0.0',
        'CFBundleVersion': '1.0.0',
        'CFBundleIdentifier': 'com.tribaldigital.affy',
    },
    'includes': [
        "tkinter",
        "PIL",
        "instagrapi",
        "requests",
        "randomuser",
        "licensespring",
        "urllib3",
        "playsound",
        "certifi",
        "future",
        "sqlite3"
    ]
}

setup(
    name='Affy',
    author='David Perlusz',
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

If I downgrade py2app to version 0.25 everything is working fine. (only with 0.25, 0.26-27-28 are not working) Something changed in the newer versions and I should do something differently? Thanks for any help!

ronaldoussoren commented 1 year ago

How did you install Python? Did you use the installer on python.org, homebrew or something else?

There have been problems with black windows when using Tkinter before, but I hoped I had fixed all of those issues.

Wathfea commented 1 year ago

Hello @ronaldoussoren thanks for the fast reply!

I installed python via homebrew, and I'm working in a venv.

SCR-20221220-ttb

I saw the previous issue about this, that gave me the idea to downgrade and I just wanted to let you know the problem is still there.

ronaldoussoren commented 1 year ago

What's the version of Tk that's used, you can get this from the end of the output of python3.9 -m test.pythoninfo

Something like this:

tkinter.TCL_VERSION: 8.6
tkinter.TK_VERSION: 8.6
tkinter.info_patchlevel: 8.6.12

If that reports a version earlier than 8.6.11 could you check if modifying the tkinter recipe helps? In particular:

Wathfea commented 1 year ago

This is the output of the info:

tkinter.TCL_VERSION: 8.6 tkinter.TK_VERSION: 8.6 tkinter.info_patchlevel: 8.6.8

I followed the instructions and unfortunately still black. Both ways. Even if I build with Alias mode or normal mode.

ronaldoussoren commented 1 year ago

Yikes, that's a very old version of Tk. Are there updates available for Tcl/Tk (in homebrew)? There have been numerous bug fix between 8.6.8 and 8.6.12. I have no idea how many of these are related to this issue though, given that you get normal windows without using py2app.

Wathfea commented 1 year ago

Tomorrow I will try to update, but now it's late here where I am. I will let you know.

Wathfea commented 1 year ago

Hi @ronaldoussoren

So now I updated everything and the black screen error is gone. Now I encountered a new one.

After the building when I try to open the application it's crashing instantly. But if I go to Contents->MacOs and start with the executable it starts up correctly.

Here is the crash report if it is helps:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               AffyBot [95676]
Path:                  /Users/USER/*/AffyBot.app/Contents/MacOS/AffyBot
Identifier:            com.tribaldigital.affybot
Version:               1.0.0 (1.0.0)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-12-21 13:56:09.0172 +0700
OS Version:            macOS 13.1 (22C65)
Report Version:        12
Bridge OS Version:     7.1 (20P2059)
Anonymous UUID:        C05D9718-865F-7A75-018C-BC18ED7E536D

Sleep/Wake UUID:       B1BE628F-881C-4305-BC92-E4232D68D444

Time Awake Since Boot: 74000 seconds
Time Since Wake:       2389 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff810e4540b __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff810991e25 objc_exception_throw + 48
2   Foundation                          0x00007ff811ce8fb0 -[NSCalendarDate initWithCoder:] + 0
3   AppKit                              0x00007ff813f0a890 -[NSMenuItem initWithTitle:action:keyEquivalent:] + 363
4   libtk8.6.dylib                      0x000000010d1ecfec +[NSMenuItem(TKUtils) itemWithSubmenu:] + 71
5   libtk8.6.dylib                      0x000000010d1e9431 -[TKApplication(TKMenu) tkSetMainMenu:] + 257
6   libtk8.6.dylib                      0x000000010d1ea82a TkpSetMainMenubar + 166
7   libtk8.6.dylib                      0x000000010d168e26 TkSetWindowMenuBar + 777
8   libtk8.6.dylib                      0x000000010d1620e2 ConfigureFrame + 262
9   libtk8.6.dylib                      0x000000010d161d00 FrameWidgetObjCmd + 545
10  libtcl8.6.dylib                     0x000000010d406c71 TclNRRunCallbacks + 79
11  libtcl8.6.dylib                     0x000000010d407dc4 TclEvalEx + 1856
12  libtcl8.6.dylib                     0x000000010d40767e Tcl_EvalEx + 26
13  libtk8.6.dylib                      0x000000010d13be42 Tk_CreateConsoleWindow + 810
14  libtk8.6.dylib                      0x000000010d1e6684 TkpInit + 620
15  libtk8.6.dylib                      0x000000010d15a387 Initialize + 2402
16  _tkinter.cpython-311-darwin.so      0x000000010c91474b Tcl_AppInit + 91
17  _tkinter.cpython-311-darwin.so      0x000000010c914439 Tkapp_New + 585
18  _tkinter.cpython-311-darwin.so      0x000000010c9141de _tkinter_create_impl + 222
19  _tkinter.cpython-311-darwin.so      0x000000010c913e04 _tkinter_create + 164
20  Python                              0x000000010cb141d3 cfunction_vectorcall_FASTCALL + 83
21  Python                              0x000000010cbdc4cf _PyEval_EvalFrameDefault + 60223
22  Python                              0x000000010cbe2690 _PyEval_Vector + 128
23  Python                              0x000000010caaeb00 _PyObject_FastCallDictTstate + 96
24  Python                              0x000000010cb3cbf5 slot_tp_init + 181
25  Python                              0x000000010cb32d9a type_call + 122
26  Python                              0x000000010caae841 _PyObject_MakeTpCall + 129
27  Python                              0x000000010cbdc5c7 _PyEval_EvalFrameDefault + 60471
28  Python                              0x000000010cbcc64a PyEval_EvalCode + 282
29  Python                              0x000000010cbc6f03 builtin_exec + 483
30  Python                              0x000000010cb14304 cfunction_vectorcall_FASTCALL_KEYWORDS + 68
31  Python                              0x000000010cbdc4cf _PyEval_EvalFrameDefault + 60223
32  Python                              0x000000010cbcc64a PyEval_EvalCode + 282
33  Python                              0x000000010cc52818 pyrun_file + 248
34  Python                              0x000000010cc520b4 _PyRun_SimpleFileObject + 292
35  Python                              0x000000010cc563c0 PyRun_SimpleFileExFlags + 112
36  AffyBot                             0x0000000109e6fec5 py2app_main + 5481
37  AffyBot                             0x0000000109e6e357 main + 257
38  dyld                                0x00007ff8109be310 start + 2432

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff810cb922a __pthread_kill + 10
1   libsystem_pthread.dylib             0x7ff810cf0f7b pthread_kill + 263
2   libsystem_c.dylib                   0x7ff810c3aca5 abort + 123
3   libc++abi.dylib                     0x7ff810cab082 abort_message + 241
4   libc++abi.dylib                     0x7ff810c9c23d demangling_terminate_handler() + 266
5   libobjc.A.dylib                     0x7ff810999023 _objc_terminate() + 96
6   libc++abi.dylib                     0x7ff810caa4a5 std::__terminate(void (*)()) + 8
7   libc++abi.dylib                     0x7ff810cacd05 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8   libc++abi.dylib                     0x7ff810cacccc __cxa_throw + 116
9   libobjc.A.dylib                     0x7ff810991f23 objc_exception_throw + 302
10  Foundation                          0x7ff811ce8fb0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 267
11  AppKit                              0x7ff813f0a890 -[NSMenuItem initWithTitle:action:keyEquivalent:] + 363
12  libtk8.6.dylib                         0x10d1ecfec 0x10d124000 + 823276
13  libtk8.6.dylib                         0x10d1e9431 0x10d124000 + 807985
14  libtk8.6.dylib                         0x10d1ea82a TkpSetMainMenubar + 166
15  libtk8.6.dylib                         0x10d168e26 TkSetWindowMenuBar + 777
16  libtk8.6.dylib                         0x10d1620e2 0x10d124000 + 254178
17  libtk8.6.dylib                         0x10d161d00 0x10d124000 + 253184
18  libtcl8.6.dylib                        0x10d406c71 TclNRRunCallbacks + 79
19  libtcl8.6.dylib                        0x10d407dc4 0x10d3f4000 + 81348
20  libtcl8.6.dylib                        0x10d40767e Tcl_EvalEx + 26
21  libtk8.6.dylib                         0x10d13be42 Tk_CreateConsoleWindow + 810
22  libtk8.6.dylib                         0x10d1e6684 TkpInit + 620
23  libtk8.6.dylib                         0x10d15a387 0x10d124000 + 222087
24  _tkinter.cpython-311-darwin.so         0x10c91474b 0x10c90e000 + 26443
25  _tkinter.cpython-311-darwin.so         0x10c914439 0x10c90e000 + 25657
26  _tkinter.cpython-311-darwin.so         0x10c9141de 0x10c90e000 + 25054
27  _tkinter.cpython-311-darwin.so         0x10c913e04 0x10c90e000 + 24068
28  Python                                 0x10cb141d3 0x10ca0c000 + 1081811
29  Python                                 0x10cbdc4cf _PyEval_EvalFrameDefault + 60223
30  Python                                 0x10cbe2690 0x10ca0c000 + 1926800
31  Python                                 0x10caaeb00 _PyObject_FastCallDictTstate + 96
32  Python                                 0x10cb3cbf5 0x10ca0c000 + 1248245
33  Python                                 0x10cb32d9a 0x10ca0c000 + 1207706
34  Python                                 0x10caae841 _PyObject_MakeTpCall + 129
35  Python                                 0x10cbdc5c7 _PyEval_EvalFrameDefault + 60471
36  Python                                 0x10cbcc64a PyEval_EvalCode + 282
37  Python                                 0x10cbc6f03 0x10ca0c000 + 1814275
38  Python                                 0x10cb14304 0x10ca0c000 + 1082116
39  Python                                 0x10cbdc4cf _PyEval_EvalFrameDefault + 60223
40  Python                                 0x10cbcc64a PyEval_EvalCode + 282
41  Python                                 0x10cc52818 0x10ca0c000 + 2385944
42  Python                                 0x10cc520b4 _PyRun_SimpleFileObject + 292
43  Python                                 0x10cc563c0 PyRun_SimpleFileExFlags + 112
44  AffyBot                                0x109e6fec5 0x109e6b000 + 20165
45  AffyBot                                0x109e6e357 main + 257
46  dyld                                0x7ff8109be310 start + 2432

Thread 1:
0   libsystem_pthread.dylib             0x7ff810cecc58 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib             0x7ff810cecc58 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib             0x7ff810cecc58 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib             0x7ff810cecc58 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib             0x7ff810cecc58 start_wqthread + 0

Thread 6:
0   libsystem_kernel.dylib              0x7ff810cbb2da __select + 10
1   libtcl8.6.dylib                        0x10d4f78b8 0x10d3f4000 + 1063096
2   libsystem_pthread.dylib             0x7ff810cf1259 _pthread_start + 125
3   libsystem_pthread.dylib             0x7ff810cecc7b thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007ff8546218c0  rcx: 0x00007ff7b608f5b8  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7b608f5e0  rsp: 0x00007ff7b608f5b8
   r8: 0x00007ff7b608f480   r9: 0x00007ff810cadf9b  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x0000003000000008  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff810cb922a  rfl: 0x0000000000000246  cr2: 0x00007ff852a435b8

Logical CPU:     0
Error Code:      0x02000148 
Trap Number:     133

Binary Images:
    0x7ff810cb1000 -     0x7ff810ceaff7 libsystem_kernel.dylib (*) <7c3dcc95-9f42-3c7c-8796-476ff67b9cf7> /usr/lib/system/libsystem_kernel.dylib
    0x7ff810ceb000 -     0x7ff810cf6ff7 libsystem_pthread.dylib (*) <5920e36f-53ec-33f0-b675-8ae48b58418c> /usr/lib/system/libsystem_pthread.dylib
    0x7ff810bb9000 -     0x7ff810c41fff libsystem_c.dylib (*) <376f7cb7-6dd2-3e00-976f-77dd755bdb0d> /usr/lib/system/libsystem_c.dylib
    0x7ff810c9b000 -     0x7ff810cb0ff7 libc++abi.dylib (*) <1fa4a590-f60c-3813-a408-a407fbcd0e89> /usr/lib/libc++abi.dylib
    0x7ff81097c000 -     0x7ff8109b7fd8 libobjc.A.dylib (*) <38d89f3c-dc4c-3b0a-a09c-461739132150> /usr/lib/libobjc.A.dylib
    0x7ff811bc6000 -     0x7ff8125d7ff6 com.apple.Foundation (6.9) <ab5f8db8-b03b-33b6-98f7-ffaec27a8eab> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7ff813ed9000 -     0x7ff814ee0fff com.apple.AppKit (6.9) <00f4aa78-a19f-3a8e-9650-9f90b7beefd6> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x10d124000 -        0x10d22bfff libtk8.6.dylib (*) <31da200f-d034-3bee-9673-53da7054631b> /Library/Frameworks/Python.framework/Versions/3.11/lib/libtk8.6.dylib
       0x10d3f4000 -        0x10d517fff libtcl8.6.dylib (*) <0cf0f829-43bc-3847-86e5-aa783391c315> /Library/Frameworks/Python.framework/Versions/3.11/lib/libtcl8.6.dylib
       0x10c90e000 -        0x10c915fff _tkinter.cpython-311-darwin.so (*) <14af5280-89d1-3510-a29a-f7b78df9741a> /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload/_tkinter.cpython-311-darwin.so
       0x10ca0c000 -        0x10cdebfff org.python.python (3.11.1, (c) 2001-2021 Python Software Foundation.) <41aefab3-e30a-3aed-806a-ac88734a771b> /Library/Frameworks/Python.framework/Versions/3.11/Python
       0x109e6b000 -        0x109e72fff com.tribaldigital.affybot (1.0.0) <abecb05c-e91d-336e-81d6-4a467d071ee8> /Users/USER/*/AffyBot.app/Contents/MacOS/AffyBot
    0x7ff8109b8000 -     0x7ff810a4cc6f dyld (*) <bb7a0970-8c62-3dce-a7a2-5cec9c501f11> /usr/lib/dyld
    0x7ff810d4d000 -     0x7ff8111e6fff com.apple.CoreFoundation (6.9) <beb5fc0b-7196-3c1d-a59a-f62ada98f592> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=435.0M resident=0K(0%) swapped_out_or_unallocated=435.0M(100%)
Writable regions: Total=704.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=704.1M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 2688K        4 
ColorSync                          220K       25 
CoreGraphics                        12K        2 
CoreServices                       120K        1 
CoreUI image data                  152K        1 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           281.9M       78 
MALLOC guard page                   32K        8 
MALLOC_LARGE (reserved)            128K        1         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.0M        7 
Stack                             10.6M        7 
VM_ALLOCATE                       24.1M       40 
__CTF                               756        1 
__DATA                            19.8M      416 
__DATA_CONST                      14.0M      193 
__DATA_DIRTY                       653K      107 
__FONT_DATA                        2352        1 
__LINKEDIT                       190.5M      102 
__OBJC_RO                         65.4M        1 
__OBJC_RW                         1988K        2 
__TEXT                           244.5M      436 
dyld private memory                256K        1 
mapped file                      185.0M       22 
shared memory                      784K       18 
===========                     =======  ======= 
TOTAL                              1.4G     1479 
TOTAL, minus reserved VM space     1.1G     1479 

-----------
Full Report
-----------

{"app_name":"AffyBot","timestamp":"2022-12-21 13:56:09.00 +0700","app_version":"1.0.0","slice_uuid":"abecb05c-e91d-336e-81d6-4a467d071ee8","build_version":"1.0.0","platform":1,"bundleID":"com.tribaldigital.affybot","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"AffyBot","incident_id":"A8A4A0E1-C1DF-47EE-AE73-2B7C9EC8C4E3"}
{
  "uptime" : 74000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro16,1",
  "coalitionID" : 14342,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2022-12-21 13:56:09.0172 +0700",
  "incident" : "A8A4A0E1-C1DF-47EE-AE73-2B7C9EC8C4E3",
  "pid" : 95676,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2022-12-21 13:56:05.7218 +0700",
  "procStartAbsTime" : 74950328282111,
  "procExitAbsTime" : 74953623215589,
  "procName" : "AffyBot",
  "procPath" : "\/Users\/USER\/*\/AffyBot.app\/Contents\/MacOS\/AffyBot",
  "bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1.0.0","CFBundleIdentifier":"com.tribaldigital.affybot"},
  "storeInfo" : {"deviceIdentifierForVendor":"4F6FD3CD-AE1F-5367-93DB-8FDC097E40EF","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.tribaldigital.affybot",
  "crashReporterKey" : "C05D9718-865F-7A75-018C-BC18ED7E536D",
  "throttleTimeout" : 2147483647,
  "wakeTime" : 2389,
  "bridgeVersion" : {"build":"20P2059","train":"7.1"},
  "sleepWakeUUID" : "B1BE628F-881C-4305-BC92-E4232D68D444",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "asiBacktraces" : ["0   CoreFoundation                      0x00007ff810e4540b __exceptionPreprocess + 242\n1   libobjc.A.dylib                     0x00007ff810991e25 objc_exception_throw + 48\n2   Foundation                          0x00007ff811ce8fb0 -[NSCalendarDate initWithCoder:] + 0\n3   AppKit                              0x00007ff813f0a890 -[NSMenuItem initWithTitle:action:keyEquivalent:] + 363\n4   libtk8.6.dylib                      0x000000010d1ecfec +[NSMenuItem(TKUtils) itemWithSubmenu:] + 71\n5   libtk8.6.dylib                      0x000000010d1e9431 -[TKApplication(TKMenu) tkSetMainMenu:] + 257\n6   libtk8.6.dylib                      0x000000010d1ea82a TkpSetMainMenubar + 166\n7   libtk8.6.dylib                      0x000000010d168e26 TkSetWindowMenuBar + 777\n8   libtk8.6.dylib                      0x000000010d1620e2 ConfigureFrame + 262\n9   libtk8.6.dylib                      0x000000010d161d00 FrameWidgetObjCmd + 545\n10  libtcl8.6.dylib                     0x000000010d406c71 TclNRRunCallbacks + 79\n11  libtcl8.6.dylib                     0x000000010d407dc4 TclEvalEx + 1856\n12  libtcl8.6.dylib                     0x000000010d40767e Tcl_EvalEx + 26\n13  libtk8.6.dylib                      0x000000010d13be42 Tk_CreateConsoleWindow + 810\n14  libtk8.6.dylib                      0x000000010d1e6684 TkpInit + 620\n15  libtk8.6.dylib                      0x000000010d15a387 Initialize + 2402\n16  _tkinter.cpython-311-darwin.so      0x000000010c91474b Tcl_AppInit + 91\n17  _tkinter.cpython-311-darwin.so      0x000000010c914439 Tkapp_New + 585\n18  _tkinter.cpython-311-darwin.so      0x000000010c9141de _tkinter_create_impl + 222\n19  _tkinter.cpython-311-darwin.so      0x000000010c913e04 _tkinter_create + 164\n20  Python                              0x000000010cb141d3 cfunction_vectorcall_FASTCALL + 83\n21  Python                              0x000000010cbdc4cf _PyEval_EvalFrameDefault + 60223\n22  Python                              0x000000010cbe2690 _PyEval_Vector + 128\n23  Python                              0x000000010caaeb00 _PyObject_FastCallDictTstate + 96\n24  Python                              0x000000010cb3cbf5 slot_tp_init + 181\n25  Python                              0x000000010cb32d9a type_call + 122\n26  Python                              0x000000010caae841 _PyObject_MakeTpCall + 129\n27  Python                              0x000000010cbdc5c7 _PyEval_EvalFrameDefault + 60471\n28  Python                              0x000000010cbcc64a PyEval_EvalCode + 282\n29  Python                              0x000000010cbc6f03 builtin_exec + 483\n30  Python                              0x000000010cb14304 cfunction_vectorcall_FASTCALL_KEYWORDS + 68\n31  Python                              0x000000010cbdc4cf _PyEval_EvalFrameDefault + 60223\n32  Python                              0x000000010cbcc64a PyEval_EvalCode + 282\n33  Python                              0x000000010cc52818 pyrun_file + 248\n34  Python                              0x000000010cc520b4 _PyRun_SimpleFileObject + 292\n35  Python                              0x000000010cc563c0 PyRun_SimpleFileExFlags + 112\n36  AffyBot                             0x0000000109e6fec5 py2app_main + 5481\n37  AffyBot                             0x0000000109e6e357 main + 257\n38  dyld                                0x00007ff8109be310 start + 2432"],
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "lastExceptionBacktrace" : [{"imageOffset":1016827,"symbol":"__exceptionPreprocess","symbolLocation":226,"imageIndex":13},{"imageOffset":89637,"symbol":"objc_exception_throw","symbolLocation":48,"imageIndex":4},{"imageOffset":1191856,"symbol":"-[NSCalendarDate initWithCoder:]","symbolLocation":0,"imageIndex":5},{"imageOffset":202896,"symbol":"-[NSMenuItem initWithTitle:action:keyEquivalent:]","symbolLocation":363,"imageIndex":6},{"imageOffset":823276,"imageIndex":7},{"imageOffset":807985,"imageIndex":7},{"imageOffset":813098,"symbol":"TkpSetMainMenubar","symbolLocation":166,"imageIndex":7},{"imageOffset":282150,"symbol":"TkSetWindowMenuBar","symbolLocation":777,"imageIndex":7},{"imageOffset":254178,"imageIndex":7},{"imageOffset":253184,"imageIndex":7},{"imageOffset":76913,"symbol":"TclNRRunCallbacks","symbolLocation":79,"imageIndex":8},{"imageOffset":81348,"imageIndex":8},{"imageOffset":79486,"symbol":"Tcl_EvalEx","symbolLocation":26,"imageIndex":8},{"imageOffset":97858,"symbol":"Tk_CreateConsoleWindow","symbolLocation":810,"imageIndex":7},{"imageOffset":796292,"symbol":"TkpInit","symbolLocation":620,"imageIndex":7},{"imageOffset":222087,"imageIndex":7},{"imageOffset":26443,"imageIndex":9},{"imageOffset":25657,"imageIndex":9},{"imageOffset":25054,"imageIndex":9},{"imageOffset":24068,"imageIndex":9},{"imageOffset":1081811,"imageIndex":10},{"imageOffset":1901775,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60223,"imageIndex":10},{"imageOffset":1926800,"imageIndex":10},{"imageOffset":666368,"symbol":"_PyObject_FastCallDictTstate","symbolLocation":96,"imageIndex":10},{"imageOffset":1248245,"imageIndex":10},{"imageOffset":1207706,"imageIndex":10},{"imageOffset":665665,"symbol":"_PyObject_MakeTpCall","symbolLocation":129,"imageIndex":10},{"imageOffset":1902023,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60471,"imageIndex":10},{"imageOffset":1836618,"symbol":"PyEval_EvalCode","symbolLocation":282,"imageIndex":10},{"imageOffset":1814275,"imageIndex":10},{"imageOffset":1082116,"imageIndex":10},{"imageOffset":1901775,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60223,"imageIndex":10},{"imageOffset":1836618,"symbol":"PyEval_EvalCode","symbolLocation":282,"imageIndex":10},{"imageOffset":2385944,"imageIndex":10},{"imageOffset":2384052,"symbol":"_PyRun_SimpleFileObject","symbolLocation":292,"imageIndex":10},{"imageOffset":2401216,"symbol":"PyRun_SimpleFileExFlags","symbolLocation":112,"imageIndex":10},{"imageOffset":20165,"imageIndex":11},{"imageOffset":13143,"symbol":"main","symbolLocation":257,"imageIndex":11},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":12}],
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":1205847,"threadState":{"r13":{"value":206158430216},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140701887689856},"cr2":{"value":140704515110328},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":140703410347931},"r15":{"value":22},"rbx":{"value":140704544331968,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703410393642,"matchesCrashFrame":1},"rbp":{"value":140701887690208},"rsp":{"value":140701887690168},"r12":{"value":259},"rcx":{"value":140701887690168},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":33322,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":24443,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531621,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":65666,"symbol":"abort_message","symbolLocation":241,"imageIndex":3},{"imageOffset":4669,"symbol":"demangling_terminate_handler()","symbolLocation":266,"imageIndex":3},{"imageOffset":118819,"symbol":"_objc_terminate()","symbolLocation":96,"imageIndex":4},{"imageOffset":62629,"symbol":"std::__terminate(void (*)())","symbolLocation":8,"imageIndex":3},{"imageOffset":72965,"symbol":"__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)","symbolLocation":27,"imageIndex":3},{"imageOffset":72908,"symbol":"__cxa_throw","symbolLocation":116,"imageIndex":3},{"imageOffset":89891,"symbol":"objc_exception_throw","symbolLocation":302,"imageIndex":4},{"imageOffset":1191856,"symbol":"-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]","symbolLocation":267,"imageIndex":5},{"imageOffset":202896,"symbol":"-[NSMenuItem initWithTitle:action:keyEquivalent:]","symbolLocation":363,"imageIndex":6},{"imageOffset":823276,"imageIndex":7},{"imageOffset":807985,"imageIndex":7},{"imageOffset":813098,"symbol":"TkpSetMainMenubar","symbolLocation":166,"imageIndex":7},{"imageOffset":282150,"symbol":"TkSetWindowMenuBar","symbolLocation":777,"imageIndex":7},{"imageOffset":254178,"imageIndex":7},{"imageOffset":253184,"imageIndex":7},{"imageOffset":76913,"symbol":"TclNRRunCallbacks","symbolLocation":79,"imageIndex":8},{"imageOffset":81348,"imageIndex":8},{"imageOffset":79486,"symbol":"Tcl_EvalEx","symbolLocation":26,"imageIndex":8},{"imageOffset":97858,"symbol":"Tk_CreateConsoleWindow","symbolLocation":810,"imageIndex":7},{"imageOffset":796292,"symbol":"TkpInit","symbolLocation":620,"imageIndex":7},{"imageOffset":222087,"imageIndex":7},{"imageOffset":26443,"imageIndex":9},{"imageOffset":25657,"imageIndex":9},{"imageOffset":25054,"imageIndex":9},{"imageOffset":24068,"imageIndex":9},{"imageOffset":1081811,"imageIndex":10},{"imageOffset":1901775,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60223,"imageIndex":10},{"imageOffset":1926800,"imageIndex":10},{"imageOffset":666368,"symbol":"_PyObject_FastCallDictTstate","symbolLocation":96,"imageIndex":10},{"imageOffset":1248245,"imageIndex":10},{"imageOffset":1207706,"imageIndex":10},{"imageOffset":665665,"symbol":"_PyObject_MakeTpCall","symbolLocation":129,"imageIndex":10},{"imageOffset":1902023,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60471,"imageIndex":10},{"imageOffset":1836618,"symbol":"PyEval_EvalCode","symbolLocation":282,"imageIndex":10},{"imageOffset":1814275,"imageIndex":10},{"imageOffset":1082116,"imageIndex":10},{"imageOffset":1901775,"symbol":"_PyEval_EvalFrameDefault","symbolLocation":60223,"imageIndex":10},{"imageOffset":1836618,"symbol":"PyEval_EvalCode","symbolLocation":282,"imageIndex":10},{"imageOffset":2385944,"imageIndex":10},{"imageOffset":2384052,"symbol":"_PyRun_SimpleFileObject","symbolLocation":292,"imageIndex":10},{"imageOffset":2401216,"symbol":"PyRun_SimpleFileExFlags","symbolLocation":112,"imageIndex":10},{"imageOffset":20165,"imageIndex":11},{"imageOffset":13143,"symbol":"main","symbolLocation":257,"imageIndex":11},{"imageOffset":25360,"symbol":"start","symbolLocation":2432,"imageIndex":12}]},{"id":1205868,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":1205869,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":1205878,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":1205879,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":1205884,"frames":[{"imageOffset":7256,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":1205973,"frames":[{"imageOffset":41690,"symbol":"__select","symbolLocation":10,"imageIndex":0},{"imageOffset":1063096,"imageIndex":8},{"imageOffset":25177,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":7291,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703410360320,
    "size" : 237560,
    "uuid" : "7c3dcc95-9f42-3c7c-8796-476ff67b9cf7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703410597888,
    "size" : 49144,
    "uuid" : "5920e36f-53ec-33f0-b675-8ae48b58418c",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703409344512,
    "size" : 561152,
    "uuid" : "376f7cb7-6dd2-3e00-976f-77dd755bdb0d",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703410270208,
    "size" : 90104,
    "uuid" : "1fa4a590-f60c-3813-a408-a407fbcd0e89",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703406997504,
    "size" : 245721,
    "uuid" : "38d89f3c-dc4c-3b0a-a09c-461739132150",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703426174976,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 10559479,
    "uuid" : "ab5f8db8-b03b-33b6-98f7-ffaec27a8eab",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703462952960,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 16809984,
    "uuid" : "00f4aa78-a19f-3a8e-9650-9f90b7beefd6",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.30.116"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4514267136,
    "size" : 1081344,
    "uuid" : "31da200f-d034-3bee-9673-53da7054631b",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.11\/lib\/libtk8.6.dylib",
    "name" : "libtk8.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4517216256,
    "size" : 1196032,
    "uuid" : "0cf0f829-43bc-3847-86e5-aa783391c315",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.11\/lib\/libtcl8.6.dylib",
    "name" : "libtcl8.6.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4505788416,
    "size" : 32768,
    "uuid" : "14af5280-89d1-3510-a29a-f7b78df9741a",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.11\/lib\/python3.11\/lib-dynload\/_tkinter.cpython-311-darwin.so",
    "name" : "_tkinter.cpython-311-darwin.so"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4506828800,
    "CFBundleShortVersionString" : "3.11.1, (c) 2001-2021 Python Software Foundation.",
    "CFBundleIdentifier" : "org.python.python",
    "size" : 4063232,
    "uuid" : "41aefab3-e30a-3aed-806a-ac88734a771b",
    "path" : "\/Library\/Frameworks\/Python.framework\/Versions\/3.11\/Python",
    "name" : "Python",
    "CFBundleVersion" : "3.11.1"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4461080576,
    "CFBundleShortVersionString" : "1.0.0",
    "CFBundleIdentifier" : "com.tribaldigital.affybot",
    "size" : 32768,
    "uuid" : "abecb05c-e91d-336e-81d6-4a467d071ee8",
    "path" : "\/Users\/USER\/*\/AffyBot.app\/Contents\/MacOS\/AffyBot",
    "name" : "AffyBot",
    "CFBundleVersion" : "1.0.0"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703407243264,
    "size" : 609392,
    "uuid" : "bb7a0970-8c62-3dce-a7a2-5cec9c501f11",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703410999296,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 4825088,
    "uuid" : "beb5fc0b-7196-3c1d-a59a-f62ada98f592",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  }
],
  "sharedCache" : {
  "base" : 140703406637056,
  "size" : 21474836480,
  "uuid" : "ea7f9772-219e-3ece-a4d9-20aeee3bc80f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=435.0M resident=0K(0%) swapped_out_or_unallocated=435.0M(100%)\nWritable regions: Total=704.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=704.1M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 2688K        4 \nColorSync                          220K       25 \nCoreGraphics                        12K        2 \nCoreServices                       120K        1 \nCoreUI image data                  152K        1 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           281.9M       78 \nMALLOC guard page                   32K        8 \nMALLOC_LARGE (reserved)            128K        1         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M        7 \nStack                             10.6M        7 \nVM_ALLOCATE                       24.1M       40 \n__CTF                               756        1 \n__DATA                            19.8M      416 \n__DATA_CONST                      14.0M      193 \n__DATA_DIRTY                       653K      107 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       190.5M      102 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1988K        2 \n__TEXT                           244.5M      436 \ndyld private memory                256K        1 \nmapped file                      185.0M       22 \nshared memory                      784K       18 \n===========                     =======  ======= \nTOTAL                              1.4G     1479 \nTOTAL, minus reserved VM space     1.1G     1479 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "62cdf63ddb3b7109d6d765cc",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_TMDC" : "62cdf6dddb3b7109d6d765cd"
      },
      "deploymentId" : 240000007
    },
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000026
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro16,1, BootROM 1916.60.2.0.0 (iBridge: 20.16.2059.0.0,0), 8 processors, 8-Core Intel Core i9, 2,3 GHz, 16 GB, SMC 
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Graphics: AMD Radeon Pro 5500M, AMD Radeon Pro 5500M, PCIe, 4 GB
Display: Color LCD, 3072 x 1920 Retina, Main, MirrorOff, Online
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, SK Hynix, HMA81GS6CJR8N-VK
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Sep 14 2022 18:03:20 version 9.30.489.3.32.5.84 FWID 01-8b6fe36e
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: T2Bus
USB Device: composite_device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Wathfea commented 1 year ago

Aaaand it's working. I forgot to set False the ArgvEmulation. Thank you for your help and suggestions!