Crash on applying boolean modifier #98705

Closed
opened 2022-06-09 02:38:22 +02:00 by Vince Herried · 17 comments

System Information
Operating system: Linux Fedora V35
Graphics card: Nvidia 3070TI

Blender Version
Blender 3.1.2 and Blender 3.2.0 both crash

Short description of error
I created a mesh object, then used boolean modifier to create a hollow center. I applied the modifier. When I go into edit to clean it up, it crashes.

Exact steps for others to reproduce the error
apply the boolean modifier to the mesh "Bottom" with object "Plug" in the included blend file using all defaults. Enter edit mode and see the mesh is badly corrupted.

part7.blend
printReady1.blend

**System Information** Operating system: Linux Fedora V35 Graphics card: Nvidia 3070TI **Blender Version** Blender 3.1.2 and Blender 3.2.0 both crash **Short description of error** I created a mesh object, then used boolean modifier to create a hollow center. I applied the modifier. When I go into edit to clean it up, it crashes. **Exact steps for others to reproduce the error** apply the boolean modifier to the mesh "Bottom" with object "Plug" in the included blend file using all defaults. Enter edit mode and see the mesh is badly corrupted. [part7.blend](https://archive.blender.org/developer/F13142407/part7.blend) [printReady1.blend](https://archive.blender.org/developer/F13140813/printReady1.blend)
Author

Added subscriber: @vince_549

Added subscriber: @vince_549
Author

Updated the blend file to pack external data.

Updated the blend file to pack external data.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Hi, thanks for the report. I get instant crash after opening your file. Looks like meshes from you file are corrupted.

Error found: object Plug had invalid mesh data!
Error found: object Top had invalid mesh data!```
Could you try the attached file?
[printReady1-mesh-validate.blend](https://archive.blender.org/developer/F13140918/printReady1-mesh-validate.blend)
Hi, thanks for the report. I get instant crash after opening your file. Looks like meshes from you file are corrupted. ```Error found: object Bottom had invalid mesh data! Error found: object Plug had invalid mesh data! Error found: object Top had invalid mesh data!``` Could you try the attached file? [printReady1-mesh-validate.blend](https://archive.blender.org/developer/F13140918/printReady1-mesh-validate.blend)
Author

your blend file opened fine. I was able to fix my blend file by deleting a face and saving, crash, repeat.
There was some seriously messed up topology apparently caused by the boolean modifier?
I checked my blend file before the boolean modifier and the 3d-print modifier likes it.
I was able to re-create the problem. Mesh "Top", "Bottom", and "Plug". I checked "Top" and "Bottom" with the standard blender 3d-print add on, it liked them both.
The plug is a simple stretched cube to hollow out the center.
I then applied a boolean modifier on the "bottom" using the plug as the object.
Blender then re-created the mesh with the horrible topology that caused it to crash repeatedly.
I am adding the blend file with the three mesh parts before doing the add boolean modifier. So I guess to try to re-create the problem you will have to apply the boolean to the bottom using the plug as the object
all the other parameters I left to default.

Thanks for looking :)
part7.blend

your blend file opened fine. I was able to fix my blend file by deleting a face and saving, crash, repeat. There was some seriously messed up topology apparently caused by the boolean modifier? I checked my blend file before the boolean modifier and the 3d-print modifier likes it. I was able to re-create the problem. Mesh "Top", "Bottom", and "Plug". I checked "Top" and "Bottom" with the standard blender 3d-print add on, it liked them both. The plug is a simple stretched cube to hollow out the center. I then applied a boolean modifier on the "bottom" using the plug as the object. Blender then re-created the mesh with the horrible topology that caused it to crash repeatedly. I am adding the blend file with the three mesh parts before doing the add boolean modifier. So I guess to try to re-create the problem you will have to apply the boolean to the bottom using the plug as the object all the other parameters I left to default. Thanks for looking :) [part7.blend](https://archive.blender.org/developer/F13142407/part7.blend)
Author

What more documentation is needed?

What more documentation is needed?
Member

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

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

So I guess to try to re-create the problem you will have to apply the boolean to the bottom using the plug as the object

Hi, crash seems very random. It does not happen every time.
Did you import this from anywhere? (don't they are really imported but asking just for clarity)

> So I guess to try to re-create the problem you will have to apply the boolean to the bottom using the plug as the object Hi, crash seems very random. It does not happen every time. Did you import this from anywhere? (don't they are really imported but asking just for clarity)
Author

It was not imported. I created it from a basic mesh cube. Using knife tool. Trying to create this joint

https://www.youtube.com/watch?v=GtdQoT7saz0

I found after applying the boolean modifier then going into edit and changing between vertex, edge, and face times really weird things happened followed by crash
I was able to recreate it from scratch.
Then found if I added multiple loop cuts before adding the boolean modifier, the crashes stopped.
I'm thinking of making a video of how I created this problem.

It was not imported. I created it from a basic mesh cube. Using knife tool. Trying to create this joint https://www.youtube.com/watch?v=GtdQoT7saz0 I found after applying the boolean modifier then going into edit and changing between vertex, edge, and face times really weird things happened followed by crash I was able to recreate it from scratch. Then found if I added multiple loop cuts before adding the boolean modifier, the crashes stopped. I'm thinking of making a video of how I created this problem.
Pratik Borhade changed title from Blender 3.2.0 crashes to Crash on applying boolean modifier 2022-06-22 07:59:14 +02:00
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Something is indeed wrong with the created mesh. it crashes randomly in certain cases

  • when changing boolean operation type
  • selecting object for boolean operation
  • Applying modifier
    Crash even occurs sometime when running with single thread (-t 1)
    Can also confirm that geometry is corrupted when boolean object is selected
    Tagging modules for more information.
Call stack:
blender.exe         :0x00007FF7291AD260  GPU_indexbuf_set_tri_verts
blender.exe         :0x00007FF724631E30  blender::draw::extract_tris_iter_poly_mesh
blender.exe         :0x00007FF7245F4DE0  blender::draw::extract_range_iter_poly_mesh
blender.exe         :0x00007FF729391120  BLI_task_parallel_range
blender.exe         :0x00007FF7245F4F80  blender::draw::extract_task_range_run
blender.exe         :0x00007FF7293BE000  tbb::flow::interface11::internal::function_body_leaf<tbb::flow::interface11::continue_msg,tbb::flow
blender.exe         :0x00007FF7293BE3F0  tbb::flow::interface11::internal::apply_body_task_bypass<tbb::flow::interface11::internal::continue
tbb.dll             :0x00007FF86C2CF220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FF86C2CF220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FF86C2C3FE0  tbb::interface7::internal::task_arena_base::internal_execute
blender.exe         :0x00007FF7293BEAF0  tbb::flow::interface10::graph::wait_for_all
blender.exe         :0x00007FF7245DEB20  DRW_mesh_batch_cache_create_requested
blender.exe         :0x00007FF7245D45B0  drw_batch_cache_generate_requested
blender.exe         :0x00007FF7245AE7A0  drw_engines_cache_populate
blender.exe         :0x00007FF7245AAEC0  DRW_draw_render_loop_ex
blender.exe         :0x00007FF7245ABFB0  DRW_draw_view
blender.exe         :0x00007FF724FBC6E0  view3d_main_region_draw
blender.exe         :0x00007FF724887680  ED_region_do_draw
blender.exe         :0x00007FF7244B3680  wm_draw_window_offscreen
blender.exe         :0x00007FF7244B34D0  wm_draw_window
blender.exe         :0x00007FF7244B2FC0  wm_draw_update
blender.exe         :0x00007FF72448C900  WM_main
blender.exe         :0x00007FF7235711D0  main
blender.exe         :0x00007FF729583770  __scrt_common_main_seh
KERNEL32.DLL        :0x00007FF88FD87020  BaseThreadInitThunk
ntdll.dll           :0x00007FF890E42630  RtlUserThreadStart```
Something is indeed wrong with the created mesh. it crashes randomly in certain cases - when changing boolean operation type - selecting object for boolean operation - Applying modifier Crash even occurs sometime when running with single thread (-t 1) Can also confirm that geometry is corrupted when boolean object is selected Tagging modules for more information. ```lines=10 Call stack: blender.exe :0x00007FF7291AD260 GPU_indexbuf_set_tri_verts blender.exe :0x00007FF724631E30 blender::draw::extract_tris_iter_poly_mesh blender.exe :0x00007FF7245F4DE0 blender::draw::extract_range_iter_poly_mesh blender.exe :0x00007FF729391120 BLI_task_parallel_range blender.exe :0x00007FF7245F4F80 blender::draw::extract_task_range_run blender.exe :0x00007FF7293BE000 tbb::flow::interface11::internal::function_body_leaf<tbb::flow::interface11::continue_msg,tbb::flow blender.exe :0x00007FF7293BE3F0 tbb::flow::interface11::internal::apply_body_task_bypass<tbb::flow::interface11::internal::continue tbb.dll :0x00007FF86C2CF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FF86C2CF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FF86C2C3FE0 tbb::interface7::internal::task_arena_base::internal_execute blender.exe :0x00007FF7293BEAF0 tbb::flow::interface10::graph::wait_for_all blender.exe :0x00007FF7245DEB20 DRW_mesh_batch_cache_create_requested blender.exe :0x00007FF7245D45B0 drw_batch_cache_generate_requested blender.exe :0x00007FF7245AE7A0 drw_engines_cache_populate blender.exe :0x00007FF7245AAEC0 DRW_draw_render_loop_ex blender.exe :0x00007FF7245ABFB0 DRW_draw_view blender.exe :0x00007FF724FBC6E0 view3d_main_region_draw blender.exe :0x00007FF724887680 ED_region_do_draw blender.exe :0x00007FF7244B3680 wm_draw_window_offscreen blender.exe :0x00007FF7244B34D0 wm_draw_window blender.exe :0x00007FF7244B2FC0 wm_draw_update blender.exe :0x00007FF72448C900 WM_main blender.exe :0x00007FF7235711D0 main blender.exe :0x00007FF729583770 __scrt_common_main_seh KERNEL32.DLL :0x00007FF88FD87020 BaseThreadInitThunk ntdll.dll :0x00007FF890E42630 RtlUserThreadStart```
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

#99191 (Regression: Blender crashes when texture painting (caused by boolean modifers)) is probably the root cause, we also have invalid mat numbers on the MPoly here

#99191 (Regression: Blender crashes when texture painting (caused by boolean modifers)) is probably the root cause, we also have invalid `mat` numbers on the `MPoly` here
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member
CC @HooglyBoogly
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:27:41 +01:00
Member

I think this is likely related to some other reports in the area from the last couple years. Those were fixed so this hopefully is too. If not, feel free to reopen this task. Thanks.

I think this is likely related to some other reports in the area from the last couple years. Those were fixed so this hopefully is too. If not, feel free to reopen this task. Thanks.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2024-03-07 16:47:53 +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
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#98705
No description provided.