Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when hot reloading from VS Code while a tool is active #1391

Open
jlampel opened this issue Jan 6, 2025 · 0 comments
Open

Error when hot reloading from VS Code while a tool is active #1391

jlampel opened this issue Jan 6, 2025 · 0 comments
Labels
bug v4 Applies to RF version 4x

Comments

@jlampel
Copy link
Member

jlampel commented Jan 6, 2025

When saving any change in VS Code while working on the add-on live, even a simple UI one, and at least on Windows and with Blender 4.3 while a RF tool is active, I get the following error:

127.0.0.1 - - [06/Jan/2025 11:47:23] "GET / HTTP/1.1" 200 -
Got POST: {'type': 'reload', 'names': ['retopoflow'], 'dirs': ['c:\\Users\\jonat\\Documents\\GitHub\\retopoflow']}
127.0.0.1 - - [06/Jan/2025 11:47:24] "POST / HTTP/1.1" 200 -
RFCore_Operator.__del__!!! True
Error in bpy.app.handlers.depsgraph_update_pre[0]:
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\screencast_keys\ops.py", line 1637, in sort_modalhandlers
    op = handler.op.contents
         ^^^^^^^^^^^^^^^^^^^
ValueError: NULL pointer access
Error in bpy.app.handlers.depsgraph_update_pre[1]:
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\screencast_keys\ops.py", line 1528, in auto_save
    op = handler.op.contents
         ^^^^^^^^^^^^^^^^^^^
ValueError: NULL pointer access
Addon Common: use_bgl_default=False use_gpu_default=True use_gpu_scissor=True
Sending: {'type': 'addonUpdated'}

Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\retopoflow\retopoflow\rfoverlays\loopstrip_selection_overlay.py", line 79, in draw_postpixel_overlay
    is_done = (self.RFCore.selected_RFTool_idname != rftool_idname)
               ^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\scripts\modules\bpy_types.py", line 936, in __getattribute__
    properties = _StructRNA.path_resolve(self, "properties")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ReferenceError: StructRNA of type RFOperator_LoopStrip_Selection_Overlay has been removed
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\retopoflow\retopoflow\rfoverlays\loopstrip_selection_overlay.py", line 79, in draw_postpixel_overlay
    is_done = (self.RFCore.selected_RFTool_idname != rftool_idname)
               ^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\scripts\modules\bpy_types.py", line 936, in __getattribute__
    properties = _StructRNA.path_resolve(self, "properties")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ReferenceError: StructRNA of type RFOperator_LoopStrip_Selection_Overlay has been removed
@jlampel jlampel added bug v4 Applies to RF version 4x labels Jan 6, 2025
@jlampel jlampel changed the title Error when hot reloading RF4 from VS Code Error when hot reloading from VS Code while a tool is active Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug v4 Applies to RF version 4x
Projects
None yet
Development

No branches or pull requests

1 participant