USD Export Crash When Parent is disabled for rendering. #85729
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#85729
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: Linux-5.4.0-65-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: AMD Radeon RX 5700 (NAVI10, DRM 3.35.0, 5.4.0-65-generic, LLVM 11.0.0) X.Org 4.6 (Core Profile) Mesa 20.2.6
Blender Version
Broken:
17dddc9417
Worked: (newest version of Blender that worked as expected)
Short description of error
When exporting render and an object parent is disabled for rendering there it crashes during USD export.
usdtest.blend
Exact steps for others to reproduce the error
NOTE: Use Settings for Viewport will work, Alembic export works.
The source of the crash is in
AbstractHierarchyIterator::connect_loose_objects
:Added subscriber: @Jeroen-Bakker
USD Export Crash When Parent is hidden disabled for rendering.to USD Export Crash When Parent is disabled for rendering.Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @SonnyCampbell_Unity
I've tested this and it happens for both USD and Alembic.
By default, USD exports with the "Visible Only" flag ticked.
By default, Alembic exports with the "Visible Only" flag unticked.
If you set "Use Settings For" to Render and "Visible Only" is ticked, it crashes both when exporting for USD and Alembic.
This revision should fix the underlying crash raised in this bug. However I have a question about what the intended outcome is when exporting usd/alembic files.
If I set "Visible Only" and "Use Settings For" to Render, my assumption is that I should only export objects that are visible in a Render. If I disable a parent object for Render, and export the scene as in my screenshot here, should the Empty object be exported in my usd file? Currently it is being exported.
Added subscriber: @dr.sybren
Nice find!
Check the documentation for
HierarchyIterator::weak_export
:/* When weak_export=true, the object will be exported only as transform, and only if is an
bool weak_export;
This means that the disabled parent will still be exported, but only as an Empty. Thus, testing this flow with Empties will hide some of the subtleties in the exporter.
Also I now see that the comment should be updated, the special handling of "holdout" collections was removed.
Ok perfect, I missed that comment. That makes a lot of sense then, I also tested this with the usd_hierarchy_export_test.blend from the unit tests which has a more complex hierarchy of enabled/disabled objects, and that was where I first noticed it.
But yeah if that is expected then this should patch solve the crash. If you'd like I could update that comment to remove the line about the holdout collection too?
Thanks for the offer, but I've already done that ;-)
This issue was referenced by
d209629806
Changed status from 'Confirmed' to: 'Resolved'