Status bar indicates wrong information after cancelling a render #66916

Closed
opened 2019-07-14 14:54:58 +02:00 by Julien Enche · 12 comments

System Information
Operating system: Fedora 30

Blender Version
Broken: (example: 2.80 Release Candidate

Short description of error
Status bar shows wrong information after cancelling a render.

Exact steps for others to reproduce the error
Load a blend file (one of those linked here : https://www.blender.org/download/releases/2-80). The status bar indicates "Shaders Compilation" and the current progress.
Start a render, then cancel it.
Now, the status bar indicates "Cancelling..." instead of "Shaders Compilation" when you load another blend file.

**System Information** Operating system: Fedora 30 **Blender Version** Broken: (example: 2.80 Release Candidate **Short description of error** Status bar shows wrong information after cancelling a render. **Exact steps for others to reproduce the error** Load a blend file (one of those linked here : https://www.blender.org/download/releases/2-80). The status bar indicates "Shaders Compilation" and the current progress. Start a render, then cancel it. Now, the status bar indicates "Cancelling..." instead of "Shaders Compilation" when you load another blend file.
Author

Added subscriber: @JulienEnche

Added subscriber: @JulienEnche

Added subscriber: @GavinScott

Added subscriber: @GavinScott

Confirmed on Windows. Opening a new .blend does not reset it and it will show "Cancelling..." while doing the shader compilation for the newly opened file.

Confirmed on Windows. Opening a new .blend does not reset it and it will show "Cancelling..." while doing the shader compilation for the newly opened file.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Cycles or Eevee?
Which scene did you use to test?

Cycles or Eevee? Which scene did you use to test?
Author

I did test with Eevee.
The problem occurs with any scenes that can be downloaded from the link I provided in the bug report.
Please note that the problems also occurs when you cancel the shaders compilation and then load another scene, the status bar will then also indicates "Cancelling...".

I did test with Eevee. The problem occurs with any scenes that can be downloaded from the link I provided in the bug report. Please note that the problems also occurs when you cancel the shaders compilation and then load another scene, the status bar will then also indicates "Cancelling...".

I did it with the Tree Creature scene.

I did it with the Tree Creature scene.
Clément Foucault was assigned by Germano Cavalcante 2019-07-16 13:16:12 +02:00

You don't need to render to test (just cancel when you see "Compiling Shaders" when opening the file).
G.is_break remains true between files.
Here is a solution:

diff --git a/source/blender/draw/intern/draw_manager_shader.c b/source/blender/draw/intern/draw_manager_shader.c
index d0aa6d55c03..3fe9e5beb07 100644
--- a/source/blender/draw/intern/draw_manager_shader.c
+++ b/source/blender/draw/intern/draw_manager_shader.c
@@ -236,6 +236,9 @@ static void drw_deferred_shader_add(GPUMaterial *mat, bool deferred)
   WM_jobs_timer(wm_job, 0.1, NC_MATERIAL | ND_SHADING_DRAW, 0);
   WM_jobs_delay_start(wm_job, 0.1);
   WM_jobs_callbacks(wm_job, drw_deferred_shader_compilation_exec, NULL, NULL, NULL);
+
+  G.is_break = false;
+
   WM_jobs_start(wm, wm_job);
 }
 

You don't need to render to test (just cancel when you see "Compiling Shaders" when opening the file). `G.is_break` remains true between files. Here is a solution: ``` diff --git a/source/blender/draw/intern/draw_manager_shader.c b/source/blender/draw/intern/draw_manager_shader.c index d0aa6d55c03..3fe9e5beb07 100644 --- a/source/blender/draw/intern/draw_manager_shader.c +++ b/source/blender/draw/intern/draw_manager_shader.c @@ -236,6 +236,9 @@ static void drw_deferred_shader_add(GPUMaterial *mat, bool deferred) WM_jobs_timer(wm_job, 0.1, NC_MATERIAL | ND_SHADING_DRAW, 0); WM_jobs_delay_start(wm_job, 0.1); WM_jobs_callbacks(wm_job, drw_deferred_shader_compilation_exec, NULL, NULL, NULL); + + G.is_break = false; + WM_jobs_start(wm, wm_job); } ```

Added subscriber: @peto2006

Added subscriber: @peto2006
Clément Foucault was unassigned by Dalai Felinto 2019-12-23 16:33:44 +01:00

Added subscriber: @fclem

Added subscriber: @fclem

This issue was referenced by 5201bc9dd4

This issue was referenced by 5201bc9dd4a764c3ea054a953aa17da23d8107d7

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Clément Foucault self-assigned this 2020-05-19 21:26:31 +02:00
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
7 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#66916
No description provided.