State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:322624|
Problem summary
Nuke crashes when loading QGuiApplication.palette() in terminal mode (-t).
If you have a GUI Nuke session active or load in a non-gui based QPalette, then the issue does not seem to occur.
Customer reported version
nuke.n/a
Customer reported platform
Steps to reproduce
1) Open Nuke in terminal mode (-t)
2) Run the below two lines of code, Nuke will crash:
from PySide2.QtGui import QGuiApplication
QGuiApplication.palette()
from PySide2.QtCore import QCoreApplication
from PySide2.QtWidgets import QApplication
from PySide2.QtGui import QPalette
palette = None
if isinstance(QCoreApplication.instance(), QApplication):
palette = QGuiApplication.palette()
else:
palette = QPalette()
We're sorry to hear that
Please tell us why