Page MenuHome

Add Sphere, adjust Rings, Crash
Closed, ResolvedPublic

Description

System Information
Operating system: macOS 10.14

Blender Version
Broken: Blender 2.80 beta, 2018-03-05
Worked: Blender 2.80 beta, 2018-03-04

Short description of error
Adjusting primitives causes crashes.

Exact steps for others to reproduce the error
I am getting lots of crashes when adding and adjusting primitives. Sometimes just adding a UV Sphere will instantly crash, but if not, this seems to crash every time:

  • Add UV Sphere
  • Adjust Rings
  • Crash

Details

Type
Bug

Event Timeline

Crash log:

Here is what the Win10 stacktrace looks like when using a debug build (and executing: bpy.ops.mesh.primitive_uv_sphere_add(segments=12, ring_count=6, radius=0.25))

Seems to confirm a problem in the bmo_remove_doubles_exec -> BLI_kdtree_free code path

Exception thrown at 0x00007FF8659448AE (ntdll.dll) in blender.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.


blender.exe!_free_base(void * block) Line 105	C++
blender.exe!free_dbg_nolock(void * const block, const int block_use) Line 1003	C++
blender.exe!_free_dbg(void * block, int block_use) Line 1030	C++
blender.exe!free(void * block) Line 32	C++
blender.exe!MEM_lockfree_freeN(void * vmemh) Line 159	C
blender.exe!BLI_kdtree_free(KDTree * tree) Line 81	C
blender.exe!bmesh_find_doubles_common(BMesh * bm, BMOperator * op, BMOperator * optarget, BMOpSlot * optarget_slot) Line 653	C
blender.exe!bmo_remove_doubles_exec(BMesh * bm, BMOperator * op) Line 682	C
blender.exe!BMO_op_exec(BMesh * bm, BMOperator * op) Line 219	C
blender.exe!BMO_op_callf(BMesh * bm, const int flag, const unsigned char * fmt, ...) Line 1928	C
blender.exe!bmo_create_uvsphere_exec(BMesh * bm, BMOperator * op) Line 961	C
blender.exe!BMO_op_exec(BMesh * bm, BMOperator * op) Line 219	C
blender.exe!EDBM_op_call_and_selectf(BMEditMesh * em, wmOperator * op, const unsigned char * select_slot_out, const bool select_extend, const unsigned char * fmt, ...) Line 241	C
blender.exe!add_primitive_uvsphere_exec(bContext * C, wmOperator * op) Line 545	C
blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1352	C
blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1585	C
blender.exe!WM_operator_call_py(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties, ReportList * reports, const bool is_undo) Line 1663	C
blender.exe!pyop_call(_object * UNUSED_self, _object * args) Line 253	C

@Jacques Lucke (JacquesLucke) I think the following commit has caused this: 301bcf771de

I can't repro using the commit prior to this one

Adding a new UV sphere has here (linux) somehow frozen the whole X11 … 🙄

Can confirm that after a hard reboot;) reverting rB301bcf771de on current tip rB104d9b47 seems to fix the issue.

OK I downloaded the latest build
heavy crash here :)