Handle renderer process not starting at all
This commit is contained in:
parent
2b76cca2b2
commit
3de2bfb277
@ -78,7 +78,8 @@ TerminationStatus = usertypes.enum('TerminationStatus', [
|
|||||||
'normal',
|
'normal',
|
||||||
'abnormal', # non-zero exit status
|
'abnormal', # non-zero exit status
|
||||||
'crashed', # e.g. segfault
|
'crashed', # e.g. segfault
|
||||||
'killed'
|
'killed',
|
||||||
|
'unknown',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
@ -693,6 +693,8 @@ class WebEngineTab(browsertab.AbstractTab):
|
|||||||
browsertab.TerminationStatus.crashed,
|
browsertab.TerminationStatus.crashed,
|
||||||
QWebEnginePage.KilledTerminationStatus:
|
QWebEnginePage.KilledTerminationStatus:
|
||||||
browsertab.TerminationStatus.killed,
|
browsertab.TerminationStatus.killed,
|
||||||
|
-1:
|
||||||
|
browsertab.TerminationStatus.unknown,
|
||||||
}
|
}
|
||||||
self.renderer_process_terminated.emit(status_map[status], exitcode)
|
self.renderer_process_terminated.emit(status_map[status], exitcode)
|
||||||
|
|
||||||
|
@ -677,6 +677,8 @@ class TabbedBrowser(tabwidget.TabWidget):
|
|||||||
message.error("Renderer process crashed")
|
message.error("Renderer process crashed")
|
||||||
elif status == browsertab.TerminationStatus.killed:
|
elif status == browsertab.TerminationStatus.killed:
|
||||||
message.error("Renderer process was killed")
|
message.error("Renderer process was killed")
|
||||||
|
elif status == browsertab.TerminationStatus.unknown:
|
||||||
|
message.error("Renderer process did not start")
|
||||||
else:
|
else:
|
||||||
raise ValueError("Invalid status {}".format(status))
|
raise ValueError("Invalid status {}".format(status))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user