FS#58933 - [mesa] Segmentation Fault for glxspheres64
Attached to Project:
Arch Linux
Opened by Patrick Young (kmahyyg) - Friday, 08 June 2018, 15:59 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 20 August 2018, 15:09 GMT
Opened by Patrick Young (kmahyyg) - Friday, 08 June 2018, 15:59 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 20 August 2018, 15:09 GMT
|
Details
Description:
Cannot run CSGO and glxspheres64. Also if I could run CSGO with nvidia-utils-396.24-2&nvidia-396.24-7, it will sometimes freeze the picture lasting about 5 secs. Additional info: virtualgl 2.5.2-3 nvidia-390xx-390.59-5 nvidia-390xx-utils-390.59-2 primus 20151110-7 bumblebee 3.2.1-17 Steps to reproduce: $ sudo primusrun glxspheres64 Polygons in scene: 62464 (61 spheres * 1024 polys/spheres) Visual ID of window: 0x145 Context is Direct OpenGL Renderer: GeForce 940MX/PCIe/SSE2 [1] 3182 segmentation fault sudo primusrun glxspheres64 |
This task depends upon
Closed by Doug Newgard (Scimmia)
Monday, 20 August 2018, 15:09 GMT
Reason for closing: Fixed
Additional comments about closing: mesa 18.1.6-1
Monday, 20 August 2018, 15:09 GMT
Reason for closing: Fixed
Additional comments about closing: mesa 18.1.6-1
*Update: run ```optirun glxspheres64``` , all works fine. This issue may caused by primus.
https://pastebin.com/tkaGPdgA
----
4 hours ago, I still run CSGO.
But now I can not run it. Here's my pacman.log.
[ 847.682858] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 847.682878] [DEBUG] Accel/display bridge: primus
[ 847.682910] [DEBUG] VGL Compression: proxy
[ 847.682933] [DEBUG] VGLrun extra options:
[ 847.682952] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 848.006646] [INFO]Response: Yes. X is active.
[ 848.006664] [INFO]Running application using primus.
[ 848.006750] [DEBUG]Process glxspheres64 started, PID 7306.
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x145
Context is Direct
OpenGL Renderer: GeForce 940MX/PCIe/SSE2
[ 848.485955] [DEBUG]SIGCHILD received, but wait failed with No child processes
[ 848.486084] [DEBUG]Socket closed.
[ 848.486145] [DEBUG]Killing all remaining processes.
I'll have a try.
Doesn't matter as far as I can tell, but I'm currenty on mesa 18.0.4-1 and lib32-mesa 18.0.4-2 if you'd like to give it a shot.
Please try building xorg-xserver with the above patch which is a revert of the commit adjusted to apply cleanly.
No segmentation fault after setting environment variable PRIMUS_UPLOAD=1
No need to downgrade or patch xorg/mesa.
Setting PRIMUS_UPLOAD=1 impacts the performance. I got worse results with it than with optirun. Right now, downgrading mesa is the way to go. Also, this is the upstream primus bug: https://github.com/amonakov/primus/issues/201
(Additional speculation at https://github.com/amonakov/primus/issues/201#issuecomment-404027454)
$ cat /etc/X11/xorg.conf.d/20-intel-tearfree.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "TearFree" "true"
EndSection
Also I ran some benchmarks between optirun, primusrun and nvidia-xrun and glxgears/glxspheres64 can't be used for benchmarks:
- glxgears: optirun ~160 FPS / primusrun ~160 FPS / nvidia-xrun ~13500 FPS (!)
- glxspheres64: optirun ~267 Mpix/s / primusrun ~250 Mpix/s / nvidia-xrun ~4550 Mpix/s (!!)
With unigine-heaven it gives more coherent scores:
- optirun 643 / primusrun 947 / nvidia-xrun 897
The scores don't change much between mesa 18.0.4 + primusrun (with or without vblank_mode, with or without the intel tearfree work-around), and mesa 18.1.4 + primusrun + vblank_mode + intel work-around.
Very important! I never had xf86-video-intel installed because is not required and not recommended (https://wiki.archlinux.org/index.php/intel_graphics#Installation) but if you set intel driver in Xorg.conf you need install xf86-video-intel or X11 don't start.