Crash when importing a file using python from the command line with an asset browser open #99313
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#99313
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.15.0-40-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: AMD Radeon RX 5700 XT (navi10, LLVM 13.0.1, DRM 3.42, 5.15.0-40-generic) AMD 4.6 (Core Profile) Mesa 22.0.1
Blender Version
Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-06-28 22:57, hash:
c0e4532331
Worked: -
Short description of error
Blender crashes with segfault when trying to import a model using
blender --python-expr
when the startup file or the opened file has an asset browser open.Exact steps for others to reproduce the error
Download sample model from KhronosGroup github.
Run blender with:
Blender crashes with the follow stack trace:
Additional information
Blender does not crash if the same command is run in the python console when blender is opened.
Added subscriber: @RL
#100237 was marked as duplicate of this issue
Added subscriber: @deadpin
Changed status from 'Needs Triage' to: 'Needs User Info'
I'm not able to reproduce this issue using the latest build of 3.3.0. The model gets imported correctly and there's no indication of an issue:
If blender is crashing, it may write out a file like so. Is there a *crash.txt file in your /tmp directory that corresponds to the crash you are seeing?
Crash log
blender.crash.txt
Output of
blender --debug-all --python-expr
blender-output.txt
Can you try with the latest version of 3.3?
Same outcome
blender.crash.txt
blender-output.txt
Changed status from 'Needs User Info' to: 'Needs Triage'
Unsure what's going on but that crash file is the old one; the version it prints out is the one from a few days ago:
# Blender 3.3.0, Commit date: 2022-06-28 22:57, Hash c0e453233132
Will set back to Needs Triage in hopes that someone else might be able to confirm the issue.
My bad, uploaded the wrong file.
blender.crash.txt
Added subscriber: @OmarEmaraDev
Changed status from 'Needs Triage' to: 'Needs User Info'
Can't reproduce myself either. Does moving the file somewhere else before importing makes a difference?
No, no change unfortunately.
Changed status from 'Needs User Info' to: 'Needs Triage'
Changed status from 'Needs Triage' to: 'Needs User Info'
Can you try with
blender --factory-startup --python-expr 'import bpy; bpy.ops.import_scene.gltf(filepath="/home/workstation/Desktop/glTF/Sponza.gltf")'
? That is, with factory setup.It seems to me that this code path only executes when there is an asset browser editor open. Maybe your startup file have one opened?
Very astute! My startup file does have an asset browser editor open and running blender with
--factory-startup
produces no error and the gltf file gets imported as expected. We seem to have this narrowed down. Thank you!Changed status from 'Needs User Info' to: 'Confirmed'
Can replicate with a blend file that has an asset browser open.
Blender crashes when trying to import file using pythonto Crash when importing a file using python from the command line with an asset browser openAdded subscribers: @NovanByworks, @EAW, @rjg, @Harvester
Cannot reproduce (not even in
c0e4532331
as reported here and with a file with an asset browser open).Can you re-check if this is still a problem in fresh builds from https://builder.blender.org/download/daily/ ?
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.