AIGODLIKE / ComfyUI-BlenderAI-node

Used for AI model generation, next-generation Blender rendering engine, texture enhancement&generation (based on ComfyUI)
GNU General Public License v3.0
889 stars 51 forks source link

Deleting node crashes Blender #110

Open AonoZan opened 5 months ago

AonoZan commented 5 months ago

Blender 4.1.1, Commit date: 2024-04-15 15:11, Hash e1743a0317bc

bpy.ops.node.select(deselect_all=True, select_passthrough=True, location=(1000, 394)) # Operator bpy.ops.node.delete() # Operator

backtrace

blender() [0xf00e20] blender() [0x82ae5b] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f02d3235520] blender() [0x142706b] blender() [0x1378f47] blender() [0x15174f1] blender(PyObject_SetAttr+0x1fc) [0x7a2e9c] blender(_PyEval_EvalFrameDefault+0x3a77) [0x7d9317] blender() [0x7d4d47] blender(_PyEval_EvalFrameDefault+0x4250) [0x7d9af0] blender() [0x7d4d47] blender() [0x77b594] blender() [0x15064cc] blender() [0x591d913] blender() [0xf5622f] blender() [0xf46608] blender() [0x717bad] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f02d321cd90] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f02d321ce40] blender() [0x826d4e]

Python backtrace

File "/home/USER/.config/blender/4.1/scripts/addons/ComfyUI-BlenderAI-node-main/SDNode/blueprints.py", line 130 in delegate File "/home/USER/.config/blender/4.1/scripts/addons/ComfyUI-BlenderAI-node-main/timer.py", line 23 in executor File "/home/USER/.config/blender/4.1/scripts/addons/ComfyUI-BlenderAI-node-main/timer.py", line 41 in run_ex File "/home/USER/.config/blender/4.1/scripts/addons/ComfyUI-BlenderAI-node-main/timer.py", line 29 in run1

atticus-lv commented 4 months ago

windows上能够复现此问题

bpy.ops.node.select(deselect_all=True, select_passthrough=True, location=(1088, 278))  # 操作项
bpy.ops.node.select_box(tweak=True, xmin=996, xmax=1088, ymin=278, ymax=612)  # 操作项
bpy.ops.node.select(deselect_all=True, select_passthrough=True, location=(582, 479))  # 操作项
bpy.ops.node.delete()  # 操作项

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF75B1B2DEB
Exception Module      : blender.exe
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
    Parameters[0] : 0x0000000000000000
    Parameters[1] : 0x0000000000000197

Stack trace:
blender.exe         :0x00007FF75B1B2DE0  Node_width_set
blender.exe         :0x00007FF75B1790C0  RNA_property_float_set
blender.exe         :0x00007FF75B2BE2B0  pyrna_py_to_prop
blender.exe         :0x00007FF75B2B6C60  pyrna_struct_setattro
python311.dll       :0x00007FFF3EEAFB20  PyObject_SetAttr
python311.dll       :0x00007FFF3EF89EE0  PyEval_EvalFrameDefault
python311.dll       :0x00007FFF3EF89EE0  PyEval_EvalFrameDefault
python311.dll       :0x00007FFF3EE64F90  PyFunction_Vectorcall
python311.dll       :0x00007FFF3EE64B90  PyVectorcall_Function
python311.dll       :0x00007FFF3EE64DE0  PyObject_Call
python311.dll       :0x00007FFF3EF936E0  PyEval_GetFuncDesc
python311.dll       :0x00007FFF3EF89EE0  PyEval_EvalFrameDefault
python311.dll       :0x00007FFF3EF89EE0  PyEval_EvalFrameDefault
python311.dll       :0x00007FFF3EE64F90  PyFunction_Vectorcall
python311.dll       :0x00007FFF3EE64630  PyBytes_Repeat
python311.dll       :0x00007FFF3EE650F0  PyObject_CallObject
blender.exe         :0x00007FF75B2C3010  py_timer_execute
blender.exe         :0x00007FF75D1CAF00  BLI_timer_execute
blender.exe         :0x00007FF75AE4EDA0  wm_event_do_notifiers
blender.exe         :0x00007FF75AE31D00  WM_main
blender.exe         :0x00007FF75A828530  main
blender.exe         :0x00007FF75D0D1B04  __scrt_common_main_seh
KERNEL32.DLL        :0x00007FF8EA797360  BaseThreadInitThunk
ntdll.dll           :0x00007FF8EAB3CC70  RtlUserThreadStart