Opening Blender's File Chooser from a Dialog Causes Blender to Crash #65511
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#65511
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 Pro
Graphics card: (2x) NVIDIA GeForce GTX 1070
Blender Version
Broken: 2.80,
c13e10a740
, 2019-06-04Worked: 2.79b,
f4dc9f9d68
, 2018-03-22Short description of error
Creating a Python script that opens Blender's file chooser from a dialog will cause Blender to crash.
For ease of reproduction and demonstration, I have included a Blender file that contains a short Python script that causes this issue. The script is supposed to do the following once it is run:
Upon file selection, print the file's filepath to the console.
This code does functions properly in Blender 2.79b (hash mentioned above), but it causes a crash in Blender 2.80.
For some reason, using the execute function of the primary dialog operator, TEST_OT_primary_dialog, to call either of the file-chooser invoking operators, TEST_OT_invoke_file_chooser_1 or TEST_OT_invoke_file_chooser_2, causes Blender 2.80 to crash.
Exact steps for others to reproduce the error
Click "OK" to call the file-chooser operator from the primary dialog operator.
Demo Blender File (should open in 2.79b and 2.80):
2019_06_04_file_chooser_bug_b2_79.blend
Demo Code (for both 2.79 and 2.80):
Added subscriber: @remi_creative
Opening Blender's File Chooser from Another Dialog Causes Blender to Crashto Opening Blender's File Chooser from a Dialog Causes Blender to CrashAdded subscribers: @ideasman42, @JacquesLucke
The problem is probably that opening the file browser will close all popup dialogs.
Later, when the dialog tries to close itself, it does not exist anymore and it crashes.
Noticed that when I implemented the File Close Dialog (see
wm_block_file_close_discard
in5ce3f69
).I see two possible solutions:
Not sure what is preferable.
I just tested this issue again in the 2.80 release and it appears to be working now.
I'm not going to close the issue myself because I don't know if you guys have some sort of confirmation protocol, but I thought I'd update the thread!
Added subscriber: @JulianEisel
Changed status from 'Open' to: 'Archived'
Tested with the redesigned file browser in 2.81, seems to work without issues. Closing the report then :)
Added subscriber: @vitorbalbio-3
Hi.
It works with ‘filepath’, ‘filename’ and ‘directory’ but crash using 'files'
Tested in blender 2.81 experimental version
970d7ed860