Blender 'randomly' crashes after a while #85304

Closed
opened 2021-02-02 10:22:04 +01:00 by Simon Thommes · 6 comments
Member

System Information
Operating system: Linux-5.8.0-7630-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.32.03

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-02 08:36, hash: 356c62fe32
Worked: (newest version of Blender that worked as expected)

Short description of error
Random crashes in a specific file. Often on trying to move the viewport. My wild guess is that it's something with the dependency graph.

I ran it through a debug build and here is where it crashes:

- 1  ghash_lookup_entry (key=0x7fffffffd580, gh=0x0) at /media/data/blender_guest/blender_master/source/blender/blenlib/intern/BLI_ghash.c:427
- 2  BLI_ghash_lookup (gh=0x0, key=0x7fffffffd580) at /media/data/blender_guest/blender_master/source/blender/blenlib/intern/BLI_ghash.c:805
- 3  0x0000000003563711 in BKE_scene_get_depsgraph (scene=0x7fffbb0b2408, view_layer=0x7fff8ec76448) at /media/data/blender_guest/blender_master/source/blender/blenkernel/intern/scene.c:3462
- 4  0x0000000003ce849c in DRW_cache_free_old_batches (bmain=0x7fff950cee08) at /media/data/blender_guest/blender_master/source/blender/draw/intern/draw_manager.c:994
- 5  0x0000000004c21a5f in view3d_main_region_draw (C=0x7ffff470bee8, region=0x7fffba822e48) at /media/data/blender_guest/blender_master/source/blender/editors/space_view3d/view3d_draw.c:1626
- 6  0x00000000044e3a46 in ED_region_do_draw (C=0x7ffff470bee8, region=0x7fffba822e48) at /media/data/blender_guest/blender_master/source/blender/editors/screen/area.c:558
- 7  0x0000000003a0345b in wm_draw_window_offscreen (C=0x7ffff470bee8, win=0x7fffba973788, stereo=false) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:731
- 8  0x0000000003a03a1d in wm_draw_window (C=0x7ffff470bee8, win=0x7fffba973788) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:872
- 9  0x0000000003a04069 in wm_draw_update (C=0x7ffff470bee8) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:1073
- 10 0x0000000003a00694 in WM_main (C=0x7ffff470bee8) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm.c:643
# 11 0x00000000033eb805 in main (argc=1, argv=0x7fffffffe568) at /media/data/blender_guest/blender_master/source/creator/creator.c:522```

[fire_test_1.blend](https://archive.blender.org/developer/F9608825/fire_test_1.blend)

**Exact steps for others to reproduce the error**
Don't know how to reproduce from scratch.
With the file:
Also no reliable trigger, but usually for me it crashes after about half a minute of doing anything.

**System Information** Operating system: Linux-5.8.0-7630-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.32.03 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-02 08:36, hash: `356c62fe32` Worked: (newest version of Blender that worked as expected) **Short description of error** Random crashes in a specific file. Often on trying to move the viewport. My wild guess is that it's something with the dependency graph. I ran it through a debug build and here is where it crashes: ```#0 0x000000000e36a1f6 in ghash_keyhash (key=0x7fffffffd580, gh=0x0) at /media/data/blender_guest/blender_master/source/blender/blenlib/intern/BLI_ghash.c:148 - 1 ghash_lookup_entry (key=0x7fffffffd580, gh=0x0) at /media/data/blender_guest/blender_master/source/blender/blenlib/intern/BLI_ghash.c:427 - 2 BLI_ghash_lookup (gh=0x0, key=0x7fffffffd580) at /media/data/blender_guest/blender_master/source/blender/blenlib/intern/BLI_ghash.c:805 - 3 0x0000000003563711 in BKE_scene_get_depsgraph (scene=0x7fffbb0b2408, view_layer=0x7fff8ec76448) at /media/data/blender_guest/blender_master/source/blender/blenkernel/intern/scene.c:3462 - 4 0x0000000003ce849c in DRW_cache_free_old_batches (bmain=0x7fff950cee08) at /media/data/blender_guest/blender_master/source/blender/draw/intern/draw_manager.c:994 - 5 0x0000000004c21a5f in view3d_main_region_draw (C=0x7ffff470bee8, region=0x7fffba822e48) at /media/data/blender_guest/blender_master/source/blender/editors/space_view3d/view3d_draw.c:1626 - 6 0x00000000044e3a46 in ED_region_do_draw (C=0x7ffff470bee8, region=0x7fffba822e48) at /media/data/blender_guest/blender_master/source/blender/editors/screen/area.c:558 - 7 0x0000000003a0345b in wm_draw_window_offscreen (C=0x7ffff470bee8, win=0x7fffba973788, stereo=false) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:731 - 8 0x0000000003a03a1d in wm_draw_window (C=0x7ffff470bee8, win=0x7fffba973788) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:872 - 9 0x0000000003a04069 in wm_draw_update (C=0x7ffff470bee8) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm_draw.c:1073 - 10 0x0000000003a00694 in WM_main (C=0x7ffff470bee8) at /media/data/blender_guest/blender_master/source/blender/windowmanager/intern/wm.c:643 # 11 0x00000000033eb805 in main (argc=1, argv=0x7fffffffe568) at /media/data/blender_guest/blender_master/source/creator/creator.c:522``` [fire_test_1.blend](https://archive.blender.org/developer/F9608825/fire_test_1.blend) **Exact steps for others to reproduce the error** Don't know how to reproduce from scratch. With the file: Also no reliable trigger, but usually for me it crashes after about half a minute of doing anything.
Author
Member

Added subscriber: @SimonThommes

Added subscriber: @SimonThommes

Closed as duplicate of #85291

Closed as duplicate of #85291
Member

Added subscribers: @Sergey, @filedescriptor

Added subscribers: @Sergey, @filedescriptor
Member

Looking at the code and the trace it seems as though scene->depsgraph_hash was null. The function BKE_scene_get_depsgraph makes sure that the scene has a view layer but just assumes that the depsgraph_hash exists. That is just stating the obvious though. The question is why that pointer was null.

There is a comment that suggests that this can be the case:

/* In some cases, e.g. when undo has to perform multiple steps at once, no depsgraph will be built so this pointer may be NULL. */

So the solution may be as simple as checking that scene->depsgraph_hash is not null or calling BKE_scene_ensure_depsgraph_hash. @Sergey any ideas?

Looking at the code and the trace it seems as though `scene->depsgraph_hash` was `null`. The function `BKE_scene_get_depsgraph` makes sure that the scene has a view layer but just assumes that the `depsgraph_hash` exists. That is just stating the obvious though. The question is why that pointer was `null`. There is a comment that suggests that this can be the case: ``` /* In some cases, e.g. when undo has to perform multiple steps at once, no depsgraph will be built so this pointer may be NULL. */ ``` So the solution may be as simple as checking that `scene->depsgraph_hash` is not null or calling `BKE_scene_ensure_depsgraph_hash`. @Sergey any ideas?

Added subscriber: @rjg

Added subscriber: @rjg

@filedescriptor That does seem to be the case, see the ticket I've merged this one into. You might want to post your comment there as well.

@filedescriptor That does seem to be the case, see the ticket I've merged this one into. You might want to post your comment there as well.
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#85304
No description provided.