electron mac app crash on the testFlight [Namespace CODESIGNING, Code 2]

crash log

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

Process:               OneKey [20876]
Path:                  /Applications/OneKey.app/Contents/MacOS/OneKey
Identifier:            so.onekey.wallet
Version:               3.16.2 (202211070943)
App Item ID:           1609559473
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-11-07 17:32:42.4372 +0800
OS Version:            macOS 12.5 (21G72)
Report Version:        12
Anonymous UUID:        

Sleep/Wake UUID:       5E78A6FD-4E76-458B-B1F7-DC8CCC4497B6

Time Awake Since Boot: 80000 seconds
Time Since Wake:       7078 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x0000000148048a40
Exception Codes:       0x0000000000000032, 0x0000000148048a40
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace CODESIGNING, Code 2

VM Region Info: 0x148048a40 is in 0x148048000-0x14807c000;  bytes after start: 2624  bytes before end: 210367
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      Memory Tag 255              148044000-148048000    [   16K] ---/rwx SM=NUL  
--->  Memory Tag 255              148048000-14807c000    [  208K] r-x/rwx SM=PRV  
      Memory Tag 255              14807c000-14fe80000    [126.0M] ---/rwx SM=NUL  

Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   ???                                      0x148048a40 ???
1   ???                                      0x14fe8c918 ???
2   ???                                      0x14ff1fe4c ???
3   ???                                      0x14fe8c918 ???
4   ???                                      0x14fe8ab4c ???
5   ???                                      0x14fe8a7e8 ???
6   Electron Framework                       0x115ffcbb0 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 2080
7   Electron Framework                       0x115ffc41c v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 140
8   Electron Framework                       0x115eff0b0 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 356
9   Electron Framework                       0x11ac00720 node::MultiIsolatePlatform::Create(int, v8::TracingController*, v8::PageAllocator*) + 804
10  Electron Framework                       0x11ac00518 node::MultiIsolatePlatform::Create(int, v8::TracingController*, v8::PageAllocator*) + 284
11  Electron Framework                       0x11ac00638 node::MultiIsolatePlatform::Create(int, v8::TracingController*, v8::PageAllocator*) + 572
12  Electron Framework                       0x11ac007f0 node::NewContext(v8::Isolate*, v8::Local<v8::ObjectTemplate>) + 112
13  Electron Framework                       0x115193a34 v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>) + 9516
14  Electron Framework                       0x11517f870 v8::internal::compiler::RawMachineAssembler::TargetParameter() + 5588
15  Electron Framework                       0x116d227bc v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3293908
16  Electron Framework                       0x116d25bb4 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3307212
17  Electron Framework                       0x116d22180 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 3292312
18  Electron Framework                       0x11534588c v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 13620
19  Electron Framework                       0x1153468b0 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 17752
20  Electron Framework                       0x115346448 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 16624
21  Electron Framework                       0x115344f50 v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 11256
22  Electron Framework                       0x11534541c v8::internal::compiler::BasicBlock::set_loop_header(v8::internal::compiler::BasicBlock*) + 12484
23  Electron Framework                       0x1150bf12c ElectronMain + 128
24  dyld                                     0x104d4908c start + 520

...

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000002   x1: 0x00000074000452c1   x2: 0x0000000148048a40   x3: 0x00000074000023e9
    x4: 0x00000074002516f5   x5: 0x0000000000000811   x6: 0x0000007400045255   x7: 0x0000000000000000
    x8: 0x0000000000242159   x9: 0x0000007400005c35  x10: 0x0000000000242159  x11: 0x00000000000000f1
   x12: 0x0000000000002000  x13: 0x0000000000000302  x14: 0x000000000000000c  x15: 0x000000011b06ce80
   x16: 0x0000000000000004  x17: 0x0000000148048a40  x18: 0x0000000000000000  x19: 0x0000000000000067
   x20: 0x0000007400254305  x21: 0x000000011f014a10  x22: 0x0000000000000016  x23: 0x00000000000000b7
   x24: 0x0000007400005db5  x25: 0x00000000a04425fa  x26: 0x0000000128008000  x27: 0x0000007400045255
   x28: 0x0000007400000000   fp: 0x000000016b4aa930   lr: 0x000000014fe8c918
    sp: 0x000000016b4aa860   pc: 0x0000000148048a40 cpsr: 0x40001000
   far: 0x0000000148048a40  esr: 0x8200000f (Instruction Abort) Permission fault

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x114f08000 -        0x11bed7fff com.github.Electron.framework (*) <4c4c4472-5555-3144-a157-f562934e98a4> /Applications/OneKey.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
       0x104d44000 -        0x104da3fff dyld (*) <75627683-a780-32ad-ae34-cf86dd23a26b> /usr/lib/dyld
       0x18a601000 -        0x18a60dfff libsystem_pthread.dylib (*) <f32ff902-ba43-30b0-ad43-a2a8a9ff69fe> /usr/lib/system/libsystem_pthread.dylib
       0x18a5c9000 -        0x18a600fff libsystem_kernel.dylib (*) <67f22904-88ed-3847-bbf0-5c4c599fd79e> /usr/lib/system/libsystem_kernel.dylib

Post not yet marked as solved Up vote post of jellySha Down vote post of jellySha
1.3k views

Replies

Have been stuck with this problem for a week. Help me

I have a hierarchy of posts rooted at Resolving Trusted Execution Problems that explain how to investigate such issues. Scroll down to Non-Code Signing Failures After Launch for specific recommendations.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I've been having the same kind of problems for two months on my MacBook Pro. It started with the following error message: "Volume Hash mismatch. Hash mismaatch detected on the disk volume."

I ignored this message for a while and then my Mac started doing untimely restarts due to "CPU Panic" I wiped the disks and then reinstalled the OS twice, once myself, once through the Genius Bar and yet today, with a reset Mac and without reinstalling my Time Machine backup the problem starts again. Apple support can't help me, they analyzed the computer but no hardware problem is involved (I imagined a problem with the memory...). I'm going to test several configurations with and without some of the software I use to see if there are any compatibility issues, versioning, etc.....

If I find something I'll post it here, if you are making progress I'm interested to know your solutions. Good luck!

Any news on this issue? I'm still facing this problem

Any news on this issue?

Which issue? The two posts on this thread seem to be talking about very different problems:

  • jellySha’s issue is a trusted execution problem which I addressed in my initial reply.

  • Yoann_fr’s issue is a kernel panic, which falls under the purview of Apple Support rather than DTS.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"