Crash opening file in build_effector_relations function for Rigid Bodies #78001

Closed
opened 2020-06-18 16:50:33 +02:00 by Antonio Vazquez · 5 comments

Last source coded compiled in Windows.

Attached the file with error, just open it.

crash_opening.blend

This problem was reported as part of #77003, but after checking I have seen is related to rigid bodies initialization.

The crash is because rbwvariable is NULL in DepsgraphRelationBuilder::build_rigidbody function.

This is callstack of the crash:

DEG::DepsgraphRelationBuilder::build_view_layer(Scene * scene, ViewLayer * view_layer, DEG::eDepsNode_LinkedState_Type linked_state) Line 113	C++
DEG_graph_build_from_view_layer(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 261	C++
DEG_graph_relations_update(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 508	C++
wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 356	C
wm_file_read_post(bContext * C, const bool is_startup_file, const bool is_factory_startup, const bool use_data, const bool use_userdef, const bool reset_app_template) Line 632	C
WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 754	C
wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2172	C
wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2314	C
wm_open_mainfile_exec(bContext * C, wmOperator * op) Line 2351	C
wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2287	C
wm_handler_fileselect_call(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, const wmEvent * event) Line 2386	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2802	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2854	C
wm_event_do_handlers(bContext * C) Line 3283	C
WM_main(bContext * C) Line 478	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 534	C
Last source coded compiled in Windows. Attached the file with error, just open it. [crash_opening.blend](https://archive.blender.org/developer/F8630461/crash_opening.blend) This problem was reported as part of #77003, but after checking I have seen is related to rigid bodies initialization. The crash is because `rbw`variable is NULL in `DepsgraphRelationBuilder::build_rigidbody` function. This is callstack of the crash: ```DEG::DepsgraphRelationBuilder::build_rigidbody(Scene * scene) Line 1670 C++ DEG::DepsgraphRelationBuilder::build_view_layer(Scene * scene, ViewLayer * view_layer, DEG::eDepsNode_LinkedState_Type linked_state) Line 113 C++ DEG_graph_build_from_view_layer(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 261 C++ DEG_graph_relations_update(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 508 C++ wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 356 C wm_file_read_post(bContext * C, const bool is_startup_file, const bool is_factory_startup, const bool use_data, const bool use_userdef, const bool reset_app_template) Line 632 C WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 754 C wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2172 C wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2314 C wm_open_mainfile_exec(bContext * C, wmOperator * op) Line 2351 C wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2287 C wm_handler_fileselect_call(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, const wmEvent * event) Line 2386 C wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2802 C wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2854 C wm_event_do_handlers(bContext * C) Line 3283 C WM_main(bContext * C) Line 478 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 534 C ```
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov
Antonio Vazquez changed title from Crash opening file in `build_effector_relations` function to Crash opening file in `build_effector_relations` function for Rigid Bodies 2020-06-18 16:51:14 +02:00

Added subscriber: @mano-wii

Added subscriber: @mano-wii

I cannot reproduce this with either the latest stable or current development versions of Blender.
The file opened without problems here.

Does any step is missing in the description?
Did this file has worked in other blender versions?

I cannot reproduce this with either the latest stable or current development versions of Blender. The file opened without problems here. Does any step is missing in the description? Did this file has worked in other blender versions?
Author
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Antonio Vazquez self-assigned this 2020-06-19 15:40:46 +02:00
Author
Member

It's strange...today I can open the file...maybe it was because I saved with new version. Ok, we can close it and if we get the error again we can reopen or create a new report.

It's strange...today I can open the file...maybe it was because I saved with new version. Ok, we can close it and if we get the error again we can reopen or create a new report.
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
2 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#78001
No description provided.