knarfS/smuview

macOS Monterey - Crash on startup

hbast opened this issue · 0 comments

hbast commented

Describe the bug
Can't execute SmuView under MacOS Monterey 12.1 on Apple M1 Pro.

To Reproduce

  1. Download SmuView 0.0.5 as .dpkg-file
  2. Copy application to the local Application folder
  3. Start SmuView

Expected behavior
The application should start up ;)

Screenshots or log

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

Process:               smuview.real [49768]
Path:                  /Applications/SmuView.app/Contents/MacOS/smuview
Identifier:            smuview.real
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-09-29 09:44:01.3959 +0200
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Anonymous UUID:        C45D5F36-E0E0-DAD5-CAE3-0F83B581412E

Sleep/Wake UUID:       0247502D-3085-467E-B0E6-0AD03B68954B

Time Awake Since Boot: 140000 seconds
Time Since Wake:       2364 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python
Referenced from: /Applications/SmuView.app/Contents/MacOS/smuview.real
Reason: tried: '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file)
(terminated at launch; ignore backtrace)

Application Specific Information:
Library not loaded: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python
Referenced from: /Applications/SmuView.app/Contents/MacOS/smuview.real
Reason: tried: '/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file)


Thread 0 Crashed:
0   Rosetta Runtime Routines	       0x2050c1940 ???
1   dyld                          	       0x204fc40ce __abort_with_payload + 10
2   dyld                          	       0x204fda201 abort_with_payload + 9
3   dyld                          	       0x204f88613 dyld4::halt(char const*) + 375
4   dyld                          	       0x204f8455d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3955
5   dyld                          	       0x204f834b4 start + 388

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffd3b8e4 0x7ff7ffd37000 + 18660
1   runtime                       	    0x7ff7ffd48928 0x7ff7ffd37000 + 71976
2   runtime                       	    0x7ff7ffd4a0a4 0x7ff7ffd37000 + 77988


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000030d273a20   x3: 0x0000000000000094
    x4: 0x000000030d273620   x5: 0x0000000000000000   x6: 0xd503201f50234483   x7: 0x0000002030234c84
    x8: 0x000000030d273620   x9: 0x0000000000000000  x10: 0x0000000000000094  x11: 0x000000030d273620
   x12: 0x0000000000000094  x13: 0x000000030d273a20  x14: 0x0000000000000001  x15: 0x0000000000000006
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x800000010d8e8b70  x19: 0x0000000105875000
   x20: 0x00000000000007ff  x21: 0x000000010d8edfa0  x22: 0xffffffffffffffff  x23: 0x00000002050c1914
   x24: 0x0000000204fda1cf  x25: 0x00000002050be528  x26: 0x0000000105881078  x27: 0x0000000000000000
   x28: 0x0000000204fc40ce   fp: 0x000000002c000000   lr: 0x00000002050ad918
    sp: 0x000000010d8e8b70   pc: 0x00000002050c1940 cpsr: 0x80001000
   far: 0x00000002050be588  esr: 0x56000080  Address size fault

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x204f7e000 -        0x204fe9fff dyld (*) <cef5a27a-d50b-3020-af03-1734b19bc8c5> /usr/lib/dyld
    0x7ff7ffd37000 -     0x7ff7ffd66fff runtime (*) <21c1e0c9-a36e-3e4b-a12b-1bf54ce4403e> /usr/libexec/rosetta/runtime

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=16.0M resident=0K(0%) swapped_out_or_unallocated=16.0M(100%)
Writable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                    676K      166 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
Stack                             8176K        1 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       13.1M        5 
VM_ALLOCATE (reserved)             164K       10         reserved VM address space (unallocated)
__DATA                             488K       18 
__DATA_CONST                       324K        9 
__LINKEDIT                        2112K       16 
__TEXT                            13.9M       13 
dyld private memory               1024K        1 
mapped file                        6.0G       55 
===========                     =======  ======= 
TOTAL                              6.2G      303 
TOTAL, minus reserved VM space     6.2G      303 



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

{"app_name":"smuview.real","timestamp":"2022-09-29 09:44:01.00 +0200","app_version":"","slice_uuid":"a182953a-df15-3471-b95b-bd6bbb3ba369","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.1 (21C52)","incident_id":"41BBD5EF-FE9E-44C3-BAE7-3387DDA3ECFD","name":"smuview.real"}
{
  "uptime" : 140000,
  "procLaunch" : "2022-09-29 09:44:01.3363 +0200",
  "procRole" : "Background",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "procStartAbsTime" : 3497425174811,
  "coalitionID" : 17755,
  "osVersion" : {
    "train" : "macOS 12.1",
    "build" : "21C52",
    "releaseType" : "User"
  },
  "captureTime" : "2022-09-29 09:44:01.3959 +0200",
  "incident" : "41BBD5EF-FE9E-44C3-BAE7-3387DDA3ECFD",
  "bug_type" : "309",
  "pid" : 49768,
  "procExitAbsTime" : 3497426585219,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "smuview.real",
  "procPath" : "\/Applications\/SmuView.app\/Contents\/MacOS\/smuview",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.sigrok.SmuView",
  "crashReporterKey" : "C45D5F36-E0E0-DAD5-CAE3-0F83B581412E",
  "wakeTime" : 2364,
  "sleepWakeUUID" : "0247502D-3085-467E-B0E6-0AD03B68954B",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: \/usr\/local\/opt\/python@3.9\/Frameworks\/Python.framework\/Versions\/3.9\/Python","Referenced from: \/Applications\/SmuView.app\/Contents\/MacOS\/smuview.real","Reason: tried: '\/usr\/local\/opt\/python@3.9\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/System\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file)"]},
  "asi" : {"dyld":["Library not loaded: \/usr\/local\/opt\/python@3.9\/Frameworks\/Python.framework\/Versions\/3.9\/Python","Referenced from: \/Applications\/SmuView.app\/Contents\/MacOS\/smuview.real","Reason: tried: '\/usr\/local\/opt\/python@3.9\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/System\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file)"]},
  "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},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2131301,"threadState":{"x":[{"value":6},{"value":1},{"value":13105576480},{"value":148},{"value":13105575456},{"value":0},{"value":15349147273869345923},{"value":138246573188},{"value":13105575456},{"value":0},{"value":148},{"value":13105575456},{"value":148},{"value":13105576480},{"value":1},{"value":6},{"value":521},{"value":0},{"value":9223372041377188720},{"value":4387721216},{"value":2047},{"value":4522434464},{"value":18446744073709551615},{"value":8674613524},{"value":8673665487,"symbolLocation":80,"symbol":"abort_with_payload_wrapper_internal"},{"value":8674600232},{"value":4387770488},{"value":0},{"value":8673575118,"symbolLocation":10,"symbol":"__abort_with_payload"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":8674531608},"cpsr":{"value":2147487744},"fp":{"value":738197504},"sp":{"value":4522412912},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":8674613568,"matchesCrashFrame":1},"far":{"value":8674600328}},"frames":[{"imageOffset":8674613568,"region":"Rosetta Runtime Routines","symbolLocation":10560,"imageIndex":0},{"imageOffset":286926,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":1},{"imageOffset":377345,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":42515,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":1},{"imageOffset":25949,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3955,"imageIndex":1},{"imageOffset":21684,"symbol":"start","symbolLocation":388,"imageIndex":1}]},{"id":2131303,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":18660,"imageIndex":2},{"imageOffset":71976,"imageIndex":2},{"imageOffset":77988,"imageIndex":2}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8673288192,
    "size" : 442368,
    "uuid" : "cef5a27a-d50b-3020-af03-1734b19bc8c5",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703125696512,
    "size" : 196608,
    "uuid" : "21c1e0c9-a36e-3e4b-a12b-1bf54ce4403e",
    "path" : "\/usr\/libexec\/rosetta\/runtime",
    "name" : "runtime"
  }
],
  "sharedCache" : {
  "base" : 140703455870976,
  "size" : 15218081792,
  "uuid" : "e72a2011-6acf-3f25-bfe7-730570330401"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=16.0M resident=0K(0%) swapped_out_or_unallocated=16.0M(100%)\nWritable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nRosetta Arena                     4096K        2 \nRosetta Generic                    676K      166 \nRosetta IndirectBranch              32K        1 \nRosetta JIT                      128.0M        1 \nRosetta Return Stack                20K        2 \nRosetta Thread Context              20K        2 \nStack                             8176K        1 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                       13.1M        5 \nVM_ALLOCATE (reserved)             164K       10         reserved VM address space (unallocated)\n__DATA                             488K       18 \n__DATA_CONST                       324K        9 \n__LINKEDIT                        2112K       16 \n__TEXT                            13.9M       13 \ndyld private memory               1024K        1 \nmapped file                        6.0G       55 \n===========                     =======  ======= \nTOTAL                              6.2G      303 \nTOTAL, minus reserved VM space     6.2G      303 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61fb0e87c773c43cde3bb80e"
      },
      "deploymentId" : 240000305
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "621d4d0f680160486b9e1c98"
      },
      "deploymentId" : 240000414
    },
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000015
    },
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000026
    },
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000020
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000482
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000202
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "5b729754-3882-4560-826f-9c0bc27d77c6",
      "experimentId" : "6192fb082171a2330e561df0",
      "deploymentId" : 400000035
    }
  ]
}
}

Model: MacBookPro18,3, BootROM 7429.61.2, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Oct 25 2021 22:17:59 version 20.10.853.26.8.7.107 FWID 01-417a4935
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

Enviroment (please complete the following information):

  • SmuView 0.0.5
  • AppImage from github
  • OS: MacOS Monterey 12.1 on Apple M1 Pro

Additional context
From my initial analysis, it looks like there is a hard link from Python3.9 to path XYZ in the application.
I installed Python3.9 via brew and it is also set via the PATH variable. Suggestion would be either to deliver Python and the dependencies in the AppImage as a bundle, or to set the link to Python 3.9 generically to 'python3.9'.