Crash on recalculate normals / unexpected looptools result #39979

Closed
opened 2014-05-01 11:09:40 +02:00 by Sam Kent · 18 comments

System Information
Mac 10.6.8
2.4 Ghz Intel Core Duo
GeForce 8600M GT

Blender Version
Hash 6babb4d
2014-04-23
07:13

Short description of error
Loop tool result inconsistent. Recalculating normals causes segmentation fault and crash of the application.

Exact steps for others to reproduce the error
Add Mesh Extra objects Polysphere.
Edit Mode delete centre vertex in either + or - x direction.
Select Resulting edge loop, W loop tools circle.
Select all and recalculate normals results in a crash for me.looperrorannotae.jpg

looperror.blend

**System Information** Mac 10.6.8 2.4 Ghz Intel Core Duo GeForce 8600M GT **Blender Version** Hash 6babb4d 2014-04-23 07:13 **Short description of error** Loop tool result inconsistent. Recalculating normals causes segmentation fault and crash of the application. **Exact steps for others to reproduce the error** Add Mesh Extra objects Polysphere. Edit Mode delete centre vertex in either + or - x direction. Select Resulting edge loop, W loop tools circle. Select all and recalculate normals results in a crash for me.![looperrorannotae.jpg](https://archive.blender.org/developer/F86511/looperrorannotae.jpg) [looperror.blend](https://archive.blender.org/developer/F86513/looperror.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @esskay

Added subscriber: @esskay
Member

Added subscriber: @totoro-4

Added subscriber: @totoro-4
Member

Partially confirmed with Blender 2.70a official (Hash: f93bc76) Ubuntu 14.04 64bit: no crash but the loop vertices are deleted just like on the picture. If you delete the central vertex in the Y or Z direction it works normally.

Another interesting: after the loop deleted, I cannot use the ctrl+rmb selection on the new hole edge correctly. The middle two edges are not selected. If you select this loop, and make a face on them, the result is also weird.

EDIT: I've tried this with a simple subdivided plane and the result of the circle command is heavily distorted if the circle is in the y,z plane. What if the vertex coordinate gets a NAN or INF?
#39979.png
T39979_2.png

Partially confirmed with Blender 2.70a official (Hash: f93bc76) Ubuntu 14.04 64bit: no crash but the loop vertices are deleted just like on the picture. If you delete the central vertex in the Y or Z direction it works normally. Another interesting: after the loop deleted, I cannot use the ctrl+rmb selection on the new hole edge correctly. The middle two edges are not selected. If you select this loop, and make a face on them, the result is also weird. EDIT: I've tried this with a simple subdivided plane and the result of the circle command is heavily distorted if the circle is in the y,z plane. What if the vertex coordinate gets a NAN or INF? ![#39979.png](https://archive.blender.org/developer/F86544/T39979.png) ![T39979_2.png](https://archive.blender.org/developer/F86546/T39979_2.png)

Added subscriber: @mont29

Added subscriber: @mont29

What is “W loop tools circle.”, does it comes from an addon?

What is “W loop tools circle.”, does it comes from an addon?

uh, silly me, of course it is :/

uh, silly me, of course it is :/

Mmmh… can’t reproduce with latest master, mind testing a recent build from our buildbot?

Mmmh… can’t reproduce with latest master, mind testing a recent build from [our buildbot](http://builder.blender.org/download)?
Author

091f13a buildbot

On the test file attached above I can still reproduce this.

091f13a buildbot On the test file attached above I can still reproduce this.
Bastien Montagne self-assigned this 2014-05-01 19:33:46 +02:00

Yeah, actually, could reproduce the crash, but only from that file… would need to check the mesh is valid first.

Yeah, actually, could reproduce the crash, but only from that file… would need to check the mesh is valid first.
Author

To be more precise;
maybe the difference with that file is that the polysphere is translated in edit mode a unit in the z direction first (a habit of mine) before deleting the vertex? I will check later.

To be more precise; maybe the difference with that file is that the polysphere is translated in edit mode a unit in the z direction first (a habit of mine) before deleting the vertex? I will check later.
Member

I think this happens only if the resulting circle is in the y-z plane. If you move any of the vertices slightly before, it works good. I also think it happens because the x coordinates of the calculated vertices gets an extremely big value or maybe NaN or Inf.

I think this happens only if the resulting circle is in the y-z plane. If you move any of the vertices slightly before, it works good. I also think it happens because the x coordinates of the calculated vertices gets an extremely big value or maybe NaN or Inf.
Bastien Montagne removed their assignment 2014-05-01 21:19:07 +02:00
Bart Crouch was assigned by Bastien Montagne 2014-05-01 21:19:07 +02:00

Yes indeed, circle generates NaN’s in this case… Bart, reassinging to you. ;)

Yes indeed, circle generates NaN’s in this case… Bart, reassinging to you. ;)
Member

Thanks for the report. I'll look into it.

Thanks for the report. I'll look into it.

This issue was referenced by 6b57e3ed43

This issue was referenced by 6b57e3ed43f7068e1b1dda3d75b32edf0ac51a68
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Closed by commit 6b57e3ed43.

Closed by commit 6b57e3ed43.

This issue was referenced by ddf16697699b98ee00e180446980f85404bd9da9

This issue was referenced by ddf16697699b98ee00e180446980f85404bd9da9
Sign in to join this conversation.
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-addons#39979
No description provided.