State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:603282|
Problem summary:
The kSelectionChanged event can trigger while Nuke Studio is in the process of closing, which can cause crashes
Customer reported version:
Nuke Studio N/A
Customer reported platform:
N/A
Steps to reproduce:
1) Launch Nuke Studio and execute the following code in the Script Editor:
from hiero.core import events def on_selection_changed(event): nuke.tprint("selection changed") events.registerInterest("kSelectionChanged/kTimeline", on_selection_changed)2) Navigate to File > Import File(s)... and select some media to importkSelectionChanged event has occurred during shutdown, despite the selection not changing:kSelectionChanged events should only fire when the selection has changed.kSelectionChanged events to activate. If the function(s) registered to the kSelectionChanged event make adjustments inside the Nuke Studio project file, Nuke Studio can then crash during the shutdown process.from hiero.core import events def on_selection_changed(event): sequence = hiero.ui.activeSequence() sequence.setInTime(5) sequence.setOutTime(10) nuke.tprint("selection changed") events.registerInterest("kSelectionChanged/kTimeline", on_selection_changed) We're sorry to hear that
Please tell us why