Page MenuHome

Blender crash while using the Normal's "merge" option in edit mode (in the normal editing section)
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 398.36

Blender Version
Broken: version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-14 00:12, hash: rB8ac0fef4dfd1
Worked: (optional)

Short description of error
As the title, when you try to smooth some faces using the (Normal's)merge option (with kind of high-resolution mesh) blender crash, some times you have to repeat the action (5-7 times) for the crash to occur.

Exact steps for others to reproduce the error
open blender -> subdivide the default cube until it has 1500-+ verts -> select some faces -> execute : Mesh -> Normals -> Merge. if it isn't crash, try redoing the merge action around five - seven times.

Related Objects

Event Timeline

I will not have access to the internet during Saturday so I wouldn't be able to give any clarification regarding this bug.

Dalai Felinto (dfelinto) lowered the priority of this task from 90 to High.

It is easy to reproduce.
Open file and run "Merge Normals":

//source/blender/editors/mesh/editmesh_tools.c:8153:9: runtime error: member access within null pointer of type 'struct BMLoopNorEditData'

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x000055555de742c6 in normals_merge (bm=0x6190004b0f88, lnors_ed_arr=0x603000139ea8) at //source/blender/editors/mesh/editmesh_tools.c:8153
8153            BLI_assert(lnor_ed_tmp->loop_index == loop_index && lnor_ed_tmp->loop == l);

Full backtrace: P1003

@Bastien Montagne (mont29)

I've tested it on v2.81.4 (283d96de1170) and it's still crashing on merge.
But weirdly it happens only when I make the mesh prior to that. It does not happen when I open the file with the "same" mesh. You may try it on linked file but it won't crash.