使用 electron-packager 打包的电子应用程序正在崩溃并生成转储文件。
我能够使用 breakpad、minidump_stackwalk 来查看转储文件的一部分。这是输出的快照,
7 0x7fff6026ec5d
rbp = 0x0000700005badf78 rsp = 0x0000700005badf60
rip = 0x00007fff6026ec5d
Found by: previous frame's frame pointer
8 Electron Framework + 0x2608a0
rsp = 0x0000700005bae028 rip = 0x000000010d94a8a0
Found by: stack scanning
Thread 18
0 0x7fff60134562
rax = 0x0000000002000170 rdx = 0x0000000000000000
rcx = 0x0000700001a0fee8 rbx = 0x0000700001a10000
rsi = 0x0000000000000000 rdi = 0x0000000000000004
rbp = 0x0000700001a0ff50 rsp = 0x0000700001a0fee8
r8 = 0x0000000000000fff r9 = 0x00007fbc4b654000
r10 = 0x0000000000000000 r11 = 0x0000000000000246
r12 = 0x0000000000000001 r13 = 0x0000000000250015
r14 = 0x0000000000000000 r15 = 0x0000000000000004
rip = 0x00007fff60134562
Found by: given as instruction pointer in context
1 0x7fff6026ec4d
rbp = 0x0000700001a0ff78 rsp = 0x0000700001a0ff60
rip = 0x00007fff6026ec4d
Found by: previous frame's frame pointer
Loaded modules:
0x10d6e7000 - 0x10d6e7fff Electron Helper 0.0.0.0 (main) (WARNING: No symbols, Electron Helper, 26BF611B7ACC305A9FC5C535A513256F0)
0x10d6ea000 - 0x11164ffff Electron Framework 0.0.0.0
0x111ba5000 - 0x111bbffff Squirrel 1.0.0.0
0x111be1000 - 0x111c44fff ReactiveCocoa 1.0.0.0
0x111cb6000 - 0x111ccafff Mantle 1.0.0.0
0x111cdc000 - 0x112beefff libnode.dylib 0.0.0.0
0x112e7f000 - 0x1130e3fff libffmpeg.dylib 0.0.0.0
0x116972000 - 0x1169bcfff dyld 0.0.0.0
此信息在识别崩溃时不是很有用。有没有办法获得发生崩溃的应用程序代码的堆栈跟踪?
另外,我不确定 WARNING 消息是否相关,或者如果是,如何修复它。
我看过,
还有这本书,开发电子边缘
但似乎缺乏关于调试电子崩溃报告的文档。