Also ignore segfaults in paintEvent
This commit is contained in:
parent
2d0604ec08
commit
d2be8a28ca
@ -79,9 +79,10 @@ def get_fatal_crash_dialog(debug, data):
|
|||||||
debug: Whether the debug flag (--debug) was given.
|
debug: Whether the debug flag (--debug) was given.
|
||||||
data: The crash log data.
|
data: The crash log data.
|
||||||
"""
|
"""
|
||||||
|
ignored_frames = ['qt_mainloop', 'paintEvent']
|
||||||
errtype, frame = parse_fatal_stacktrace(data)
|
errtype, frame = parse_fatal_stacktrace(data)
|
||||||
|
|
||||||
if errtype == 'Segmentation fault' and frame == 'qt_mainloop':
|
if errtype == 'Segmentation fault' and frame in ignored_frames:
|
||||||
title = "qutebrowser was restarted after a fatal crash!"
|
title = "qutebrowser was restarted after a fatal crash!"
|
||||||
text = ("<b>qutebrowser was restarted after a fatal crash!</b><br/>"
|
text = ("<b>qutebrowser was restarted after a fatal crash!</b><br/>"
|
||||||
"Unfortunately, this crash occurred in Qt (the library "
|
"Unfortunately, this crash occurred in Qt (the library "
|
||||||
|
Loading…
Reference in New Issue
Block a user