Crash: When Rendering in Workbench #58124

Closed
opened 2018-11-28 22:10:43 +01:00 by Mohamed El Hamd · 9 comments

System Information
Windows 10 64bit, Intel HD 5500 HD

Blender Version
Broken: blender-2.80.0 4c6e7ef11f

Short description of error
Activating Freestyle (in Cycles or Eevee) then switching to Workbench and hit F12 crashes Blender.

Exact steps for others to reproduce the error
1- check on Freestyle in Cycles or Eevee render engine
2- Switch to Workbench render engine
3- Hit F12 or "Render Image"

**System Information** Windows 10 64bit, Intel HD 5500 HD **Blender Version** Broken: blender-2.80.0 4c6e7ef11f3 **Short description of error** Activating Freestyle (in Cycles or Eevee) then switching to Workbench and hit F12 crashes Blender. **Exact steps for others to reproduce the error** 1- check on Freestyle in Cycles or Eevee render engine 2- Switch to Workbench render engine 3- Hit F12 or "Render Image"

Added subscriber: @elbox01

Added subscriber: @elbox01
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Confirmed, checking...

Confirmed, checking...
Brecht Van Lommel was assigned by Philipp Oeser 2018-11-29 12:06:12 +01:00
Member

Added subscriber: @brecht

Added subscriber: @brecht
Member

scene->world is NULL

1   copy_v3_v3                                    math_vector_inline.c      66   0x288a7b5 
2   workbench_private_data_init                   workbench_data.c          61   0x288accc 
3   workbench_deferred_engine_init                workbench_deferred.c      351  0x2880e98 
4   workbench_render                              workbench_render.c        144  0x2847bc0 
5   workbench_render_to_image                     solid_mode.c              96   0x2847fac 
6   DRW_render_to_image                           draw_manager.c            1850 0x27ffc31 
7   RE_engine_render                              external_engine.c         739  0x22fdf1d 
8   do_render_3d                                  pipeline.c                1101 0x230585c 
9   RE_RenderFreestyleStrokes                     pipeline.c                2052 0x23080e5 
10  Freestyle::BlenderStrokeRenderer::RenderScene BlenderStrokeRenderer.cpp 892  0x2467245 
11  Freestyle::Controller::RenderStrokes          Controller.cpp            907  0x245676c 
12  FRS_do_stroke_rendering                       FRS_freestyle.cpp         632  0x23a56b7 
13  add_freestyle                                 pipeline.c                1337 0x23061b2 
14  RE_RenderFreestyleExternal                    pipeline.c                2088 0x23081f5 
15  RE_engine_render                              external_engine.c         795  0x22fe129 
16  do_render_3d                                  pipeline.c                1101 0x230585c 
17  do_render                                     pipeline.c                1177 0x2305b70 
18  do_render_composite                           pipeline.c                1392 0x2306379 
19  do_render_all_options                         pipeline.c                1659 0x2306fc8 
20  RE_BlenderFrame                               pipeline.c                2013 0x2307ec9 

not sure exactly why, here is just a bandaid to prevent a crash P846: #58124 bandaid



diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c
index 522b7d6e8c4..2308dc9cd8f 100644
--- a/source/blender/draw/engines/workbench/workbench_data.c
+++ b/source/blender/draw/engines/workbench/workbench_data.c
@@ -55,13 +55,12 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd)
 	wd->matcap_orientation = (wpd->shading.flag & V3D_SHADING_MATCAP_FLIP_X) != 0;
 	wd->background_alpha = (DRW_state_is_image_render() && scene->r.alphamode == R_ALPHAPREMUL) ? 0.0f : 1.0f;
 
-	if (!v3d || ((v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD) &&
-	    (scene->world != NULL)))
+	if ((scene->world != NULL) && (!v3d || (v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD)))
 	{
 		copy_v3_v3(wd->background_color_low, &scene->world->horr);
 		copy_v3_v3(wd->background_color_high, &scene->world->horr);
 	}
-	else if (v3d->shading.background_type == V3D_SHADING_BACKGROUND_VIEWPORT) {
+	else if (v3d && v3d->shading.background_type == V3D_SHADING_BACKGROUND_VIEWPORT) {
 		copy_v3_v3(wd->background_color_low, v3d->shading.background_color);
 		copy_v3_v3(wd->background_color_high, v3d->shading.background_color);
 	}

Also not sure if freestyle should be rendering at all for workbench?
If it should be generally supported, then we should add the panel to the Render tab as well.

@brecht, I guess this is for you?

`scene->world` is NULL ``` 1 copy_v3_v3 math_vector_inline.c 66 0x288a7b5 2 workbench_private_data_init workbench_data.c 61 0x288accc 3 workbench_deferred_engine_init workbench_deferred.c 351 0x2880e98 4 workbench_render workbench_render.c 144 0x2847bc0 5 workbench_render_to_image solid_mode.c 96 0x2847fac 6 DRW_render_to_image draw_manager.c 1850 0x27ffc31 7 RE_engine_render external_engine.c 739 0x22fdf1d 8 do_render_3d pipeline.c 1101 0x230585c 9 RE_RenderFreestyleStrokes pipeline.c 2052 0x23080e5 10 Freestyle::BlenderStrokeRenderer::RenderScene BlenderStrokeRenderer.cpp 892 0x2467245 11 Freestyle::Controller::RenderStrokes Controller.cpp 907 0x245676c 12 FRS_do_stroke_rendering FRS_freestyle.cpp 632 0x23a56b7 13 add_freestyle pipeline.c 1337 0x23061b2 14 RE_RenderFreestyleExternal pipeline.c 2088 0x23081f5 15 RE_engine_render external_engine.c 795 0x22fe129 16 do_render_3d pipeline.c 1101 0x230585c 17 do_render pipeline.c 1177 0x2305b70 18 do_render_composite pipeline.c 1392 0x2306379 19 do_render_all_options pipeline.c 1659 0x2306fc8 20 RE_BlenderFrame pipeline.c 2013 0x2307ec9 ``` not sure exactly why, here is just a bandaid to prevent a crash [P846: #58124 bandaid](https://archive.blender.org/developer/P846.txt) ``` diff --git a/source/blender/draw/engines/workbench/workbench_data.c b/source/blender/draw/engines/workbench/workbench_data.c index 522b7d6e8c4..2308dc9cd8f 100644 --- a/source/blender/draw/engines/workbench/workbench_data.c +++ b/source/blender/draw/engines/workbench/workbench_data.c @@ -55,13 +55,12 @@ void workbench_private_data_init(WORKBENCH_PrivateData *wpd) wd->matcap_orientation = (wpd->shading.flag & V3D_SHADING_MATCAP_FLIP_X) != 0; wd->background_alpha = (DRW_state_is_image_render() && scene->r.alphamode == R_ALPHAPREMUL) ? 0.0f : 1.0f; - if (!v3d || ((v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD) && - (scene->world != NULL))) + if ((scene->world != NULL) && (!v3d || (v3d->shading.background_type == V3D_SHADING_BACKGROUND_WORLD))) { copy_v3_v3(wd->background_color_low, &scene->world->horr); copy_v3_v3(wd->background_color_high, &scene->world->horr); } - else if (v3d->shading.background_type == V3D_SHADING_BACKGROUND_VIEWPORT) { + else if (v3d && v3d->shading.background_type == V3D_SHADING_BACKGROUND_VIEWPORT) { copy_v3_v3(wd->background_color_low, v3d->shading.background_color); copy_v3_v3(wd->background_color_high, v3d->shading.background_color); } ``` Also not sure if freestyle should be rendering at all for workbench? If it should be generally supported, then we should add the panel to the Render tab as well. @brecht, I guess this is for you?

Hello, @lichtwerk @brecht,
As of today, I have compiled blender :

  • version: 2.80 (sub 38), branch: blender2.8, commit date: 2018-12-18 09:44, hash: d3e1b043c3
  • build date: 18/12/2018, 11:22
    I can confirm that the crash has been resolved (you can close this report), but I noticed some weird results concerning rendering when "Freestyle" is checked on:
  • On EEVEE: image is entirely black.
  • On Workbench: Shading informations doesn't show up, but freestyle is there.
  • On Cycles: everything is fine except some draw back in the performance (it took 00:02:08 to render the default scene).
    Cheers,
    elbox01.
Hello, @lichtwerk @brecht, As of today, I have compiled blender : - version: 2.80 (sub 38), branch: blender2.8, commit date: 2018-12-18 09:44, hash: d3e1b043c37 - build date: 18/12/2018, 11:22 I can confirm that the crash has been resolved (you can close this report), but I noticed some weird results concerning rendering when "Freestyle" is checked on: - On EEVEE: image is entirely black. - On Workbench: Shading informations doesn't show up, but freestyle is there. - On Cycles: everything is fine except some draw back in the performance (it took 00:02:08 to render the default scene). Cheers, elbox01.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Thanks for testing. For the Freestyle issue we have #58669 (Freestyle + EEVEE render not working).

Thanks for testing. For the Freestyle issue we have #58669 (Freestyle + EEVEE render not working).

OK! no problem and thank you for your hard work.

OK! no problem and thank you for your hard work.
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
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#58124
No description provided.