Maniphest T93727

Changing temporary directory results in errors with tiles while rendering in Cycles
Closed, ResolvedBUG

Assigned To
Sergey Sharybin (sergey)
Authored By
Alaska (Alaska)
Dec 6 2021, 12:40 AM
Tags
  • BF Blender
  • Render & Cycles
Subscribers
Alaska (Alaska)
Alyx (BiOzZ)
Brecht Van Lommel (brecht)
Eleven Marador (Maradon)
Pratik Borhade (PratikPB2123)
Rakesh (choudharyrakesh1298)
Scott (RobbinBob)
Wovchik (microcoder)

Description

System Information
Operating system: Linux-5.15.0-2-amd64-x86_64-with-glibc2.32 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 495.44

Blender Version
Broken version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: rBf1cca3055776
Broken version: 3.1.0 Alpha, branch: master, commit date: 2021-12-05 22:15, hash: rB0a8a22fc04d3
Worked: Unsure as this feature was introduced in Blender 3.0

Short description of error
If you change the temporary directory in preferences and try to render a Cycles scene with tiles, you will receive an error once the first tile is complete.

Error writing tile to file

Exact steps for others to reproduce the error

  1. From the top of Blender select Edit -> Preferences
  2. Navigate to the File Paths tab.
  3. Change the directory of Temporary Files to a different folder folder.
  4. Change the render engine to Cycles and increase the resolution or decrease the tile size so tiles are used.
  5. Render the scene and after the first tile is complete you should receive the error Error writing tile to file.

Revisions and Commits

rC Cycles
D13790
rB Blender
D13790

Event Timeline

Alaska (Alaska) created this task.Dec 6 2021, 12:40 AM
Pratik Borhade (PratikPB2123) added a subscriber: Pratik Borhade (PratikPB2123).Dec 6 2021, 6:53 AM

Can not reproduce here on master (3f7014ecc9d5)

Hi Alaska, does this happen with both CPU, GPU?

System Information

Operating system : Windows-10-10.0.18362-SP0 64 Bits
Graphics card : AMD Radeon(TM) 535 ATI Technologies .
Alaska (Alaska) updated the task description.EditedDec 6 2021, 7:07 AM
In T93727#1265895, @Pratik Borhade (PratikPB2123) wrote:

Hi Alaska, does this happen with both CPU, GPU?

I can reproduce it on my CPU, and GPU (both CUDA and OptiX).

I have done some further investigation and found that more steps are required to reproduce this issue. I have updated my report to contain the extra information.

Pratik Borhade (PratikPB2123) added a comment.EditedDec 6 2021, 8:05 AM

Thanks, I can reproduce now. Only happens when I assign a path for Temporary files.
I am not sure if Factory preferences are responsible for this error to appear (it will just clear the given path)

To reproduce error, I did:

  • Open default blend file
  • Assign path for Temporary Files
  • Switch render engine to Cycles
  • Decrease tile size
  • Render as Image
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.Dec 6 2021, 8:16 AM
Pratik Borhade (PratikPB2123) added a project: Render & Cycles.
Alaska (Alaska) changed the subtype of this task from "Report" to "Bug".Dec 6 2021, 8:59 AM
Brecht Van Lommel (brecht) added a subscriber: Brecht Van Lommel (brecht).Dec 8 2021, 9:58 PM

The problem is that we initialize the temporary path for cycles only on add-on init, and if it changes the directory does not exist anymore.

The easy fix would be to just update the temp path on every render, but that's not correct if there are multiple renders running at the same time, so needs something a bit smarter.

Brecht Van Lommel (brecht) triaged this task as High priority.Dec 9 2021, 7:12 PM

Marking a few bugs as high priority with the aim of fixing them for 3.1.

Pratik Borhade (PratikPB2123) mentioned this in T93973: "Error writing tile to file".Dec 12 2021, 11:05 AM
Pratik Borhade (PratikPB2123) updated the task description.Dec 12 2021, 11:28 AM
Pratik Borhade (PratikPB2123) merged a task: T93973: "Error writing tile to file".
Pratik Borhade (PratikPB2123) added a subscriber: Alyx (BiOzZ).
Pratik Borhade (PratikPB2123) merged a task: T93992: Error while rendering: "Error writing tile to file".
Pratik Borhade (PratikPB2123) added a subscriber: Rakesh (choudharyrakesh1298).
Alaska (Alaska) renamed this task from Load Factory Preferences results in errors with tiles while rendering in Cycles to Changing temporary directory results in errors with tiles while rendering in Cycles.Dec 18 2021, 1:22 AM
Alaska (Alaska) updated the task description.
Wovchik (microcoder) added a subscriber: Wovchik (microcoder).Dec 18 2021, 4:49 PM
Pratik Borhade (PratikPB2123) mentioned this in T94211: Cycles render fails with multiple tiles.Dec 19 2021, 1:47 PM
Pratik Borhade (PratikPB2123) merged a task: T94211: Cycles render fails with multiple tiles.
Pratik Borhade (PratikPB2123) added a subscriber: Scott (RobbinBob).
Eleven Marador (Maradon) added a subscriber: Eleven Marador (Maradon).Jan 6 2022, 2:26 PM
Sergey Sharybin (sergey) claimed this task.Jan 10 2022, 2:43 PM
Sergey Sharybin (sergey) closed this task as Resolved by committing rB292c2cefe30b: Fix T93727: Tiled render error in Cycles after changing temp directory.Jan 10 2022, 5:05 PM
Sergey Sharybin (sergey) added a commit: rB292c2cefe30b: Fix T93727: Tiled render error in Cycles after changing temp directory.
Brecht Van Lommel (brecht) added a commit: rC4081365cf723: Fix T93727: Tiled render error in Cycles after changing temp directory.Jan 27 2022, 11:38 PM