EmergeTools / Pow

Delightful SwiftUI effects for your app
https://movingparts.io/pow
MIT License
3.64k stars 153 forks source link

0.2.1 Crashes in macOS TestFlight Builds #27

Closed mergesort closed 1 year ago

mergesort commented 1 year ago

I'm running into a crash after deploying a Mac app with Pow to TestFlight, at least I believe the issue is Pow-related. The app works fine when I build and run locally from Xcode but it crashes on launch when I download and run the app from TestFlight. I figured this might not be something you've run into since I don't believe you have a Mac version of your demo app, so I've included the crash report below.

Happy to provide any information you may need, hope this crash log helps!

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

Process:               Short Circuit [3802]
Path:                  /Applications/Short Circuit.app/Contents/MacOS/Short Circuit
Identifier:            com.redpandaclub.quickgpt
Version:               2.0 (118)
App Item ID:           1638522784
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-04-21 23:07:33.4847 -0400
OS Version:            macOS 13.3 (22E252)
Report Version:        12
Anonymous UUID:        

Sleep/Wake UUID:       D26684FB-2A35-4AF0-9C26-C94B9A47557C

Time Awake Since Boot: 1300000 seconds
Time Since Wake:       1068 seconds

System Integrity Protection: enabled

Crashed Thread:        0

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

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/Pow.framework/Versions/A/Pow
Referenced from: <B305073C-98E4-33B2-9BF5-00E49B690A5B> /Applications/Short Circuit.app/Contents/MacOS/Short Circuit
Reason: tried: '/Applications/Short Circuit.app/Contents/MacOS/Frameworks/Pow.framework/Versions/A/Pow' (no such file), '/Applications/Short Circuit.app/Contents/MacOS/Frameworks/Pow.framework/Versions/A/Pow' (no such file), '/Library/Frameworks/Pow.framework/Versions/A/Pow' (no such file), '/System/Library/Frameworks/Pow.framework/Versions/A/Pow' (no such file, not in dyld cache)
(terminated at launch; ignore backtrace)

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage

Thread 0 Crashed:
0   dyld                                   0x19b921118 __abort_with_payload + 8
1   dyld                                   0x19b92cd7c abort_with_payload_wrapper_internal + 104
2   dyld                                   0x19b92cdb0 abort_with_payload + 16
3   dyld                                   0x19b8b88a8 dyld4::halt(char const*) + 328
4   dyld                                   0x19b8b5590 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 4184
5   dyld                                   0x19b8b3e18 start + 1964

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000016b536930   x3: 0x0000000000000075
    x4: 0x000000016b536530   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000ba0
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x0000000000000001  x11: 0x000000000000000a
   x12: 0x0000000000000000  x13: 0x0000000000000033  x14: 0x0000000000000004  x15: 0x0000000000008000
   x16: 0x0000000000000209  x17: 0x000000019b8b135c  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000016b536530  x21: 0x0000000000000075  x22: 0x000000016b536930  x23: 0x0000000000000001
   x24: 0x0000000000000006  x25: 0x00000001f756acc0  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016b536500   lr: 0x000000019b92cd7c
    sp: 0x000000016b5364c0   pc: 0x000000019b921118 cpsr: 0x00001000
   far: 0x0000000105054000  esr: 0x56000080  Address size fault

Binary Images:
       0x1048c8000 -        0x104e87fff com.redpandaclub.quickgpt (2.0) <b305073c-98e4-33b2-9bf5-00e49b690a5b> /Applications/Short Circuit.app/Contents/MacOS/Short Circuit
       0x19b8ae000 -        0x19b93c53b dyld (*) <6f2c2bb8-4bbc-3b64-b927-d3f3193b6295> /usr/lib/dyld

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: 918
    thread_create: 0
    thread_set_state: 26116

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8176K        1 
VM_ALLOCATE                         16K        1 
__DATA                             443K        3 
__DATA_CONST                       262K        2 
__DATA_DIRTY                         7K        1 
__LINKEDIT                       801.2M        2 
__TEXT                            6460K        2 
dyld private memory                272K        2 
===========                     =======  ======= 
TOTAL                            872.5M       15 

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

{"roots_installed":0,"app_cohort":"2|date=1682132400000&sf=143441&tid=bcc197b08b53e724d12a6df9ef804083813dbb17a241cd4c0b168e528b54758b&ttype=i","app_name":"Short Circuit","app_version":"2.0","timestamp":"2023-04-21 23:07:34.00 -0400","slice_uuid":"b305073c-98e4-33b2-9bf5-00e49b690a5b","adam_id":"1638522784","build_version":"118","platform":1,"bundleID":"com.redpandaclub.quickgpt","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.3 (22E252)","incident_id":"38C9DAD1-1B49-495C-AA6D-96C5FDD975E3","name":"Short Circuit","is_beta":1}
{
  "uptime" : 1300000,
  "procRole" : "Background",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac14,2",
  "coalitionID" : 159913,
  "osVersion" : {
    "train" : "macOS 13.3",
    "build" : "22E252",
    "releaseType" : "User"
  },
  "captureTime" : "2023-04-21 23:07:33.4847 -0400",
  "incident" : "38C9DAD1-1B49-495C-AA6D-96C5FDD975E3",
  "pid" : 3802,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-04-21 23:07:33.2381 -0400",
  "procStartAbsTime" : 32037126710606,
  "procExitAbsTime" : 32037132603655,
  "procName" : "Short Circuit",
  "procPath" : "\/Applications\/Short Circuit.app\/Contents\/MacOS\/Short Circuit",
  "bundleInfo" : {"CFBundleShortVersionString":"2.0","CFBundleVersion":"118","CFBundleIdentifier":"com.redpandaclub.quickgpt"},
  "storeInfo" : {"storeCohortMetadata":"2|date=1682132400000&sf=143441&tid=bcc197b08b53e724d12a6df9ef804083813dbb17a241cd4c0b168e528b54758b&ttype=i","itemID":"1638522784","deviceIdentifierForVendor":"C7AAEBA0-358C-5C72-B430-2B7C9C5F1B03","thirdParty":true,"entitledBeta":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.redpandaclub.quickgpt",
  "isBeta" : 1,
  "throttleTimeout" : 2147483647,
  "codeSigningID" : "com.redpandaclub.quickgpt",
  "codeSigningTeamID" : "78QN6DA972",
  "codeSigningFlags" : 570442241,
  "codeSigningValidationCategory" : 2,
  "codeSigningTrustLevel" : 0,
  "wakeTime" : 1068,
  "sleepWakeUUID" : "D26684FB-2A35-4AF0-9C26-C94B9A47557C",
  "sip" : "enabled",
  "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: @rpath\/Pow.framework\/Versions\/A\/Pow","Referenced from: <B305073C-98E4-33B2-9BF5-00E49B690A5B> \/Applications\/Short Circuit.app\/Contents\/MacOS\/Short Circuit","Reason: tried: '\/Applications\/Short Circuit.app\/Contents\/MacOS\/Frameworks\/Pow.framework\/Versions\/A\/Pow' (no such file), '\/Applications\/Short Circuit.app\/Contents\/MacOS\/Frameworks\/Pow.framework\/Versions\/A\/Pow' (no such file), '\/Library\/Frameworks\/Pow.framework\/Versions\/A\/Pow' (no such file), '\/System\/Library\/Frameworks\/Pow.framework\/Versions\/A\/Pow' (no such file, not in dyld cache)"]},
  "ktriageinfo" : "VM - (arg = 0x0) pmap_enter retried due to resource shortage\n",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":26116,"task_for_pid":918},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":24672707,"threadState":{"x":[{"value":6},{"value":1},{"value":6095595824},{"value":117},{"value":6095594800},{"value":0},{"value":0},{"value":2976},{"value":32},{"value":9},{"value":1},{"value":10},{"value":0},{"value":51},{"value":4},{"value":32768},{"value":521},{"value":6904550236,"symbolLocation":416,"symbol":"__simple_bprintf"},{"value":0},{"value":0},{"value":6095594800},{"value":117},{"value":6095595824},{"value":1},{"value":6},{"value":8444619968,"symbolLocation":0,"symbol":"gProcessInfo"},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":6905056636},"cpsr":{"value":4096},"fp":{"value":6095594752},"sp":{"value":6095594688},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":6905008408,"matchesCrashFrame":1},"far":{"value":4379197440}},"frames":[{"imageOffset":471320,"symbol":"__abort_with_payload","symbolLocation":8,"imageIndex":1},{"imageOffset":519548,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":104,"imageIndex":1},{"imageOffset":519600,"symbol":"abort_with_payload","symbolLocation":16,"imageIndex":1},{"imageOffset":43176,"symbol":"dyld4::halt(char const*)","symbolLocation":328,"imageIndex":1},{"imageOffset":30096,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":4184,"imageIndex":1},{"imageOffset":24088,"symbol":"start","symbolLocation":1964,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4371283968,
    "CFBundleShortVersionString" : "2.0",
    "CFBundleIdentifier" : "com.redpandaclub.quickgpt",
    "size" : 6029312,
    "uuid" : "b305073c-98e4-33b2-9bf5-00e49b690a5b",
    "path" : "\/Applications\/Short Circuit.app\/Contents\/MacOS\/Short Circuit",
    "name" : "Short Circuit",
    "CFBundleVersion" : "118"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6904537088,
    "size" : 582972,
    "uuid" : "6f2c2bb8-4bbc-3b64-b927-d3f3193b6295",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 6903873536,
  "size" : 3539501056,
  "uuid" : "581a6955-d455-3735-973b-5233bd5dd16e"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=807.6M resident=0K(0%) swapped_out_or_unallocated=807.6M(100%)\nWritable regions: Total=8672K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8672K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8176K        1 \nVM_ALLOCATE                         16K        1 \n__DATA                             443K        3 \n__DATA_CONST                       262K        2 \n__DATA_DIRTY                         7K        1 \n__LINKEDIT                       801.2M        2 \n__TEXT                            6460K        2 \ndyld private memory                272K        2 \n===========                     =======  ======= \nTOTAL                            872.5M       15 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "100824b69aefbe0b7fe8088ed736feede69b7e28",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "63582c5f8a53461413999550",
      "factorPackIds" : {

      },
      "deploymentId" : 240000002
    },
    {
      "rolloutId" : "62c751b6bcb0435c2153fe92",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_ASR_ASSISTANT" : "6439ac8efc13953c10385c45",
        "SIRI_UNDERSTANDING_MORPHUN" : "63f00b1c06644d312600c7bd"
      },
      "deploymentId" : 240000177
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "c28e4ee6-1b08-4f90-8e05-2809e78310a3",
      "experimentId" : "6317d2003d24842ff850182a",
      "deploymentId" : 400000012
    }
  ]
}
}

Model: Mac14,2, BootROM 8422.100.650, proc 8:4:4 processors, 24 GB, SMC 
Graphics: Apple M2, Apple M2, Built-In
Display: Color LCD, 2560 x 1664 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Mar  8 2023 18:27:05 version 20.96.27.0.8.7.144 FWID 01-ec2ac09e
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
robb commented 1 year ago

We're investigating this separately, I believe this is a linker issue in the Short Circuit project (courtesy of Xcode not updating them when introducing a macOS destination after the fact).

robb commented 1 year ago

Yup, happy to report that this was indeed an Xcode problem (for low values of happy.)