Crash when scrubbing the timeline when using the line art modifier #106345

Open
opened 2023-03-30 23:49:38 +02:00 by Karl Northfell · 5 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.41

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: 3.4.1

Short description of error
When scrubbing the timeline, blender will crash. This happens frequently when I have a project of sufficient complexity that uses the line art modifier. The provided blend file has been simplified as much as possible while still reproducing the crashing behavior.

Exact steps for others to reproduce the error

  1. Open line_art_crash.blend
  2. Scrub the timeline. Jumping between frames makes it less likely to crash, but holding onto the playhead and slowly moving should have it crash in a few seconds.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 531.41 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: 3.4.1 **Short description of error** When scrubbing the timeline, blender will crash. This happens frequently when I have a project of sufficient complexity that uses the line art modifier. The provided blend file has been simplified as much as possible while still reproducing the crashing behavior. **Exact steps for others to reproduce the error** 1. Open line_art_crash.blend 2. Scrub the timeline. Jumping between frames makes it less likely to crash, but holding onto the playhead and slowly moving should have it crash in a few seconds.
Karl Northfell added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-03-30 23:49:39 +02:00
Iliya Katushenock added the
Interest
Grease Pencil
label 2023-03-31 08:31:21 +02:00
YimingWu added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-03-31 10:50:19 +02:00
Member

Hi, can you give us a file with a bit more complexity? After playing with your file for a while I still can't replicate the crash.

The current line art has some hacks on its implementation to adapt with Blender's backend, which may cause crashes, it's planned to fix this in the node version of line art.

Meanwhile you could try: Setting Performance->Thread count to fixed 1 (under cycles, line art uses that value too), and see if it still crashes.

Hi, can you give us a file with a bit more complexity? After playing with your file for a while I still can't replicate the crash. The current line art has some hacks on its implementation to adapt with Blender's backend, which may cause crashes, it's planned to fix this in the node version of line art. Meanwhile you could try: Setting Performance->Thread count to fixed 1 (under cycles, line art uses that value too), and see if it still crashes.
Author

Thanks for looking into this! I've attached the full file I'm working on. It's still sort of inconsistent, but on the "main" view layer I can get it to crash pretty reliably in solid and rendered mode by slowly scrolling the timeline back and forth the full length holding the play head. Strangely on the "all" view layer which shows everything, I can't get it to crash.

I tried the performance change but unfortunately it did not seem to prevent it crashing.

Thanks for looking into this! I've attached the full file I'm working on. It's still sort of inconsistent, but on the "main" view layer I can get it to crash pretty reliably in solid and rendered mode by slowly scrolling the timeline back and forth the full length holding the play head. Strangely on the "all" view layer which shows everything, I can't get it to crash. I tried the performance change but unfortunately it did not seem to prevent it crashing.
Thomas Dinges added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-05-12 15:11:47 +02:00
Member

I also cannot get it to crash.

Do you get crash logs? https://docs.blender.org/manual/en/3.5/troubleshooting/crash.html#crash-log

I also cannot get it to crash. Do you get crash logs? https://docs.blender.org/manual/en/3.5/troubleshooting/crash.html#crash-log
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-05-30 18:20:43 +02:00
Author

I tried it just now with 3.5.1 and was able to get it to crash, I've attached the crash log.

I tried it just now with 3.5.1 and was able to get it to crash, I've attached the crash log.
Member

I can periodically trigger the crash now.

segfault in BKE_object_has_geometry_set_instances in if (component->is_empty()).

@JacquesLucke What do you think of this? Could this be a threading issue where component->is_empty() is called on a freed memory?

typeinfo for std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> (Unknown Source:0)
BKE_object_has_geometry_set_instances(const Object * ob) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenkernel/intern/geometry_set.cc:715)
BKE_object_visibility(const Object * ob, const int dag_eval_mode) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenkernel/intern/object.cc:2123)
(anonymous namespace)::deg_iterator_objects_step(DEGObjectIterData * data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:265)
DEG_iterator_objects_next(BLI_Iterator * iter) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:347)
DEG_iterator_objects_begin(BLI_Iterator * iter, DEGObjectIterData * data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:332)
lineart_main_load_geometries(Depsgraph * depsgraph, Scene * scene, Object * camera, LineartData * ld, bool allow_duplicates, bool do_shadow_casting, ListBase * shadow_elns) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc:2598)
...
I can periodically trigger the crash now. segfault in `BKE_object_has_geometry_set_instances` in `if (component->is_empty())`. @JacquesLucke What do you think of this? Could this be a threading issue where `component->is_empty()` is called on a freed memory? ``` typeinfo for std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> (Unknown Source:0) BKE_object_has_geometry_set_instances(const Object * ob) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenkernel/intern/geometry_set.cc:715) BKE_object_visibility(const Object * ob, const int dag_eval_mode) (/home/yiming/Downloads/BlenderMain/blender/source/blender/blenkernel/intern/object.cc:2123) (anonymous namespace)::deg_iterator_objects_step(DEGObjectIterData * data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:265) DEG_iterator_objects_next(BLI_Iterator * iter) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:347) DEG_iterator_objects_begin(BLI_Iterator * iter, DEGObjectIterData * data) (/home/yiming/Downloads/BlenderMain/blender/source/blender/depsgraph/intern/depsgraph_query_iter.cc:332) lineart_main_load_geometries(Depsgraph * depsgraph, Scene * scene, Object * camera, LineartData * ld, bool allow_duplicates, bool do_shadow_casting, ListBase * shadow_elns) (/home/yiming/Downloads/BlenderMain/blender/source/blender/gpencil_modifiers_legacy/intern/lineart/lineart_cpu.cc:2598) ... ```
YimingWu added
Status
Confirmed
and removed
Status
Needs Information from User
labels 2023-05-31 05:17:42 +02:00
YimingWu self-assigned this 2023-05-31 05:20:50 +02:00
YimingWu added the
Module
Grease Pencil
label 2023-07-06 09:52:26 +02:00
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#106345
No description provided.