Exporting procedural mesh animation with Alembic results in a crash #67627
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#67627
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10 Home
Graphics card: GTX 1070 8GB
Blender Version
Broken: 2.80,
4fe0fafb87
, 2019-07-24Worked: 2.79,
5bd8ac9
, 2017-09-11Short description of error
Exporting a procedural mesh to Alembic that is updated in the frame_change_pre handler results in a crash. This is an issue that is being encountered in the FLIP Fluids addon. I have created a small script that reproduces this issue.
The script and steps to reproduce this issue are similar to this report: #65816
This is the error output after the crash:
Sometimes the error output is this:
Exact steps for others to reproduce the error
I have attached a .blend file that will reproduce the issue.
procedural_alembic_export.blend
File > Export > Alembic
Blender does not crash 100% of the time. It seems that the chance of a crash occurring increases as the frame range increases. I have the end frame set to 2000, which results in a crash most of the time on my system.
Added subscriber: @rlguy
Added subscribers: @dr.sybren, @juang3d
Hey @dr.sybren what do you think about this?
It seems that @rlguy tried to use any of these handlers:
frame_change_pre
frame_change_post
render_pre
render_post
But it seems the crash is there with any of those.
I tried with your patch for the other bug but the crash is still present in this case.
Note: render_pre and render_post handlers will not cause a crash in this issue since these are only called during render. I had tested the frame change and render handlers in issue blender/blender-addons#60094 which all resulted in a crash.
There are two things happening in the reported code:
I've added a function (
6d2f9b1dfa
) to Blender that allows you to avoid replacing the mesh datablock. You can now write the code like this:Note the new
object.data.clear_geometry()
function. This will erase all geometry from the mesh, and allow a subsequentfrom_pydata()
call to fill it up again. It also just tags the mesh for geometry updates in the depsgraph; creating a new mesh datablock and deleting the old one will cause a complete rebuild of the relations in the depsgraph, which is more expensive.The remaining part of this task is now the same as blender/blender-addons#60094, so I'll merge this task as a duplicate.
Closed as duplicate of blender/blender-addons#60094