handle dead CUDA contexts and empty ASR results
- detect unrecoverable CUDA errors before OOM retries and clear model caches\n- keep normal OOM retries to two attempts (configured batch, then 1)\n- do not create text.txt when ASR returns only whitespace\n- warn per file and report empty_result / lrc+empty in the summary\n- keep at least 12 log lines visible in the GUI
This commit is contained in:
@@ -219,7 +219,9 @@ class MainWindow(QMainWindow):
|
||||
self.log_view = QPlainTextEdit()
|
||||
self.log_view.setObjectName("log")
|
||||
self.log_view.setReadOnly(True)
|
||||
self.log_view.setMinimumHeight(240)
|
||||
# Keep at least ~12 log lines visible regardless of the UI font size.
|
||||
line_height = self.log_view.fontMetrics().lineSpacing()
|
||||
self.log_view.setMinimumHeight(max(280, line_height * 12 + 24))
|
||||
self.log_view.setPlaceholderText("Здесь появится лог выполнения…")
|
||||
root.addWidget(self.log_view, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user