Hang on trying to write crash report #38116

Closed
opened 2014-01-08 04:09:28 +01:00 by Lawrence D'Oliveiro · 17 comments

System Information
Debian Unstable AMD64, Intel Core i7 with HD4000 graphics

Blender Version
Broken: 2.69.8 built from a Git update just a few hours ago.

Description of error
The enclosed file causes Blender to hang trying to open it.

I was hitting a crash when trying to merge needless duplicates of object data on some mesh objects. In an effort to pin down the minimum .blend file that would reproduce the error, I ended up creating the enclosed file mesh_users_crash.blend, that seems to trigger a hang immediately you try to open it.

Actually it looks like Blender crashes, tries to write a crash dump, and hangs. I see the message “Writing: /tmp/mesh_users_crash.crash.txt” appear in the terminal window I launched it from, then no further response. There is no file /tmp/mesh_users_crash.crash.txt, so presumably it never got as far as opening the file for writing.

**System Information** Debian Unstable AMD64, Intel Core i7 with HD4000 graphics **Blender Version** Broken: 2.69.8 built from a Git update just a few hours ago. **Description of error** The enclosed file causes Blender to hang trying to open it. I was hitting a crash when trying to merge needless duplicates of object data on some mesh objects. In an effort to pin down the minimum `.blend` file that would reproduce the error, I ended up creating the enclosed file [mesh_users_crash.blend](https://archive.blender.org/developer/F63636/mesh_users_crash.blend), that seems to trigger a hang immediately you try to open it. Actually it looks like Blender crashes, tries to write a crash dump, and hangs. I see the message “Writing: /tmp/mesh_users_crash.crash.txt” appear in the terminal window I launched it from, then no further response. There is no file `/tmp/mesh_users_crash.crash.txt`, so presumably it never got as far as opening the file for writing.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @ldo

Added subscriber: @ldo

#38109 was marked as duplicate of this issue

#38109 was marked as duplicate of this issue
Member

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Member

No crash here on Windows 64-bit (mingw64), build 7647a2b

To allow normal debugging via GDB, run blender with the --disable-crash-handler flag

No crash here on Windows 64-bit (mingw64), build 7647a2b To allow normal debugging via GDB, run blender with the --disable-crash-handler flag

I rebuilt with GDB, it now succeeds in opening the file without a crash.

However, I then tried linking all the Manhole Cover.nnn objects to the single Manhole Cover mesh (to get rid of the duplicate Manhole Cover.nnn meshes). After about doing one or two, it crashes. A backtrace is enclosed crash_backtrace.txt. The key message seems to be “free(): invalid next size (normal)”.

I rebuilt with GDB, it now succeeds in opening the file without a crash. However, I then tried linking all the Manhole Cover.*nnn* objects to the single Manhole Cover mesh (to get rid of the duplicate Manhole Cover.*nnn* meshes). After about doing one or two, it crashes. A backtrace is enclosed [crash_backtrace.txt](https://archive.blender.org/developer/F63658/crash_backtrace.txt). The key message seems to be “free(): invalid next size (normal)”.
Sergey Sharybin self-assigned this 2014-01-13 20:23:58 +01:00

This is very much the same heisenbug i was fighting two days already. Assigning to self for now, this could give some clues to me.

This is very much the same heisenbug i was fighting two days already. Assigning to self for now, this could give some clues to me.

Let me know if there are any further tests I can do.

Let me know if there are any further tests I can do.

Just to recap, the story so far:

I did a production build from a recent commit from just a few minutes ago (ff98be), launched it with no command-line options, did a Load Factory Settings, then tried to load the above problem file F63636, whereupon it hung. In the terminal window, the last message was “Writing: /tmp/mesh_users_crash.crash.txt”. There was no such file.

If I relaunched the same build with the ##--disable-crash-handler## option, it manages to load the file. Then I tried selecting each of the “Manhole Cover.nnn” mesh objects, and changing the mesh datablock to the one named “Manhole Cover” instead of “Manhole Cover.nnn”, where it wasn’t already so linked. After doing no more than one or two of these, Blender crashes.

If I make a build from 7025a1, I can do all the above just fine.

Just to recap, the story so far: I did a production build from a recent commit from just a few minutes ago (ff98be), launched it with no command-line options, did a Load Factory Settings, then tried to load the above problem file [F63636](https://archive.blender.org/developer/F63636/mesh_users_crash.blend), whereupon it hung. In the terminal window, the last message was “Writing: /tmp/mesh_users_crash.crash.txt”. There was no such file. If I relaunched the same build with the ##--disable-crash-handler## option, it manages to load the file. Then I tried selecting each of the “Manhole Cover.*nnn*” mesh objects, and changing the mesh datablock to the one named “Manhole Cover” instead of “Manhole Cover.*nnn*”, where it wasn’t already so linked. After doing no more than one or two of these, Blender crashes. If I make a build from 7025a1, I can do all the above just fine.

In case it might be relevant, here is some info on my GCC version:

ldo@theon:blender> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Debian 4.8.2-10)

In case it might be relevant, here is some info on my GCC version: ldo@theon:blender> gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.8.2 (Debian 4.8.2-10)

The actual issue is not about hung when gathering crash report, it is not controlled by blender actually and it might work really unpredictable depending on how much corrupted the memory is.

Actual issue is why blender crashes. And this is to be solved.

The actual issue is not about hung when gathering crash report, it is not controlled by blender actually and it might work really unpredictable depending on how much corrupted the memory is. Actual issue is why blender crashes. And this is to be solved.

Added subscribers: @zanqdo, @brecht, @Sergey, @mont29, @ideasman42

Added subscribers: @zanqdo, @brecht, @Sergey, @mont29, @ideasman42

◀ Merged tasks: #38109.

◀ Merged tasks: #38109.

This issue was referenced by blender/blender-addons-contrib@e9fb4299eb

This issue was referenced by blender/blender-addons-contrib@e9fb4299ebe94ddc5df93e90ec753bd3e0284f84

This issue was referenced by e9fb4299eb

This issue was referenced by e9fb4299ebe94ddc5df93e90ec753bd3e0284f84

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit e9fb4299eb.

Closed by commit e9fb4299eb.
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#38116
No description provided.