73 Commits

Author SHA1 Message Date
Nino van Hooff
62dfadecdf Prune all sensitive data before sending it to Sentry
CURA-7245
2020-02-24 15:27:17 +01:00
Jaime van Kessel
e74f049142
Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
Thomas Karl Pietrowski
ba5a0b0085 SentrySDK: Turn on deep integration on demand
Only whenever the sentry_sdk module is there functions of this module will be used.
The only changes, which were needed to be made, are done on cura_app.py and cura.CrashHandler.
Whenever the module is not available, it's functions will be omitted.

The if-clauses could happen earlier, but this at least the bare minimum, and, to be honest, on Ultimaker's distribution it won't speed up anything.
I expect the if-clause to take the same amount of runtime sooner or later. The check is the same and it should be on Ultimaker's distribution always be "True".

Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com> (github: thopiekar)
2020-01-02 22:22:44 +01:00
Jaime van Kessel
0295113b31
Add user (identified by MAC) & ensure that no personal info is in server_name 2019-12-19 11:23:39 +01:00
Jaime van Kessel
c15599f1c4
Add some extra info to crash handler screen 2019-12-16 11:23:12 +01:00
Jaime van Kessel
8fa6239365
Fix spelling mistake 2019-12-16 11:08:09 +01:00
Jaime van Kessel
157a25a992
Fix minor codestyle issues 2019-12-16 11:06:48 +01:00
Remco Burema
76401d78a9
Sentry: Add locale (both cura and os) to tags. 2019-12-13 16:53:17 +01:00
Jaime van Kessel
028a60318c
Add extra tag if crash was during startup or not 2019-11-22 15:43:45 +01:00
Jaime van Kessel
466c90ca6c
Add some extra context info to the crashes 2019-11-22 14:41:54 +01:00
Jaime van Kessel
c7649e3db1
Add some extra tags to make crash reports more traceable 2019-11-22 14:04:35 +01:00
Jaime van Kessel
23057f786f
Add initial stubs for sentry logging 2019-11-22 12:59:05 +01:00
Lipu Fei
6b93c97a5e Use certifi for uploading crash reports
CURA-6698
2019-08-14 14:55:36 +02:00
Remco Burema
4813ff0bb7 Ask users to write English in crash-report. 2019-05-17 10:37:25 +02:00
Aleksei S
e8cf9e034d Catch All Exception except: SystemExit, KeyboardInterrupt, GeneratorException
CURA-5939
2018-12-06 13:41:50 +01:00
Ghostkeeper
fce703536b
Move factory reset to Uranium
This way it can be called from other crash handling routines there too, such as ConfigurationErrorMessage which may be triggered by arbitrary configuration errors in Uranium.

Contributes to issue CURA-5045.
2018-03-28 08:43:46 +02:00
Ghostkeeper
2214a5f40a
Remove duplicate imports
Contributes to issue CURA-5045.
2018-03-27 16:30:10 +02:00
Ghostkeeper
da0d7a25c3
Remove semicolon
What is this? Java???

Contributes to issue CURA-5045.
2018-03-27 16:02:43 +02:00
Mark
e2478b636a Typo 2018-03-22 09:49:22 +01:00
Mark
46e53ff0c3 Clarify text
CURA-4833
2018-03-21 10:26:23 +01:00
Ghostkeeper
5d2e98cdd4
Translate to American English
The spelling in AmE is with a Z.
2018-03-09 15:55:27 +01:00
Ghostkeeper
71afbba789
Merge branch '3.2' 2018-03-09 15:36:51 +01:00
fieldOfView
51062a4784 Add a button to open the configuration folder. 2018-02-19 15:30:39 +01:00
fieldOfView
ca3dd511a8 Add a button to open the configuration folder. 2018-02-15 16:39:37 +01:00
Mark
c508e77fe2 Improved the text 2018-02-15 15:49:06 +01:00
Jack Ha
8bb70d6cc2 CURA-4934 fix crash handler cleanup in some rare case 2018-02-08 14:19:47 +01:00
Lipu Fei
8ffd5442e7 Fix indexing error in CrashHandler
CURA-4895
2018-02-06 10:53:12 +01:00
Lipu Fei
4438e06416
Remove TODO
CURA-4895
2018-02-05 17:21:51 +01:00
Diego Prado Gesto
a85a720184 CURA-4895 Close the splash screen when the early crash dialog appears. Increase the size of 'show detailed crash report button' 2018-02-05 17:17:46 +01:00
Diego Prado Gesto
383319d631 CURA-4895 Correctly format the date for the backup file 2018-02-05 11:28:17 +01:00
Lipu Fei
b59eadce1c Fix AutoSave crashing the early crash dialog
CURA-4895
2018-02-05 11:28:16 +01:00
Lipu Fei
547baff239 Always show crash dialog
CURA-4895
2018-02-05 11:27:40 +01:00
Lipu Fei
30b1e74881 Fixes for early crash dialog
CURA-4895
2018-02-05 11:26:38 +01:00
Lipu Fei
6bbc18d51e Make an extra early crash dialog
CURA-4895

An early crash dialog showing options to backup the current user data
and reset the configuration files.
2018-02-05 11:26:37 +01:00
Lipu Fei
1d946085d3 Make crash dialog available before Application starts
CURA-4895
2018-02-05 11:26:34 +01:00
Lipu Fei
7dfc1a4aa7 Add encoding='utf-8' for text file reading
CURA-4875

When encoding is not provided, the behaviour is system dependent and it
can break on OS X.
2018-01-29 12:29:20 +01:00
fieldOfView
77daad1f98 Also exit when the crash handler dialog is not created 2017-12-18 12:19:56 +01:00
fieldOfView
d839b62e42 Prevent CrashHandler creating a QWidget before QApplication is created 2017-12-18 12:18:22 +01:00
Ghostkeeper
9ea0119011
Rename 'exception' to 'error'
Error is a less technical term, so it's more user friendly.
2017-12-13 12:58:24 +01:00
ChrisTerBeke
e6e8353ea8
Merge pull request #2838 from fieldOfView/fix_crashhandler_crash
Fix error when CrashHandler is opened before opengl is initialised
2017-11-27 17:18:38 +01:00
fieldOfView
77d134a3b7 Fix python error when CrashHandler is opened before opengl is initialised
Contributes to #2837
2017-11-24 16:55:18 +01:00
Ghostkeeper
4a8dacbe06
Make crash handler easier to translate
All that formatting doesn't need to be translated along. It's only confusing, especially because of those variable names. They always need to be in that position anyway.

Contributes to issue CURA-4601.
2017-11-24 13:16:14 +01:00
Aleksei S
6cea9c59e8 Prevent crash handler exception 2017-11-24 11:59:09 +01:00
Diego Prado Gesto
b9c318d432 CURA-4451 Minor changes 2017-10-26 16:53:31 +02:00
ChrisTerBeke
560be2931a Create empty not supported container dynamically when no qualities are found - CURA-4451 2017-10-23 15:41:45 +02:00
Lipu Fei
44d5323779 Run crash dialog on Qt thread so the GUI gets updated correctly
CURA-4195
2017-10-17 09:38:43 +02:00
Lipu Fei
396d960f4a Fix code style
CURA-4195
2017-10-17 09:30:49 +02:00
A.Sasin
b32f3f9f77 Adjusted Crash report message title
CURA-4195
2017-10-16 13:42:29 +02:00
Diego Prado Gesto
74c37dfc65 CURA-4195 Add strings for I18N 2017-10-13 16:32:01 +02:00
Diego Prado Gesto
de260683cf CURA-4195 - Add module name to the crash report 2017-10-13 10:43:58 +02:00