Crash after calling to_mesh_clear #75488

Closed
opened 2020-04-07 16:07:58 +02:00 by Diego Gangl · 5 comments

System Information
Operating system: Fedora Linux 31 (Kernel 5.5)
Graphics card: AMD Vega Rx 64 (AMDGPU)

Blender Version
Broken: 2.82/2.82a
Worked: N/A

Short description of error

Blender crashes after running to_mesh_clear(). This only happens in edit mode, after running the script twice (see attached blend). If to_mesh_clear() is called on the evaluated object it dies in the first run, but the backtrace is the same. Blender seems to be frozen, and when you click in the viewport it dies.

Backtrace

# Blender 2.82 (sub 7), Commit date: 2020-03-12 05:06, Hash 375c7dc4caf4
bpy.ops.object.editmode_toggle()  # Operator
bpy.ops.object.editmode_toggle()  # Operator
bpy.context.space_data.recent_folders_active = 0  # Property
bpy.context.space_data.recent_folders_active = 0  # Property

# backtrace
/home/januz/bin/blender/blender(BLI_system_backtrace+0x1d) [0x6fbd4ad]
/home/januz/bin/blender/blender() [0x1658449]
/lib64/libc.so.6(+0x3c6b0) [0x7face9cd36b0]
/home/januz/bin/blender/blender(CustomData_get_active_layer_index+0x3) [0x17af733]
/home/januz/bin/blender/blender(CustomData_get_offset+0x9) [0x17b0a69]
/home/januz/bin/blender/blender() [0x19c059c]
/home/januz/bin/blender/blender(OVERLAY_edit_mesh_cache_populate+0xb1) [0x19c11a1]
/home/januz/bin/blender/blender() [0x1987adb]
/home/januz/bin/blender/blender() [0x1953a8b]
/home/januz/bin/blender/blender(DRW_draw_render_loop_ex+0x547) [0x1955737]
/home/januz/bin/blender/blender(view3d_main_region_draw+0x77) [0x1f2d3b7]
/home/januz/bin/blender/blender(ED_region_do_draw+0x8f1) [0x1b6ae91]
/home/januz/bin/blender/blender(wm_draw_update+0x496) [0x181e1a6]
/home/januz/bin/blender/blender(WM_main+0x30) [0x181c210]
/home/januz/bin/blender/blender(main+0x317) [0x159ea77]
/lib64/libc.so.6(__libc_start_main+0xf3) [0x7face9cbe1a3]
/home/januz/bin/blender/blender() [0x1654cfc]

Exact steps for others to reproduce the error

  1. Enter edit mode
  2. Run the script two times

Optionally, switch the commented lines at the end and the script will crash in the first run.

to_mesh_bug_test.blend

**System Information** Operating system: Fedora Linux 31 (Kernel 5.5) Graphics card: AMD Vega Rx 64 (AMDGPU) **Blender Version** Broken: 2.82/2.82a Worked: N/A **Short description of error** Blender crashes after running `to_mesh_clear()`. This only happens in edit mode, after running the script twice (see attached blend). If `to_mesh_clear()` is called on the evaluated object it dies in the first run, but the backtrace is the same. Blender seems to be frozen, and when you click in the viewport it dies. **Backtrace** ``` # Blender 2.82 (sub 7), Commit date: 2020-03-12 05:06, Hash 375c7dc4caf4 bpy.ops.object.editmode_toggle() # Operator bpy.ops.object.editmode_toggle() # Operator bpy.context.space_data.recent_folders_active = 0 # Property bpy.context.space_data.recent_folders_active = 0 # Property # backtrace /home/januz/bin/blender/blender(BLI_system_backtrace+0x1d) [0x6fbd4ad] /home/januz/bin/blender/blender() [0x1658449] /lib64/libc.so.6(+0x3c6b0) [0x7face9cd36b0] /home/januz/bin/blender/blender(CustomData_get_active_layer_index+0x3) [0x17af733] /home/januz/bin/blender/blender(CustomData_get_offset+0x9) [0x17b0a69] /home/januz/bin/blender/blender() [0x19c059c] /home/januz/bin/blender/blender(OVERLAY_edit_mesh_cache_populate+0xb1) [0x19c11a1] /home/januz/bin/blender/blender() [0x1987adb] /home/januz/bin/blender/blender() [0x1953a8b] /home/januz/bin/blender/blender(DRW_draw_render_loop_ex+0x547) [0x1955737] /home/januz/bin/blender/blender(view3d_main_region_draw+0x77) [0x1f2d3b7] /home/januz/bin/blender/blender(ED_region_do_draw+0x8f1) [0x1b6ae91] /home/januz/bin/blender/blender(wm_draw_update+0x496) [0x181e1a6] /home/januz/bin/blender/blender(WM_main+0x30) [0x181c210] /home/januz/bin/blender/blender(main+0x317) [0x159ea77] /lib64/libc.so.6(__libc_start_main+0xf3) [0x7face9cbe1a3] /home/januz/bin/blender/blender() [0x1654cfc] ``` **Exact steps for others to reproduce the error** 1. Enter edit mode 2. Run the script two times Optionally, switch the commented lines at the end and the script will crash in the first run. [to_mesh_bug_test.blend](https://archive.blender.org/developer/F8454719/to_mesh_bug_test.blend)
Author

Added subscriber: @Januz

Added subscriber: @Januz

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Germano Cavalcante self-assigned this 2020-04-07 16:17:21 +02:00

The issue was actually fixed in blender/blender@9fca9b9953.
You won't see this problem in tomorrow's build.
https://builder.blender.org/download/

The issue was actually fixed in blender/blender@9fca9b9953. You won't see this problem in tomorrow's build. https://builder.blender.org/download/
Author

Damn you guys are fast ^_^
Thanks!

Damn you guys are fast ^_^ Thanks!
Sign in to join this conversation.
No Milestone
No project
2 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-addons#75488
No description provided.