Page MenuHome

EXCEPTION_ACCESS_VIOLATION if run cell fracture from cli
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Radeon RX 570 Series ATI Technologies Inc. 4.5.13587 Core Profile Context 20.2.2 26.20.15019.19000

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-07 18:32, hash: rBafcb41a0aaaf
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Cell Fracture (0, 2)
Author: ideasman42, phymec, Sergey Sharybin

Short description of error
EXCEPTION_ACCESS_VIOLATION - appears after I call script inside blender from command line. Command "bpy.ops.object.add_fracture_cell_objects" causing error. I tested 2.8, 2.81, 2.82, 2.83, 2.9 with same result. Everything works fine within Blender.

Exact steps for others to reproduce the error
I attached whole testing enviroment. Run test.bat to reproduce error. It runs simple py script which runs scripts "SceneScript" inside Blender.

Event Timeline

Omar Emara (OmarSquircleArt) changed the task status from Needs Triage to Confirmed.Mar 9 2022, 4:51 PM

It seems Blender is drawing windows even if it is executing in background mode if an operator explicitly requests a redraw, which I guess shouldn't happen.

* frame #0: 0x000000000d05d78e blender`::GPU_viewport(x=0, y=0, width=1920, height=1080) at gpu_state.cc:190:19
  frame #1: 0x000000000360f0c3 blender`wmWindowViewport(win=0x00007fffe2513788) at wm_subwindow.c:77:3
  frame #2: 0x00000000035d56e2 blender`wm_draw_window_onscreen(C=0x00007ffff47bab28, win=0x00007fffe2513788, view=-1) at wm_draw.c:767:3
  frame #3: 0x00000000035d45b3 blender`wm_draw_window(C=0x00007ffff47bab28, win=0x00007fffe2513788) at wm_draw.c:870:5
  frame #4: 0x00000000036154ce blender`wm_window_make_drawable(wm=0x00007ffff47bab28, win=0x00007fffe2513788) at wm_window.c:1008:3
  frame #5: 0x00000000035d429d blender`wm_draw_update(C=0x00007ffff47bab28) at wm_draw.c:1066:7
  frame #6: 0x00000000035e1ef7 blender`wm_operator_invoke(C=0x00007ffff47bab28, ot=0x00007ffff3edf848, event=0x0000000000000000, properties=0x00007fffffffc060, reports=0x00007fffeb0eba58, poll_only=false, use_last_properties=true) at wm_event_system.c:1338:16
  frame #7: 0x00000000035d8cb9 blender`wm_operator_call_internal(C=0x00007ffff47bab28, ot=0x00007ffff3edf848, properties=0x00007fffffffc060, reports=0x00007fffeb0eba58, context=WM_OP_EXEC_DEFAULT, poll_only=false, event=0x0000000000000000) at wm_event_system.c:1565:16
  frame #8: 0x00000000035d9848 blender`WM_operator_call_py(C=0x00007ffff47bab28, ot=0x00007ffff3edf848, context=WM_OP_EXEC_DEFAULT, properties=0x00007fffffffc060, reports=0x00007fffeb0eba58, is_undo=false) at wm_event_system.c:1639:12
  frame #9: 0x000000000407f6a1 blender`pyop_call(UNUSED_self=0x00007fffe6d6a020, args=0x00007fffe21dfb40) at bpy_operator.c:279:24