Bug 1804 - PulseView nightly crashes on launch on macOS 12.6 (libintl.8.dylib not loaded)
Summary: PulseView nightly crashes on launch on macOS 12.6 (libintl.8.dylib not loaded)
Status: CONFIRMED
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: ARM Mac OS X
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-02 14:03 CEST by Bart Schuurmans
Modified: 2023-02-04 17:46 CET (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Schuurmans 2022-10-02 14:03:24 CEST
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

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

Date/Time:             2022-10-02 13:57:33.7044 +0200
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Anonymous UUID:        8DE0BF1B-7D5F-D2BA-E08F-84269D3D692A

Sleep/Wake UUID:       E8585A9A-6470-46B8-BB68-14190EE336A1

Time Awake Since Boot: 1100000 seconds
Time Since Wake:       555 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/gettext/lib/libintl.8.dylib'
Referenced from: '/Applications/PulseView.app/Contents/Frameworks/Python.framework/Versions/3.7/Python'
Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '' (no such file), '' (no such file)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0   Rosetta Runtime Routines	       0x204ee4940 ???
1   dyld                          	       0x204de798e __abort_with_payload + 10
2   dyld                          	       0x204dfda72 abort_with_payload_wrapper_internal + 80
3   dyld                          	       0x204dfdaa4 abort_with_payload + 9
4   dyld                          	       0x204dab699 dyld4::halt(char const*) + 615
5   dyld                          	       0x204da75b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3995
6   dyld                          	       0x204da64e4 start + 388

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffd8d944 0x7ff7ffd89000 + 18756
1   runtime                       	    0x7ff7ffd9b3e0 0x7ff7ffd89000 + 74720
2   runtime                       	    0x7ff7ffd9ce58 0x7ff7ffd89000 + 81496


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000030d3eb100   x3: 0x0000000000000094
    x4: 0x000000030d3ead00   x5: 0x0000000000000000   x6: 0x00007ff823afc000   x7: 0x00000020a54c627c
    x8: 0x000000030d3ead00   x9: 0x0000000000000000  x10: 0x0000000000000094  x11: 0x000000030d3eb13f
   x12: 0x0000000000000094  x13: 0x000000030d3eb100  x14: 0x0000000000000001  x15: 0x0000000000000006
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x800000010d0b8b70  x19: 0x0000000105045000
   x20: 0x00000000000007ff  x21: 0x000000010d0bdfa0  x22: 0xffffffffffffffff  x23: 0x0000000204ee4914
   x24: 0x0000000204dfda72  x25: 0x0000000204ee1d90  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000204de798e   fp: 0x000000002c000000   lr: 0x0000000204ed11d4
    sp: 0x000000010d0b8b70   pc: 0x0000000204ee4940 cpsr: 0x80001000
   far: 0x0000000204ee1df0  esr: 0x56000080  Address size fault

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x204da1000 -        0x204e0cfff dyld (*) <71febccd-d9dc-3599-9971-2b3407c588a8> /usr/lib/dyld
    0x7ff7ffd89000 -     0x7ff7ffdb8fff runtime (*) <1f0f0114-cfb6-304b-8183-8ef52c21f8b4> /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=921.1M resident=0K(0%) swapped_out_or_unallocated=921.1M(100%)
Writable regions: Total=155.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.7M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                    692K      170 
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.3M        6 
VM_ALLOCATE (reserved)             344K       28         reserved VM address space (unallocated)
__DATA                            16.9M      278 
__DATA_CONST                      11.0M      149 
__DATA_DIRTY                       485K       85 
__FONT_DATA                          4K        1 
__LINKEDIT                       709.8M       38 
__OBJC_RO                         82.8M        1 
__OBJC_RW                         3200K        1 
__TEXT                           211.4M      289 
__UNICODE                          592K        1 
dyld private memory               1024K        1 
mapped file                        5.1G      400 
===========                     =======  ======= 
TOTAL                              6.4G     1458 
TOTAL, minus reserved VM space     6.4G     1458 



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

{"app_name":"pulseview.real","timestamp":"2022-10-02 13:57:48.00 +0200","app_version":"","slice_uuid":"92df709c-6efa-3e3f-bf60-1226098d4e29","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.6 (21G115)","incident_id":"D3684A70-664D-40BC-ACBA-304C5076616B","name":"pulseview.real"}
{
  "uptime" : 1100000,
  "procLaunch" : "2022-10-02 13:57:30.8390 +0200",
  "procRole" : "Background",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,1",
  "procStartAbsTime" : 26688679003084,
  "coalitionID" : 27187,
  "osVersion" : {
    "train" : "macOS 12.6",
    "build" : "21G115",
    "releaseType" : "User"
  },
  "captureTime" : "2022-10-02 13:57:33.7044 +0200",
  "incident" : "D3684A70-664D-40BC-ACBA-304C5076616B",
  "bug_type" : "309",
  "pid" : 53857,
  "procExitAbsTime" : 26688747742208,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "pulseview.real",
  "procPath" : "\/Applications\/PulseView.app\/Contents\/MacOS\/pulseview",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.sigrok.PulseView",
  "crashReporterKey" : "8DE0BF1B-7D5F-D2BA-E08F-84269D3D692A",
  "wakeTime" : 555,
  "sleepWakeUUID" : "E8585A9A-6470-46B8-BB68-14190EE336A1",
  "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\/gettext\/lib\/libintl.8.dylib'","Referenced from: '\/Applications\/PulseView.app\/Contents\/Frameworks\/Python.framework\/Versions\/3.7\/Python'","Reason: tried: '\/usr\/local\/opt\/gettext\/lib\/libintl.8.dylib' (no such file), '' (no such file), '' (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":4608795,"threadState":{"x":[{"value":6},{"value":1},{"value":13107114240},{"value":148},{"value":13107113216},{"value":0},{"value":140703727337472},{"value":140212200060},{"value":13107113216},{"value":0},{"value":148},{"value":13107114303},{"value":148},{"value":13107114240},{"value":1},{"value":6},{"value":521},{"value":0},{"value":9223372041368603504},{"value":4379136000},{"value":2047},{"value":4513849248},{"value":18446744073709551615},{"value":8672659732},{"value":8671713906,"symbolLocation":80,"symbol":"abort_with_payload_wrapper_internal"},{"value":8672648592},{"value":0},{"value":0},{"value":8671623566,"symbolLocation":10,"symbol":"__abort_with_payload"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":8672580052},"cpsr":{"value":2147487744},"fp":{"value":738197504},"sp":{"value":4513827696},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":8672659776,"matchesCrashFrame":1},"far":{"value":8672648688}},"frames":[{"imageOffset":8672659776,"region":"Rosetta Runtime Routines","symbolLocation":10560,"imageIndex":0},{"imageOffset":289166,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":1},{"imageOffset":379506,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":80,"imageIndex":1},{"imageOffset":379556,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":42649,"symbol":"dyld4::halt(char const*)","symbolLocation":615,"imageIndex":1},{"imageOffset":26037,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3995,"imageIndex":1},{"imageOffset":21732,"symbol":"start","symbolLocation":388,"imageIndex":1}]},{"id":4608802,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":18756,"imageIndex":2},{"imageOffset":74720,"imageIndex":2},{"imageOffset":81496,"imageIndex":2}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8671334400,
    "size" : 442368,
    "uuid" : "71febccd-d9dc-3599-9971-2b3407c588a8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703126032384,
    "size" : 196608,
    "uuid" : "1f0f0114-cfb6-304b-8183-8ef52c21f8b4",
    "path" : "\/usr\/libexec\/rosetta\/runtime",
    "name" : "runtime"
  }
],
  "sharedCache" : {
  "base" : 140703572574208,
  "size" : 19331678208,
  "uuid" : "3765e290-e8ae-3af7-92bf-da62dfb8ac4f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=921.1M resident=0K(0%) swapped_out_or_unallocated=921.1M(100%)\nWritable regions: Total=155.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.7M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nRosetta Arena                     4096K        2 \nRosetta Generic                    692K      170 \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.3M        6 \nVM_ALLOCATE (reserved)             344K       28         reserved VM address space (unallocated)\n__DATA                            16.9M      278 \n__DATA_CONST                      11.0M      149 \n__DATA_DIRTY                       485K       85 \n__FONT_DATA                          4K        1 \n__LINKEDIT                       709.8M       38 \n__OBJC_RO                         82.8M        1 \n__OBJC_RW                         3200K        1 \n__TEXT                           211.4M      289 \n__UNICODE                          592K        1 \ndyld private memory               1024K        1 \nmapped file                        5.1G      400 \n===========                     =======  ======= \nTOTAL                              6.4G     1458 \nTOTAL, minus reserved VM space     6.4G     1458 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000202
    },
    {
      "rolloutId" : "61301e3a61217b3110231469",
      "factorPackIds" : {
        "SIRI_FIND_MY_CONFIGURATION_FILES" : "6216ae152a40e71046e16225"
      },
      "deploymentId" : 240000016
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "5b729754-3882-4560-826f-9c0bc27d77c6",
      "experimentId" : "6192fb082171a2330e561df0",
      "deploymentId" : 400000035
    }
  ]
}
}

Model: MacBookPro18,1, BootROM 7459.141.1, proc 10:8:2 processors, 16 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3456 x 2234 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Apr  6 2022 05:55:54 version 20.90.45.0.8.7.118 FWID 01-e7138ff2
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.
Comment 1 Bart Schuurmans 2022-10-02 14:05:59 CEST
/usr/local/opt does not exist on my system; not sure where that path is coming from.
Comment 2 Paul Williamson 2023-01-21 23:17:00 CET
I see the same on macOS Ventura 13.0 on an M1 MacBook Air.

/usr/local/opt is created by the package manager Homebrew. It's supposed to contain symlinks to libraries, in a way that is version independent. This works on Intel-based Macs. On Apple Silicon Macs, Homebrew has a different installation location in /opt/homebrew, and doesn't use /usr/local/opt.

It's a packaging bug that PulseView for macOS relies on a Homebrew package at all.

It's another packaging deficiency that PulseView is not built as a Universal app that runs natively on Apple Silicon.

Even if you have Homebrew installed and it has installed a package that includes libintl (such as gettext), that will be an Apple Silicon version on your M1 MacBook Pro, so it probably won't help with running PulseView under Rosetta 2.

As a workaround, I was able to copy a version of libintl.8.dylib from an Intel Mac with Homebrew's gettext installed to /usr/local/opt/gettext/lib on the M1 MacBook Air, and that enabled PulseView to run.
Comment 3 arne.schmitz 2023-02-04 17:46:39 CET
Would be nice if a formula for brew could be provided. Then the whole packaging issue wouldn't arise, and the application could even be codesigned...