Strange frame glitch on gta v(epic games lutris)

Hello everyone
I have a really strange problem here
First of all, this is my specs:

System:    Kernel: 5.7.9-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.19.3 
           tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec1xxx v: N/A serial: <root required> 
           Chassis: type: 10 serial: <root required> 
           Mobo: HP model: 87B1 v: 31.17 serial: <root required> UEFI: AMI v: F.02 date: 05/14/2020 
Battery:   ID-1: BAT0 charge: 27.7 Wh condition: 51.4/51.4 Wh (100%) volts: 11.4/11.6 
           model: Hewlett-Packard Primary type: Li-ion serial:   status: Discharging cycles: 462 
CPU:       Topology: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1 
           L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 71895 
           Speed: 1397 MHz min/max: 1400/3000 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1397 3: 1397 
           4: 1397 5: 1397 6: 1397 7: 1397 8: 1396 9: 1397 10: 1396 11: 1397 12: 1397 
Graphics:  Device-1: NVIDIA vendor: Hewlett-Packard driver: nvidia v: 440.100 bus ID: 01:00.0 chip ID: 10de:1f99 
           Device-2: Advanced Micro Devices [AMD/ATI] Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel 
           bus ID: 05:00.0 chip ID: 1002:1636 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu,nvidia FAILED: ati unloaded: modesetting,nouveau 
           alternate: fbdev,nv,vesa compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RENOIR (DRM 3.37.0 5.7.9-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.1.3 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor 
           vendor: Hewlett-Packard driver: N/A bus ID: 05:00.5 chip ID: 1022:15e2 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Hewlett-Packard 
           driver: snd_hda_intel v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.7.9-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 
           v: kernel port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: eno1 state: down mac: b0:5c:da:42:34:3f 
           Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard 
           driver: rtw_pci v: N/A port: d000 bus ID: 03:00.0 chip ID: 10ec:c822 
           IF: wlo1 state: up mac: 70:66:55:bb:04:b7 
Drives:    Local Storage: total: 476.94 GiB used: 116.00 GiB (24.3%) 
           ID-1: /dev/nvme0n1 model: KBG40ZNV512G KIOXIA size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           serial: 306PEEC9PBV1 rev: HP00AE00 scheme: GPT 
Partition: ID-1: / size: 459.50 GiB used: 116.00 GiB (25.2%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 44.5 C mobo: N/A gpu: amdgpu temp: 44 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 285 Uptime: 5m Memory: 7.21 GiB used: 1.79 GiB (24.9%) Init: systemd v: 245 Compilers: 
           gcc: 10.1.0 Shell: bash v: 5.0.18 running in: konsole inxi: 3.0.37

I had to install graphic card driver, so thanks to THIS LINK I could install the drivers
Then I run the lutris with this command prime-run lutris to run it with my nvidia gpu
I installed epic games through lutris with no error
But now when I start the game, it's laggy and I can see strange black frames come and go
But the problem got weirder when I tried to record my screen so that you can see the problem too.
When the recording ended, everything WAS OK in the video
How is that even possible?!
I see strange frames but everything is ok in the recording
So I guess something is wrong with my compositor or acpi
By the way, the output of sudo dmesg -l err,crit,warn:

[    0.298778] TSC synchronization [CPU#0 -> CPU#6]:
[    0.298779] Measured 4560 cycles TSC warp between CPUs, turning off TSC clock.
[    0.299851]   #7  #8  #9 #10 #11
[    0.323066] ACPI BIOS Error (bug): Failure creating named object [\SMIB], AE_ALREADY_EXISTS (20200326/dsfield-634)
[    0.323070] ACPI Warning: NsLookup: Type mismatch on SMIB (Integer), searching for (RegionField) (20200326/nsaccess-697)
[    0.324345] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1.WLAN], AE_NOT_FOUND (20200326/dswload2-162)
[    0.324348] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20200326/psobject-220)
[    1.191451] Expanded resource Reserved due to conflict with PCI Bus 0000:00
[    1.355131] pci 0000:00:00.2: can't derive routing for PCI INT A
[    1.355132] pci 0000:00:00.2: PCI INT A: not connected
[    1.358699]  PPR X2APIC NX GT IA GA PC GA_vAPIC
[    1.368516] efifb: Ignoring BGRT: unexpected or invalid BMP data
[    1.376217] ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.P000 (20200326/dspkginit-438)
[    1.376230] ACPI: Invalid passive threshold
[    1.698991] Unstable clock detected, switching default tracing clock to "global"
               If you want to keep using the local clock, then add:
                 "trace_clock=local"
               on the kernel command line
[    1.841767] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    1.860718] usb: port power management may be unreliable
[    2.440650] nvidia: loading out-of-tree module taints kernel.
[    2.440662] nvidia: module license 'NVIDIA' taints kernel.
[    2.440662] Disabling lock debugging due to kernel taint
[    2.514318] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  440.100  Fri May 29 08:45:51 UTC 2020
[    2.837517] snd_pci_acp3x 0000:05:00.5: Invalid ACP audio mode : 0
[    2.853065] sp5100-tco sp5100-tco: Watchdog hardware is disabled
[    2.865415] i2c_hid i2c-ELAN0718:00: supply vdd not found, using dummy regulator
[    2.865465] i2c_hid i2c-ELAN0718:00: supply vddl not found, using dummy regulator
[    2.928556] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    3.324355] urandom_read: 5 callbacks suppressed
[    3.402218] ATPX version 1, functions 0x00000200
[    4.041532] sos fw version = 0x110043.
[    4.236979] SMU driver if version not matched
[    4.523911] uvcvideo 3-3:1.0: Entity type for entity Extension 4 was not initialized!
[    4.523917] uvcvideo 3-3:1.0: Entity type for entity Processing 2 was not initialized!
[    4.523919] uvcvideo 3-3:1.0: Entity type for entity Camera 1 was not initialized!
[    5.366827] kauditd_printk_skb: 52 callbacks suppressed
[    5.517790] [drm:mod_hdcp_add_display_to_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
[    5.517795] [drm] [Link 0] WARNING MOD_HDCP_STATUS_FAILURE IN STATE HDCP_UNINITIALIZED STAY COUNT 0
[    6.457134] ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20200326/nsarguments-59)
[   12.631185] kauditd_printk_skb: 13 callbacks suppressed
[   22.946785] kauditd_printk_skb: 19 callbacks suppressed
[   34.717279] kauditd_printk_skb: 3 callbacks suppressed

The output of journalctl -p 3 -xb:

-- Logs begin at Wed 2020-08-05 01:16:23 +0430, end at Thu 2020-08-06 22:25:53 +0430. --
Aug 06 22:13:37 MTN-Lap kernel: ACPI BIOS Error (bug): Failure creating named object [\SMIB], AE_ALREADY_EXISTS (20200326/dsfield-634)
Aug 06 22:13:37 MTN-Lap kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP1.WLAN], AE_NOT_FOUND (20200326/dswload2-162)
Aug 06 22:13:37 MTN-Lap kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20200326/psobject-220)
Aug 06 22:13:37 MTN-Lap kernel: ACPI Error: AE_NOT_FOUND, While resolving a named reference package element - \_PR_.P000 (20200326/dspkginit-438)
Aug 06 22:13:37 MTN-Lap kernel: snd_pci_acp3x 0000:05:00.5: Invalid ACP audio mode : 0
Aug 06 22:13:37 MTN-Lap kernel: sp5100-tco sp5100-tco: Watchdog hardware is disabled
Aug 06 22:13:39 MTN-Lap sddm[740]: Failed to read display number from pipe
Aug 06 22:13:39 MTN-Lap sddm[740]: Display server failed to start. Exiting
Aug 06 22:13:40 MTN-Lap systemd-coredump[823]: Process 740 (sddm) of user 0 dumped core.
                                               
                                               Stack trace of thread 740:
                                               #0  0x00007f98380cf355 raise (libc.so.6 + 0x3c355)
                                               #1  0x00007f98380b8853 abort (libc.so.6 + 0x25853)
                                               #2  0x00007f98384e49ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x919ac)
                                               #3  0x000055fa84586fff n/a (sddm + 0x28fff)
                                               #4  0x000055fa845cb4df _ZN4SDDM4Seat13createDisplayEi (sddm + 0x6d4df)
                                               #5  0x000055fa845cb6f1 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6d6f1)
                                               #6  0x000055fa845cd451 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6f451)
                                               #7  0x000055fa845ce2b3 n/a (sddm + 0x702b3)
                                               #8  0x00007f983873da26 n/a (libQt5Core.so.5 + 0x2eaa26)
                                               #9  0x000055fa845cc4f0 _ZN4SDDM10LogindSeat19canGraphicalChangedEb (sddm + 0x6e4f0)
                                               #10 0x000055fa845cc7ff n/a (sddm + 0x6e7ff)
                                               #11 0x00007f983873da26 n/a (libQt5Core.so.5 + 0x2eaa26)
                                               #12 0x00007f98390948e0 _ZN23QDBusPendingCallWatcher8finishedEPS_ (libQt5DBus.so.5 + 0x648e0)
                                               #13 0x00007f98387331d2 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e01d2)
                                               #14 0x00007f9838706790 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b3790)
                                               #15 0x00007f98387092a3 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2b62a3)
                                               #16 0x00007f983875fcf4 n/a (libQt5Core.so.5 + 0x30ccf4)
                                               #17 0x00007f983724743c g_main_context_dispatch (libglib-2.0.so.0 + 0x5243c)
                                               #18 0x00007f98372951d9 n/a (libglib-2.0.so.0 + 0xa01d9)
                                               #19 0x00007f9837246221 g_main_context_iteration (libglib-2.0.so.0 + 0x51221)
                                               #20 0x00007f983875f331 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c331)
                                               #21 0x00007f983870513c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b213c)
                                               #22 0x00007f983870d5c4 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2ba5c4)
                                               #23 0x000055fa8458a7e1 main (sddm + 0x2c7e1)
                                               #24 0x00007f98380ba002 __libc_start_main (libc.so.6 + 0x27002)
                                               #25 0x000055fa8458aaee _start (sddm + 0x2caee)
                                               
                                               Stack trace of thread 758:
                                               #0  0x00007f983818805f __poll (libc.so.6 + 0xf505f)
                                               #1  0x00007f9837295168 n/a (libglib-2.0.so.0 + 0xa0168)
                                               #2  0x00007f9837246221 g_main_context_iteration (libglib-2.0.so.0 + 0x51221)
                                               #3  0x00007f983875f331 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30c331)
                                               #4  0x00007f983870513c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b213c)
                                               #5  0x00007f9838520c32 _ZN7QThread4execEv (libQt5Core.so.5 + 0xcdc32)
                                               #6  0x00007f9839047098 n/a (libQt5DBus.so.5 + 0x17098)
                                               #7  0x00007f9838521e0f n/a (libQt5Core.so.5 + 0xcee0f)
                                               #8  0x00007f983807a422 start_thread (libpthread.so.0 + 0x9422)
                                               #9  0x00007f9838192bf3 __clone (libc.so.6 + 0xffbf3)
-- Subject: Process 740 (sddm) dumped core
-- Defined-By: systemd
-- Support: https://archived.forum.manjaro.org/c/technical-issues-and-assistance
-- Documentation: man:core(5)
-- 
-- Process 740 (sddm) crashed and dumped core.
-- 
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
Aug 06 22:13:40 MTN-Lap kernel: [drm:mod_hdcp_add_display_to_topology [amdgpu]] *ERROR* Failed to add display topology, DTM TA is not initialized.
Aug 06 22:13:50 MTN-Lap bluetoothd[831]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Aug 06 22:13:50 MTN-Lap bluetoothd[831]: RFCOMM server failed for :1.54/Profile/HSPHS/00001108-0000-1000-8000-00805F9B34FB: rfcomm_bind: Address already in use (98)

I'm not exactly sure whats the problem,but why don't try running lutris without the prime-run command and just toggle the nvidia prime offload? that way you run lutris with your iGPU but the game with your dGPU.
image

I don't think this resolve the problem but give it a shot.

Also,you may want to install GTA 5 with the lutris script and not with the epic launcher script

Just select the epic version,you need to install the epic game launcher again but it will specific patches for gta 5,you would do that for every game and not just install the store itself.

Yeah thanks for point that :slight_smile:
But the problem still exists
And also another issue is that now my fps is 62 but first time I ran the game was 110 to 120 fps
And thanks so much for your link, I'm giving it a shot
I hope that works :slight_smile:

The fps may be related because it compiling shaders in the background,this happens in every game,it will stuttering for some time but it will go away eventually the more you play,the gta 5 epic launcher script that you are installing right now has a parameter to let you know if the compiler is working in the background,that way you know if the slowdown is because of that.

Hey thanks so much!!
That's working and I'm now playing gta v at highest graphic with no issue
Thanks a lot man :slight_smile:

1 Like

Forum kindly sponsored by