Delete crash on specific scene (Physics) #35995

Closed
opened 2013-07-04 02:39:38 +02:00 by Shakanos · 4 comments

%%%--- Operating System, Graphics card ---
Windows 8 x64, GTX560SE

- Blender version with error ---

r57951

- Short description of error ---

I encountered an crash after using a Rigid body. After several experiments I did not manage to precisely identify where the bug does come from. But I found the steps to completely reproduce the crash on my system.

I also found a strange thing that the crash somehow depends on the folder from which I open a file: If I open the file from the root directory (C:\delete_crash.blend), then the crash occurs in 2.67b and in r57951; But if I open the file from a folder (C:\test\delete_crash.blend), then the crash occurs only in r57951. So, perhaps this a Windows only bug.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

Open attached .blend file. Press Shift+← to jump to first frame. Press "Remove" button on "Rigid Body Tools" panel on Tool Shelf. Press X and delete selected objects = Crash.
%%%

%%%--- Operating System, Graphics card --- Windows 8 x64, GTX560SE - Blender version with error --- r57951 - Short description of error --- I encountered an crash after using a Rigid body. After several experiments I did not manage to precisely identify where the bug does come from. But I found the steps to completely reproduce the crash on my system. I also found a strange thing that the crash somehow depends on the folder from which I open a file: If I open the file from the root directory (C:\delete_crash.blend), then the crash occurs in 2.67b and in r57951; But if I open the file from a folder (C:\test\delete_crash.blend), then the crash occurs only in r57951. So, perhaps this a Windows only bug. - Steps for others to reproduce the error (preferably based on attached .blend file) --- Open attached .blend file. Press Shift+← to jump to first frame. Press "Remove" button on "Rigid Body Tools" panel on Tool Shelf. Press X and delete selected objects = Crash. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Confirmed, the bug looks to be that Remove isnt removing constraints from the rigid body world.

See valgrind output, assigning to Sergej.

22960== Invalid read of size 4

22960== at 0x11B716B: btAlignedObjectArray<btTypedConstraint*>::size() const (btAlignedObjectArray.h:151)

22960== by 0x13760D0: btAlignedObjectArray<btTypedConstraint*>::findLinearSearch(btTypedConstraint* const&) const (btAlignedObjectArray.h:467)

22960== by 0x1375783: btAlignedObjectArray<btTypedConstraint*>::remove(btTypedConstraint* const&) (btAlignedObjectArray.h:484)

22960== by 0x1378930: btRigidBody::removeConstraintRef(btTypedConstraint*) (btRigidBody.cpp:350)

22960== by 0x136F2D4: btDiscreteDynamicsWorld::removeConstraint(btTypedConstraint*) (btDiscreteDynamicsWorld.cpp:662)

22960== by 0x11AA03A: RB_dworld_remove_constraint (rb_bullet_api.cpp:786)

22960== by 0x11382A7: BKE_rigidbody_remove_constraint (rigidbody.c:944)

22960== by 0xB29DBC: object_delete_exec (object_add.c:1059)

22960== by 0x71DA71: wm_operator_invoke (wm_event_system.c:996)

22960== by 0x71E01C: wm_operator_call_internal (wm_event_system.c:1168)

22960== by 0x71E1E6: WM_operator_name_call (wm_event_system.c:1217)

22960== by 0xA1C180: ui_apply_but_funcs_after (interface_handlers.c:496)

22960== by 0xA31F9B: ui_handler_popup (interface_handlers.c:7474)

22960== by 0x71BE7B: wm_handler_ui_call (wm_event_system.c:410)

22960== by 0x71FA54: wm_handlers_do_intern (wm_event_system.c:1876)

22960== by 0x71FCF4: wm_handlers_do (wm_event_system.c:1955)

22960== by 0x720867: wm_event_do_handlers (wm_event_system.c:2201)

22960== by 0x715DEF: WM_main (wm.c:462)

22960== by 0x714D28: main (creator.c:1676)

22960== Address 0xca02ed4 is 532 bytes inside a block of size 679 free'd

22960== at 0x4C2AD3C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)

22960== by 0x137B5EF: btFreeDefault(void*) (btAlignedAllocator.cpp:29)

22960== by 0x137B6DB: btAlignedFreeDefault(void*) (btAlignedAllocator.cpp:86)

22960== by 0x137B876: btAlignedFreeInternal(void*) (btAlignedAllocator.cpp:177)

22960== by 0x11AE2F5: btCollisionObject::operator delete(void*) (btCollisionObject.h:116)

22960== by 0x136D662: btRigidBody::~btRigidBody() (btRigidBody.h:184)

22960== by 0x11A8663: RB_body_delete (rb_bullet_api.cpp:338)

22960== by 0x1135FAF: BKE_rigidbody_free_object (rigidbody.c:138)

22960== by 0x1138205: BKE_rigidbody_remove_object (rigidbody.c:930)

22960== by 0xBB864C: ED_rigidbody_object_remove (rigidbody_object.c:131)

22960== by 0xBB8BE6: rigidbody_objects_remove_exec (rigidbody_object.c:286)

22960== by 0x71DA71: wm_operator_invoke (wm_event_system.c:996)

22960== by 0x71E01C: wm_operator_call_internal (wm_event_system.c:1168)

22960== by 0x71E1E6: WM_operator_name_call (wm_event_system.c:1217)

22960== by 0xA1C180: ui_apply_but_funcs_after (interface_handlers.c:496)

22960== by 0xA31D4F: ui_handler_region_menu (interface_handlers.c:7417)

22960== by 0x71BE7B: wm_handler_ui_call (wm_event_system.c:410)

22960== by 0x71FA54: wm_handlers_do_intern (wm_event_system.c:1876)

22960== by 0x71FCF4: wm_handlers_do (wm_event_system.c:1955)

22960== by 0x720867: wm_event_do_handlers (wm_event_system.c:2201)

22960== by 0x715DEF: WM_main (wm.c:462)

22960== by 0x714D28: main (creator.c:1676)

%%%

%%%Confirmed, the bug looks to be that Remove isnt removing constraints from the rigid body world. See valgrind output, assigning to Sergej. ## 22960== Invalid read of size 4 ## 22960== at 0x11B716B: btAlignedObjectArray<btTypedConstraint*>::size() const (btAlignedObjectArray.h:151) ## 22960== by 0x13760D0: btAlignedObjectArray<btTypedConstraint*>::findLinearSearch(btTypedConstraint* const&) const (btAlignedObjectArray.h:467) ## 22960== by 0x1375783: btAlignedObjectArray<btTypedConstraint*>::remove(btTypedConstraint* const&) (btAlignedObjectArray.h:484) ## 22960== by 0x1378930: btRigidBody::removeConstraintRef(btTypedConstraint*) (btRigidBody.cpp:350) ## 22960== by 0x136F2D4: btDiscreteDynamicsWorld::removeConstraint(btTypedConstraint*) (btDiscreteDynamicsWorld.cpp:662) ## 22960== by 0x11AA03A: RB_dworld_remove_constraint (rb_bullet_api.cpp:786) ## 22960== by 0x11382A7: BKE_rigidbody_remove_constraint (rigidbody.c:944) ## 22960== by 0x113E36E: BKE_scene_base_unlink (scene.c:980) ## 22960== by 0xB29C63: ED_base_object_free_and_unlink (object_add.c:1035) ## 22960== by 0xB29DBC: object_delete_exec (object_add.c:1059) ## 22960== by 0x71DA71: wm_operator_invoke (wm_event_system.c:996) ## 22960== by 0x71E01C: wm_operator_call_internal (wm_event_system.c:1168) ## 22960== by 0x71E1E6: WM_operator_name_call (wm_event_system.c:1217) ## 22960== by 0xA1C180: ui_apply_but_funcs_after (interface_handlers.c:496) ## 22960== by 0xA31F9B: ui_handler_popup (interface_handlers.c:7474) ## 22960== by 0x71BE7B: wm_handler_ui_call (wm_event_system.c:410) ## 22960== by 0x71FA54: wm_handlers_do_intern (wm_event_system.c:1876) ## 22960== by 0x71FCF4: wm_handlers_do (wm_event_system.c:1955) ## 22960== by 0x720867: wm_event_do_handlers (wm_event_system.c:2201) ## 22960== by 0x715DEF: WM_main (wm.c:462) ## 22960== by 0x714D28: main (creator.c:1676) ## 22960== Address 0xca02ed4 is 532 bytes inside a block of size 679 free'd ## 22960== at 0x4C2AD3C: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ## 22960== by 0x137B5EF: btFreeDefault(void*) (btAlignedAllocator.cpp:29) ## 22960== by 0x137B6DB: btAlignedFreeDefault(void*) (btAlignedAllocator.cpp:86) ## 22960== by 0x137B876: btAlignedFreeInternal(void*) (btAlignedAllocator.cpp:177) ## 22960== by 0x11AE2F5: btCollisionObject::operator delete(void*) (btCollisionObject.h:116) ## 22960== by 0x136D662: btRigidBody::~btRigidBody() (btRigidBody.h:184) ## 22960== by 0x11A8663: RB_body_delete (rb_bullet_api.cpp:338) ## 22960== by 0x1135FAF: BKE_rigidbody_free_object (rigidbody.c:138) ## 22960== by 0x1138205: BKE_rigidbody_remove_object (rigidbody.c:930) ## 22960== by 0xBB864C: ED_rigidbody_object_remove (rigidbody_object.c:131) ## 22960== by 0xBB8BE6: rigidbody_objects_remove_exec (rigidbody_object.c:286) ## 22960== by 0x71DA71: wm_operator_invoke (wm_event_system.c:996) ## 22960== by 0x71E01C: wm_operator_call_internal (wm_event_system.c:1168) ## 22960== by 0x71E1E6: WM_operator_name_call (wm_event_system.c:1217) ## 22960== by 0xA1C180: ui_apply_but_funcs_after (interface_handlers.c:496) ## 22960== by 0xA31D4F: ui_handler_region_menu (interface_handlers.c:7417) ## 22960== by 0x71BE7B: wm_handler_ui_call (wm_event_system.c:410) ## 22960== by 0x71FA54: wm_handlers_do_intern (wm_event_system.c:1876) ## 22960== by 0x71FCF4: wm_handlers_do (wm_event_system.c:1955) ## 22960== by 0x720867: wm_event_do_handlers (wm_event_system.c:2201) ## 22960== by 0x715DEF: WM_main (wm.c:462) ## 22960== by 0x714D28: main (creator.c:1676) %%%

%%%Thanks for the report, fixed in svn r57987.

The behaviour of removing rigid bodies is different now, it will remove constraints as well.%%%

%%%Thanks for the report, fixed in svn r57987. The behaviour of removing rigid bodies is different now, it will remove constraints as well.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
3 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#35995
No description provided.