Crash: Vertex snapping with Target: "Active" based on Pivot Point: "3D Cursor" when Active is at 3D Cursor location #57923
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#57923
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 10
Nvidia GTX 980
Blender Version
Broken: (2.80 Alpha 2 Hash:2c348ebbba9 Date: 2018-11-16)
Short description of error
Blender Crashes when a mesh is scaled with Vertex snapping with the setting Target to Active if the Pivot Point is set to 3D Cursor and the Active vertex is at the same position as the 3D cursor. This happen only if the scaled mesh has more than 15~ verts.
Exact steps for others to reproduce the error
Open Blender
leave the Cube as it is and add a Plane
Move the plane up 2m (Just to see it)
enter the Editmode for the Plane
subdivide it twice (This is important otherwise Blender wil not crash)
select one of the Corner verts
snap 3D cursor to selected
set Pivot point to 3D Cursor
enable Snapping to Vertex with Target to Active
Select the Entire Plane the Active vert is still at the 3D Cursor position
Scale the Plane and snap it to one of the Verts of the default Cube. (or anything else)
CRASH
Added subscriber: @pandrodor
Added subscriber: @lichtwerk
Confirmed, having a look...
Added subscriber: @mont29
For me, blender is freezing here.
Was not the case in 2.79b, but happens in 2.79 master and 2.8. For 2.8 I have checked Debug and Release builds.
Guess this has to do with OMP removal (and its substitution in
43ddf0e9a7
,3c1f3c02c6
)Freeze because it never breaks out of this here .
@mont29: have an idea (I certainly dont...)?
Please ALWAYS add minimal file to reproduce the issue, saves us some time, and ensures we have the correct setup to reproduce the issue!
t57923_vertex_snapping_crash.blend
Using the one above, cannot reproduce on linux. @pandrodor @lichtwerk can you confirm it happens for you with that file?
@lichtwerk are you on windows, if yes, latest win10? If so, could be a different behavior in atomic_cas :/
@mont29: try
#57923.blend
(think the difference is that in my file there is an explicit active vert [white], if I shift-click the corner vert twice [to get it active] in your file, I get the freeze there, too...)
I'm on linux,
gcc version 8.2.1 20181105 (Red Hat 8.2.1-5) (GCC)
if that makes a differenceThanks, can confirm I can reproduce with the active vert.
Eeeh… that’s a rather hairy issue, which originates very far away from where it errors! To summarize:
Easy fix: use memcmp instead of equality operator (but this can be much, much slower...). More 'smart' fix: pointer-cast to uint32_t, and compare those. This should be at least as efficient as float comparison, and bypass the NAN exception.
Will fix the normal accumulator code so that it just skips degenerated geometry. What would be actual correct handling here am not sure at all. Afaikt, official 2.79 already exhibits broken behavior. So will consider this another, unrelated issue. ;)
This issue was referenced by
c9c6433a59
This issue was referenced by
ec851efda9
Changed status from 'Open' to: 'Resolved'