Cycles does nothing when the render starts. (In specific scene) #70972

Closed
opened 2019-10-20 19:01:30 +02:00 by Hyesung · 10 comments

System Information
Operating system: Windows 10 (1903)
Graphics card: MSI GeForce RTX 2080 AERO 8G
GPU driver version: GEFORCE GAME READY DRIVER 436.48 2019.10.1
Main memory size: Samsung DDR4 32 GB 2666mhz

Blender Version
Broken: blender-2.82-c2a2cd13be2f-windows64-2019-10-19
Worked: blender-2.79b-f4dc9f9d68b-windows64-2018-03-22

Short description of error
Nothing happens during the first 30 seconds when rendering a specific scene in Cycles.

  • CPU, CUDA, OptiX all have this problem.
  • Works well immediately in viewport rendering.

Exact steps for others to reproduce the error

Cycles do nothing for the first 30 seconds. (2.80, 2.81, 2.82 are all the same.)
Video → https://d.pr/v/vWhdvC

Cycles viewport rendering works fine. (2.80, 2.81, 2.82 are all the same.)
Video → https://d.pr/v/ysASDJ

It seems to start immediately in 2.79b.
Video → https://d.pr/v/mCP60J

Cycles does nothing when the render starts.blend

**System Information** Operating system: Windows 10 (1903) Graphics card: MSI GeForce RTX 2080 AERO 8G GPU driver version: GEFORCE GAME READY DRIVER 436.48 2019.10.1 Main memory size: Samsung DDR4 32 GB 2666mhz **Blender Version** Broken: blender-2.82-c2a2cd13be2f-windows64-2019-10-19 Worked: blender-2.79b-f4dc9f9d68b-windows64-2018-03-22 **Short description of error** Nothing happens during the first 30 seconds when rendering a specific scene in Cycles. - CPU, CUDA, OptiX all have this problem. - Works well immediately in viewport rendering. **Exact steps for others to reproduce the error** Cycles do nothing for the first 30 seconds. (2.80, 2.81, 2.82 are all the same.) Video → https://d.pr/v/vWhdvC Cycles viewport rendering works fine. (2.80, 2.81, 2.82 are all the same.) Video → https://d.pr/v/ysASDJ It seems to start immediately in 2.79b. Video → https://d.pr/v/mCP60J [Cycles does nothing when the render starts.blend](https://archive.blender.org/developer/F7858582/Cycles_does_nothing_when_the_render_starts.blend)
Author

Added subscriber: @Hyesung

Added subscriber: @Hyesung

Added subscriber: @dark999

Added subscriber: @dark999

You forgot to upload a simplest possible .blend file to reproduce this problem, just as you forgot to fill relevant data as request in bug template

The operating system, main memory size, GPU brand and model, GPU driver version and Blender hash or its build date may be needed by developers to investigate this problem

thank you

You forgot to upload a simplest possible .blend file to reproduce this problem, just as you forgot to fill relevant data as request in bug template ```The operating system, main memory size, GPU brand and model, GPU driver version and Blender hash or its build date may be needed by developers to investigate this problem``` thank you
Author

I'm sorry I didn't submit properly,
The .blender file is a paid scene, and I'm looking for permission from the copyright holder.
Please understand.

Thank you.

I'm sorry I didn't submit properly, The .blender file is a paid scene, and I'm looking for permission from the copyright holder. Please understand. Thank you.
Author

I uploaded a .blend file with the permission of the copyright holder.

I uploaded a .blend file with the permission of the copyright holder.
Member

Added subscribers: @Sergey, @LazyDodo

Added subscribers: @Sergey, @LazyDodo
Sergey Sharybin was assigned by Ray molenkamp 2019-10-26 19:02:44 +02:00
Member

I can see one of the deg threads holding up things for 37.5 seconds, it seems to be spending an awful lot of time in the OSD code

{F7858981, width=100%}

@Sergey mind taking a look here?

I can see one of the deg threads holding up things for 37.5 seconds, it seems to be spending an awful lot of time in the OSD code {[F7858981](https://archive.blender.org/developer/F7858981/image.png), width=100%} @Sergey mind taking a look here?

This is evaluation of patches which takes a bit. There are some threading issues i've found recently, which is same source of slowdown in #70826.

This is evaluation of patches which takes a bit. There are some threading issues i've found recently, which is same source of slowdown in #70826.

Closed as duplicate of #70826

Closed as duplicate of #70826
Member

Thread scheduling doesn't seem to be the issue here it seems to be job size, what is happening is:

  1. Blender schedules the eval of all objects in the scene across all deg threads.
  2. OSD is called with the CPUEvaluator which is single threaded
  3. Given the deg threads work in parallel this gives an even workload distribution across all threads without overloading any cores.

as long as all jobs being scheduled are relatively small this will work out nicely. However in this specific file there is one OSD task that takes 'a bit' and ends up causing the other threads to idle for about 24 seconds.

{F8062968, width=100%}

Solution is gonna be tricky, cause you can't just stick in the multi-threaded OSD eval, since you would end up in context switch hell virtually instantly.

@Sergey up to you if you want to re-open this ticket or not.

Thread scheduling doesn't seem to be the issue here it seems to be job size, what is happening is: 1) Blender schedules the eval of all objects in the scene across all deg threads. 2) OSD is called with the CPUEvaluator which is single threaded 3) Given the deg threads work in parallel this gives an even workload distribution across all threads without overloading any cores. as long as all jobs being scheduled are relatively small this will work out nicely. However in this specific file there is one OSD task that takes 'a bit' and ends up causing the other threads to idle for about 24 seconds. {[F8062968](https://archive.blender.org/developer/F8062968/image.png), width=100%} Solution is gonna be tricky, cause you can't just stick in the multi-threaded OSD eval, since you would end up in context switch hell virtually instantly. @Sergey up to you if you want to re-open this ticket or not.
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#70972
No description provided.