ubisoft / shotmanager

Shot Manager is a Blender add-on that introduces a true shot entity in Blender scenes, as well as a wide and powerful set of tools to build and edit sequences in real-time directly in the 3D context.
GNU General Public License v3.0
201 stars 30 forks source link

local variable 'event_handled' referenced before assignment #30

Closed j2l closed 2 years ago

j2l commented 2 years ago

Infos on the context

local variable 'event_handled' referenced before assignment

Traceback (most recent call last): File "/home/pm/.config/blender/2.93/scripts/addons/shotmanager/overlay_tools/interact_shots_stack/shots_stack.py", line 248, in modal if config.gRedrawShotStack or event_handled: UnboundLocalError: local variable 'event_handled' referenced before assignment

location: :-1 Error: Python: [ERROR] mpfb.init ..............................: Unhandled crash File "/home/pm/.config/blender/2.93/scripts/addons/shotmanager/overlay_tools/interact_shots_stack/shots_stack.py", line 248, in modal if config.gRedrawShotStack or event_handled:

local variable 'event_handled' referenced before assignment

Traceback (most recent call last): File "/home/pm/.config/blender/2.93/scripts/addons/shotmanager/overlay_tools/interact_shots_stack/shots_stack.py", line 248, in modal if config.gRedrawShotStack or event_handled: UnboundLocalError: local variable 'event_handled' referenced before assignment

location: :-1

drop file /home/pm/Documents/sower_rue.mkv Couldn't open indexer file: /home/pm/Documents/BL_proxy/sower_rue.mkv/record_run.blen_tc Starting work on proxy: /home/pm/Documents/BL_proxy/sower_rue.mkv/proxy_100_part.avi Starting work on index: /home/pm/Documents/BL_proxy/sower_rue.mkv/record_run.blen_tc Starting work on index: /home/pm/Documents/BL_proxy/sower_rue.mkv/free_run.blen_tc Starting work on index: /home/pm/Documents/BL_proxy/sower_rue.mkv/interp_free_run.blen_tc Starting work on index: /home/pm/Documents/BL_proxy/sower_rue.mkv/record_run_no_gaps.blen_tc Writing: /tmp/blender.crash.txt Segmentation fault (core dumped)

werwack commented 2 years ago

That's a weird bug... 😲 Looking at the code I can't see how the message "local variable 'event_handled' referenced before assignment" can appear... Can you confirm me your are well on 2.0.102 here? thank you

j2l commented 2 years ago

yes

werwack commented 2 years ago

Hi @j2l , I did a fix on the latest release, let me know if it works. Cf V2.0.225