Crash on using Snap Base on verticies #120005

Closed
opened 2024-03-28 09:25:10 +01:00 by mkubiak · 6 comments

Information
Operating system: Linux-6.8.2-arch1-1-x86_64-with-glibc2.39 64 Bits, WAYLAND UI
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67

Blender Version
Broken: version: 4.1.0, branch: makepkg (modified), commit date: 2024-03-25 20:42, hash: 40a5e739e270

Short description of error
Using the Snap Base feature crashes Blender.

Exact steps for others to reproduce the error
Hello, when I'm trying to snap the Window Frame to the Wall Plaster in Object Mode using the new Snap Base Feature (G + B), Blender instantly crashes. It crashed on 4.0 too. I shared a screenshot for the snapping I'm trying to achieve

Error log from the terminal:
/usr/include/c++/13.2.1/optional:477: constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = blender::Bounds<blender::VecBase<float, 3> >; _Dp = std::_Optional_base<blender::Bounds<blender::VecBase<float, 3> >, true, true>]: Assertion 'this->_M_is_engaged()' failed. zsh: IOT instruction (core dumped) blender

Attached the .blend file for demonstration.
Thanks for your time!

**Information** Operating system: Linux-6.8.2-arch1-1-x86_64-with-glibc2.39 64 Bits, WAYLAND UI Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67 **Blender Version** Broken: version: 4.1.0, branch: makepkg (modified), commit date: 2024-03-25 20:42, hash: `40a5e739e270` **Short description of error** Using the Snap Base feature crashes Blender. **Exact steps for others to reproduce the error** Hello, when I'm trying to snap the Window Frame to the Wall Plaster in Object Mode using the new Snap Base Feature (G + B), Blender instantly crashes. It crashed on 4.0 too. I shared a screenshot for the snapping I'm trying to achieve Error log from the terminal: `/usr/include/c++/13.2.1/optional:477: constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = blender::Bounds<blender::VecBase<float, 3> >; _Dp = std::_Optional_base<blender::Bounds<blender::VecBase<float, 3> >, true, true>]: Assertion 'this->_M_is_engaged()' failed. zsh: IOT instruction (core dumped) blender ` Attached the .blend file for demonstration. Thanks for your time!
mkubiak added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-28 09:25:11 +01:00
Iliya Katushenock added the
Interest
Modeling
label 2024-03-28 12:35:18 +01:00

I can't replicate the crash. But the error message reminds me of a fix I made in 4.2
fcfce8f69f

@HooglyBoogly, do you think this code could lead to a crash?

const Bounds<float3> bounds = *mesh_eval->bounds_min_max();

Is it worth backporting the commit to 4.1.1?

I can't replicate the crash. But the error message reminds me of a fix I made in 4.2 fcfce8f69f @HooglyBoogly, do you think this code could lead to a crash? ```cpp const Bounds<float3> bounds = *mesh_eval->bounds_min_max(); ``` Is it worth backporting the commit to 4.1.1?
Author

I played with it a little longer, seems it happens often with Collection Instances I'm trying to snap.

I played with it a little longer, seems it happens often with Collection Instances I'm trying to snap.
Member

I wouldn't imagine that causing a crash, but maybe. That commit should be in 4.1, for sure.

I wouldn't imagine that causing a crash, but maybe. That commit should be in 4.1, for sure.

@mkubiak, could you try the latest daily build?
This way we can confirm if that change is really related to the issue.

@mkubiak, could you try the [latest daily build](https://builder.blender.org/download/)? This way we can confirm if that change is really related to the issue.
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Info from Developers
labels 2024-03-28 23:33:16 +01:00
Author

@mano-wii
The latest build works without any issues! I double checked with the old one, in which the bug occurs every time.
Thanks for your fast work!

@mano-wii The latest build works without any issues! I double checked with the old one, in which the bug occurs every time. Thanks for your fast work!

Thank you for confirming!
I have added the mentioned commit to the list 4.1: Candidates for corrective releases #119631.
So it will certainly be fixed in 4.1.1

Thank you for confirming! I have added the mentioned commit to the list [4.1: Candidates for corrective releases #119631](https://projects.blender.org/blender/blender/issues/119631). So it will certainly be fixed in 4.1.1
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-03-29 14:58:50 +01:00
Hans Goudey added
Status
Resolved
Type
Bug
and removed
Status
Archived
Type
Report
labels 2024-03-29 15:06:17 +01:00
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
3 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#120005
No description provided.