Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS app is crashed EXC_CRASH (SIGKILL (Code Signature Invalid)) #8747

Open
saikumarsalientminds opened this issue Dec 20, 2024 · 1 comment

Comments

@saikumarsalientminds
Copy link

  • Electron-Builder Version: 25.1.7
  • Node Version: v18.20.5
  • Electron Version: 32.1.2
  • Electron Type (current, beta, nightly): 1.6.10
  • Target: dmg

I have installed the code sign in certificates still while installing my app is crashed getting below error

Translated Report (Full Report Below)

Incident Identifier: 904C40BD-D3DB-4BD8-8C43-5F014009E067
CrashReporter Key: 6560CB55-3945-8825-95C8-4B1B21F437E2
Hardware Model: MacBookPro15,1
Process: xnode [5798]
Path: /Applications/xnode.app/Contents/MacOS/xnode
Identifier: ai.xnode.xnode
Version: 1.0.0 (1.0.0.43313)
Code Type: X86-64 (Native)
Role: Default
Parent Process: launchd [1]
Coalition: ai.xnode.xnode [5056]

Date/Time: 2024-12-03 17:11:36.2377 +0530
Launch Time: 2024-12-03 17:11:36.2077 +0530
OS Version: macOS 14.6.1 (23G93)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 1 Taskgated Invalid Signature

Triggered by Thread: 0

Thread 0 Crashed:
0 dyld_path_missing 0x10dbb4010 _dyld_start + 0
1 main_executable_path_missing 0x10b395000 ???

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ff7b4b6abf8
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000010dbb4010 rfl: 0x0000000000000200 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0

Binary Images:
0x10dbaf000 - 0x10dc3ffff dyld_path_missing () <18f658dd-20f3-324d-b7ac-8a9c60b574b3> /dyld_path_missing
0x10b395000 - 0x10b396fff main_executable_path_missing (
) <4c4c4492-5555-3144-a1c1-209695d9a65e> /main_executable_path_missing
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF


Full Report

{"app_name":"xnode","timestamp":"2024-12-03 17:11:36.00 +0530","app_version":"1.0.0","slice_uuid":"4c4c4492-5555-3144-a1c1-209695d9a65e","build_version":"1.0.0.43313","platform":0,"bundleID":"ai.xnode.xnode","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.6.1 (23G93)","roots_installed":0,"name":"xnode","incident_id":"904C40BD-D3DB-4BD8-8C43-5F014009E067"}
{
"uptime" : 27000,
"procRole" : "Default",
"version" : 2,
"userID" : 503,
"deployVersion" : 210,
"modelCode" : "MacBookPro15,1",
"coalitionID" : 5056,
"osVersion" : {
"train" : "macOS 14.6.1",
"build" : "23G93",
"releaseType" : "User"
},
"captureTime" : "2024-12-03 17:11:36.2377 +0530",
"codeSigningMonitor" : 0,
"incident" : "904C40BD-D3DB-4BD8-8C43-5F014009E067",
"pid" : 5798,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-12-03 17:11:36.2077 +0530",
"procStartAbsTime" : 27874128929378,
"procExitAbsTime" : 27874158552827,
"procName" : "xnode",
"procPath" : "/Applications/xnode.app/Contents/MacOS/xnode",
"bundleInfo" : {"CFBundleShortVersionString":"1.0.0","CFBundleVersion":"1.0.0.43313","CFBundleIdentifier":"ai.xnode.xnode"},
"storeInfo" : {"deviceIdentifierForVendor":"B2B1F77D-198B-5735-8A6D-4E503A313FA3","thirdParty":true},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "ai.xnode.xnode",
"crashReporterKey" : "6560CB55-3945-8825-95C8-4B1B21F437E2",
"codeSigningID" : "",
"codeSigningTeamID" : "",
"codeSigningFlags" : 16777216,
"codeSigningValidationCategory" : 0,
"codeSigningTrustLevel" : 4294967295,
"wakeTime" : 2084,
"bridgeVersion" : {"build":"21P6074","train":"8.6"},
"sleepWakeUUID" : "DA885B17-D0FD-4C88-B968-7A9D774EE30C",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL (Code Signature Invalid)"},
"termination" : {"flags":66,"code":1,"namespace":"CODESIGNING","indicator":"Taskgated Invalid Signature"},
"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":338642,"threadState":{"r13":{"value":0},"rax":{"value":0},"rflags":{"value":512},"cpu":{"value":0},"r14":{"value":0},"rsi":{"value":0},"r8":{"value":0},"cr2":{"value":0},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":0},"rbx":{"value":0},"trap":{"value":0},"err":{"value":0},"r11":{"value":0},"rip":{"value":4525342736,"matchesCrashFrame":1},"rbp":{"value":0},"rsp":{"value":140701865520120},"r12":{"value":0},"rcx":{"value":0},"flavor":"x86_THREAD_STATE","rdi":{"value":0}},"frames":[{"imageOffset":20496,"symbol":"_dyld_start","symbolLocation":0,"imageIndex":0},{"imageOffset":0,"imageIndex":1}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "x86_64",
"base" : 4525322240,
"size" : 593920,
"uuid" : "18f658dd-20f3-324d-b7ac-8a9c60b574b3",
"path" : "/dyld_path_missing",
"name" : "dyld_path_missing"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4483272704,
"size" : 8192,
"uuid" : "4c4c4492-5555-3144-a1c1-209695d9a65e",
"path" : "/main_executable_path_missing",
"name" : "main_executable_path_missing"
},
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=912K resident=0K(0%) swapped_out_or_unallocated=912K(100%)\nWritable regions: Total=8200K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8200K(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nSTACK GUARD 56.0M 1 \nStack 8192K 1 \nVM_ALLOCATE 4K 1 \n__DATA 16K 3 \n__DATA_CONST 28K 2 \n__DATA_DIRTY 8K 2 \n__LINKEDIT 336K 4 \n__TEXT 588K 2 \nmapped file 3.9G 26 \nshared memory 8K 2 \n=========== ======= ======= \nTOTAL 4.0G 44 \n",
"legacyInfo" : {
"threadTriggered" : {

}
},
"logWritingSignature" : "754a793bc2c1e89860122e36486a379d8586d36d",
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "63508950b3714d3622fc77f7",
"factorPackIds" : {
"SIRI_MEMORY_SYNC_CONFIG" : "6526e111d0c9ce2f459b54a8"
},
"deploymentId" : 240000015
},
{
"rolloutId" : "60186475825c62000ccf5450",
"factorPackIds" : {

  },
  "deploymentId" : 240000083
}

],
"experiments" : [
{
"treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
"experimentId" : "6643969b3099cf28e049862f",
"deploymentId" : 400000007
}
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}

Model: MacBookPro15,1, BootROM 2022.140.5.0.0 (iBridge: 21.16.6074.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 16 GB, SMC
Graphics: Intel UHD Graphics 630, Intel UHD Graphics 630, Built-In
Display: Color LCD, 2880 x 1800 Retina, Main, MirrorOff, Online
Graphics: Radeon Pro 555X, Radeon Pro 555X, PCIe, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2400 MHz, Micron, 8ATF1G64HZ-2G6E1
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2400 MHz, Micron, 8ATF1G64HZ-2G6E1
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x7BF), wl0: Jul 10 2023 12:30:19 version 9.30.503.0.32.5.92 FWID 01-88a8883
AirPort:
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: 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., 47.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.5

my package.json:
"mac": {
"category": "public.app-category.utilities",
"protocols": [
{
"name": "myapp Protocol",
"schemes": [
"myapp"
]
}
],
"extendInfo": {
"ElectronTeamID": "QY54GWP397"
},
"target": ["dmg"],
"icon": "build/icons/myapp.icns",
"hardenedRuntime": true,
"entitlements": "entitlements.mac.plist",
"provisioningProfile": "./profile/myapp_mac_app_1.provisionprofile",
"gatekeeperAssess": false
},
"dmg": {
"sign": true
},

@anchel
Copy link

anchel commented Dec 30, 2024

remove hardenedRuntime and try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants