Skip to content

webrtc-native: arm64 library not included. #282

@belthesar

Description

@belthesar

Describe the bug
When launching the macOS build of Tabletop Club, the application fails to start and throws an exception.

To Reproduce
Steps to reproduce the behavior:

  1. Download the 0.1.0 macOS build from the releases page
  2. Use xattr -c /path/to/release.zip to clear the quarantine flag (without doing this, launching the extracted bundle reports that application is broken.)
  3. Launch the application

Expected behavior
The application launches!

Screenshots
n/a

Environment
macOS Ventura 13.3.1 on MacBook Pro 18,3 (Apple Silicon, M1 Pro, 10 Core, 14 Core GPU)

Version
v0.1.0

Additional context
It appears the macOS build is failing Code Signature enforcement. This may be because the build is not made with an active Apple Developer account. When launching the application, the following exception is thrown:

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

Incident Identifier: 51EFA319-9BE6-4DC1-9EB8-3C5440563604
CrashReporter Key:   A3E42A1B-0ACF-B31D-78C3-C68E8E0297BF
Hardware Model:      MacBookPro18,3
Process:             Tabletop Club [86386]
Path:                /Applications/Tabletop Club.app/Contents/MacOS/Tabletop Club
Identifier:          io.itch.drwhut.TabletopClub
Version:             v0.1.0 (v0.1.0)
Code Type:           ARM-64 (Native)
Role:                Default
Parent Process:      launchd [1]
Coalition:           io.itch.drwhut.TabletopClub [14572]

Date/Time:           2023-05-04 00:52:18.1874 -0400
Launch Time:         2023-05-04 00:52:18.1615 -0400
OS Version:          macOS 13.3.1 (22E772610a)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Subtype: UNKNOWN_0x32 at 0x0000000100d60000
Exception Codes: 0x0000000000000032, 0x0000000100d60000
VM Region Info: 0x100d60000 is in 0x100d60000-0x102bc4000;  bytes after start: 0  bytes before end: 31866879
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  __TEXT                      100d60000-102bc4000    [ 30.4M] r-x/r-x SM=COW  
      __DATA_CONST                102bc4000-102c6c000    [  672K] rw-/rw- SM=COW  
Termination Reason: CODESIGNING 2 Invalid Page

Triggered by Thread:  0

Thread 0 Crashed:
0                                 	       0x102f321e4 dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 52
1                                 	       0x102f341cc dyld3::MachOFile::forEachSupportedPlatform(void (dyld3::Platform, unsigned int, unsigned int) block_pointer) const + 160
2                                 	       0x102f85e0c dyld3::MachOFile::isBuiltForSimulator() const + 124
3                                 	       0x102f358e4 start + 632


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000100d60000   x1: 0x000000016f09f808   x2: 0x000000016f09f7b0   x3: 0x0000000102f31e23
    x4: 0x0000000000000070   x5: 0x0000000000000073   x6: 0x0000000000000000   x7: 0x0000000000000aa0
    x8: 0x000000016f09f7e8   x9: 0x0000000102fc3530  x10: 0x0000000102fae000  x11: 0x0000000102fba958
   x12: 0x0000000000000065  x13: 0x0000000000000073  x14: 0x0000000000056250  x15: 0x0000000000000000
   x16: 0x0000000102f3426c  x17: 0x6ae100016f09f7b0  x18: 0x0000000000000000  x19: 0x000000016f09f808
   x20: 0x0000000100d60000  x21: 0x000000016f09f7b0  x22: 0x000000016f09f9e8  x23: 0x000000016f09f9c0
   x24: 0x000000016f09f940  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016f09f7a0   lr: 0xf63a800102f341cc
    sp: 0x000000016f09f710   pc: 0x0000000102f321e4 cpsr: 0x80001000
   far: 0x0000000100d60000  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x102f30000 -        0x102fbffff  (*) <ac277a36-1808-327a-8761-cca585421212> ???
       0x100d60000 -        0x102bc3fff  (*) <a651132b-7070-3b13-b5a1-1355df5873b4> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF

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

{"app_name":"Tabletop Club","timestamp":"2023-05-04 00:52:18.00 -0400","app_version":"v0.1.0","slice_uuid":"a651132b-7070-3b13-b5a1-1355df5873b4","build_version":"v0.1.0","platform":0,"bundleID":"io.itch.drwhut.TabletopClub","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.3.1 (22E772610a)","roots_installed":0,"name":"Tabletop Club","incident_id":"51EFA319-9BE6-4DC1-9EB8-3C5440563604"}
{
  "uptime" : 170000,
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 14572,
  "osVersion" : {
    "train" : "macOS 13.3.1",
    "build" : "22E772610a",
    "releaseType" : "User"
  },
  "captureTime" : "2023-05-04 00:52:18.1874 -0400",
  "incident" : "51EFA319-9BE6-4DC1-9EB8-3C5440563604",
  "pid" : 86386,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-05-04 00:52:18.1615 -0400",
  "procStartAbsTime" : 4311560013990,
  "procExitAbsTime" : 4311560614024,
  "procName" : "Tabletop Club",
  "procPath" : "\/Applications\/Tabletop Club.app\/Contents\/MacOS\/Tabletop Club",
  "bundleInfo" : {"CFBundleShortVersionString":"v0.1.0","CFBundleVersion":"v0.1.0","CFBundleIdentifier":"io.itch.drwhut.TabletopClub"},
  "storeInfo" : {"deviceIdentifierForVendor":"A953C34E-3695-501A-9FCF-A187741BBBF9","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "io.itch.drwhut.TabletopClub",
  "crashReporterKey" : "A3E42A1B-0ACF-B31D-78C3-C68E8E0297BF",
  "throttleTimeout" : 2147483647,
  "codeSigningID" : "",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 16777728,
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 29059,
  "sleepWakeUUID" : "B6561F3F-DB14-4A0B-B2B1-98A9E2B5AEE2",
  "sip" : "enabled",
  "vmRegionInfo" : "0x100d60000 is in 0x100d60000-0x102bc4000;  bytes after start: 0  bytes before end: 31866879\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  __TEXT                      100d60000-102bc4000    [ 30.4M] r-x\/r-x SM=COW  \n      __DATA_CONST                102bc4000-102c6c000    [  672K] rw-\/rw- SM=COW  ",
  "exception" : {"codes":"0x0000000000000032, 0x0000000100d60000","rawCodes":[50,4308992000],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x0000000100d60000"},
  "termination" : {"flags":0,"code":2,"namespace":"CODESIGNING","indicator":"Invalid Page"},
  "vmregioninfo" : "0x100d60000 is in 0x100d60000-0x102bc4000;  bytes after start: 0  bytes before end: 31866879\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  __TEXT                      100d60000-102bc4000    [ 30.4M] r-x\/r-x SM=COW  \n      __DATA_CONST                102bc4000-102c6c000    [  672K] rw-\/rw- SM=COW  ",
  "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":2771281,"threadState":{"x":[{"value":4308992000},{"value":6157891592},{"value":6157891504},{"value":4344454691},{"value":112},{"value":115},{"value":0},{"value":2720},{"value":6157891560},{"value":4345050416,"symbolLocation":0,"symbol":"__block_descriptor_tmp.57"},{"value":4344963072,"symbolLocation":4,"symbol":"lsl::Vector<char>::reserveExact(unsigned long) (.cold.1)"},{"value":4345014616},{"value":101},{"value":115},{"value":352848},{"value":0},{"value":4344463980,"symbolLocation":0,"symbol":"invocation function for block in dyld3::MachOFile::forEachSupportedPlatform(void (dyld3::Platform, unsigned int, unsigned int) block_pointer) const"},{"value":7701436843938150320},{"value":0},{"value":6157891592},{"value":4308992000},{"value":6157891504},{"value":6157892072},{"value":6157892032},{"value":6157891904},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":17742634423812309452},"cpsr":{"value":2147487744},"fp":{"value":6157891488},"sp":{"value":6157891344},"esr":{"value":2449473542,"description":"(Data Abort) byte read Translation fault"},"pc":{"value":4344455652,"matchesCrashFrame":1},"far":{"value":4308992000}},"frames":[{"imageOffset":8676,"symbol":"dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const","symbolLocation":52,"imageIndex":0},{"imageOffset":16844,"symbol":"dyld3::MachOFile::forEachSupportedPlatform(void (dyld3::Platform, unsigned int, unsigned int) block_pointer) const","symbolLocation":160,"imageIndex":0},{"imageOffset":351756,"symbol":"dyld3::MachOFile::isBuiltForSimulator() const","symbolLocation":124,"imageIndex":0},{"imageOffset":22756,"symbol":"start","symbolLocation":632,"imageIndex":0}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 4344446976,
    "size" : 589824,
    "uuid" : "ac277a36-1808-327a-8761-cca585421212",
    "name" : ""
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4308992000,
    "size" : 31866880,
    "uuid" : "a651132b-7070-3b13-b5a1-1355df5873b4",
    "name" : ""
  }
],
  "vmSummary" : "ReadOnly portion of Libraries: Total=33.2M resident=0K(0%) swapped_out_or_unallocated=33.2M(100%)\nWritable regions: Total=8240K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8240K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \n__DATA                             128K        3 \n__DATA_CONST                       704K        2 \n__DATA_DIRTY                        16K        1 \n__LINKEDIT                        2352K        2 \n__TEXT                            31.0M        2 \n===========                     =======  ======= \nTOTAL                             98.1M       12 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "46e6ce7b8b490ad00d5804ed5cae290cbb66f824",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6297d96be2c9387df974efa4",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000021
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000012
    },
    {
      "treatmentId" : "6dd670af-0633-45e4-ae5f-122ae4df02be",
      "experimentId" : "64406ba83deb637ac8a04419",
      "deploymentId" : 900000005
    }
  ]
},
  "reportNotes" : [
  "dyld_process_snapshot_get_shared_cache failed"
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededmacosOnly on macOS

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions