Black cube on start and no material updates #53095

Closed
opened 2017-10-17 15:13:06 +02:00 by Aleksander Petkov · 22 comments

System Information
Win8.1 64b AMD R7 200 series

Blender Version
downloaded the buildbot version: blender-2.80.0-git.7d71007-windows64

Short description of error
I have a black cube when i start blender2.8 and when adding materials, doesnt update the values.
Ive traced the commit giving the black cube;
Works with: 9ab18d14f6
Eevee: Modify the raycast function to be more flexible.
dont work: dfcdec914c
Eevee: Shadows: Add Contact Shadows
Image to compare: http://pasteall.org/pic/show.php?id=119554 (between the 2 commits)

**System Information** Win8.1 64b AMD R7 200 series **Blender Version** downloaded the buildbot version: blender-2.80.0-git.7d71007-windows64 **Short description of error** I have a black cube when i start blender2.8 and when adding materials, doesnt update the values. Ive traced the commit giving the black cube; Works with: 9ab18d14f6f1cfe510a2b06ee477498502d1c887 Eevee: Modify the raycast function to be more flexible. dont work: dfcdec914ce918adf6c47d3c1e278b5a5c22fb4d Eevee: Shadows: Add Contact Shadows Image to compare: http://pasteall.org/pic/show.php?id=119554 (between the 2 commits)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @AKIRA_SAN

Added subscriber: @AKIRA_SAN

Added subscriber: @fclem

Added subscriber: @fclem

Is this happening with or without contact shadows turned on?

Does it happen on the default startup file?

Is this happening with or without contact shadows turned on? Does it happen on the default startup file?

Happens on blender startup with default blend and when i open different blender 2.8 Eevee files. Have not checked on contact shadow.

Happens on blender startup with default blend and when i open different blender 2.8 Eevee files. Have not checked on contact shadow.

@AKIRA_SAN Could you provide the output of running blender in a console with the arg --debug

@AKIRA_SAN Could you provide the output of running blender in a console with the arg --debug
Here: http://pasteall.org/pic/show.php?id=119555

Added subscriber: @dfelinto

Added subscriber: @dfelinto

@AKIRA_SAN you need to run blender from the cmd, and pipe the output:
blender.exe --debug 1>out.txt 2>err.txt

@AKIRA_SAN you need to run blender from the `cmd`, and pipe the output: `blender.exe --debug 1>out.txt 2>err.txt`

Also can you do the same with --debug-gpu

Also can you do the same with --debug-gpu

debug err; http://pasteall.org/619797
out: http://pasteall.org/619799
gpu out: http://pasteall.org/619800
Ive attached the gpu err, it was too big.

debug err; http://pasteall.org/619797 out: http://pasteall.org/619799 gpu out: http://pasteall.org/619800 Ive attached the gpu err, it was too big.
google link to gpu err: https://drive.google.com/file/d/0B6yNvVGWiWysSHd0NUtHWlJWQkk/view

Ive compiled the latest master, 2.8 in debug;
gpu debug err: https://drive.google.com/open?id=0B6yNvVGWiWysUl9UbGhfd1N6TE0
Ive also noticed, that by switching from Eevee to Clay and back to Eevee will crash blender, but thats a new issue.

Ive compiled the latest master, 2.8 in debug; gpu debug err: https://drive.google.com/open?id=0B6yNvVGWiWysUl9UbGhfd1N6TE0 Ive also noticed, that by switching from Eevee to Clay and back to Eevee will crash blender, but thats a new issue.

The crash is related to #53089

The crash is related to #53089

Added subscriber: @brecht

Added subscriber: @brecht

This solves the black cube for me on macOS 10.12.6 + Intel Iris 6100.

diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index 0073d97..c3afae9 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -388,6 +388,7 @@ static void add_standard_uniforms(
        DRW_shgroup_uniform_buffer(shgrp, "probePlanars", &vedata->txl->planar_pool);
        DRW_shgroup_uniform_buffer(shgrp, "irradianceGrid", &sldata->irradiance_pool);
        DRW_shgroup_uniform_buffer(shgrp, "shadowTexture", &sldata->shadow_pool);
+       DRW_shgroup_uniform_buffer(shgrp, "planarDepth", &vedata->txl->planar_depth);
        DRW_shgroup_uniform_int(shgrp, "outputSsrId", ssr_id, 1);
        DRW_shgroup_uniform_vec4(shgrp, "aoParameters[0]", &vedata->stl->effects->ao_dist, 2);
        DRW_shgroup_uniform_vec4(shgrp, "viewvecs[0]", (float *)vedata->stl->g_data->viewvecs, 2);

I don't understand the code well enough to know if this is safe to commit though.

This solves the black cube for me on macOS 10.12.6 + Intel Iris 6100. ``` diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index 0073d97..c3afae9 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -388,6 +388,7 @@ static void add_standard_uniforms( DRW_shgroup_uniform_buffer(shgrp, "probePlanars", &vedata->txl->planar_pool); DRW_shgroup_uniform_buffer(shgrp, "irradianceGrid", &sldata->irradiance_pool); DRW_shgroup_uniform_buffer(shgrp, "shadowTexture", &sldata->shadow_pool); + DRW_shgroup_uniform_buffer(shgrp, "planarDepth", &vedata->txl->planar_depth); DRW_shgroup_uniform_int(shgrp, "outputSsrId", ssr_id, 1); DRW_shgroup_uniform_vec4(shgrp, "aoParameters[0]", &vedata->stl->effects->ao_dist, 2); DRW_shgroup_uniform_vec4(shgrp, "viewvecs[0]", (float *)vedata->stl->g_data->viewvecs, 2); ``` I don't understand the code well enough to know if this is safe to commit though.

Adding the uniform fixed the bug.

Adding the uniform fixed the bug.
Clément Foucault was assigned by Dalai Felinto 2017-10-25 02:25:13 +02:00

Clément check It out

Clément check It out

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by 8dab90915f

This issue was referenced by 8dab90915f37b01e7d0da59d06cadad23330897c

Added subscriber: @DeuteriumApex

Added subscriber: @DeuteriumApex

So I got this issue too. I usually work on a potato pc with no graphics card. This computer seems to be completely incompatible with blender 2.8 and eevee. I switched to a PC with a nvidia 1060 and enabled CUDA and now blender works perfectly.

I know not everyone will have this option, but its a start.

So I got this issue too. I usually work on a potato pc with no graphics card. This computer seems to be completely incompatible with blender 2.8 and eevee. I switched to a PC with a nvidia 1060 and enabled CUDA and now blender works perfectly. I know not everyone will have this option, but its a start.
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
6 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#53095
No description provided.