You are not logged in.

#1 2016-02-08 15:14:31

zebulon
Member
Registered: 2008-10-20
Posts: 358

[SOLVED] XCOM 2 graphical bug

SOLVED: unset LC_ALL.
LC_ALL should never be set (unless for testing purposes).

I have this issue with XCOM 2: the main menu is black, only the cursor is visible. Pressing the Enter key several times triggers the introductory videos, which work fine. Then soldiers are dropped and the map is entirely black, with coloured artifacts, as seen here:

?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside|156:88&composite-to=*,*|156:88&background-color=black

One can guess some features (the red bas are the hit point bars, some shapes correspond to text area, etc. The red and orange bits are redrawn when moving around the map or using keys to rotate (Q/E). Everything seems to work fine, except for the graphics.

There are two other users with the same issue on Steam forums, they are using Ubuntu. I am using Archlinux 64-bit, Nvidia drivers 361.18. Playing around nvidia options does not help so far. Now, a Linux user on Youtube, Xpander69, has shown XCOM 2 with a machine having very close specs to mine (Archlinux 64-bit, GTX 970, driver 361.18), and it works fine! Could it be with the nvidia options? I do not use anything special. Or some installed libraries that interact with OpenGL? But then, Shadow of Mordor or Alien Isolation are working fine.

I have contacted Feral, who are looking into it, but cannot reproduce the bug so far. Has anyone an idea of what could be happening?

PS: I have tried several versions of the nvidia driver, as well as checked the game cache and even reinstalled Steam from scratch.

Moderator edit:  Converted over sized image tags to url tags

Last edited by zebulon (2016-02-11 16:35:36)

Offline

#2 2016-02-08 15:25:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: [SOLVED] XCOM 2 graphical bug

zebulon, I took the liberty of editing your post.  Some of our members are on slow or metered connections, so we limit the size of images on threads where large images are not expected.

Thanks..


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-02-08 15:45:32

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Hi ewaller, no problem, I understand. I found a very small version of the image. Do you mind I display it?

Last edited by zebulon (2016-02-08 15:46:56)

Offline

#4 2016-02-08 16:20:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: [SOLVED] XCOM 2 graphical bug

Yes, that is fine.   If you like you can do this

[url=urlOfLargePicture][img]urlOfSmallPicture[/img][/url]

This will give you the small picture (Thumbnail) in-line and allow a reader to click on the Thumbnail to see the full sized image.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-02-08 16:27:22

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Done, thanks ewaller.

Offline

#6 2016-02-09 10:28:40

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Got some feedback from Feral, who cannot reproduce on "fresh" Linux install. They say that "the issue is super rare and cannot be reproduced on the same hardware by other most other users or at Feral QA hints that something else (likely some custom setup) is causing the issue with GL not initialising."
Any idea? Other GL games like Alien Isolation work fine. I am only using ABS or AUR packages, standard kernel, and others have no problem. So could there be an nvidia library (or GL related) leftover, causing the issue? Is it possible to "clean" the system completely of proprietary driver files and reinstall them from scratch?

Offline

#7 2016-02-09 13:05:15

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: [SOLVED] XCOM 2 graphical bug

Zebulun, I'm running the game without issue, with video performance similar to that shown in the video by Xpander69. My GPU is the GTX 770 using the proprietary driver.

I presume you're launching from Steam. If you start steam via a terminal, do you get any error messages upon launching xcom2?


Smarter than a speeding bullet
My Goodreads profile

Offline

#8 2016-02-09 13:24:20

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Rumor wrote:

Zebulun, I'm running the game without issue, with video performance similar to that shown in the video by Xpander69. My GPU is the GTX 770 using the proprietary driver.

I presume you're launching from Steam. If you start steam via a terminal, do you get any error messages upon launching xcom2?

This is what I am trying to find out compared to people with working XCOM 2.
When I run

LIBGL_DEBUG=verbose .local/share/Steam/SteamApps/common/XCOM\ 2/XCOM2.sh

I get:

...
[0208/202928:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0208/202928:ERROR:gles2_cmd_decoder.cc(3200)] GLES2DecoderImpl: Context lost during MakeCurrent.
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:WARNING:x11_util.cc(1490)] X error received: serial 926, error_code 171 (GLXBadDrawable), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0208/202928:ERROR:gles2_cmd_decoder.cc(3200)] GLES2DecoderImpl: Context lost during MakeCurrent.
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:WARNING:x11_util.cc(1490)] X error received: serial 958, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0208/202928:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0208/202928:ERROR:gles2_cmd_decoder.cc(3200)] GLES2DecoderImpl: Context lost during MakeCurrent.
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:WARNING:x11_util.cc(1490)] X error received: serial 987, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0208/202928:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0208/202928:ERROR:gles2_cmd_decoder.cc(3200)] GLES2DecoderImpl: Context lost during MakeCurrent.
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0208/202928:WARNING:x11_util.cc(1490)] X error received: serial 1015, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0208/202928:ERROR:gl_bindings_autogen_gl.cc(6522)] Trying to call glDeleteVertexArraysOES() without current GL context
[0208/202928:WARNING:x11_util.cc(1490)] X error received: serial 1044, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)

however, I have not been able to ascertain it was linked to the menu and map rendering error. Could you please try and let me know if you get these errors too?

Offline

#9 2016-02-09 14:06:05

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,895
Website

Re: [SOLVED] XCOM 2 graphical bug

Could you post the output of

for term in nvidia mesa xorg; do
pacman -Qs $term
done
lspci -vnn | grep "VGA "

Also, what DE/WM are you using?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#10 2016-02-09 15:20:34

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

WorMzy wrote:

Could you post the output of

for term in nvidia mesa xorg; do
pacman -Qs $term
done
lspci -vnn | grep "VGA "

Also, what DE/WM are you using?

Will return home and do it. I use KDE Plasma 5, but tested it also under openbox and LXDE.

Offline

#11 2016-02-09 19:25:10

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

WorMzy wrote:

Could you post the output of

for term in nvidia mesa xorg; do
pacman -Qs $term
done
lspci -vnn | grep "VGA "

Also, what DE/WM are you using?

Please note that I am currently using nvidia-352 from AUR, but nvidia from precompiled packages leads to the same result.

local/lib32-nvidia-libgl-352 352.63-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-utils-352 352.63-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia-352 352.63-1
    OpenCL implemention for NVIDIA (32-bit)
local/nvidia-352 352.63-5
    NVIDIA drivers for linux
local/nvidia-libgl-352 352.63-1
    NVIDIA drivers libraries symlinks
local/nvidia-utils-352 352.63-1
    NVIDIA drivers utilities
local/opencl-nvidia-352 352.63-1
    OpenCL implemention for NVIDIA
local/glu 9.0.0-4
    Mesa OpenGL Utility library
local/lib32-glu 9.0.0-3
    Mesa OpenGL utility library (32 bits)
local/lib32-libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa (32-bit)
local/lib32-mesa 11.1.1-1
    an open-source implementation of the OpenGL specification (32-bit)
local/libtxc_dxtn 1.0.1-6
    S3 Texture Compression (S3TC) library for Mesa
local/mesa 11.1.1-1
    an open-source implementation of the OpenGL specification
local/mesa-demos 8.3.0-1
    Mesa demos and tools
local/xf86-input-evdev 2.10.1-3 (xorg-drivers xorg)
    X.org evdev input driver
local/xorg-bdftopcf 1.0.5-1 (xorg xorg-apps)
    Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.1-1 (xorg-fonts xorg)
    X.Org font utilities
local/xorg-font-utils 7.6-4
    Transitional package depending on xorg font utilities
local/xorg-fonts-alias 1.0.3-1
    X.org font alias files
local/xorg-fonts-encodings 1.0.4-4 (xorg-fonts xorg)
    X.org font encoding files
local/xorg-fonts-misc 1.0.3-4
    X.org misc fonts
local/xorg-iceauth 1.0.7-1 (xorg-apps xorg)
    ICE authority file utility
local/xorg-luit 1.1.1-2 (xorg xorg-apps)
    Filter that can be run between an arbitrary application and a UTF-8 terminal emulator
local/xorg-mkfontdir 1.0.7-2 (xorg xorg-apps)
    Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.2-1 (xorg-apps xorg)
    Create an index of scalable font files for X
local/xorg-server 1.18.0-4 (xorg)
    Xorg X server
local/xorg-server-common 1.18.0-4 (xorg)
    Xorg server common files
local/xorg-server-utils 7.6-4
    Transition package depending on xorg server utilities
local/xorg-sessreg 1.1.0-1 (xorg-apps xorg)
    Register X sessions in system utmp/utmpx databases
local/xorg-setxkbmap 1.3.1-1 (xorg-apps xorg)
    Set the keyboard using the X Keyboard Extension
local/xorg-twm 1.0.9-1
    Tab Window Manager for the X Window System
local/xorg-util-macros 1.19.0-1
    X.Org Autotools macros
local/xorg-utils 7.6-9
    Transition package depending on xorg utils
local/xorg-xauth 1.0.9-1 (xorg-apps xorg)
    X.Org authorization settings program
local/xorg-xbacklight 1.2.1-1 (xorg-apps xorg)
    RandR-based backlight control application
local/xorg-xclock 1.0.7-1
    X clock
local/xorg-xcmsdb 1.0.5-1 (xorg-apps xorg)
    Device Color Characterization utility for X Color Management System
local/xorg-xdpyinfo 1.3.2-1 (xorg-apps xorg)
    Display information utility for X
local/xorg-xdriinfo 1.0.5-1 (xorg-apps xorg)
    Query configuration information of DRI drivers
local/xorg-xev 1.2.2-1 (xorg-apps xorg)
    Print contents of X events
local/xorg-xgamma 1.0.6-1 (xorg-apps xorg)
    Alter a monitor's gamma correction
local/xorg-xhost 1.0.7-1 (xorg-apps xorg)
    Server access control program for X
local/xorg-xinit 1.3.4-3
    X.Org initialisation program
local/xorg-xinput 1.6.2-1 (xorg-apps xorg)
    Small commandline tool to configure devices
local/xorg-xkbcomp 1.3.1-1 (xorg-apps xorg)
    X Keyboard description compiler
local/xorg-xlsatoms 1.1.2-1 (xorg-apps xorg)
    List interned atoms defined on server
local/xorg-xlsclients 1.1.3-1 (xorg-apps xorg)
    List client applications running on a display
local/xorg-xmessage 1.0.4-2
    Display a message or query in a window
local/xorg-xmodmap 1.0.9-1 (xorg-apps xorg)
    Utility for modifying keymaps and button mappings
local/xorg-xprop 1.2.2-1 (xorg-apps xorg)
    Property displayer for X
local/xorg-xrandr 1.4.3-1 (xorg-apps xorg)
    Primitive command line interface to RandR extension
local/xorg-xrdb 1.1.0-2 (xorg-apps xorg)
    X server resource database utility
local/xorg-xrefresh 1.0.5-1 (xorg-apps xorg)
    Refresh all or part of an X screen
local/xorg-xset 1.2.3-1 (xorg-apps xorg)
    User preference utility for X
local/xorg-xsetroot 1.1.1-2 (xorg-apps xorg)
    Classic X utility to set your root window background to a given pattern or color
local/xorg-xvinfo 1.1.3-1 (xorg-apps xorg)
    Prints out the capabilities of any video adaptors associated with the display that are
    accessible through the X-Video extension
local/xorg-xwininfo 1.1.3-1 (xorg-apps xorg)
    Command-line utility to print information about windows on an X server
[eric@arch ~]$ lspci -vnn | grep "VGA "
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1) (prog-if 00 [VGA controller])

Offline

#12 2016-02-09 20:13:10

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,895
Website

Re: [SOLVED] XCOM 2 graphical bug

Okay, aside from the different nvidia version (I have 361.28), and a few extra xorg packages on your end, our setups are pretty similar (I even have the exact same nvidia card). The game runs fine in openbox for me (bar the same performance issues everyone is seeing, and the game throwing a wobbler if it loses focus), but I still get the same errors:

[0209/195823:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0209/195823:ERROR:gles2_cmd_decoder.cc(3200)]   GLES2DecoderImpl: Context lost during MakeCurrent.
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 847, error_code 171 (GLXBadDrawable), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0209/195823:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0209/195823:ERROR:gles2_cmd_decoder.cc(3200)]   GLES2DecoderImpl: Context lost during MakeCurrent.
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 879, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0209/195823:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0209/195823:ERROR:gles2_cmd_decoder.cc(3200)]   GLES2DecoderImpl: Context lost during MakeCurrent.
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 910, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0209/195823:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0209/195823:ERROR:gles2_cmd_decoder.cc(3200)]   GLES2DecoderImpl: Context lost during MakeCurrent.
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 939, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0209/195823:ERROR:gl_context_glx.cc(107)] Couldn't make context current with X drawable.
[0209/195823:ERROR:gles2_cmd_decoder.cc(3200)]   GLES2DecoderImpl: Context lost during MakeCurrent.
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6831)] Trying to call glGetGraphicsResetStatusARB() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 967, error_code 8 (BadMatch (invalid parameter attributes)), request_code 154, minor_code 26 (X_GLXMakeContextCurrent)
[0209/195823:ERROR:gl_bindings_autogen_gl.cc(6522)] Trying to call glDeleteVertexArraysOES() without current GL context
[0209/195823:WARNING:x11_util.cc(1490)] X error received: serial 996, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)

So those messages are likely a red herring.

I run the game in windowed mode, at 1680x1050, to counter the focus bug I mentioned, but the game still runs in full screen if I set it to do so.

Do you have a ~/.nvidia-settings-rc? If so, post it. Same again with any custom xorg.conf files.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#13 2016-02-09 21:41:36

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

WorMzy wrote:

Do you have a ~/.nvidia-settings-rc? If so, post it. Same again with any custom xorg.conf files.

./nvidia-settings-rc contains:

#
# /home/eric/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA X Server Settings utility
# Generated on Fri Feb  5 20:51:45 2016
#

# ConfigProperties:

RcFileLocale = C
ToolTips = Yes
DisplayStatusBar = Yes
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
ShowQuitDialog = Yes
UpdateRulesOnProfileNameChange = Yes
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
Timer = Thermal_Monitor_(GPU_0),Yes,1000
Timer = Memory_Used_(GPU_0),Yes,3000

# Attributes:

0/SyncToVBlank=0
0/LogAniso=0
0/FSAA=0
0/TextureSharpen=0
0/TextureClamping=1
0/FXAA=0
0/AllowFlipping=1
0/FSAAAppControlled=1
0/LogAnisoAppControlled=1
0/OpenGLImageSettings=1
0/FSAAAppEnhanced=0
0/XVideoSyncToDisplayID=DVI-I-0
[DPY:DVI-I-0]/Dithering=0
[DPY:DVI-I-0]/DitheringMode=0
[DPY:DVI-I-0]/DitheringDepth=0
[DPY:DVI-I-0]/SynchronousPaletteUpdates=0
[DPY:DVI-I-1]/Dithering=0
[DPY:DVI-I-1]/DitheringMode=0
[DPY:DVI-I-1]/DitheringDepth=0
[DPY:DVI-I-1]/ColorSpace=0
[DPY:DVI-I-1]/ColorRange=0
[DPY:DVI-I-1]/SynchronousPaletteUpdates=0
[DPY:HDMI-0]/Dithering=0
[DPY:HDMI-0]/DitheringMode=0
[DPY:HDMI-0]/DitheringDepth=0
[DPY:HDMI-0]/ColorSpace=0
[DPY:HDMI-0]/ColorRange=0
[DPY:HDMI-0]/SynchronousPaletteUpdates=0
[DPY:DP-0]/Dithering=0
[DPY:DP-0]/DitheringMode=0
[DPY:DP-0]/DitheringDepth=0
[DPY:DP-0]/ColorSpace=0
[DPY:DP-0]/ColorRange=0
[DPY:DP-0]/SynchronousPaletteUpdates=0
[DPY:DP-1]/RedBrightness=0.000000
[DPY:DP-1]/GreenBrightness=0.000000
[DPY:DP-1]/BlueBrightness=0.000000
[DPY:DP-1]/RedContrast=0.000000
[DPY:DP-1]/GreenContrast=0.000000
[DPY:DP-1]/BlueContrast=0.000000
[DPY:DP-1]/RedGamma=1.000000
[DPY:DP-1]/GreenGamma=1.000000
[DPY:DP-1]/BlueGamma=1.000000
[DPY:DP-1]/Dithering=0
[DPY:DP-1]/DitheringMode=0
[DPY:DP-1]/DitheringDepth=0
[DPY:DP-1]/DigitalVibrance=0
[DPY:DP-1]/ColorSpace=0
[DPY:DP-1]/ColorRange=0
[DPY:DP-1]/SynchronousPaletteUpdates=0
[DPY:DVI-D-0]/Dithering=0
[DPY:DVI-D-0]/DitheringMode=0
[DPY:DVI-D-0]/DitheringDepth=0
[DPY:DVI-D-0]/ColorSpace=0
[DPY:DVI-D-0]/ColorRange=0
[DPY:DVI-D-0]/SynchronousPaletteUpdates=0

and my /etc/X11/xorg.conf.d/20-nvidia.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 361.18  (buildmeister@swio-display-x64-rhel04-13)  Sat Jan  9 21:51:07 PST 2016

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       26.0 - 81.0
    VertRefresh     24.0 - 75.0
    Option         "DPMS"
    Option         "UseEdidDpi" "False"
    Option         "DPI" "96 x 96"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 970"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "metamodes" "1920x1080 +0+0; 1280x720 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

I also have a /etc/X11/xorg.conf.d/nvidia-drm-outputclass.conf

 This xorg.conf.d configuration snippet configures the X server to
# automatically load the nvidia driver when it detects a device driven by the
# nvidia.ko kernel module.  Please note that this only works on Linux kernels
# version 3.9 or higher with CONFIG_DRM enabled, and only if the nvidia.ko
# kernel module is loaded before the X server is started.

Section "OutputClass"
    Identifier     "nvidia"
    MatchDriver    "nvidia-drm"
    Driver         "nvidia"
EndSection

Many thanks for your help.

PS: I just switched back to the packaged nvidia, but this did not fix it:

local/lib32-nvidia-libgl 361.28-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-utils 361.28-1
    NVIDIA drivers utilities (32-bit)
local/nvidia 361.28-1
    NVIDIA drivers for linux
local/nvidia-libgl 361.28-1
    NVIDIA drivers libraries symlinks
local/nvidia-utils 361.28-1
    NVIDIA drivers utilities
local/glu 9.0.0-4
    Mesa OpenGL Utility library
local/lib32-glu 9.0.0-3
    Mesa OpenGL utility library (32 bits)
local/lib32-libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa (32-bit)
local/lib32-mesa 11.1.1-1
    an open-source implementation of the OpenGL specification (32-bit)
local/libtxc_dxtn 1.0.1-6
    S3 Texture Compression (S3TC) library for Mesa
local/mesa 11.1.1-1
    an open-source implementation of the OpenGL specification
local/mesa-demos 8.3.0-1
    Mesa demos and tools
local/xf86-input-evdev 2.10.1-3 (xorg-drivers xorg)
    X.org evdev input driver
local/xorg-bdftopcf 1.0.5-1 (xorg xorg-apps)
    Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.1-1 (xorg-fonts xorg)
    X.Org font utilities
local/xorg-font-utils 7.6-4
    Transitional package depending on xorg font utilities
local/xorg-fonts-alias 1.0.3-1
    X.org font alias files
local/xorg-fonts-encodings 1.0.4-4 (xorg-fonts xorg)
    X.org font encoding files
local/xorg-fonts-misc 1.0.3-4
    X.org misc fonts
local/xorg-iceauth 1.0.7-1 (xorg-apps xorg)
    ICE authority file utility
local/xorg-luit 1.1.1-2 (xorg xorg-apps)
    Filter that can be run between an arbitrary application and a UTF-8 terminal emulator
local/xorg-mkfontdir 1.0.7-2 (xorg xorg-apps)
    Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.2-1 (xorg-apps xorg)
    Create an index of scalable font files for X
local/xorg-server 1.18.0-4 (xorg)
    Xorg X server
local/xorg-server-common 1.18.0-4 (xorg)
    Xorg server common files
local/xorg-server-utils 7.6-4
    Transition package depending on xorg server utilities
local/xorg-sessreg 1.1.0-1 (xorg-apps xorg)
    Register X sessions in system utmp/utmpx databases
local/xorg-setxkbmap 1.3.1-1 (xorg-apps xorg)
    Set the keyboard using the X Keyboard Extension
local/xorg-twm 1.0.9-1
    Tab Window Manager for the X Window System
local/xorg-util-macros 1.19.0-1
    X.Org Autotools macros
local/xorg-utils 7.6-9
    Transition package depending on xorg utils
local/xorg-xauth 1.0.9-1 (xorg-apps xorg)
    X.Org authorization settings program
local/xorg-xbacklight 1.2.1-1 (xorg-apps xorg)
    RandR-based backlight control application
local/xorg-xclock 1.0.7-1
    X clock
local/xorg-xcmsdb 1.0.5-1 (xorg-apps xorg)
    Device Color Characterization utility for X Color Management System
local/xorg-xdpyinfo 1.3.2-1 (xorg-apps xorg)
    Display information utility for X
local/xorg-xdriinfo 1.0.5-1 (xorg-apps xorg)
    Query configuration information of DRI drivers
local/xorg-xev 1.2.2-1 (xorg-apps xorg)
    Print contents of X events
local/xorg-xgamma 1.0.6-1 (xorg-apps xorg)
    Alter a monitor's gamma correction
local/xorg-xhost 1.0.7-1 (xorg-apps xorg)
    Server access control program for X
local/xorg-xinit 1.3.4-3
    X.Org initialisation program
local/xorg-xinput 1.6.2-1 (xorg-apps xorg)
    Small commandline tool to configure devices
local/xorg-xkbcomp 1.3.1-1 (xorg-apps xorg)
    X Keyboard description compiler
local/xorg-xlsatoms 1.1.2-1 (xorg-apps xorg)
    List interned atoms defined on server
local/xorg-xlsclients 1.1.3-1 (xorg-apps xorg)
    List client applications running on a display
local/xorg-xmessage 1.0.4-2
    Display a message or query in a window
local/xorg-xmodmap 1.0.9-1 (xorg-apps xorg)
    Utility for modifying keymaps and button mappings
local/xorg-xprop 1.2.2-1 (xorg-apps xorg)
    Property displayer for X
local/xorg-xrandr 1.4.3-1 (xorg-apps xorg)
    Primitive command line interface to RandR extension
local/xorg-xrdb 1.1.0-2 (xorg-apps xorg)
    X server resource database utility
local/xorg-xrefresh 1.0.5-1 (xorg-apps xorg)
    Refresh all or part of an X screen
local/xorg-xset 1.2.3-1 (xorg-apps xorg)
    User preference utility for X
local/xorg-xsetroot 1.1.1-2 (xorg-apps xorg)
    Classic X utility to set your root window background to a given pattern or color
local/xorg-xvinfo 1.1.3-1 (xorg-apps xorg)
    Prints out the capabilities of any video adaptors associated with the display that are
    accessible through the X-Video extension
local/xorg-xwininfo 1.1.3-1 (xorg-apps xorg)
    Command-line utility to print information about windows on an X server

Last edited by zebulon (2016-02-09 21:43:45)

Offline

#14 2016-02-09 21:47:35

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

WorMzy, what are your nvidia/mesa/xorg packages, and which ones have I got which you do not have?
Or could it be differences with the nvidia settings?

Offline

#15 2016-02-09 23:26:50

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,895
Website

Re: [SOLVED] XCOM 2 graphical bug

Nothing really jumped out at me on the package front, but here's mine for comparison:

local/lib32-nvidia-libgl 361.28-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-utils 361.28-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 361.28-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.1.1-2
    Nvidia VDPAU library
local/nvidia 361.28-1
    NVIDIA drivers for linux
local/nvidia-cg-toolkit 3.1-3
    NVIDIA Cg libraries
local/nvidia-libgl 361.28-1
    NVIDIA drivers libraries symlinks
local/nvidia-utils 361.28-1
    NVIDIA drivers utilities
local/opencl-nvidia 361.28-1
    OpenCL implemention for NVIDIA
local/glu 9.0.0-4
    Mesa OpenGL Utility library
local/lib32-glu 9.0.0-3
    Mesa OpenGL utility library (32 bits)
local/lib32-libtxc_dxtn 1.0.1-5
    S3 Texture Compression (S3TC) library for Mesa (32-bit)
local/lib32-mesa 11.1.1-1
    an open-source implementation of the OpenGL specification (32-bit)
local/libtxc_dxtn 1.0.1-6
    S3 Texture Compression (S3TC) library for Mesa
local/mesa 11.1.1-1
    an open-source implementation of the OpenGL specification
local/mesa-demos 8.3.0-1
    Mesa demos and tools
local/xf86-input-evdev 2.10.1-3 (xorg-drivers xorg)
    X.org evdev input driver
local/xorg-bdftopcf 1.0.5-1 (xorg xorg-apps)
    Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.1-1 (xorg-fonts xorg)
    X.Org font utilities
local/xorg-font-utils 7.6-4
    Transitional package depending on xorg font utilities
local/xorg-fonts-alias 1.0.3-1
    X.org font alias files
local/xorg-fonts-encodings 1.0.4-4 (xorg-fonts xorg)
    X.org font encoding files
local/xorg-fonts-misc 1.0.3-4
    X.org misc fonts
local/xorg-luit 1.1.1-2 (xorg xorg-apps)
    Filter that can be run between an arbitrary application and a UTF-8 terminal emulator
local/xorg-mkfontdir 1.0.7-2 (xorg xorg-apps)
    Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.2-1 (xorg-apps xorg)
    Create an index of scalable font files for X
local/xorg-server 1.18.0-4 (xorg)
    Xorg X server
local/xorg-server-common 1.18.0-4 (xorg)
    Xorg server common files
local/xorg-sessreg 1.1.0-1 (xorg-apps xorg)
    Register X sessions in system utmp/utmpx databases
local/xorg-setxkbmap 1.3.1-1 (xorg-apps xorg)
    Set the keyboard using the X Keyboard Extension
local/xorg-xauth 1.0.9-1 (xorg-apps xorg)
    X.Org authorization settings program
local/xorg-xev 1.2.2-1 (xorg-apps xorg)
    Print contents of X events
local/xorg-xgamma 1.0.6-1 (xorg-apps xorg)
    Alter a monitor's gamma correction
local/xorg-xhost 1.0.7-1 (xorg-apps xorg)
    Server access control program for X
local/xorg-xinit 1.3.4-3
    X.Org initialisation program
local/xorg-xkbcomp 1.3.1-1 (xorg-apps xorg)
    X Keyboard description compiler
local/xorg-xlsfonts 1.0.5-1
    List available X fonts
local/xorg-xmessage 1.0.4-2
    Display a message or query in a window
local/xorg-xprop 1.2.2-1 (xorg-apps xorg)
    Property displayer for X
local/xorg-xrandr 1.4.3-1 (xorg-apps xorg)
    Primitive command line interface to RandR extension
local/xorg-xrdb 1.1.0-2 (xorg-apps xorg)
    X server resource database utility
local/xorg-xset 1.2.3-1 (xorg-apps xorg)
    User preference utility for X
local/xorg-xvinfo 1.1.3-1 (xorg-apps xorg)
    Prints out the capabilities of any video adaptors associated with the display that are accessible through the X-Video extension
local/xorg-xwininfo 1.1.3-1 (xorg-apps xorg)
    Command-line utility to print information about windows on an X server

The only notable differences in our .nvidia-settings-rc files is that I have

0/SyncToVBlank=1
0/OpenGLImageSettings=0

And you have an extra entry (XVideoSyncToDisplayID).

I don't have the nvidia-drm file (I'm also not sure what purpose it serves), and I don't have the Modules section in my 20-nvidia.conf. I also don't have the dpi options in my monitor section. The Modules section in 20-nvidia.conf and the nvidia-drm file seem the most suspect to me, but try the nvidia-settings changes first.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#16 2016-02-10 07:23:22

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Thanks a lot WorMzy for all your suggestions. Unfortunately, I did not find a fix, even after readjusting nvidia-settings-rc. I also tried removing nvidia-drm file (this one belongs to nvidia-utils by the way, I am surprised you do not have it) and commenting out the 20-nvidia.conf lines you spotted. The DPI options allows my Samsung screen to override incorrect DPI, but even without them it did not work.

Last resort: I will create a new partition and do a fresh Arch install, to see if that helps.

Offline

#17 2016-02-10 13:44:47

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

So as discussed, I have used a blank hard drive to do a full reinstall of Archlinux 64, nvidia drivers 361.28, xorg 1.18, pulseaudio and LXDE desktop. Then installed Steam and imported XCOM2. Guess what? It works fine!

Please note the GL context errors seems to be still there, so they are not related to the bug.

Now it would be great to find out the key difference between the working and non-working systems, this would be so informative. Of course, the cause of the issue could be numerous, since my "non-working" system, which I have used for years, is quite different from the newly installed one. IS it a specific package? Or an update that messes up some links? Could it be related to installed fonts? They look a bit different in Steam on the new install. Or the Desktop manager?

Offline

#18 2016-02-10 13:54:32

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,895
Website

Re: [SOLVED] XCOM 2 graphical bug

Try a new account on the affected installation. If the new account is fine, then it's probably a errant configuration file in your user account. If the new user has the same issue, then it's a system-wide configuration problem, or a bad package.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#19 2016-02-10 13:58:59

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Clever, will try this, thanks.

Offline

#20 2016-02-10 14:06:08

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: [SOLVED] XCOM 2 graphical bug

I just got back to this. I am glad to see you got it working! I'll be interested to see if you can ferret out the hiccup following WorMzy's advice.


Smarter than a speeding bullet
My Goodreads profile

Offline

#21 2016-02-10 15:17:56

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

WorMzy, you are a genius! It works for a new user! I am quite puzzled, because I had removed Steam entirely on my non-working user account and it dod not solve the issue. So that means the problem is with another file. It is also a relief, because diagnosing it should be a lot simpler. I will let other users having the same issue know, and see if they see the same thing, and if they can help figure out the cause.

Offline

#22 2016-02-10 16:59:02

ThomasBrix
Member
Registered: 2015-11-22
Posts: 2

Re: [SOLVED] XCOM 2 graphical bug

It is caused by setting the environment variable LC_ALL.

Remove it from the terminal you launch Steam from and the game works fine.

unset LC_ALL

Last edited by ThomasBrix (2016-02-10 17:00:25)

Offline

#23 2016-02-10 17:20:52

zebulon
Member
Registered: 2008-10-20
Posts: 358

Re: [SOLVED] XCOM 2 graphical bug

Hi Thomas, this is great. How come does that interfere with 3D rendering?

EDIT: probably UE3 is messed up when decimal points become a comma in some languages.

Last edited by zebulon (2016-02-13 18:51:14)

Offline

Board footer

Powered by FluxBB