Saving images with python causes Blender to hang #56078

Closed
opened 2018-07-22 11:38:34 +02:00 by Sebastian Koenig · 7 comments

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()

  • Blender stops responding.
    That did work like a week ago.
    Exact steps for others to reproduce the error
    Open this file save_image.blend and run the script. It does save the image in 2.79, also worked about a week ago, but does cause Blender to hang in revision blender/blender@a6f750d.

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")

**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() - > Blender stops responding. That did work like a week ago. **Exact steps for others to reproduce the error** Open this file [save_image.blend](https://archive.blender.org/developer/F4012947/save_image.blend) and run the script. It does save the image in 2.79, also worked about a week ago, but does cause Blender to hang in revision blender/blender@a6f750d. 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") `
Author
Member

Added subscriber: @sebastian_k

Added subscriber: @sebastian_k
Author
Member

Added subscriber: @mont29

Added subscriber: @mont29
Author
Member

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? :)

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? :)
Bastien Montagne self-assigned this 2018-07-26 17:49:53 +02:00

Will check yes.

Will check yes.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Solved in blender/blender@22dc248f14.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#56078
No description provided.