diff --git a/preditor/gui/console_base.py b/preditor/gui/console_base.py index 507e2584..60e25866 100644 --- a/preditor/gui/console_base.py +++ b/preditor/gui/console_base.py @@ -8,7 +8,7 @@ from typing import Optional from Qt import QtCompat -from Qt.QtCore import Property, Qt +from Qt.QtCore import Property, Qt, QTimer from Qt.QtGui import ( QColor, QFontMetrics, @@ -514,8 +514,10 @@ def onFirstShow(self, event): if not self._first_show: return False - # Configure the stream callbacks if enabled - self.update_streams() + # Configure the stream callbacks if enabled. Delay calling these until + # the UI has been fully shown. This is prevents some DCC's like + # Houdini 21.0(possibly Qt6) from segfaulting. + QTimer.singleShot(0, self.update_streams) # Redefine highlight variables now that stylesheet may have been updated self.codeHighlighter().defineHighlightVariables()