Freeze when initializing EEVEE on RX 580 #56789

Closed
opened 2018-09-13 06:27:23 +02:00 by Robert Hewitt · 7 comments

System Information
Windows 10 and RX 580 with Radeon Adrenalin driver 18.8.2 (latest "optional" driver at time of posting)

Blender Version
blender-2.80-f04ddd37ea3-win64

Short description of error
When switching to Rendered Mode (SHIFT + Z) in the EEVEE engine, the application becomes unresponsive while generating mipmaps for a depth texture.

Exact steps for others to reproduce the error

  • Switch to Rendered View

I built from source using the latest version, and I was able to stack-trace where the application busy-waits. The freeze occurs in the file gpu_texture.c in the method GPU_texture_generate_mipmap where it calls glGenerateMipmap. This may be because glGenerateMipmap on a GPU_DEPTH_COMPONENT24 texture is not officially supported on AMD drivers.

Note:
I saw a line in eevee_effects.c in the function EEVEE_effects_init that falls back to an R32F texture for intel gpus, and tried changing the code so that my GPU is also included in the workaround and this appears to fix the error. (However, as an OpenGL developer myself, I would recommend manually generating mipmaps for the depth texture instead of using glGenerateMipmaps as it makes no sense to linearly interpolate depth values.)

**System Information** Windows 10 and RX 580 with Radeon Adrenalin driver 18.8.2 (latest "optional" driver at time of posting) **Blender Version** blender-2.80-f04ddd37ea3-win64 **Short description of error** When switching to Rendered Mode (SHIFT + Z) in the EEVEE engine, the application becomes unresponsive while generating mipmaps for a depth texture. **Exact steps for others to reproduce the error** * Switch to Rendered View I built from source using the latest version, and I was able to stack-trace where the application busy-waits. The freeze occurs in the file `gpu_texture.c` in the method `GPU_texture_generate_mipmap` where it calls `glGenerateMipmap`. This may be because `glGenerateMipmap` on a `GPU_DEPTH_COMPONENT24` texture is not officially supported on AMD drivers. Note: I saw a line in `eevee_effects.c` in the function `EEVEE_effects_init` that falls back to an `R32F` texture for intel gpus, and tried changing the code so that my GPU is also included in the workaround and this appears to fix the error. (However, as an OpenGL developer myself, I would recommend manually generating mipmaps for the depth texture instead of using glGenerateMipmaps as it makes no sense to linearly interpolate depth values.)
Author

Added subscriber: @rhewitt

Added subscriber: @rhewitt

Added subscribers: @fclem, @mont29

Added subscribers: @fclem, @mont29
Clément Foucault was assigned by Bastien Montagne 2018-09-13 12:37:10 +02:00

@fclem another one for you to check ;)

@fclem another one for you to check ;)

This issue was referenced by b3a9069170

This issue was referenced by b3a90691703c85fdad9e205722ee061f9c9645e8

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

@rhewitt Much thanks for investigating the issue and finding glGenerateMipmap to be the root of the problem. I hope the fix does the job.

@rhewitt Much thanks for investigating the issue and finding glGenerateMipmap to be the root of the problem. I hope the fix does the job.
Author

I've grabbed the latest build (75980f4af2a-windows64) and it no longer freezes for me. Looks like it worked!

I've grabbed the latest build (75980f4af2a-windows64) and it no longer freezes for me. Looks like it worked!
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#56789
No description provided.