mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 02:57:39 +00:00
feature add sentry for catch crash on win (#50)
* feature add sentry for soft catch dmp * feature add cli upload pdb to sentry server * feature add flag for control sentry to use * fix flag not effect on src/makefile * feature unzip for dmp file to upload sentry server * feature remove test code * feature add api for function report log to server * feature update the soft version
This commit is contained in:
@@ -511,7 +511,8 @@ endif ()
|
||||
encoding_check(libslic3r)
|
||||
|
||||
target_compile_definitions(libslic3r PUBLIC -DUSE_TBB -DTBB_USE_CAPTURED_EXCEPTION=0)
|
||||
target_include_directories(libslic3r PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
# Make source directory PUBLIC so other modules (like libslic3r_gui) can include headers like SentryWrapper.hpp
|
||||
target_include_directories(libslic3r PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
target_include_directories(libslic3r SYSTEM PUBLIC ${EXPAT_INCLUDE_DIRS})
|
||||
|
||||
# Find the OCCT and related libraries
|
||||
@@ -610,3 +611,9 @@ endif()
|
||||
if (SLIC3R_PCH AND NOT SLIC3R_SYNTAXONLY)
|
||||
add_precompiled_header(libslic3r pchheader.hpp FORCEINCLUDE)
|
||||
endif ()
|
||||
|
||||
# Sentry crash reporting integration
|
||||
if (SLIC3R_SENTRY)
|
||||
target_compile_definitions(libslic3r PUBLIC SLIC3R_SENTRY)
|
||||
target_link_libraries(libslic3r PUBLIC sentry::sentry)
|
||||
endif()
|
||||
|
||||
@@ -1837,7 +1837,7 @@ void PresetBundle::export_selections(AppConfig &config)
|
||||
void PresetBundle::update_num_filaments(unsigned int to_del_filament_id)
|
||||
{
|
||||
unsigned old_filament_count = this->filament_presets.size();
|
||||
assert(to_del_flament_id < old_filament_count);
|
||||
assert(to_del_filament_id < old_filament_count);
|
||||
filament_presets.erase(filament_presets.begin() + to_del_filament_id);
|
||||
|
||||
ConfigOptionStrings* filament_color = project_config.option<ConfigOptionStrings>("filament_colour");
|
||||
|
||||
Reference in New Issue
Block a user