Crash in gallium/radeon on some 3D manipulation/render #61093

Closed
opened 2019-02-01 11:32:17 +01:00 by Olivier Jolly · 19 comments

System Information
Operating system: Linux, Debian unstable
Graphics card: Radeon HD7950, used by Xorg via the "radeon" driver + GeForce GTX 1060 used for Cuda only

Blender Version
Broken: 2.80, 8a51af7d1c, branch: blender2.7, 2019-01-31 21:41
Worked: 2.79c

Short description of error
Blender crashes with the following error message on some 3D manipulation/rendering

blender: ../src/gallium/drivers/radeonsi/si_descriptors.c:1489: si_desc_reset_buffer_offset: Assertion `old_buf_va <= old_desc_va' failed.

Exact steps for others to reproduce the error
I don't have a 100% reproductible scenario, but the minimal situation which triggers the crash quickly seems to be the following:

  • on default scene, enable Render > Screen Space Reflections
  • on default cube, enable Material > Settings > Blend mode = "Alpha Blend"

Upon pressing F12 for rendering, the crash may happen.
If not, moving the Image editor window which opened may trigger the crash.
If not, pressing F11 to go back to the 3D editor may crash blender.
If not, selecting an object in the 3D editor may crash blender.
If not, clicking to set focus on a property may crash blender.

At this point, I may have to go back to rendering and so for some iterations to trigger the crash.

So, blender can be crashing between 5 seconds and 5 minutes from starting it.

I know that non 100% reproducible bugs can be annoying. If needed I can try to build a debug build to provide a more complete stack trace.

TIA

system-info.txt

**System Information** Operating system: Linux, Debian unstable Graphics card: Radeon HD7950, used by Xorg via the "radeon" driver + GeForce GTX 1060 used for Cuda only **Blender Version** Broken: 2.80, 8a51af7d1c98, branch: blender2.7, 2019-01-31 21:41 Worked: 2.79c **Short description of error** Blender crashes with the following error message on some 3D manipulation/rendering ``` blender: ../src/gallium/drivers/radeonsi/si_descriptors.c:1489: si_desc_reset_buffer_offset: Assertion `old_buf_va <= old_desc_va' failed. ``` **Exact steps for others to reproduce the error** I don't have a 100% reproductible scenario, but the minimal situation which triggers the crash quickly seems to be the following: - on default scene, enable Render > Screen Space Reflections - on default cube, enable Material > Settings > Blend mode = "Alpha Blend" Upon pressing F12 for rendering, the crash may happen. If not, moving the Image editor window which opened may trigger the crash. If not, pressing F11 to go back to the 3D editor may crash blender. If not, selecting an object in the 3D editor may crash blender. If not, clicking to set focus on a property may crash blender. At this point, I may have to go back to rendering and so for some iterations to trigger the crash. So, blender can be crashing between 5 seconds and 5 minutes from starting it. I know that non 100% reproducible bugs can be annoying. If needed I can try to build a debug build to provide a more complete stack trace. TIA [system-info.txt](https://archive.blender.org/developer/F6474287/system-info.txt)
Author

Added subscriber: @zeograd

Added subscriber: @zeograd

#63232 was marked as duplicate of this issue

#63232 was marked as duplicate of this issue

#69052 was marked as duplicate of this issue

#69052 was marked as duplicate of this issue

#68351 was marked as duplicate of this issue

#68351 was marked as duplicate of this issue

Added subscriber: @ZedDB

Added subscriber: @ZedDB

I can not reproduce this on my 290x (using mesa git):
(HAWAII, DRM 3.27.0, 4.20.3-gentoo, LLVM 9.0.0)

However, since I've been using the git version of mesa for a while now that error message is not unfamiliar to me.
IIRC that usually happens to me when I updated llvm or mesa and some changes had broken the driver in some way.
It usually broke for me when I tried to play dota2 or other games (but I haven't had this in a while now).

I usually happened when I updated llvm version (so I had to wait a bit for it to be fixed and stay on an older llvm release).

Do you have any options to easily try out newer unreleased mesa and llvm versions?

I can not reproduce this on my 290x (using mesa git): `(HAWAII, DRM 3.27.0, 4.20.3-gentoo, LLVM 9.0.0)` However, since I've been using the git version of mesa for a while now that error message is not unfamiliar to me. IIRC that usually happens to me when I updated llvm or mesa and some changes had broken the driver in some way. It usually broke for me when I tried to play dota2 or other games (but I haven't had this in a while now). I usually happened when I updated llvm version (so I had to wait a bit for it to be fixed and stay on an older llvm release). Do you have any options to easily try out newer unreleased mesa and llvm versions?
Author

I have recently dist-upgraded my debian sid, which was stable for maybe 6 months.

I installed llvm-9 from experimental and compiled/installed/tried mesa 18.3.3 and mesa-19.0.0-rc1 (mesa-git has a compilation error I didn't dig it)

I had no better luck with this setup.
Note that the render log remains the same

Renderer: AMD TAHITI (DRM 2.50.0, 4.19.0-2-amd64, LLVM 7.0.1)

so it might be more compilation/word to do than what I did (still, the expected mesa version shows up in the system-info.txt)

I have attached a backtrace of the crash, if any use, but I guess, at this point, I should rather submit a bug on mesa side, shouldn't I ?
blender2.80-mesa-radeon-crash.txt

I have recently dist-upgraded my debian sid, which was stable for maybe 6 months. I installed llvm-9 from experimental and compiled/installed/tried mesa 18.3.3 and mesa-19.0.0-rc1 (mesa-git has a compilation error I didn't dig it) I had no better luck with this setup. Note that the render log remains the same ``` Renderer: AMD TAHITI (DRM 2.50.0, 4.19.0-2-amd64, LLVM 7.0.1) ``` so it might be more compilation/word to do than what I did (still, the expected mesa version shows up in the system-info.txt) I have attached a backtrace of the crash, if any use, but I guess, at this point, I should rather submit a bug on mesa side, shouldn't I ? [blender2.80-mesa-radeon-crash.txt](https://archive.blender.org/developer/F6476199/blender2.80-mesa-radeon-crash.txt)

Yeah, I agree. This seems to me to be a driver issue.

However, as you can see in the output, the llvm version remains the same. So I think you might need to compile mesa yourself to get the newer llvm versions.
But this is a case for the mesa bug tracker and not blender.

Yeah, I agree. This seems to me to be a driver issue. However, as you can see in the output, the llvm version remains the same. So I think you might need to compile mesa yourself to get the newer llvm versions. But this is a case for the mesa bug tracker and not blender.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sebastian Parborg self-assigned this 2019-02-01 15:58:15 +01:00
Author

For reference, in case someone encounters the same bug and is looking for more info, this crash seems to be linked to this bug in Mesa bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=108824

For reference, in case someone encounters the same bug and is looking for more info, this crash seems to be linked to this bug in Mesa bugtracker: https://bugs.freedesktop.org/show_bug.cgi?id=108824

Added subscriber: @capnm

Added subscriber: @capnm

FYI: I had the same issue in the current Ubuntu 18.04LTS and the open source AMD driver.
Eevee 100% crashes when trying to render an animation or bake indirect lighting:

blender: ../src/gallium/drivers/radeonsi/si_descriptors.c:1507: 
si_desc_reset_buffer_offset: Assertion `old_buf_va <= old_desc_va' failed.
Aborted

The bug is now fixed in the mesa >=19.1.1, in commit
78e35df52a

The LTS distribution uses the stable mesa branch

dpkg -l | grep mesa-dri
ii  libgl1-mesa-dri:amd64                      19.0.2-1ubuntu1.1~18.04.1

To have an usable Blender 2.8 with the AMD GPU, you also need:
– Install the proprietary AMD driver
– Or install the unstable mesa drivers from the padoka PPA:
https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa
This can basically be achieved in the terminal with:

sudo add-apt-repository ppa:paulo-miguel-dias/mesa
sudo apt update
sudo apt upgrade -y
reboot
FYI: I had the same issue in the current Ubuntu 18.04LTS and the open source AMD driver. Eevee 100% crashes when trying to render an animation or bake indirect lighting: ``` blender: ../src/gallium/drivers/radeonsi/si_descriptors.c:1507: si_desc_reset_buffer_offset: Assertion `old_buf_va <= old_desc_va' failed. Aborted ``` The bug is now fixed in the mesa >=19.1.1, in commit https://gitlab.freedesktop.org/mesa/mesa/commit/78e35df52aa2f7d770f929a0866a0faa89c261a9 The LTS distribution uses the stable mesa branch ``` dpkg -l | grep mesa-dri ii libgl1-mesa-dri:amd64 19.0.2-1ubuntu1.1~18.04.1 ``` **To have an usable Blender 2.8 with the AMD GPU,** you also need: – Install the proprietary AMD driver – Or install the unstable mesa drivers from the padoka PPA: https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa This can basically be achieved in the terminal with: ``` sudo add-apt-repository ppa:paulo-miguel-dias/mesa sudo apt update sudo apt upgrade -y reboot ```

Added subscribers: @ANNO, @Jeroen-Bakker

Added subscribers: @ANNO, @Jeroen-Bakker

Added subscriber: @DimaM

Added subscriber: @DimaM

Martin, thank you. Your solution does work.

Martin, thank you. Your solution does work.

Added subscriber: @RL

Added subscriber: @RL

Added subscriber: @Stretch

Added subscriber: @Stretch

Hi Martin

Thankyou! That worked fine. Back in business.

Cheers
Jeff

Hi Martin Thankyou! That worked fine. Back in business. Cheers Jeff

Added subscribers: @CheesecakeCG, @iss, @lichtwerk

Added subscribers: @CheesecakeCG, @iss, @lichtwerk
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
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
8 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#61093
No description provided.