Snap to grid crash when locking axis before selecting snap base #120109

Closed
opened 2024-03-31 10:24:20 +02:00 by Andrea-Lanaro · 9 comments

System Information
Operating system: Windows-10-10.0.17763-SP0
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 4.6.0 NVIDIA 551.61

Blender Version
Broken:

Worked:
none (new feature)

Short description of error
Snap to grid with axis lock and snap base cause a crash. Only when locking axis before select base.

Possible related issue and commit

Exact steps for others to reproduce the error

  1. Enable grid snap
  2. G Move object
  3. Z Lock axis
  4. B Select base
**System Information** Operating system: Windows-10-10.0.17763-SP0 Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 4.6.0 NVIDIA 551.61 **Blender Version** Broken: - 4.2 alpha (2024-03-27) 896b552672ca - 4.2 alpha (2024-03-31) 8d12c58f2c71 Worked: none (new feature) **Short description of error** Snap to grid with axis lock and snap base cause a crash. Only when locking axis **before** select base. Possible related issue and commit - blender/blender#119556 - f0479e915f **Exact steps for others to reproduce the error** 1. Enable grid snap 2. `G` Move object 3. `Z` Lock axis 4. `B` Select base
Andrea-Lanaro added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-31 10:24:21 +02:00

Can not reproduce on Linux

Can not reproduce on Linux
Member

Unable to replicate either.

Unable to replicate either.
Member

Can you attach .blend if specific scene setup is required?
or possibly some steps are missing in description.

Can you attach .blend if specific scene setup is required? or possibly some steps are missing in description.
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-04-01 07:29:03 +02:00
Author

It happens even on default startup file / factory config. I am trying to isolate the problem now.

It happens even on default startup file / factory config. I am trying to isolate the problem now.
Member

Can confirm the crash. @mano-wii might want to take a look?

Crashed in snap_target_view3d_fn where snapObjectsTransform is called with a vec of null.

Can confirm the crash. @mano-wii might want to take a look? Crashed in `snap_target_view3d_fn` where `snapObjectsTransform` is called with a `vec` of null.
Member

Oh actually I can confirm as well.

Oh actually I can confirm as well.
Author

From PR blender/blender#116109

GIF.gif

Currently I also can not set snap base on object, no vert base (square icon), only world grid (cross-circle). Is this not implemented yet? Or should I open another report?

From PR blender/blender#116109 > ![GIF.gif](/attachments/ded22abe-b035-4cab-a460-47aacf7ca1a9) Currently I also can not set snap base on object, no vert base (square icon), only world grid (cross-circle). Is this not implemented yet? Or should I open another report?
Member

@Andrea-Lanaro Make sure you are selecting the "Vertex" snapping mode instead of "Grid" mode. (You can select multiple tho)

图片

@Andrea-Lanaro Make sure you are selecting the "Vertex" snapping mode instead of "Grid" mode. (You can select multiple tho) ![图片](/attachments/b88b32a0-b64b-4e87-8826-dde17cff49b3)
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-04-01 16:23:19 +02:00

The fix involved a lot of things, but it is fixed now :)
Thanks for the report.

The fix involved a lot of things, but it is fixed now :) Thanks for the report.
Sign in to join this conversation.
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
Interest: X11
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
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#120109
No description provided.