Crash when baking Dynamic Paint Image Sequence multiple times in loop #74052

Closed
opened 2020-02-20 22:14:18 +01:00 by Borek Bures · 9 comments

Blender Version
Broken: 2.90.0 Alpha, branch: master, commit date: 2020-06-15 12:23, hash: 73f8dd0f4c
Worked: blender-2.80-windows64

Short description of error
Blender crashes when baking dynamic paint image sequence in for loop. Depending on wait time crash will have differens stack traces.

Exact steps for others to reproduce the error
#74052.blend

  • Open file
  • Run script
**Blender Version** Broken: 2.90.0 Alpha, branch: master, commit date: 2020-06-15 12:23, hash: `73f8dd0f4c` Worked: blender-2.80-windows64 **Short description of error** Blender crashes when baking dynamic paint image sequence in for loop. Depending on wait time crash will have differens stack traces. **Exact steps for others to reproduce the error** [#74052.blend](https://archive.blender.org/developer/F8625197/T74052.blend) - Open file - Run script
Author

Added subscriber: @BorekBures

Added subscriber: @BorekBures
Richard Antalik changed title from Baking Dynamic Paint Image Sequence multiple times by Python script performs output only once. to Crash when baking Dynamic Paint Image Sequence multiple times in loop 2020-06-16 17:26:27 +02:00

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

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @emu-3

Added subscriber: @emu-3
Member

I'm unable to reproduce the bug in 2.83 on Linux 64 bit, build d290bdd42a (2020-04-19) from buildbot. Running the script several times and modifying the wait time never caused a crash.

I'm unable to reproduce the bug in 2.83 on Linux 64 bit, build d290bdd42abb (2020-04-19) from buildbot. Running the script several times and modifying the wait time never caused a crash.
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I can reproduce the crash in a debug build with ASAN. Reports: P1582, P1583.

I'm not exactly sure what is causing the crash yet. Some observations:

  • Calling bpy.ops.dpaint.bake() does not do the actual baking, but only starts a bake job that will be executed later.
  • Not sure if the threading works correctly, because at some point I had a weird call stack where one thread was doing drawing, while another thread was computing the simulation. Different ASAN reports are a hint that this might be a threading related issue.
  • We probably don't handle starting the same job multiple times very well (although there are some checks in place).
I can reproduce the crash in a debug build with ASAN. Reports: [P1582](https://archive.blender.org/developer/P1582.txt), [P1583](https://archive.blender.org/developer/P1583.txt). I'm not exactly sure what is causing the crash yet. Some observations: * Calling `bpy.ops.dpaint.bake()` does not do the actual baking, but only starts a bake job that will be executed later. * Not sure if the threading works correctly, because at some point I had a weird call stack where one thread was doing drawing, while another thread was computing the simulation. Different ASAN reports are a hint that this might be a threading related issue. * We probably don't handle starting the same job multiple times very well (although there are some checks in place).
Member

Removed subscriber: @emu-3

Removed subscriber: @emu-3
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:47:05 +01:00
Member

Cannot repro here (not in current main, nor in 2.90).

Is this still an issue for you in fresh builds from https://builder.blender.org/download/daily/ ?

Cannot repro here (not in current main, nor in 2.90). Is this still an issue for you in fresh builds from https://builder.blender.org/download/daily/ ?
Philipp Oeser added
Status
Needs Information from User
and removed
Status
Confirmed
labels 2024-03-07 14:41:28 +01:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-04-04 09:10:21 +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
5 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#74052
No description provided.