Blender crash and closes when play animation in this scene #46269

Closed
opened 2015-09-25 21:04:25 +02:00 by YAFU · 22 comments

System Information
Kubuntu 14.04 64 bits - Kubuntu 15.04 64 bits
i7 3770
GTX 960 4GB - 355.11 driver

Blender Version
Broken: Blender 2.73a - Blender 2.76 RC2

Short description of error

Blender crash and closes when I play animation in this scene:
http://www.blendswap.com/blends/view/78511

Sometimes it occurs soon after started playing, sometimes a few seconds later.
I think that scene license allows me to upload the file here, but not sure. You say if you need and if I have allowed re-upload the scene here. In blendswap scene is labeled as Internal but it isl Cycles.
Linux terminal reports "segmentation fault" (but in spanish). Tested in two different systems: Kubuntu Linux 14.04 and 15.04 (64 bits), same machine. Blender 2.73a and Blender 2.76 RC2. Always crash.
Crash logs for Blender 2.76 in Kubuntu 14.04 and 15.04:
http://www.pasteall.org/61340
http://www.pasteall.org/61341

Exact steps for others to reproduce the error
Open the scene.
Play the animation Alt+A, wait a while until Blender crash. Perhaps you orbit the scene while animation plays can accelerate crash happen.
Also moving the timeline Blender crash.

**System Information** Kubuntu 14.04 64 bits - Kubuntu 15.04 64 bits i7 3770 GTX 960 4GB - 355.11 driver **Blender Version** Broken: Blender 2.73a - Blender 2.76 RC2 **Short description of error** Blender crash and closes when I play animation in this scene: http://www.blendswap.com/blends/view/78511 Sometimes it occurs soon after started playing, sometimes a few seconds later. I think that scene license allows me to upload the file here, but not sure. You say if you need and if I have allowed re-upload the scene here. In blendswap scene is labeled as Internal but it isl Cycles. Linux terminal reports "segmentation fault" (but in spanish). Tested in two different systems: Kubuntu Linux 14.04 and 15.04 (64 bits), same machine. Blender 2.73a and Blender 2.76 RC2. Always crash. Crash logs for Blender 2.76 in Kubuntu 14.04 and 15.04: http://www.pasteall.org/61340 http://www.pasteall.org/61341 **Exact steps for others to reproduce the error** Open the scene. Play the animation Alt+A, wait a while until Blender crash. Perhaps you orbit the scene while animation plays can accelerate crash happen. Also moving the timeline Blender crash.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @YAFU

Added subscriber: @YAFU

Added subscriber: @mont29

Added subscriber: @mont29

We for sure need a .blend file here - but we most likely also need to know how to re-create the issue, since this heavily looks like a broken/corrupted file… In any case, we cannot do anything so far.

We for sure need a .blend file here - but we most likely also need to know how to re-create the issue, since this heavily looks like a broken/corrupted file… In any case, we cannot do anything so far.
Author

Here attached scene (zip). I hope I'm not breaking the license:
Pixels_Pacman_BlendSwap.zip

Unmodified .blend downloaded from:
http://www.blendswap.com/blends/view/78511

License: CC-BY-NC
https://creativecommons.org/licenses/by-nc/3.0/
Author: AnimationsVFX

By the way, if I disable display in viewport of either of the two modifiers (Boolean - Remesh) for "Sphere.000" the crash seems not occur. Crash occurs with the two modifiers enabled in "Sphere.000" while the animation is playing in viewport.

You note that the crash does not occur immediately since you start to play the animation. You play the animation for at least 30 seconds and better if you orbit in it.

Here attached scene (zip). I hope I'm not breaking the license: [Pixels_Pacman_BlendSwap.zip](https://archive.blender.org/developer/F240062/Pixels_Pacman_BlendSwap.zip) Unmodified .blend downloaded from: http://www.blendswap.com/blends/view/78511 License: CC-BY-NC https://creativecommons.org/licenses/by-nc/3.0/ Author: AnimationsVFX By the way, if I disable display in viewport of either of the two modifiers (Boolean - Remesh) for "Sphere.000" the crash seems not occur. Crash occurs with the two modifiers enabled in "Sphere.000" while the animation is playing in viewport. You note that the crash does not occur immediately since you start to play the animation. You play the animation for at least 30 seconds and better if you orbit in it.

Well, cannot get any crashing here (Debian64 testing), with latest master, either on intel integrated GPU or NVidia 850m (with 340 drivers), and an ASAN build… This .blend is awfully heavy though.

Well, cannot get any crashing here (Debian64 testing), with latest master, either on intel integrated GPU or NVidia 850m (with 340 drivers), and an ASAN build… This .blend is awfully heavy though.
Author

This is weird. On my machine this is an "always crash", "always reproducible."
Tested in two different 64-bit Kubuntu installations. For now I was using official Blender tar.bz2 (2.73a and 2.76 RC2). But I just compile/build from master, and the crash also occurs.
You analyzing these crash logs before I posted, you could give me some clue about what may be going wrong in my machine?

I do not usually have crashes with Blender. Only in this scene.

i7 3770, GTX 960 4GB, 12GB RAM (three modules of 4GB). When I bought the RAM, memtest was OK.

This is weird. On my machine this is an "always crash", "always reproducible." Tested in two different 64-bit Kubuntu installations. For now I was using official Blender tar.bz2 (2.73a and 2.76 RC2). But I just compile/build from master, and the crash also occurs. You analyzing these crash logs before I posted, you could give me some clue about what may be going wrong in my machine? I do not usually have crashes with Blender. Only in this scene. i7 3770, GTX 960 4GB, 12GB RAM (three modules of 4GB). When I bought the RAM, memtest was OK.

Ah, if you can build yourself, would be nice to build a debug build with ASAN enabled (see http://wiki.blender.org/index.php/Dev:Doc/Tools/Debugging/GCC_Address_Sanitizer too), backtrace should be much more useful that way. ;)

Ah, if you can build yourself, would be nice to build a debug build with ASAN enabled (see http://wiki.blender.org/index.php/Dev:Doc/Tools/Debugging/GCC_Address_Sanitizer too), backtrace should be much more useful that way. ;)
Author

Ok, my knowledge about compiling blender are minimal. I just follow this guide:
http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake
and I compile using pre-defined build target "make". I have no idea about cmake and flags. The truth, I understand very little about what explains the link you gave me. If you can give me some easy instruction about how to compile with this thing enabled (just for a simple user of Blender) I would be grateful. Perhaps modifying something in CMakeLists.txt file?
Anyway, I will continue researching about this and see if I can do it.

Ok, my knowledge about compiling blender are minimal. I just follow this guide: http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake and I compile using pre-defined build target "make". I have no idea about cmake and flags. The truth, I understand very little about what explains the link you gave me. If you can give me some easy instruction about how to compile with this thing enabled (just for a simple user of Blender) I would be grateful. Perhaps modifying something in CMakeLists.txt file? Anyway, I will continue researching about this and see if I can do it.

Well… Just install cmake-gui (from your package manager) if not yet done, open your Blender build file (double-clicking on CMakeCache.txt in your build directory should open the editor), locate CMAKE_CXX_FLAGS_DEBUGandCMAKE_C_FLAGS_DEBUGdebug entries, add-fsanitize=addressoption to both (so they should look like-g -fsanitize=addressor something), and setCMAKE_BUILD_TYPEtoDebug. Then you just have to hit Generate` button, and you can close cmake-gui and rebuild Blender.

Well… Just install cmake-gui (from your package manager) if not yet done, open your Blender build file (double-clicking on `CMakeCache.txt in your build directory should open the editor), locate `CMAKE_CXX_FLAGS_DEBUG` and `CMAKE_C_FLAGS_DEBUG` debug entries, add `-fsanitize=address` option to both (so they should look like `-g -fsanitize=address` or something), and set `CMAKE_BUILD_TYPE` to `Debug`. Then you just have to hit `Generate` button, and you can close cmake-gui and rebuild Blender.
Author

Very nice that cmake-gui! Thanks. Anyway I'm getting errors when trying to compile. I will continue investigating.

By the way, I mention the following thing in case the data is useful. I downloaded different versions of Blender for testing. The crash does not occur in Blender 2.69. The crash occurs starting from Blender 2.70 (the crash occurred in all Blender 2.7x). Have there been any changes in those Modifiers in the transition 2.69 to 2.70?

Very nice that cmake-gui! Thanks. Anyway I'm getting errors when trying to compile. I will continue investigating. By the way, I mention the following thing in case the data is useful. I downloaded different versions of Blender for testing. The crash does not occur in Blender 2.69. The crash occurs starting from Blender 2.70 (the crash occurred in all Blender 2.7x). Have there been any changes in those Modifiers in the transition 2.69 to 2.70?
Author

I can not compile in Kubuntu 14.04. In 15.04 I had to disable compositor otherwise I get errors. Here is the log after crash:
log_asan.txt

Building in this way, the animation runs much slower and it takes longer to crash.
Just in case some newbie like me are looking at google about this "ASAN" thing, I clarify that to find "CMakeCache.txt" you need first to do "make". Then you find "CMakeCache.txt" in "build_linux" directory. I really do not know how to do "make" works without building binaries, just configuring and generating this "CMakeCache.txt". So I deleted the content of "bin" directory under "build_linux". When you open "CMakeCache.txt" with "cmake-gui", you tick the "Advanced" box. Make the changes and Generate. Then I did "make -j 8" inside "build_linux" folder (you replace "8" by the number of your CPU threads)
If build was successful, download the "asan_symbolize.py" from ASAN link above, copy the script inside "bin" folder. Make the script executable. Open the terminal in "bin" folder and run:
./blender 2>&1 | ./asan_symbolize.py

Anyway, I do not know if I've done all this right

I can not compile in Kubuntu 14.04. In 15.04 I had to disable compositor otherwise I get errors. Here is the log after crash: [log_asan.txt](https://archive.blender.org/developer/F240294/log_asan.txt) Building in this way, the animation runs much slower and it takes longer to crash. Just in case some newbie like me are looking at google about this "ASAN" thing, I clarify that to find "CMakeCache.txt" you need first to do "make". Then you find "CMakeCache.txt" in "build_linux" directory. I really do not know how to do "make" works without building binaries, just configuring and generating this "CMakeCache.txt". So I deleted the content of "bin" directory under "build_linux". When you open "CMakeCache.txt" with "cmake-gui", you tick the "Advanced" box. Make the changes and Generate. Then I did "make -j 8" inside "build_linux" folder (you replace "8" by the number of your CPU threads) If build was successful, download the "asan_symbolize.py" from ASAN link above, copy the script inside "bin" folder. Make the script executable. Open the terminal in "bin" folder and run: ./blender 2>&1 | ./asan_symbolize.py Anyway, I do not know if I've done all this right
Sergey Sharybin was assigned by Bastien Montagne 2015-09-28 08:58:03 +02:00

Added subscriber: @Sergey

Added subscriber: @Sergey

Thanks, looks like we have an interesting backtrace now. :)

@Sergey bug is in carve area it seems, maybe you can even understand it from that single backtrace?

Thanks, looks like we have an interesting backtrace now. :) @Sergey bug is in carve area it seems, maybe you can even understand it from that single backtrace?

This is quite hard to debug such issues having just a stack trace of address sanitizer.

Some questions which will give us some clues:

  • Is there any previous blender version which worked (2.69, 2.70 ?
  • Does it happen when using single threaded evaluation (start blender with -t 1 command line argument)
  • Does it happen with official builds from blender.org (not sure if you're using blender from your distro repo, but for such kind of issues it's crucial to verufy issue could be reproduced with official builds)
  • Any chance you can test the issue on another machine?
This is quite hard to debug such issues having just a stack trace of address sanitizer. Some questions which will give us some clues: - Is there any previous blender version which worked (2.69, 2.70 ? - Does it happen when using single threaded evaluation (start blender with `-t 1` command line argument) - Does it happen with official builds from blender.org (not sure if you're using blender from your distro repo, but for such kind of issues it's crucial to verufy issue could be reproduced with official builds) - Any chance you can test the issue on another machine?
Author

Hi.
I'll try to do a quick summary to not be confusing.
The behavior regarding whether Blender is installed from repositories or official Blender, is the same.
The scene "crash" in all Blender 2.7x (tested on 2.70, 2.72, 2.73, 2.75, 2.76 RC2, git master).
The scene works well in Blender 2.68 or 2.69.
Executing Blender 2.7x from terminal with "-t 1", the scene does not crash, play animation in viewport works well!

So, is this problem in my machine related to the new multithreaded features starting from Blender 2.70?
This is my CPU:
http://ark.intel.com/es/products/65719/Intel-Core-i7-3770-Processor-8M-Cache-up-to-3_90-GHz

In the next days I will try to test on another PC, but it has old AMD CPU.

Hi. I'll try to do a quick summary to not be confusing. The behavior regarding whether Blender is installed from repositories or official Blender, is the same. The scene "crash" in all Blender 2.7x (tested on 2.70, 2.72, 2.73, 2.75, 2.76 RC2, git master). The scene works well in Blender 2.68 or 2.69. Executing Blender 2.7x from terminal with "-t 1", the scene does not crash, play animation in viewport works well! So, is this problem in my machine related to the new multithreaded features starting from Blender 2.70? This is my CPU: http://ark.intel.com/es/products/65719/Intel-Core-i7-3770-Processor-8M-Cache-up-to-3_90-GHz In the next days I will try to test on another PC, but it has old AMD CPU.

No, this doesn't mean your computer is to blame, it's some threading conflict is happening somewhere which is always tricky to reproduce.

No, this doesn't mean your computer is to blame, it's some threading conflict is happening somewhere which is always tricky to reproduce.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Attached report of ASAN actually seems quite wrong. Seems there's some more major memory issue happening around and ASAN is simply being confused about where the bad address came from. Such issues we really need to be able to reproduce in order to solve them. This particular case is also being complicated because it involves 3rd party library which we don't maintain and which we're currently trying to get rid of.

So the plan here would be to put forces on finishing bmesh replacement for booleans, which will make it so only our code is involved into the issue, making it easier to troubleshoot. For until then i'll archive the report, it's linked from Campbell's TODO now. Thanks for it anyway!

Attached report of ASAN actually seems quite wrong. Seems there's some more major memory issue happening around and ASAN is simply being confused about where the bad address came from. Such issues we really need to be able to reproduce in order to solve them. This particular case is also being complicated because it involves 3rd party library which we don't maintain and which we're currently trying to get rid of. So the plan here would be to put forces on finishing bmesh replacement for booleans, which will make it so only our code is involved into the issue, making it easier to troubleshoot. For until then i'll archive the report, it's linked from Campbell's TODO now. Thanks for it anyway!

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Looking into this when testing the newboolean branch and don't think this is a boolean issue.

I get crash in 2.83 package from ArchLinux repos, but not the official blender.org 2.83 build. The crash I'm getting is in the octree code.

- 0  0x00005555572a4a83 in Octree::updateCell(LeafNode*, CubeTriangleIsect*) ()
- 1  0x00005555572a4fb3 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 2  0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 3  0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 4  0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 5  0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 6  0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) ()
- 7  0x00005555572a525f in Octree::addTriangle(Triangle*, int) ()
- 8  0x00005555572a52d9 in Octree::addAllTriangles() ()
- 9  0x00005555572abd1f in Octree::scanConvert() ()
- 10 0x00005555572a3a63 in dualcon ()
- 11 0x00005555566da7c0 in applyModifier ()
- 12 0x0000555556479cb2 in mesh_calc_modifiers ()
- 13 0x000055555647a917 in mesh_build_data ()
- 14 0x000055555647be5f in makeDerivedMesh ()
- 15 0x00005555562fc1e9 in BKE_object_handle_data_update ()
#16 0x00005555562fc531 in BKE_object_eval_uber_data ()
Looking into this when testing the `newboolean` branch and don't think this is a boolean issue. I get crash in 2.83 package from ArchLinux repos, but not the official blender.org 2.83 build. The crash I'm getting is in the octree code. ``` - 0 0x00005555572a4a83 in Octree::updateCell(LeafNode*, CubeTriangleIsect*) () - 1 0x00005555572a4fb3 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 2 0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 3 0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 4 0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 5 0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 6 0x00005555572a5014 in Octree::addTriangle(InternalNode*, CubeTriangleIsect*, int) () - 7 0x00005555572a525f in Octree::addTriangle(Triangle*, int) () - 8 0x00005555572a52d9 in Octree::addAllTriangles() () - 9 0x00005555572abd1f in Octree::scanConvert() () - 10 0x00005555572a3a63 in dualcon () - 11 0x00005555566da7c0 in applyModifier () - 12 0x0000555556479cb2 in mesh_calc_modifiers () - 13 0x000055555647a917 in mesh_build_data () - 14 0x000055555647be5f in makeDerivedMesh () - 15 0x00005555562fc1e9 in BKE_object_handle_data_update () #16 0x00005555562fc531 in BKE_object_eval_uber_data () ```

@ideasman42 , wouldn't it be better idea to make a new report, with an updated instructions, .blend file and so on?

@ideasman42 , wouldn't it be better idea to make a new report, with an updated instructions, .blend file and so on?
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#46269
No description provided.