You need to enable JavaScript to run this app.
文档中心
应用性能监控全链路版

应用性能监控全链路版

复制全文
下载 pdf
常见问题
异常监控初始化失败
复制全文
下载 pdf
异常监控初始化失败
不同的系统中,异常监控初始化失败可能是不同的原因导致,具体请参见下表。
系统
可能的原因
通用
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二进制没有执行权限
  • 沙盒应用未按要求适配初始化
最近更新时间:2025.03.07 14:58:07
这个页面对您有帮助吗?
有用
有用
无用
无用