Importing Alembic Mesh Causes Blender To Crash As Well As Alembic Sequences/Playback of Alembic sequences does not work #62720
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#62720
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
Graphics card: GTX 1080
Blender Version
Broken: (2.80,
9099305771
, Beta, 2019-03-18, as found on the splash screen)Broken: (2.80,
a29186efb4
, Beta, 2019-03-18, as found on the splash screen)Broken: (2.80,
40e85a603c
, Beta, 2019-03-19, as found on the splash screen)Working: (2.79,
f4dc9f9d68
, Stable, 2018-03-22, as found on the splash screen)Short description of error
When importing an alembic mesh sequence (and sometimes and alembic mesh), Blender will just up and crash immediately after pressing import. If I'm lucky enough to get it to import (which sometimes it will), playback of the sequence will result in Blender freezing and eventually crashing. I have 32gb of RAM so I don't believe memory would be a cause to this, I'm not sure though. It works perfectly fine on 2.79.
Exact steps for others to reproduce the error
I have tried multiple blender projects, even new blender projects from scratch, importing different meshes from different programs, even exporting from blender and importing back into blender causes a crash. Sometimes the alembic mesh and sequence will import fine, but even if it does, attempting to play a large sequence (200 frames long imported from RealFlow 10) will cause Blender to lock up, choke, and hard crash. Again, works fine on 2.79.
Import > Alembic Mesh (.abc)
Import > Alembic Mesh (.abc) > Sequence
Untitled.wmv
Added subscriber: @Aternias
#63294 was marked as duplicate of this issue
#63141 was marked as duplicate of this issue
75% Of The Time Importing Alembic Mesh (Individually And In Sequence) Causes Blender To Hard Crash As Well As Playback Of Sequence.to Most Of The Time Importing Alembic Mesh Causes Blender To Hard Crash As Well As Playback Of Sequence.Most Of The Time Importing Alembic Mesh Causes Blender To Hard Crash As Well As Playback Of Sequence.to Importing Alembic Mesh Causes Blender To Crash As Well As Alembic Sequences.Added subscriber: @ZedDB
Do you have any small .abc files you can attach so we can easily reproduce this?
@ZedDB
I have consolidated my 200 frames to the first 5 frames, just simply import them as a sequence.
I'm not sure if importing them individually causes crashes as well but it probably does.
EDIT:
I imported the 5 frames myself just now, it seems I can actually get past the import screen, but 2 seconds after it imports Blender hard crashes similar to before. I also tested it in the blender 2.79 version listed as working in this bug report and it imports and works fine, strange.
ParticleMesh_VDB02.zip
This comment was removed by @Aternias
I'm getting asserts:
If I disregard those I get this backtrace:
If I skip the first frame on import is seem to work.
@ZedDB @dr.sybren
Strangely, I imported the full 200 frames I have while excluding the first frame and it imported successfully, but attempting to scrub on the timeline causes a hard crash again.
I then started new and imported the 5 first frames also excluding the first frame and it won't import at all! :(
EDIT:
Here is a short video I made, you can see that importing the 200 frames crashes first, I try again and it works, but attempting to scrub always causes a crash, and importing the 5 frames just makes it crash immediately.
Alembic_Import_Crash_Demo2.mp4
EDIT:
I was able to import it, and scrub on the timeline by first switching to edit mode before scrubbing. What's strange is it only updates the mesh if I switch to edit and back to object mode, but if I scrub at all on the timeline it goes back to the first frame's mesh, and once again it is extremely unstable and crashes and doesn't always import.
Alembic_Import_Crash_Demo3.mp4
I caught this console message before the crash when scrubbing on the timeline after first opening.
wm_event_do_handlers: Handling event
wmEvent type:3 / RIGHTMOUSE, val:1 / PRESS,
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: unknown how to handle objects of schema '', skipping object ''
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Could not create Alembic reader for file F:\ATERNIAS PROJECTS\3D PROGRAM\REALFLOW\WaterTest_2 ((3-18-2019))\testflow\meshes\ParticleMesh_VDB02_00001.abc
Depsgraph updated in 0.002641 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Depsgraph updated in 0.002595 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 2.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005868 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 2.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
bad allocation
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005538 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 3.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005764 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 4.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005717 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 5.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.006932 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 6.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005741 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 7.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005751 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Alembic: error reading mesh sample for '/Cube/CubeShape/.geom' at time 8.000000: IPolyMeshSchema::get()
ERROR: EXCEPTION:
IArrayProperty::get()
ERROR: EXCEPTION:
Ogawa IStreams::read failed.
ERROR (bke.modifier): C:\Users\Aternias\Desktop\blender-git\blender\source\blender\blenkernel\intern\modifier.c:386 modifier_setError: Error reading mesh sample; more detail on the console
Depsgraph updated in 0.005669 seconds.
UI_menutype_draw: opening menu "TOPBAR_MT_editor_menus"
UI_menutype_draw: opening menu "TIME_MT_editor_menus"
UI_menutype_draw: opening menu "VIEW3D_MT_editor_menus"
[SCScene :: View Layer]: Operation is entry point for update: GEOMETRY_EVAL()
[SCScene :: View Layer]: Accumulated recalc bits for OBCube: 2
[SCScene :: View Layer]: BKE_object_eval_uber_data on OBCube (0000026D15E735C8)
[SCScene :: View Layer]: BKE_object_handle_data_update on OBCube (0000026D15E735C8)
Added subscribers: @brecht, @JacquesLucke
The issue seems to be that the alembic files you provided contain no vertices.
For that reason
mesh->mvert
is set to a value different thanNULL
, resulting in the assert.@brecht, is
mesh->mvert == NULL
a valid state for a mesh in some circumstances?Yes, it's valid if
mesh->totvert == 0
.@JacquesLucke @brecht I'm sure it has vertices, if it didn't why would it import and work perfectly fine in 2.79? It just doesn't seem to make any sense.
@JacquesLucke @brecht
I did another demo of importing realflow alembic sequences in blender 2.79 and 2.80, as you can see, it works flawlessly in 2.79 and I don't experience any issues with playback or crashes. With 2.80 though it is very unstable, and when playing back the sequence I can't see the updated frame unless I switch from edit mode and back to object mode, and even that may cause a crash. I just don't know how to explain it.
2019-03-28 16-11-30.mp4
Importing Alembic Mesh Causes Blender To Crash As Well As Alembic Sequences.to Importing Alembic Mesh Causes Blender To Crash As Well As Alembic Sequences/Playback of Alembic sequences does not workThis issue was referenced by
89826e0a0d
Regarding the import as sequence crash, here is the valgrind log:
The problem is that the cache file datablock has not been properly integrated into the dependency graph. On every frame change cache files free ABC handles if needed, and also free them in all original objects. However the invalid pointers remain in the evaluated objects in the dependency graph.
Added subscriber: @LazyDodo
That looks scary similar to the stack trace of #62942,
Yes, it's probably another variation of the same underlying issue.
Added subscriber: @danterazor
Added subscriber: @dr.sybren
Changed status from 'Open' to: 'Resolved'
Added subscriber: @DylanLobbregt
Alembic_Crash_B3.0.mp4
Alembic_Test.crash.txt
I'm still having crashes trying to import Alembic in the latest Blender 3.0 versions. They import in 2.93LTS, but trying to open those same files in 3.0 instantly crashes. Alembic file is a cloth animation from Marvelous Designer. Worked up until 3.0.
Windows 10, 64bit.
GPU: RTX 2070 Super
CPU: AMD Ryzen 9 3900X
Please don't respond to two-year-old old closed bug reports. I just fixed two Alembic-related crashes (#88605 and #88394), so please try with tomorrow's daily build as your problem is likely already solved.