Skip to contentSkip to conversation

new handle table code makes dota2 vulkan crash at start from an empty shader cash

Bug 107552 [email protected] 1 participant 10 messages Aug 12, 2018 – Aug 16, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=107552

Bug ID: 107552
Summary: new handle table code makes dota2 vulkan crash at
start from an empty shader cash
Product: DRI
Version: DRI git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

linux amd-staging-drm-next 7b20167b9670150698201b1d9e4bddd75ad60491 (today) libdrm 879d7c0298d1d4bc52d71d599cc07cafb4645808 (today)
llvm ac6c5d8a36474ca9216ee2628d6a267a72a44d32 (today)
mesa de57926dc909b3fb180ff06a6c5235309fdbf4df (today)
xserver 1fc20b985cc888345bc8c6fce7b43f10ce71fe43 (today) xf86-video-amdgpu 08c4d42f43f80baa4bbc2ff9d0a422202cdc3538 (today)

amd gpu tahiti xt

Empty the shader cache in $HOME/.cache, start dota2 vulkan then it crashes in a random location. Start it a second time, it works. Empty the shader cache, it will crash again at first start.
I reverted libdrm to the pre-handle table version, then everything is fine.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

https://bugs.freedesktop.org/show_bug.cgi?id=107552

Sylvain BERTRAND <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|new handle table code makes |new handle table code makes
                   |dota2 vulkan crash at start |dota2 vulkan crash at start
                   |from an empty shader cash   |from an empty shader cache
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #1 from Christian König <[email protected]> --- Well do you have a backtrace (with symbols)?

Otherwise it is really hard to guess what is going wrong here.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #2 from Sylvain BERTRAND <[email protected]> --- I did a lot of testing and dumped cores (libsegfault.so or catchsegv do not work with steam/dota2), the issue is actually random: sometimes it works, most of the time it crashes or hangs the vulkan dota2 process or hangs the whole system. Using the steam overlay with vulkan dota2 makes the crashes/hangs do happen way more often. The segfault backtraces happen in various parts of vulkan dota2 (I got very few of them in mesa vulkan driver) and do not show anything in libdrm*. I even did manage to crash the new steam chat (it was unable to restart itself). If I read a video (gl accelerated) at the same time, it changes the way vulkan dota2 crashes/hangs.

The system is stable again if I switch back to the previous libdrm hash table code.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #3 from Bas Nieuwenhuizen <[email protected]> --- Even if you cannot get a backtrace, can you bisect to show the exact commit which causes the issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #4 from Sylvain BERTRAND <[email protected]> --- Sure, but there are very few commits. Basically, it's almost directly the commits related to the handle table:
87fdbfb62fb3de6759d465d07cc13f922084694e stable commit 879d7c0298d1d4bc52d71d599cc07cafb4645808 unstable commit

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Michel Dänzer
#6 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #5 from Sylvain BERTRAND <[email protected]> --- bisected:
--------------------------------------------------------------------------------
commit cbf0bb7f192b814be84dff538fb90dacf65958c7

Author: Christian König <[email protected]>
Date:   Thu Aug 2 10:45:19 2018 +0200

amdgpu: always add all BOs to handle table

This way we can always find a BO structure by its handle.

--------------------------------------------------------------------------------
I am currently running libdrm from the commit right before this one, no pb so far.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #6 from Christian König <[email protected]> --- Created attachment 141104
--> https://bugs.freedesktop.org/attachment.cgi?id=141104&action=edit
Possible fix

The attached patch should fix the issue, please test.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

--- Comment #7 from Sylvain BERTRAND <[email protected]> --- I applied on top of commit 1e12c16d7697a1223630a507c1032d940794039a

Stable so far.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 107552] new handle table code makes dota2 vulkan crash at start from an empty shader cache

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=107552

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #8 from Christian König <[email protected]> --- Thanks for the report, sounds like we can close this.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel