mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: [STUDIO-2575] crash report invalid uft8 char
Change-Id: I7fd5290774d3d54efdee65bfe1191a932e252f87
This commit is contained in:
parent
ee2ef44dc7
commit
04d24fbb2f
1 changed files with 5 additions and 4 deletions
|
@ -1150,10 +1150,11 @@ void GUI_App::post_init()
|
||||||
json j;
|
json j;
|
||||||
j["time"] = file_name.substr(file_name.find("crash") + strlen("crash") + 1);
|
j["time"] = file_name.substr(file_name.find("crash") + strlen("crash") + 1);
|
||||||
j["verion"] = std::string(SLIC3R_VERSION);
|
j["verion"] = std::string(SLIC3R_VERSION);
|
||||||
j["content"] = data.str();
|
j["content"] = decode_path(data.str().c_str());
|
||||||
if (agent) {
|
try {
|
||||||
agent->track_event("studio_crash", j.dump());
|
if (agent) {
|
||||||
}
|
agent->track_event("studio_crash", j.dump()); }
|
||||||
|
} catch (...) {}
|
||||||
std::string new_file_name = file_name.insert(0, "_done_");
|
std::string new_file_name = file_name.insert(0, "_done_");
|
||||||
boost::filesystem::rename(iter->path(), iter->path().parent_path() / boost::filesystem::path(new_file_name + iter->path().extension().string()));
|
boost::filesystem::rename(iter->path(), iter->path().parent_path() / boost::filesystem::path(new_file_name + iter->path().extension().string()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue