Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Artifact / Dota 2 (with vulkan) segfault on startup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Sun Dec 16, 2018 6:05 am    Post subject: [SOLVED]Artifact / Dota 2 (with vulkan) segfault on startup Reply with quote

I am a bit lost as to what is causing this but since some time ago none of the native steam games that use Vulkan for rendering seem to work for me anymore.
Dota 2 used to work with vulkan but since I don't really play it I don't know when this stopped working. Only noticed since I acquired Artifact and can't even launch it now.
Both of them segfault inside libnvidia-glcore.so. I've tried it with pretty much any driver version that builds for 4.19 kernel. Currently am using 415.22.01

Weird thing is that I do have all of these working:
Native vulkan thingies (vulkaninfo, vkcube, replaying some traces in vkreplay)
Wine + dxvk
Steam + proton + vulkan (Doom 2016)
Steam + proton +dxvk ( eg Dishonored 2 demo) (however this one only started working only If I delete gameoverlayrenderer.so so that it wouldn't be loaded)

Even weirder is that if I capture trace of Artifact/Dota 2 launching (with vktrace) I can replay it with vkreplay perfectly fine without any issues (except that it expects it to fail but it doesn't)
That makes me believe that its not necessarily something with the drivers but rather with interaction of Steam and my system. I am up-to-date on ~amd64.

I did open an issue with Valve (that got moved to Dota-2-Vulkan repo issues) https://github.com/ValveSoftware/Dota-2-Vulkan/issues/286 but I don't really expect that to do much and hoping that maybe Gentoo community will have any ideas on how to debug this.

Thanks!


Last edited by theli on Thu Dec 27, 2018 9:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Sun Dec 16, 2018 5:08 pm    Post subject: Reply with quote

does DOTA2 run in ogl mode fine?
what STEAM system variables are you using:
Quote:


STEAM_FRAME_FORCE_CLOSE=1 # systray not close
STEAM_RUNTIME=1 # use steam runtime
STEAM_RUNTIME_PREFER_HOST_LIBRARIES=1 # steam will choose system over steam when appropriate

_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Sun Dec 16, 2018 7:02 pm    Post subject: Reply with quote

Naib wrote:
does DOTA2 run in ogl mode fine?

Yes
Naib wrote:

STEAM_FRAME_FORCE_CLOSE=1 # systray not close

Not sure why would this one make change but I do have it set and never tried changing it

Naib wrote:

STEAM_RUNTIME=1 # use steam runtime

Yeah, I wasn't able to run without this

Naib wrote:
STEAM_RUNTIME_PREFER_HOST_LIBRARIES=1 # steam will choose system over steam when appropriate

I do have it set and changing it back and forth doesn't affect the segfault
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Mon Dec 17, 2018 2:40 am    Post subject: Reply with quote

FWIW, wiping ~/.local/share/Steam and starting over didn't help
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Mon Dec 17, 2018 10:01 am    Post subject: Reply with quote

Well that was just the output of grep STEAM .config/openbox/environment. STEAM_FRAME_FORCE_CLOSE=1 wont change this as this is just a QualityOfLife thing.

As to the issue... Anything in dmesg when it crashes? if you launch steam from a terminal and launch dota2 anything in the terminal associated with the crash. Any hardened like stuff enabled?
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Mon Dec 17, 2018 7:26 pm    Post subject: Reply with quote

No hardened stuff, no, no selinux, nothing like that. As far as I can think of its a pretty default ~amd64 build, currently on GCC -7.4.x

dmesg example
Code:

[  230.012255] NVRM: GPU at PCI:0000:01:00: GPU-1bb202c7-113c-0b8a-f123-8436d8a67298
[  230.012259] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000036, intr 10000000. MMU Fault: ENGINE GRAPHICS GPCCLIENT_PROP_0 faulted @ 0x1_14702000. Fault is of type FAULT_PDE ACCESS_TYPE_WRITE
[  249.506097] VKRenderThread[5101]: segfault at 68 ip 00007fcb3da14cb4 sp 00007fcb30243b20 error 4 in libnvidia-glcore.so.415.22[7fcb3c8ad000+11de000]
[  249.506102] Code: 82 fd ff ff 84 c0 75 98 4d 29 ec 75 be eb 97 90 90 90 90 90 90 90 53 48 89 f3 e8 67 fd ff ff 84 c0 74 07 5b b8 fc ff ff ff c3 <48> 8b 7b 68 5b 48 8b 07 4c 8b 58 18 41 ff e3 90 90 90 90 90 90 90

Code:

[ 2595.167017] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000036, intr 10000000. MMU Fault: ENGINE GRAPHICS GPCCLIENT_PROP_0 faulted @ 0x1_14700000. Fault is of type FAULT_PDE ACCESS_TYPE_WRITE
[ 2599.327966] dota2[6673]: segfault at 60 ip 00007f0c78f97581 sp 00007ffda0b0e8b0 error 4 in libnvidia-glcore.so.415.22[7f0c77e38000+11de000]
[ 2599.327972] Code: c7 83 d0 01 00 00 06 19 00 00 48 8b 85 80 00 00 00 48 8b 80 c8 00 00 00 4a 8b 94 20 10 03 00 00 48 b8 ff ff ff ff ff ff ff 3f <48> 23 42 60 48 03 83 d8 02 00 00 48 89 03 f6 85 9c 00 00 00 04 0f


Output with validation layers: https://gist.github.com/theli-ua/4b5298c41452d9cff3e704148da7a751

Dota's console.log: https://github.com/ValveSoftware/Dota-2-Vulkan/files/2663944/console.log

Output when replaying vktrace captured trace (see it succeeds unexpectedly):
Code:

vkreplay error: Return value VK_SUCCESS from API call (vkQueueWaitIdle) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 38, with global_packet_index 36472.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 37226.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 37, with global_packet_index 37230.
vkreplay error: Return value VK_SUCCESS from API call (vkDeviceWaitIdle) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 39, with global_packet_index 37231.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 38540.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 37, with global_packet_index 38544.
vkreplay error: Return value VK_SUCCESS from API call (vkDeviceWaitIdle) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 39, with global_packet_index 38545.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueWaitIdle) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 38, with global_packet_index 38547.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 44067.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 37, with global_packet_index 44126.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 48107.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 37, with global_packet_index 48152.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 50768.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
vkreplay error: Failed to replay packet_id 37, with global_packet_index 50784.
vkreplay error: Return value VK_SUCCESS from API call (vkCreateFence) does not match return value from trace file VK_ERROR_OUT_OF_HOST_MEMORY.
vkreplay error: Failed to replay packet_id 54, with global_packet_index 50788.
vkreplay error: Return value VK_SUCCESS from API call (vkQueueSubmit) does not match return value from trace file VK_ERROR_DEVICE_LOST.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Tue Dec 18, 2018 4:21 pm    Post subject: Reply with quote

if it is any consolation this is now happening to me
There was some small patch that I received this morning and since then crashing like this. Not immediatly as I can get about 20min into a game and then pop... and constant crashes and as you can appreciate, crashing in the middle of a fight is well... gg

I don't think our issues are the same, except
1) dota2
2) vulkan

but there could be a common problem causing this

Code:


[ 6889.022142] dota2[11017]: segfault at 10 ip 00007f50d5d22da4 sp 00007ffcc98cb218 error 4 in libclient.so[7f50d1e64000+558d000]
[ 6889.022149] Code: 84 00 00 00 00 00 55 48 89 e5 41 54 53 44 0f b7 27 48 89 fb e8 0d f7 ff ff 48 8d 78 08 44 89 e6 e8 21 e8 ff ff 48 8d 73 08 5b <48> 8b 78 10 41 5c 5d 48 8b 07 48 8b 40 48 ff e0 66 66 66 2e 0f 1f
[ 7732.257019] dota2[14568]: segfault at 0 ip 00007f9c041a45c5 sp 00007fff79992798 error 6 in libpanorama.so[7f9c03ff4000+910000]
[ 7732.257026] Code: 89 df e8 1e 02 59 00 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 38 8b 97 70 05 <00> 00 c7 87 70 05 00 00 ff ff ff ff 8b 87 6c 05 00 00 c7 87 6c 05
[ 7954.792831] traps: dota2[16113] trap invalid opcode ip:7f94809f68c0 sp:7fff12b96058 error:0 in libsoundsystem.so[7f9480914000+235000]
[ 8023.507853] dota2[16395]: segfault at 0 ip 00007f8aa858b5c5 sp 00007ffdbf3f9498 error 6 in libpanorama.so[7f8aa83db000+910000]
[ 8023.507865] Code: 89 df e8 1e 02 59 00 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 38 8b 97 70 05 <00> 00 c7 87 70 05 00 00 ff ff ff ff 8b 87 6c 05 00 00 c7 87 6c 05
[ 8058.391871] dota2[16475]: segfault at 0 ip 00007fe6b610c5c5 sp 00007ffe64bb4858 error 6 in libpanorama.so[7fe6b5f5c000+910000]
[ 8058.391884] Code: 89 df e8 1e 02 59 00 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 38 8b 97 70 05 <00> 00 c7 87 70 05 00 00 ff ff ff ff 8b 87 6c 05 00 00 c7 87 6c 05
[ 8848.579815] dota2[16562]: segfault at 8 ip 00007ff932adb081 sp 00007ffe73ca1bc0 error 4 in libvideo.so[7ff932955000+3ab000]
[ 8848.579821] Code: eb 97 48 8d 3d b8 fd ff ff e8 0b c1 f1 ff 48 89 45 00 48 85 c0 0f 85 34 ff ff ff 31 c0 e9 77 ff ff ff 53 48 8b 1d 47 36 45 00 <48> 8b 3b 48 85 ff 74 13 48 8d 35 b2 fd ff ff e8 db ad f1 ff 48 c7
[19604.740046] CIFS VFS: Autodisabling the use of server inode numbers on \\192.168.0.2\jrb. This server doesn't seem to support them properly. Hardlinks will not be recognized on this mount. Consider mounting with the "noserverino" option to silence this message.
[22772.674751] dota2[27201]: segfault at 0 ip 00007f878268b5c5 sp 00007ffcaae6fde8 error 6 in libpanorama.so[7f87824db000+910000]
[22772.674758] Code: 89 df e8 1e 02 59 00 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 38 8b 97 70 05 <00> 00 c7 87 70 05 00 00 ff ff ff ff 8b 87 6c 05 00 00 c7 87 6c 05
[22988.741840] GlobPool4[30546]: segfault at 561e2a541db0 ip 00007f5e333c299c sp 00007f5e43ecca60 error 4 in libscenesystem.so[7f5e331cf000+763000]
[22988.741852] Code: 74 59 48 8b bd f0 bd ff ff 48 85 ff 74 4d f6 83 8d 00 00 00 10 75 44 48 89 fe 0f b7 50 08 66 85 d2 0f 84 3b 01 00 00 8b 48 0c <8b> 0c 8e 85 48 10 75 29 48 8d 48 14 83 ea 01 48 8d 7c d0 14 48 39
[23263.228970] NVRM: Xid (PCI:0000:1d:00): 69, Class Error: ChId 0036, Class 0000b197, Offset 00000e00, Data 200108e4, ErrorCode 0000000c
[23274.742419] VKRenderThread[30685]: segfault at 68 ip 00007f9bc532fe32 sp 00007f9bc0131670 error 4 in libnvidia-glcore.so.415.22[7f9bc41cb000+11de000]
[23274.742426] Code: 24 e0 48 89 fb 4c 89 64 24 e8 4c 89 6c 24 f0 49 89 f4 4c 89 74 24 f8 48 83 ec 28 48 83 fa ff 48 89 d5 41 89 cd 4d 89 c6 74 6e <48> 8b 4b 68 48 8b 41 58 48 85 c0 74 6a 4c 01 e0 4a 8d 54 25 00 49
[23321.033514] traps: dota2[30925] general protection ip:7fbe65390569 sp:7ffd31a105e0 error:0 in libresourcesystem.so[7fbe65364000+107000]
[23362.245492] dota2[31113]: segfault at 8 ip 00007fecc917e081 sp 00007fffe48703f0 error 4 in libvideo.so[7fecc8ff8000+3ab000]
[23362.245498] Code: eb 97 48 8d 3d b8 fd ff ff e8 0b c1 f1 ff 48 89 45 00 48 85 c0 0f 85 34 ff ff ff 31 c0 e9 77 ff ff ff 53 48 8b 1d 47 36 45 00 <48> 8b 3b 48 85 ff 74 13 48 8d 35 b2 fd ff ff e8 db ad f1 ff 48 c7

_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Tue Dec 18, 2018 4:27 pm    Post subject: Reply with quote

--edit-- I did an integrity check and one file failed to validate so I am just re-fetching that
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Tue Dec 18, 2018 11:03 pm    Post subject: Reply with quote

so post-validation of that file, coupled with bumping kernel to 4.19.8 (from 4.19.0), everything seems stable...
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Wed Dec 26, 2018 1:57 am    Post subject: Reply with quote

well, I'm still stuck. The fact that replaying trace of dota startup succeeds unexpectedly is pretty weird
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Thu Dec 27, 2018 9:51 pm    Post subject: Reply with quote

Naib, whats your USE flags on nvidia-drivers?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Thu Dec 27, 2018 9:54 pm    Post subject: Reply with quote

theli wrote:
Naib, whats your USE flags on nvidia-drivers?


Code:
[ebuild   R    ] x11-drivers/nvidia-drivers-415.25:0/415::gentoo  USE="X acpi driver gtk3 kms multilib tools -compat -pax_kernel -static-libs -uvm -wayland" ABI_X86="32 (64) (-x32)" 0 KiB

_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
theli
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2004
Posts: 112
Location: Seattle, US

PostPosted: Thu Dec 27, 2018 9:55 pm    Post subject: Reply with quote

Well, i actually just trued removing "compat" ... I have no memory on why I had to add it back in the days ... this solved my issue!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5585
Location: Removed by Neddy

PostPosted: Thu Dec 27, 2018 10:15 pm    Post subject: Reply with quote

https://gentoo.org/support/use-flags/
compat Install non-GLVND libGL for backwards compatibility


mmm. interesting, I guess vulkan is a break with nvidia, or this is a bug
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum