Boolean modifier crashes/freezes Blender using intersect (or consumes much memory) #87795

Closed
opened 2021-04-25 10:38:12 +02:00 by RT · 20 comments

System Information
Operating system: Linux-5.4.0-72-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: Mesa DRI Intel(R) HD Graphics 4600 (HSW GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 20.2.6

Blender Version
Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-04-24 18:46, hash: f7afd78b80
Worked: Last Worked in 2.92 (see video-Animation below)

Short description of error

Repeated Crash using Boolean modifier - Intersect -
Solver: Exact
Solver Options: Self

Writing: /tmp/section.crash.txt
Segmentation fault (core dumped)

section.crash.txt

Exact steps for others to reproduce the error

  1. Open up downloaded attached file called section.blend this file will open fine
  2. Change the settings to:
    **Solver:Exact
    **Solver Options:Self

Image below:
screenshot-2021-06-10-07-04-09.png

  1. Crash

section.blend

**System Information** Operating system: Linux-5.4.0-72-generic-x86_64-with-glibc2.31 64 Bits Graphics card: Mesa DRI Intel(R) HD Graphics 4600 (HSW GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 20.2.6 **Blender Version** Broken: version: 2.93.0 Beta, branch: master, commit date: 2021-04-24 18:46, hash: `f7afd78b80` Worked: Last Worked in 2.92 (see video-Animation below) **Short description of error** ``` Repeated Crash using Boolean modifier - Intersect - Solver: Exact Solver Options: Self ``` Writing: /tmp/section.crash.txt Segmentation fault (core dumped) [section.crash.txt](https://archive.blender.org/developer/F10165533/section.crash.txt) **Exact steps for others to reproduce the error** 1) Open up downloaded attached file called **section.blend** this file will open fine 2) Change the settings to: **Solver:**Exact** **Solver Options:**Self** Image below: ![screenshot-2021-06-10-07-04-09.png](https://archive.blender.org/developer/F10165538/screenshot-2021-06-10-07-04-09.png) 3) Crash [section.blend](https://archive.blender.org/developer/F10037087/section.blend)
Author

Added subscriber: @Still

Added subscriber: @Still
Member

Added subscriber: @filedescriptor

Added subscriber: @filedescriptor
Member

@Still

And the 3D sectioning no longer works as expected (see animation of 2d and 3d sectioning working in 2.92 below)

Please only include one issue in a single report. It seems like these are completely separate issues, so please open another report for the "3D sectioning" issue and keep this report for the crash only.

@Still > And the 3D sectioning no longer works as expected (see animation of 2d and 3d sectioning working in 2.92 below) Please only include one issue in a single report. It seems like these are completely separate issues, so please open another report for the "3D sectioning" issue and keep this report for the crash only.
Author

Ok, I'll separate all three issues and add them as separate issues...I'll leave this one to deal with the crash.

Ok, I'll separate all three issues and add them as separate issues...I'll leave this one to deal with the crash.
RT changed title from Boolean modifier crash using intersect to Boolean modifier crashes Blender using intersect 2021-04-28 14:42:05 +02:00
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

What are the steps to get the crash ? The GIF shows the issue you show in #87866 (Boolean modifier - Intersect option - not working / artifacts while doing 3D Sectioning).

What are the steps to get the crash ? The GIF shows the issue you show in #87866 (Boolean modifier - Intersect option - not working / artifacts while doing 3D Sectioning).
Author

This is similar but this will CRASH Blender I attached the generated crash file this time sorry for not including it the first time.

Clearer Steps with image: 1) Open up downloaded attached file calledsection.blend (included in the above report) this file will open fine
2) Change the settings to:
**Solver:Exact
**Solver Options:Self

Image below:
screenshot-2021-06-10-07-04-09.png

  1. Crash
    See attached crash file
    Writing: /tmp/section.crash.txt
    Segmentation fault (core dumped)

section.crash.txt

This is similar but this will **CRASH** Blender I attached the generated crash file this time sorry for not including it the first time. **`Clearer Steps with image: `**1) Open up downloaded attached file called**section.blend** (*included in the above report*) this file will open fine 2) Change the settings to: **Solver:**Exact** **Solver Options:**Self** Image below: ![screenshot-2021-06-10-07-04-09.png](https://archive.blender.org/developer/F10165538/screenshot-2021-06-10-07-04-09.png) 3) Crash See attached crash file Writing: /tmp/section.crash.txt Segmentation fault (core dumped) [section.crash.txt](https://archive.blender.org/developer/F10165533/section.crash.txt)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

I'm redoing the steps in 0efb627bbd, but so far I see memory increase only.
I'll try blender 2.93 also.

I removed the info in the top level box that has been moved to other reports.

I'm redoing the steps in 0efb627bbd, but so far I see memory increase only. I'll try blender 2.93 also. I removed the info in the top level box that has been moved to other reports.
Member

I ran blender 2.93 for about 40 minutes before killing it because it didn't crash, nor returned to usable state. Memory at the time of killing was about 24 GB for a while then.

I ran blender 2.93 for about 40 minutes before killing it because it didn't crash, nor returned to usable state. Memory at the time of killing was about 24 GB for a while then.
Author

Do you need anything else from me?

Do you need anything else from me?
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

No crash here but consuming too much of memory. Also: as Ankit said, it did not return to working state.

For me 2.92 also has the same issue

No crash here but consuming too much of memory. Also: as Ankit said, it did not return to working state. For me 2.92 also has the same issue
Member

Added subscribers: @howardt, @lichtwerk

Added subscribers: @howardt, @lichtwerk
Member

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

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

This does not sound right.

Here is where it hangs for me:
image.png

Will confirm for now, @howardt : could you check on this?

This does not sound right. Here is where it hangs for me: ![image.png](https://archive.blender.org/developer/F10571242/image.png) Will confirm for now, @howardt : could you check on this?
Philipp Oeser changed title from Boolean modifier crashes Blender using intersect to Boolean modifier crashes/freezes Blender using intersect (or consumes much memory) 2021-09-24 15:35:32 +02:00
Member

So I think this is just a performance bug. There are just too many self intersections, because currently I treat touching at a vertex or exactly sharing an edge as a self-intersection (of course, neither of those contribute any new geometry at the end, but the intermediate algorithms all consider them). I'm investigating further now to make sure that is really all that is going on here.

It is possible that the crash that the original reporter reported was due to running out of memory. For me, as with others here who have tested, it is just taking "forever".

So I think this is just a performance bug. There are just too many self intersections, because currently I treat touching at a vertex or exactly sharing an edge as a self-intersection (of course, neither of those contribute any new geometry at the end, but the intermediate algorithms all consider them). I'm investigating further now to make sure that is really all that is going on here. It is possible that the crash that the original reporter reported was due to running out of memory. For me, as with others here who have tested, it is just taking "forever".
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

I think there is nothing for me to fix immediately here. I believe that if I let it run for 2 hours on my machine it would finish.

The big problem is that the result of the self intersection is a monster with almost 5 million triangles, a large number of which are non-manifold. This is because the input turbine object has a very messy bottom section, with lots of non-manifold vertices and (I think) very many skinny triangles. I believe if that model were cleaned up, this boolean would work acceptably. A workaround might be to separate that messy bottom out into a separate object and leave it out of the Boolean, and then weld it in later.

I can imagine (fairly large) changes to my code that could make this case run acceptably fast, but those are long term things, not something that I would regard as a bug fix for this particular case.

I think there is nothing for me to fix immediately here. I believe that if I let it run for 2 hours on my machine it would finish. The big problem is that the result of the self intersection is a monster with almost 5 million triangles, a large number of which are non-manifold. This is because the input turbine object has a very messy bottom section, with lots of non-manifold vertices and (I think) very many skinny triangles. I believe if that model were cleaned up, this boolean would work acceptably. A workaround might be to separate that messy bottom out into a separate object and leave it out of the Boolean, and then weld it in later. I can imagine (fairly large) changes to my code that could make this case run acceptably fast, but those are long term things, not something that I would regard as a bug fix for this particular case.
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
6 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#87795
No description provided.