Full Sample render crashes when using 2 blender instances on same machine #28314

Closed
opened 2011-08-21 15:57:24 +02:00 by Olivier Amrein · 6 comments
Member

%%%Dear Bugtracker,
How are you doing today on a fine sunday afternoon ? :-)
I have noticed that when 2 instances of blender try to render a scene using Full Sample, it either gives strange output images, or if u get lucky it simply crashes on of the 2 instances (as in http://www.pasteall.org/24188).
I noticed this when trying to do a "No Overwrite / Placeholder" render of an animation using 2 instances of blender on the same machine.
There is the same problem when using 2 instances of a render farm client on one machine.

I am on MAC osx, tested on 10.6 10.7

So I nailed down the problem to the naming of temporary OpenEXR files used for each sample...
I think prolbem is that both blender instance save and use the same tmp .exr filename....
Maybe adding the frame number to them could help.
Now its /tmp/SCENENAME.blend_scene_SAMPLENUMBER.exr, maybe making it /tmp/SCENENAME.blend_scene_FRAMENUMBER_SAMPLENUMBER.exr

p.s. to help get an idea this is from the console output :
write exr tmp file, 960x540, /tmp/full_sample.blend_Scene.exr
write exr tmp file, 960x540, /tmp/full_sample.blend_Scene1.exr
write exr tmp file, 960x540, /tmp/full_sample.blend_Scene2.exr
write exr tmp file, 960x540, /tmp/full_sample.blend_Scene3.exr
write exr tmp file, 960x540, /tmp/full_sample.blend_Scene4.exr
read exr tmp file: /tmp/full_sample.blend_Scene.exr
read exr tmp file: /tmp/full_sample.blend_Scene1.exr
read exr tmp file: /tmp/full_sample.blend_Scene2.exr
read exr tmp file: /tmp/full_sample.blend_Scene3.exr
read exr tmp file: /tmp/full_sample.blend_Scene4.exr%%%

%%%Dear Bugtracker, How are you doing today on a fine sunday afternoon ? :-) I have noticed that when 2 instances of blender try to render a scene using Full Sample, it either gives strange output images, or if u get lucky it simply crashes on of the 2 instances (as in http://www.pasteall.org/24188). I noticed this when trying to do a "No Overwrite / Placeholder" render of an animation using 2 instances of blender on the same machine. There is the same problem when using 2 instances of a render farm client on one machine. I am on MAC osx, tested on 10.6 10.7 So I nailed down the problem to the naming of temporary OpenEXR files used for each sample... I think prolbem is that both blender instance save and use the same tmp .exr filename.... Maybe adding the frame number to them could help. Now its /tmp/SCENENAME.blend_scene_SAMPLENUMBER.exr, maybe making it /tmp/SCENENAME.blend_scene_FRAMENUMBER_SAMPLENUMBER.exr p.s. to help get an idea this is from the console output : write exr tmp file, 960x540, /tmp/full_sample.blend_Scene.exr write exr tmp file, 960x540, /tmp/full_sample.blend_Scene1.exr write exr tmp file, 960x540, /tmp/full_sample.blend_Scene2.exr write exr tmp file, 960x540, /tmp/full_sample.blend_Scene3.exr write exr tmp file, 960x540, /tmp/full_sample.blend_Scene4.exr read exr tmp file: /tmp/full_sample.blend_Scene.exr read exr tmp file: /tmp/full_sample.blend_Scene1.exr read exr tmp file: /tmp/full_sample.blend_Scene2.exr read exr tmp file: /tmp/full_sample.blend_Scene3.exr read exr tmp file: /tmp/full_sample.blend_Scene4.exr%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%blender should use its own temp dir with a PID subdir or something similar which is unique.
eg:
/tmp/blender/pid/full_sample.blend_Scene.exr%%%

%%%blender should use its own temp dir with a PID subdir or something similar which is unique. eg: /tmp/blender/*pid*/full_sample.blend_Scene.exr%%%
Member

%%%It's a known issue & limitation. Campbell's solution would be a regression though. FSA temp saves were meant to be usable for composite after render, also when you quit and start Blender. Using process number in it would make that impossible, and even fill up the disk even quicker.

Common use for render on 1 system is to give (in commandline) each running binary own temp to save to.

Will add clear note on the todo in wiki:
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Render#Rendering%%%

%%%It's a known issue & limitation. Campbell's solution would be a regression though. FSA temp saves were meant to be usable for composite after render, also when you quit and start Blender. Using process number in it would make that impossible, and even fill up the disk even quicker. Common use for render on 1 system is to give (in commandline) each running binary own temp to save to. Will add clear note on the todo in wiki: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Render#Rendering%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Changed status from 'Archived' to: 'Duplicate'

Changed status from 'Archived' to: 'Duplicate'

✘ Merged into #37974.

✘ Merged into #37974.
Sign in to join this conversation.
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
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#28314
No description provided.