Page MenuHome

Crash in gallium/radeon on some 3D manipulation/render
Closed, InvalidPublic

Description

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

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Needs Information from User priority.

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 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 ?

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.

Sebastian Parborg (zeddb) claimed this task.

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

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

Martin, thank you. Your solution does work.