Blender Crash with custom gizmo (EXCEPTION_ACCESS_VIOLATION, no python backtrace) #109111

Closed
opened 2023-06-18 20:33:55 +02:00 by yonghao lv · 9 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98

Blender Version
Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3
Worked: None

Short description of error
Using one specific custom gizmo will crash when spliting 3d view area, with no python backtrace crash log camerahelper.crash.txt

Exact steps for others to reproduce the error

  1. Install and enable the CameraHelper Addon CameraHelper v1.1.4.zip
  2. open the .blend file camerahelper.blend
  3. split the 3d view area
  4. crash
**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98 **Blender Version** Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` Worked: None **Short description of error** Using one specific custom gizmo will crash when spliting 3d view area, with no python backtrace crash log [camerahelper.crash.txt](/attachments/adfc1e73-2340-428b-80ac-1e5fab3c5b48) <video src="/attachments/4de99158-8988-44f4-bfed-fd4ddb03e8d6" title="2023-06-19 02-30-43.mp4" controls></video> **Exact steps for others to reproduce the error** 1. Install and enable the CameraHelper Addon [CameraHelper v1.1.4.zip](/attachments/d5031d64-6b1e-4855-831e-494f9c6cd562) 2. open the .blend file [camerahelper.blend](/attachments/ec576252-9be3-4276-ade1-237f4b4b5d6b) 3. split the 3d view area 4. crash
yonghao lv added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-18 20:33:56 +02:00

Hello, thanks for the report, but I'm not sure if we should disassemble the addon. Please report the bug to the author of the addon, or simplify it to a single file with as small a size as possible.

Hello, thanks for the report, but I'm not sure if we should disassemble the addon. Please report the bug to the author of the addon, or simplify it to a single file with as small a size as possible.
Iliya Katushenock added the
Interest
Python API
Interest
User Interface
labels 2023-06-18 20:41:12 +02:00
Author

Yeah, I am the author of this addon. I tested it for a while to find what code crash the blender. I just create a one-file-version addon to show this error @mod_moder

Steps:

  1. Please open gizmo crash.blend
  2. Run the script, you can see some difference in 2 views when playing the gizmos
  3. Merge 2 3dView area, blender crash
Yeah, I am the author of this addon. I tested it for a while to find what code crash the blender. I just create a one-file-version addon to show this error @mod_moder <video src="/attachments/7f17be49-e1bb-4a46-83e1-9099c045b2a4" title="2023-06-19 03-28-04.mp4" controls></video> Steps: 1. Please open [gizmo crash.blend](/attachments/dc9164d7-87b7-4b3a-bed5-b7a8cccc7936) 2. Run the script, you can see some difference in 2 views when playing the gizmos 3. Merge 2 3dView area, blender crash
Member

Can confirm the crash with updated file.

Can confirm the crash with updated file.
YimingWu added
Module
Python API
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-06-19 05:29:14 +02:00
Contributor

using self.gizmos.clear() instead of removing each one by separate removes the crash, don't know if it works for you

image

using `self.gizmos.clear()` instead of removing each one by separate removes the crash, don't know if it works for you ![image](/attachments/b76b60c5-b406-4cdf-b533-967868207099)
Member

executing the script already gives a heap-use-after-free in debug builds:
seems like we are calling GizmoGroup_gizmo_remove and then still accessing stuff that was removed

==321508==ERROR: AddressSanitizer: heap-use-after-free on address 0x613000689520 at pc 0x000006636163 bp 0x7ffe2102ab40 sp 0x7ffe2102ab38
READ of size 8 at 0x613000689520 thread T0
    #0 0x6636162 in rna_GizmoProperties_find_operator /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:260
    #1 0x663633a in rna_GizmoProperties_refine /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:274
    #2 0x5b70a28 in RNA_pointer_create /blender/source/blender/makesrna/intern/rna_access.cc:161
    #3 0x3e166c9 in wm_gizmo_create /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:69
    #4 0x3e16938 in WM_gizmo_new_ptr /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:84
    #5 0x663c37c in rna_GizmoGroup_gizmo_new /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:610
    #6 0x664640a in Gizmos_new_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1086
    #7 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337
    #8 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527
    #9 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215
    #10 0x892ffa in _PyObject_VectorcallTstate Include/cpython/abstract.h:112
    #11 0x892ffa in _PyObject_VectorcallTstate Include/cpython/abstract.h:99
    #12 0x892ffa in PyObject_Vectorcall Include/cpython/abstract.h:123
    #13 0x892ffa in call_function Python/ceval.c:5893
    #14 0x892ffa in _PyEval_EvalFrameDefault Python/ceval.c:4181
    #15 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46
    #16 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067
    #17 0x834397 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114
    #18 0x834397 in method_vectorcall Objects/classobject.c:53
    #19 0x8927a8 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114
    #20 0x8927a8 in PyObject_Vectorcall Include/cpython/abstract.h:123
    #21 0x8927a8 in call_function Python/ceval.c:5893
    #22 0x8927a8 in _PyEval_EvalFrameDefault Python/ceval.c:4181
    #23 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46
    #24 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067
    #25 0x834397 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114
    #26 0x834397 in method_vectorcall Objects/classobject.c:53
    #27 0x8927a8 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114
    #28 0x8927a8 in PyObject_Vectorcall Include/cpython/abstract.h:123
    #29 0x8927a8 in call_function Python/ceval.c:5893
    #30 0x8927a8 in _PyEval_EvalFrameDefault Python/ceval.c:4181
    #31 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46
    #32 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067
    #33 0x67c66bb in bpy_class_call /blender/source/blender/python/intern/bpy_rna.c:8619
    #34 0x663d5b0 in rna_gizmogroup_setup_cb /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:710
    #35 0x3daf05b in WM_gizmogroup_ensure_init /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c:247
    #36 0x3dbc7c9 in gizmomap_prepare_drawing /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c:401
    #37 0x3dbd269 in WM_gizmomap_draw /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c:492
    #38 0x4bd95ce in DRW_draw_gizmo_3d /blender/source/blender/draw/intern/draw_view.c:286
    #39 0x4b0f92b in DRW_draw_callbacks_post_scene /blender/source/blender/draw/intern/draw_manager.c:1521
    #40 0x4b11bfb in DRW_draw_render_loop_ex /blender/source/blender/draw/intern/draw_manager.c:1774
    #41 0x4b10726 in DRW_draw_view /blender/source/blender/draw/intern/draw_manager.c:1635
    #42 0xb400af3 in view3d_draw_view /blender/source/blender/editors/space_view3d/view3d_draw.cc:1567
    #43 0xb400e8f in view3d_main_region_draw /blender/source/blender/editors/space_view3d/view3d_draw.cc:1601
    #44 0x684df65 in ED_region_do_draw /blender/source/blender/editors/screen/area.cc:538
    #45 0x3c9540a in wm_draw_window_offscreen /blender/source/blender/windowmanager/intern/wm_draw.c:963
    #46 0x3c96abf in wm_draw_window /blender/source/blender/windowmanager/intern/wm_draw.c:1128
    #47 0x3c99a8c in wm_draw_update /blender/source/blender/windowmanager/intern/wm_draw.c:1512
    #48 0x3c7ec02 in WM_main /blender/source/blender/windowmanager/intern/wm.c:638
    #49 0x8da6c8 in main /blender/source/creator/creator.c:576
    #50 0x7f3af8e4a50f in __libc_start_call_main (/lib64/libc.so.6+0x2750f)
    #51 0x7f3af8e4a5c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x275c8)
    #52 0x8d9a44 in _start (/build_linux_debug/bin/blender+0x8d9a44)

0x613000689520 is located 352 bytes inside of 368-byte region [0x6130006893c0,0x613000689530)
freed by thread T0 here:
    #0 0x7f3b02ab9388 in __interceptor_free.part.0 (/lib64/libasan.so.8+0xb9388)
    #1 0x1b45c5bc in MEM_lockfree_freeN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:104
    #2 0x3e17930 in WM_gizmo_free /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:163
    #3 0x3e17cba in WM_gizmo_unlink /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:186
    #4 0x663c468 in rna_GizmoGroup_gizmo_remove /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:616
    #5 0x66465b3 in Gizmos_remove_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1105
    #6 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337
    #7 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527
    #8 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215

previously allocated by thread T0 here:
    #0 0x7f3b02aba097 in calloc (/lib64/libasan.so.8+0xba097)
    #1 0x1b45ccf1 in MEM_lockfree_callocN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:210
    #2 0x3e16135 in wm_gizmo_create /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:56
    #3 0x3e16938 in WM_gizmo_new_ptr /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:84
    #4 0x663c37c in rna_GizmoGroup_gizmo_new /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:610
    #5 0x664640a in Gizmos_new_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1086
    #6 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337
    #7 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527
    #8 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215

SUMMARY: AddressSanitizer: heap-use-after-free /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:260 in rna_GizmoProperties_find_operator
Shadow bytes around the buggy address:
  0x0c26800c9250: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800c9260: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa
  0x0c26800c9270: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c26800c9280: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800c9290: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c26800c92a0: fd fd fd fd[fd]fd fa fa fa fa fa fa fa fa fa fa
  0x0c26800c92b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800c92c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800c92d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa
  0x0c26800c92e0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c26800c92f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==321508==ABORTING
executing the script already gives a heap-use-after-free in debug builds: seems like we are calling `GizmoGroup_gizmo_remove` and then still accessing stuff that was removed ``` ==321508==ERROR: AddressSanitizer: heap-use-after-free on address 0x613000689520 at pc 0x000006636163 bp 0x7ffe2102ab40 sp 0x7ffe2102ab38 READ of size 8 at 0x613000689520 thread T0 #0 0x6636162 in rna_GizmoProperties_find_operator /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:260 #1 0x663633a in rna_GizmoProperties_refine /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:274 #2 0x5b70a28 in RNA_pointer_create /blender/source/blender/makesrna/intern/rna_access.cc:161 #3 0x3e166c9 in wm_gizmo_create /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:69 #4 0x3e16938 in WM_gizmo_new_ptr /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:84 #5 0x663c37c in rna_GizmoGroup_gizmo_new /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:610 #6 0x664640a in Gizmos_new_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1086 #7 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337 #8 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527 #9 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215 #10 0x892ffa in _PyObject_VectorcallTstate Include/cpython/abstract.h:112 #11 0x892ffa in _PyObject_VectorcallTstate Include/cpython/abstract.h:99 #12 0x892ffa in PyObject_Vectorcall Include/cpython/abstract.h:123 #13 0x892ffa in call_function Python/ceval.c:5893 #14 0x892ffa in _PyEval_EvalFrameDefault Python/ceval.c:4181 #15 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46 #16 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067 #17 0x834397 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114 #18 0x834397 in method_vectorcall Objects/classobject.c:53 #19 0x8927a8 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114 #20 0x8927a8 in PyObject_Vectorcall Include/cpython/abstract.h:123 #21 0x8927a8 in call_function Python/ceval.c:5893 #22 0x8927a8 in _PyEval_EvalFrameDefault Python/ceval.c:4181 #23 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46 #24 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067 #25 0x834397 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114 #26 0x834397 in method_vectorcall Objects/classobject.c:53 #27 0x8927a8 in _PyObject_VectorcallTstate Include/cpython/abstract.h:114 #28 0x8927a8 in PyObject_Vectorcall Include/cpython/abstract.h:123 #29 0x8927a8 in call_function Python/ceval.c:5893 #30 0x8927a8 in _PyEval_EvalFrameDefault Python/ceval.c:4181 #31 0x88c9c1 in _PyEval_EvalFrame Include/internal/pycore_ceval.h:46 #32 0x88c9c1 in _PyEval_Vector Python/ceval.c:5067 #33 0x67c66bb in bpy_class_call /blender/source/blender/python/intern/bpy_rna.c:8619 #34 0x663d5b0 in rna_gizmogroup_setup_cb /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:710 #35 0x3daf05b in WM_gizmogroup_ensure_init /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c:247 #36 0x3dbc7c9 in gizmomap_prepare_drawing /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c:401 #37 0x3dbd269 in WM_gizmomap_draw /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c:492 #38 0x4bd95ce in DRW_draw_gizmo_3d /blender/source/blender/draw/intern/draw_view.c:286 #39 0x4b0f92b in DRW_draw_callbacks_post_scene /blender/source/blender/draw/intern/draw_manager.c:1521 #40 0x4b11bfb in DRW_draw_render_loop_ex /blender/source/blender/draw/intern/draw_manager.c:1774 #41 0x4b10726 in DRW_draw_view /blender/source/blender/draw/intern/draw_manager.c:1635 #42 0xb400af3 in view3d_draw_view /blender/source/blender/editors/space_view3d/view3d_draw.cc:1567 #43 0xb400e8f in view3d_main_region_draw /blender/source/blender/editors/space_view3d/view3d_draw.cc:1601 #44 0x684df65 in ED_region_do_draw /blender/source/blender/editors/screen/area.cc:538 #45 0x3c9540a in wm_draw_window_offscreen /blender/source/blender/windowmanager/intern/wm_draw.c:963 #46 0x3c96abf in wm_draw_window /blender/source/blender/windowmanager/intern/wm_draw.c:1128 #47 0x3c99a8c in wm_draw_update /blender/source/blender/windowmanager/intern/wm_draw.c:1512 #48 0x3c7ec02 in WM_main /blender/source/blender/windowmanager/intern/wm.c:638 #49 0x8da6c8 in main /blender/source/creator/creator.c:576 #50 0x7f3af8e4a50f in __libc_start_call_main (/lib64/libc.so.6+0x2750f) #51 0x7f3af8e4a5c8 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x275c8) #52 0x8d9a44 in _start (/build_linux_debug/bin/blender+0x8d9a44) 0x613000689520 is located 352 bytes inside of 368-byte region [0x6130006893c0,0x613000689530) freed by thread T0 here: #0 0x7f3b02ab9388 in __interceptor_free.part.0 (/lib64/libasan.so.8+0xb9388) #1 0x1b45c5bc in MEM_lockfree_freeN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:104 #2 0x3e17930 in WM_gizmo_free /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:163 #3 0x3e17cba in WM_gizmo_unlink /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:186 #4 0x663c468 in rna_GizmoGroup_gizmo_remove /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:616 #5 0x66465b3 in Gizmos_remove_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1105 #6 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337 #7 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527 #8 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215 previously allocated by thread T0 here: #0 0x7f3b02aba097 in calloc (/lib64/libasan.so.8+0xba097) #1 0x1b45ccf1 in MEM_lockfree_callocN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:210 #2 0x3e16135 in wm_gizmo_create /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:56 #3 0x3e16938 in WM_gizmo_new_ptr /blender/source/blender/windowmanager/gizmo/intern/wm_gizmo.c:84 #4 0x663c37c in rna_GizmoGroup_gizmo_new /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:610 #5 0x664640a in Gizmos_new_call /build_linux_debug/source/blender/makesrna/intern/rna_wm_gizmo_gen.c:1086 #6 0x5bb3e47 in RNA_function_call /blender/source/blender/makesrna/intern/rna_access.cc:6337 #7 0x67bc578 in pyrna_func_call /blender/source/blender/python/intern/bpy_rna.c:6527 #8 0x8322ea in _PyObject_MakeTpCall Objects/call.c:215 SUMMARY: AddressSanitizer: heap-use-after-free /blender/source/blender/makesrna/intern/rna_wm_gizmo.c:260 in rna_GizmoProperties_find_operator Shadow bytes around the buggy address: 0x0c26800c9250: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800c9260: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa 0x0c26800c9270: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c26800c9280: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800c9290: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x0c26800c92a0: fd fd fd fd[fd]fd fa fa fa fa fa fa fa fa fa fa 0x0c26800c92b0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800c92c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800c92d0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa 0x0c26800c92e0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c26800c92f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==321508==ABORTING ```
Member

Ah, I wasnt refreshing the browser tab here, lets try what @guishe suggested, @1029910278 : does this work for you?

Ah, I wasnt refreshing the browser tab here, lets try what @guishe suggested, @1029910278 : does this work for you?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Confirmed
labels 2023-06-20 10:27:18 +02:00
Author

yes it works.Seems this error happended when delete gizmos in for loop.
I have lots of gizmos for different usages in one gizmo group. Should it be separate them into different groups to prevent this error?

yes it works.Seems this error happended when delete gizmos in for loop. I have lots of gizmos for different usages in one gizmo group. Should it be separate them into different groups to prevent this error?
Contributor

The problem was using self._rotate_gz.clear(), couldn't say exactly why (i think it tries to freethe memory of the gizmos objects, but they are already cleaned on self.gizmos.remove(gizmo)), but using intead self._rotate_gz = dict() solves the issue. You can use also arrays, but array.clear() will make same issues that dict.clear() does.

See video

The problem was using `self._rotate_gz.clear()`, couldn't say exactly why (i think it tries to freethe memory of the gizmos objects, but they are already cleaned on `self.gizmos.remove(gizmo)`), but using intead `self._rotate_gz = dict()` solves the issue. You can use also arrays, but `array.clear()` will make same issues that `dict.clear()` does. See video
Author

got it. Already fix the problem.Thanks! :)

got it. Already fix the problem.Thanks! :)
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-06-21 01:12:42 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#109111
No description provided.