carve boolean modifier make some files impossible to open or very unstable. #52163

Closed
opened 2017-07-23 20:21:22 +02:00 by mathieu menuet · 15 comments

System Information
Win 7 x64

Blender Version
Broken: 2.79 testbuild2 VS2015 (VS2013 opens as well as Linux versions)

Short description of error
Some carve modifier makes complex files impossible to open. Changing them to Bmesh mode make those files to work again.

Exact steps for others to reproduce the error
I couldn't make a file to reproduce the error. What is sure is that the object in this file makes the original file to not open in VS2015 builds and prints a lot of memory leaks on Linux with ASAN.
buggy carve.blend
When this object is removed or changed to bmesh in the boolean modifier option, the file opens again on VS2015 builds.
Even on 2013 builds, the original file with this object is very unstable. It randomly but often crashes at render start or end or when undoing.

**System Information** Win 7 x64 **Blender Version** Broken: 2.79 testbuild2 VS2015 (VS2013 opens as well as Linux versions) **Short description of error** Some carve modifier makes complex files impossible to open. Changing them to Bmesh mode make those files to work again. **Exact steps for others to reproduce the error** I couldn't make a file to reproduce the error. What is sure is that the object in this file makes the original file to not open in VS2015 builds and prints a lot of memory leaks on Linux with ASAN. [buggy carve.blend](https://archive.blender.org/developer/F676521/buggy_carve.blend) When this object is removed or changed to bmesh in the boolean modifier option, the file opens again on VS2015 builds. Even on 2013 builds, the original file with this object is very unstable. It randomly but often crashes at render start or end or when undoing.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @bliblubli

Added subscriber: @bliblubli

#51975 was marked as duplicate of this issue

#51975 was marked as duplicate of this issue

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Author

Added subscribers: @fablefox, @Sergey

Added subscribers: @fablefox, @Sergey
Ray molenkamp was assigned by Sergey Sharybin 2017-07-26 12:11:57 +02:00

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo

I can confirm the issue, but only happens in release build done with MSVC 2015. It doesn't even happen in RelWithDebInfo configuration, which makes it really hard to troubleshoot.

@LazyDodo, Can you check whether you can reproduce the issue and get some usable backtrace?

I can confirm the issue, but only happens in release build done with MSVC 2015. It doesn't even happen in RelWithDebInfo configuration, which makes it really hard to troubleshoot. @LazyDodo, Can you check whether you can reproduce the issue and get some usable backtrace?
Author

Note that the crash on file open is only on VS2015 release, but instability is in VS2013 = official release too. It just happens randomly during a material change or an undo or a final render start or whatever part of memory was corrupted.

Note that the crash on file open is only on VS2015 release, but instability is in VS2013 = official release too. It just happens randomly during a material change or an undo or a final render start or whatever part of memory was corrupted.

I can open it with VS 2015 build (blender-2.78-edc6bec-win64-vc14.zip). Using parameter -d. I changed the modifier type to Carve and save it.

I can open it and do some extrude to test undo/redo and also render it fine (although I cancelled halfway because it takes too long). Its my own VS 2015 build of e982ebd Blender.

Although as a note, the first time I change the modifier to Carve, rotating the scene become slugging. After 30 sec or something, its fine. Subsequent opening the file with modifier already set to Carve, rotating the scene just fine.

I can open it with VS 2015 build (blender-2.78-edc6bec-win64-vc14.zip). Using parameter -d. I changed the modifier type to Carve and save it. I can open it and do some extrude to test undo/redo and also render it fine (although I cancelled halfway because it takes too long). Its my own VS 2015 build of e982ebd Blender. Although as a note, the first time I change the modifier to Carve, rotating the scene become slugging. After 30 sec or something, its fine. Subsequent opening the file with modifier already set to Carve, rotating the scene just fine.

@bliblubli, please define what exact instability is and how to reproduce it.

@bliblubli, please define what exact instability is and how to reproduce it.
Author

@Sergey #51975 shows variants of bug that pops up when this carve object is in scene. Sometime, some part of the mesh (the box containing the vegetables) was missing, sometime the textures were pink, sometime the shader got white. Most of the time hitting F12 would segfault. Sometime it succeeded, but the segfault appeared just after render finished (couldn't even save the file).
@fablefox debug builds indeed are working. Of course, replacing carve with bmesh also makes the file stable again.
To more easily the bugs and crash, you have to:

  • open with VS2013 buildbots
  • append everything in the file attached into a very complex scene (there must be something to corrupt in memory, so many shaders, lot of meshes, etc. make crash more often)
  • duplicate in place ( location may be important to trigger the bug) what you appended to make the probability of crash higher (the overflows are more likely to produce a crash if many part of memory are overwritten/corrupted, so duplicate it a hundred time if it doesn't crash)
  • then try to render, undo, etc...
    This part of the scene was modeledin november last year and wasn't touched since then. The bugs and crash happened more often as scene complexity increased.
@Sergey #51975 shows variants of bug that pops up when this carve object is in scene. Sometime, some part of the mesh (the box containing the vegetables) was missing, sometime the textures were pink, sometime the shader got white. Most of the time hitting F12 would segfault. Sometime it succeeded, but the segfault appeared just after render finished (couldn't even save the file). @fablefox debug builds indeed are working. Of course, replacing carve with bmesh also makes the file stable again. To more easily the bugs and crash, you have to: - open with VS2013 buildbots - append everything in the file attached into a very complex scene (there must be something to corrupt in memory, so many shaders, lot of meshes, etc. make crash more often) - duplicate in place ( location may be important to trigger the bug) what you appended to make the probability of crash higher (the overflows are more likely to produce a crash if many part of memory are overwritten/corrupted, so duplicate it a hundred time if it doesn't crash) - then try to render, undo, etc... This part of the scene was modeledin november last year and wasn't touched since then. The bugs and crash happened more often as scene complexity increased.

Added subscriber: @VukGardasevic

Added subscriber: @VukGardasevic

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Since the commit e0597baed5 Carve library was removed from Blender. Since these boolean problems are related to issues within the library, the task can be closed.

Since the commit e0597baed5 Carve library was removed from Blender. Since these boolean problems are related to issues within the library, the task can be closed.
Author

Well, Carve was actually a good fall-back method when Bmesh boolean failed. It would be good to remove fallbacks when the main is polished and covers all the cases the fallback did?

Well, Carve was actually a good fall-back method when Bmesh boolean failed. It would be good to remove fallbacks when the main is polished and covers all the cases the fallback did?
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#52163
No description provided.