Crash: Shadow cube size 1024 #60754

Closed
opened 2019-01-22 16:34:29 +01:00 by Marco · 18 comments
Member

System Information
Operating system: Ubuntu 18.04.1
Graphics card: AMD Radeon RX 580 (8 GB)

Blender Version
Broken: (2.80.41, 8beab3e339, 2019-01-21)

Short description of error
Screenshot.jpg
blender.crash.txt
Opening Blender, going to rendered mode in Eevee, and changing the Cube Size value of the Shadows to 1024px crashes Blender and gives the following error message in the terminal:

GPUTexture: create : TEXTURE_2D_ARRAY, R16F, w : 2509, h : 2509, d : 1, comp : 1, size : 12.01 MiB
GPUTexture: texture alloc failed. Likely not enough Video Memory.
Current texture memory usage : 12.01 MiB.
Writing: /tmp/blender.crash.txt
**System Information** Operating system: Ubuntu 18.04.1 Graphics card: AMD Radeon RX 580 (8 GB) **Blender Version** Broken: (2.80.41, 8beab3e33922, 2019-01-21) **Short description of error** ![Screenshot.jpg](https://archive.blender.org/developer/F6368493/Screenshot.jpg) [blender.crash.txt](https://archive.blender.org/developer/F6368499/blender.crash.txt) Opening Blender, going to rendered mode in Eevee, and changing the Cube Size value of the Shadows to 1024px crashes Blender and gives the following error message in the terminal: ``` GPUTexture: create : TEXTURE_2D_ARRAY, R16F, w : 2509, h : 2509, d : 1, comp : 1, size : 12.01 MiB GPUTexture: texture alloc failed. Likely not enough Video Memory. Current texture memory usage : 12.01 MiB. Writing: /tmp/blender.crash.txt ```
Author
Member

Added subscriber: @nacioss

Added subscriber: @nacioss
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Seems to work fine for me.
What irritates me is that Blender tries to allocate a texture of size 2509 x 2509.

Did you try the latest version of Blender? And are your drivers up to date?

Seems to work fine for me. What irritates me is that Blender tries to allocate a texture of size `2509 x 2509`. Did you try the latest version of Blender? And are your drivers up to date?
Member

Added subscriber: @fclem

Added subscriber: @fclem

Well the 2509 x 2509 is fine because we don't actually create a cubemap but a 2D texture with more of less the same pixel count.

Well the `2509 x 2509` is fine because we don't actually create a cubemap but a 2D texture with more of less the same pixel count.
Author
Member

Jacques, the drivers of my AMD RX 580 are up to date to the latest from the official AMD website (version 18.50) and the Blender version is the one from today (i wrote it above).
The crash happens if i am in the rendered mode in the viewport and if i change the cube size of the shadow to 1024px or above, it doesn't crash if i choose 512px or lower.

Jacques, the drivers of my AMD RX 580 are up to date to the latest from the official AMD website (version 18.50) and the Blender version is the one from today (i wrote it above). The crash happens if i am in the rendered mode in the viewport and if i change the cube size of the shadow to 1024px or above, it doesn't crash if i choose 512px or lower.

Added subscriber: @ZedDB

Added subscriber: @ZedDB

I can't reproduce this on linux with my 290x and the open source drivers. Is there any reason why you are not using the open source drivers?

If not, could you perhaps try and see if that helps? (Make sure you use recent mesa versions though)

I can't reproduce this on linux with my 290x and the open source drivers. Is there any reason why you are not using the open source drivers? If not, could you perhaps try and see if that helps? (Make sure you use recent mesa versions though)
Author
Member

I'm using the latest drivers from AMD because otherwise, with the default AMD drivers in Ubuntu, i couldn't render in Cycles using OpenCL.
This is the driver i'm using: https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580
This is the output of my terminal when i run glxinfo | grep "OpenGL version".

 glxinfo | grep "OpenGL version"
OpenGL version string: 4.6.13542 Compatibility Profile Context 18.50.1.418
I'm using the latest drivers from AMD because otherwise, with the default AMD drivers in Ubuntu, i couldn't render in Cycles using OpenCL. This is the driver i'm using: https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580 This is the output of my terminal when i run glxinfo | grep "OpenGL version". ``` glxinfo | grep "OpenGL version" OpenGL version string: 4.6.13542 Compatibility Profile Context 18.50.1.418 ```
Clément Foucault was assigned by Sebastian Parborg 2019-01-28 17:38:12 +01:00

It is possible to use the closed opencl support from AMD and their open source drivers: https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu

AMD has been working on their open source drivers for quite a while now and it has surpassed the closed source ones in both quality and speed since a few years now:
https://www.phoronix.com/scan.php?page=article&item=rx590-linux-drivers&num=1

But anyways, I guess we need to look into this regardless as it seems like the legacy opengl drivers that come with the closed drivers are buggy.

It is possible to use the closed opencl support from AMD and their open source drivers: https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu AMD has been working on their open source drivers for quite a while now and it has surpassed the closed source ones in both quality and speed since a few years now: https://www.phoronix.com/scan.php?page=article&item=rx590-linux-drivers&num=1 But anyways, I guess we need to look into this regardless as it seems like the legacy opengl drivers that come with the closed drivers are buggy.
Author
Member

Yes please, fix it, i need high res shadows cubemaps

Yes please, fix it, i need high res shadows cubemaps
Author
Member

I want to test, so i installed Ubuntu 18.04.2 from zero, now there are no extra AMD drivers installed.
So, i downloaded the latest AMD drivers from their website: amdgpu-pro-18.50-756341-ubuntu-18.04.
According to the link you sent (https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu) when i run

sudo dpkg -i ...

i get the following error:

dpkg: error: cannot access archive '...': File or directory not existing
I want to test, so i installed Ubuntu 18.04.2 from zero, now there are no extra AMD drivers installed. So, i downloaded the latest AMD drivers from their website: amdgpu-pro-18.50-756341-ubuntu-18.04. According to the link you sent (https://linuxconfig.org/install-opencl-for-the-amdgpu-open-source-drivers-on-debian-and-ubuntu) when i run ``` sudo dpkg -i ... ``` i get the following error: ``` dpkg: error: cannot access archive '...': File or directory not existing ```
Author
Member

According to this documentation (https://amdgpu-install.readthedocs.io/en/latest/install-installing.html) using the command:

./amdgpu-pro-install -y --opencl=pal,legacy --headless

it installs the Only base kernel and Pro OpenCL (headless mode), should i use that command to install only the OpenCL part?

According to this documentation (https://amdgpu-install.readthedocs.io/en/latest/install-installing.html) using the command: ``` ./amdgpu-pro-install -y --opencl=pal,legacy --headless ``` it installs the Only base kernel and Pro OpenCL (headless mode), should i use that command to install only the OpenCL part?
Author
Member
According to this (https://www.reddit.com/r/linux_gaming/comments/7lsday/psa_there_is_a_headless_install_available_for/) the answer to my question is yes maybe...
Author
Member

Update: using the proprietary AMD GPU drivers (version 18.50) with the command

./amdgpu-pro-install -y --opencl=pal,legacy --headless

works only with Linux Kernel 4.15 (i tried with 4.18, 4.20 and 5 but i get the same error when installing) and i don't want to downgrade to 4.15 just for OpenCL support.
So is there any mesa repository that i can use to install OpenCL?
Otherwise i will go with proprietary AMDGPU 18.50 and i will continue to get the crash of the shadow cube size.

Update: using the proprietary AMD GPU drivers (version 18.50) with the command ``` ./amdgpu-pro-install -y --opencl=pal,legacy --headless ``` works only with Linux Kernel 4.15 (i tried with 4.18, 4.20 and 5 but i get the same error when installing) and i don't want to downgrade to 4.15 just for OpenCL support. So is there any mesa repository that i can use to install OpenCL? Otherwise i will go with proprietary AMDGPU 18.50 and i will continue to get the crash of the shadow cube size.

The open source OpenCL implementation does not support the features needed for cycles to run. So that is sadly not an option yet.

The open source OpenCL implementation does not support the features needed for cycles to run. So that is sadly not an option yet.
Author
Member

AMD published a new version of AMG GPU drivers for Ubuntu 18.04.2 (version 19.10) (https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580).
I installed the OpenCL part only and it works well!!
I think you can close this task as resolved!

AMD published a new version of AMG GPU drivers for Ubuntu 18.04.2 (version 19.10) (https://www.amd.com/en/support/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580). I installed the OpenCL part only and it works well!! I think you can close this task as resolved!
Author
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Marco closed this issue 2019-04-20 21:15:34 +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
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#60754
No description provided.