Boolean modifier crash (when animating) #86390

Closed
opened 2021-03-08 13:50:01 +01:00 by Carl Brewer · 8 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.72

Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: 02948a2cab
Worked: (newest version of Blender that worked as expected)

Short description of error
When running this animation, Blender crashes at random frames. when running with 2.91.2 it crashes after hanging for 30s or so at frame 126

Exact steps for others to reproduce the error
Run the animation in the attached .blend file

gov-11.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.72 **Blender Version** Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: `02948a2cab` Worked: (newest version of Blender that worked as expected) **Short description of error** When running this animation, Blender crashes at random frames. when running with 2.91.2 it crashes after hanging for 30s or so at frame 126 **Exact steps for others to reproduce the error** Run the animation in the attached .blend file [gov-11.blend](https://archive.blender.org/developer/F9879271/gov-11.blend)
Author

Added subscriber: @Bleve

Added subscriber: @Bleve
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can confirm this crash on the latest 2.93.0 Alpha, branch: master, commit date: 2021-03-08 07:52, hash: 74c50d0c77.

This crashes in the blender/source/blender/blenlib/intern/mesh_boolean.cc file due to an assert:

/* In zero-volume cells, the cell should have exactly two patches. */
BLI_assert(cell->patches().size() == 2);

(cell->patches().size() was 6)

Switching the solver to "Fast" in the modifier will not crash.

I can confirm this crash on the latest 2.93.0 Alpha, branch: master, commit date: 2021-03-08 07:52, hash: `74c50d0c77`. This crashes in the `blender/source/blender/blenlib/intern/mesh_boolean.cc` file due to an assert: ``` /* In zero-volume cells, the cell should have exactly two patches. */ BLI_assert(cell->patches().size() == 2); ``` (`cell->patches().size()` was 6) Switching the solver to "Fast" in the modifier will not crash.
Author

Thank you, Falk, I've moved the boolean switch to "fast" and the crash is gone.

Thank you, Falk, I've moved the boolean switch to "fast" and the crash is gone.
Campbell Barton changed title from Crash when animating to Boolean crash (when animating) 2021-03-09 09:12:29 +01:00
Campbell Barton changed title from Boolean crash (when animating) to Boolean modifier crash (when animating) 2021-03-09 09:12:40 +01:00
Howard Trickey was assigned by Campbell Barton 2021-03-09 09:15:42 +01:00
Member

i am looking at this now. There are lots of zero or near-zero area faces because the ring inside the face on the top of the arm pin (Cylinder.009) has what appear to be doubled vertices with zero-length edges connecting them. I advise selecting all vertices and then doing Mesh > Clean Up > Degenerate Dissolve on that mesh. Then the animation runs without crashing.

But of course, the code should be robust against such things so I shall continue to track down why my assumption that that assert is about was violated and fix it so it doesn't crash.

i am looking at this now. There are lots of zero or near-zero area faces because the ring inside the face on the top of the arm pin (Cylinder.009) has what appear to be doubled vertices with zero-length edges connecting them. I advise selecting all vertices and then doing Mesh > Clean Up > Degenerate Dissolve on that mesh. Then the animation runs without crashing. But of course, the code should be robust against such things so I shall continue to track down why my assumption that that assert is about was violated and fix it so it doesn't crash.

This issue was referenced by e8e4a79512

This issue was referenced by e8e4a795122a10dfa0b10c8e91247a1ab3288319
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
4 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#86390
No description provided.