17 Commits

Author SHA1 Message Date
Arjen Hiemstra
2e894477c8 Make Debug mode a build-time option instead of a hardcoded value 2016-12-15 16:46:13 +01:00
Arjen Hiemstra
a2f98638cf Fix the crash handler string so we get no errors from gettext
Contributes to CURA-3123
2016-12-12 16:02:12 +01:00
Arjen Hiemstra
75fc2505e3 Make the crash dialog a bit more friendly 2016-12-08 16:15:17 +01:00
Arjen Hiemstra
1de8024193 Re-enable Debug mode by default
As discussed a while ago, we want to re-enable the crash dialog whenever
an uncaught exception occurs.
2016-12-08 16:15:17 +01:00
Arjen Hiemstra
d641234a74 Remove "debug mode" command line parameter
We never used it and it doesn't really work anyway.
2016-12-08 16:15:17 +01:00
Arjen Hiemstra
a4e37d9ae7 Mark certain types of exceptions as fatal and abort the application if they occur
We simply cannot recover properly from things like an uncaught
MemoryError since that usually means any follow up operation will also
fail. So Instead of silently ignoring it and having the application in a
broken state we properly abort.

Right now the list of fatal exceptions is a bare minimum that contains
the most prominent things we cannot recover from.
2016-06-10 15:08:16 +02:00
Arjen Hiemstra
44f8744c84 Use the Logger to report uncaught exceptions
Makes for a nicer and clearer output of uncaught exceptions
2016-06-10 14:56:08 +02:00
Arjen Hiemstra
a435004459 Fix crash handler to not complain about debug_mode not being set 2015-10-08 11:54:22 +02:00
Arjen Hiemstra
ba86352642 Fix issues with crash handler and log file creation on Windows 2015-10-05 18:32:44 +02:00
Arjen Hiemstra
03748ca19a Disable crash handler if debug mode is not enabled 2015-10-05 14:13:49 +02:00
Arjen Hiemstra
2ea0a3c02a Fix strings in crash handler
Contributes to CURA-132
2015-09-10 16:54:20 +02:00
Tamara Hogenhout
ff855ccf1b adds/adapts translation context markers
all nescessary in folder: Cura/cura

Contributes to: issue CURA-116
2015-09-08 13:34:35 +02:00
Tamara Hogenhout
e8c796ee24 adds/adapts translation context markers
all nescessary in folder: Cura/cura

Contributes to: issue CURA-116
2015-09-08 12:29:05 +02:00
Arjen Hiemstra
79bd590656 Print backtrace on console when we are not running a py2exe/py2app build 2015-08-19 19:13:44 +02:00
Arjen Hiemstra
543c58d57a Use sys.exit() instead of exit()
Apparently there is a difference...
2015-08-04 15:38:19 +02:00
Arjen Hiemstra
803b4fde8d Handle all uncaught exceptions through CrashHandler and gracefully fail if we have no QCoreApplication 2015-08-04 10:31:25 +02:00
Arjen Hiemstra
8130bae4c0 Add a crash handler to catch uncaught exceptions
This should catch any uncaught exceptions and avoid the Py2Exe message
about Cura.log

Fixes #133
2015-07-13 16:54:40 +02:00