Saving images with python causes Blender to hang #56078
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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-addons#56078
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
elementaryOS 0.4.1, GTX 1080
Blender Version
Broken: 2.79.5, 0827443
Worked: 2.79, 59b4c675
Short description of error
Blender hangs when I try to save an image with python.
bpy.data.image['test'].save()
EDIT: Actually the problem seems to be different. The file I uploaded does not show the error, because of the way I construct the path. It seems that giving the path directly is the problem:
image.filepath = "/home/sebastian/test.png"
causes blender to hang, but
image.filepath = os.path.join("/home/sebastian", "test.png")
Added subscriber: @sebastian_k
Added subscriber: @mont29
The last revision that worked was this: https://developer.blender.org/rB59b4c675361b54b32b6238855fe4a82117cc48c7
Starting with this commit Blender hangs when using a filepath directly: https://developer.blender.org/rB08274433e1bd9db5a2a27e5d2f8862e9cc3f27f0
Maybe @mont29 wants to have a look? :)
Will check yes.
Added subscriber: @brecht
Changed status from 'Open' to: 'Resolved'
Solved in blender/blender@22dc248f14.