macos - 如何符号化 Electron 崩溃日志

标签 macos crash electron debug-symbols

  • Electron 版本: Electron v1.6.7
  • 操作系统: Mac OS X 10.12.1

应用程序启动时崩溃

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   com.github.electron.framework   0x000000010e73d3f2 0x10e619000 +     1197042
1   com.github.electron.framework   0x000000010e7145e5 0x10e619000 + 1029605
2   com.github.electron.framework   0x000000010e71457d 0x10e619000 + 1029501
3   com.github.electron.framework   0x000000010e71403e 0x10e619000 + 1028158
4   com.github.electron.framework   0x000000010e713ed5 asar::GetOrCreateAsarArchive(base::FilePath const&) + 133
5   com.github.electron.framework   0x000000010e71428f asar::ReadFileToString(base::FilePath const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) + 79
6   com.github.electron.framework   0x000000010e702ac1 0x10e619000 + 957121
7   com.github.electron.framework   0x000000010e701b97 0x10e619000 + 953239
8   com.github.electron.framework   0x000000010e7019e5 atom::api::NativeImage::CreateFromPath(v8::Isolate*, base::FilePath const&) + 53
9   com.github.electron.framework   0x000000010e7025f2 mate::Converter<mate::Handle<atom::api::NativeImage>, void>::FromV8(v8::Isolate*, v8::Local<v8::Value>, mate::Handle<atom::api::NativeImage>*) + 66
10  com.github.electron.framework   0x000000010e728fb9 0x10e619000 + 1114041
11  com.github.electron.framework   0x000000010e674636 0x10e619000 + 374326

` 如何符号化 Electron 崩溃日志?

已经尝试:

  1. 下载 electro-v1.6.7-darwin-x64.zip 和 electro-v1.6.7-darwin-x64-dsym.zip
  2. 将其放在同一目录中
  3. /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash ./xxx.crash ./Electron.app.dSYM > xxxxsym.crash
  4. 因崩溃日志版本不受支持而失败:12
  5. atos -o ./Electron.app/Contents/MacOS/Electron -arch x86_64 -l 0x10e616000 0x000000010e73d3f2
  6. 除了输出 0x000000010e73d3f2 之外什么也没有

我如何符号化崩溃位置,例如

0 com.github.electron.framework     0x000000010e73d3f2 0x10e619000 + 1197042

最佳答案

Electron Framework.framework中的carshed,应该使用Electron Framework.framework.dSYM

喜欢:

xcrun atos -o ./Electron Framework.framework.dSYM/Contents/Resources/DWARF/Electron Framework -l 0x10e619000 0x000000010e73d3f2 -arch x86_64

关于macos - 如何符号化 Electron 崩溃日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46627220/

相关文章:

macos - 如何在 Emacs 24 的 Mac 上将元键从 alt 更改为 cmd?

c++ - 调试 C/C++ 语言不命中断点

javascript - pouchdb不在Linux上用electron和leveldb创建本地数据库

macos - OSX Homebrew错误: uninitialized constant MACOS

macos - 在 Atom 编辑器中的窗口之间移动的快捷键?

ios - 一旦与 Xcode 断开连接,应用程序将无法运行

ios - 来自 Apple App Store 的 EXC_BREAKPOINT (SIGTRAP) 崩溃报告。

python - Heroku H10错误— Python

node.js - 如何将 sqlite3 模块与 Electron 一起使用?

javascript - 如何在 Javascript 中使用 require 函数?