You need to enable JavaScript to run this app.
导航

异常监控初始化失败

最近更新时间2024.01.08 14:53:28

首次发布时间2024.01.08 14:53:28

不同的系统中,异常监控初始化失败可能是不同的原因导致,具体请参见下表。

系统

可能的原因

通用

database路径参数非法或无权限。

Windows

基本上都是parfait_crash_handler.exe路径错误,检查路径。
Windows下,如果基于QT的QCoreApplication::applicationDirPath()去构造路径,会导致路径设置不对,建议使用windows API GetModuleFileName来获取文件路径,参考示例:

char szCurrentFilePath[1024];
RtlZeroMemory(szCurrentFilePath, sizeof(szCurrentFilePath));
GetModuleFileNameA(NULL, (LPSTR)szCurrentFilePath, sizeof(szCurrentFilePath));
PathRemoveFileSpecA((LPSTR)szCurrentFilePath);
QString szCurrentDir = QString(szCurrentFilePath) + "\\crash\\";
parfait_wrapper->InitCrashServer(szCurrentDir.toStdString().c_str());

Mac

  • Parfait.framework/Resources/parfait_crash_handler二进制没有执行权限
  • 沙盒应用未按要求适配初始化