You are not logged in.

#1 2023-01-25 15:42:46

pinjuf
Member
Registered: 2023-01-25
Posts: 1

Running any wine application results in an unhandled pagefault

Hello!

I've recently stumbled upon a problem on my laptop, running any wine application results in the following error message:

wine: Unhandled page fault on execute access to 00007F106FB4C860 at address 00007F106FB4C860 (thread 0090), starting debugger...

Funnily enough, if I delete ~/.wine, winecfg etc. (but only the programs that come with wine) runs fine for some time, but restarting it later results in the page fault.
My laptop does have optimus, but running wine both with the integrated graphics and the NVIDIA GPU seems to result in the same behaviour. I have already tried reinstalling wine and its dependencies.

I did notice some strong similarities to problems by others, but didn't get very far:
https://bbs.archlinux.org/viewtopic.php?id=272856
https://forum.winehq.org/viewtopic.php?t=36177

Still, those reports make me think it still might have to do sth with the graphics...

Sys-specs:
     - HP ZBook 15v G5 8GB i5-8300h
     - Coffeelake-H GT2 (UHD Graphics 630)
     - NVIDIA Quadro P600 Mobile
     - Linux 6.1.7-zen1-1-zen
     - i3wm

Has anybody else experienced sth similar?
I'm thankful for any help I can get...

Offline

#2 2023-02-04 11:05:50

definitellynotspammer
Member
Registered: 2016-06-07
Posts: 53

Re: Running any wine application results in an unhandled pagefault

Same. Can't launch any wine software. WinBox sometimes launches, but it is not scaling properly (e.g. maxing out window results in empty ghost area around non-initial window area). Something is broken with Wine...

Offline

#3 2023-02-04 11:12:22

definitellynotspammer
Member
Registered: 2016-06-07
Posts: 53

Re: Running any wine application results in an unhandled pagefault

I have MSI GS66 laptop with physical mux switch. Just rebooted into discrete graphics mode (where intel iGPU isn't even visible to the OS) and everything works great again.

Offline

#4 2023-02-14 18:06:11

lukaslsm
Member
Registered: 2020-09-23
Posts: 5

Re: Running any wine application results in an unhandled pagefault

I was having the same issue, running Wine on a Dell Precision 5570 nVidia A1000 and Intel i7-12700H. My problem was a missing xorg config file in /etc/X11/xorg.conf.d with the following content:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

The file was missing due to a system upgrade where I swapped the hard drive of my old computer into the new computer without checking the config afterwards. The Bus ID in this config needs to be replaced with your appropriate bus id which you may query by typing

lspci | grep NVIDIA

Without this file, running anything in Wine resulted in an "unhandled page fault" - no matter whether I ran it through PRIME or not.

EDIT: You actually need to create a config file for the Intel GPU and the nVidia GPU and make sure the Intel config is loaded before the nVidia config, see my post below

Last edited by lukaslsm (2023-02-15 18:17:36)

Offline

#5 2023-02-15 11:37:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: Running any wine application results in an unhandled pagefault

Using such a file equals forcing X to ignore all videocards except the nvidia one.

This has consequences for power usage (fast battery drain on laptops) and can lead to problems with applications that access hw directly.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2023-02-15 18:16:36

lukaslsm
Member
Registered: 2020-09-23
Posts: 5

Re: Running any wine application results in an unhandled pagefault

Hi Lone_Wolf,
thanks for pointing that out! You're right, using the config file from above alone would force X to run on the nVidia card. From my Xorg.0.log, it seems, though (if I am not mistaken) that X is actually running on the Intel card, since I have more config files in my Xorg.conf.d and the intel config (20-intel.conf) is placed before the nVidia config (30-nvidia.conf):

➜ cat /var/log/Xorg.0.log | head -n 100

[    11.839] 
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[    11.839] Current Operating System: Linux ####### 6.1.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000 x86_64
[    11.839] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img cryptdevice=UUID=#####a:#####:allow-discards root=/dev/mapper/##### rootflags=subvol=active/root ro udev.event-timeout=10 ibt=off
[    11.839]  
[    11.839] Current version of pixman: 0.42.2
[    11.839]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    11.839] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.839] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb 15 18:32:50 2023
[    11.839] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    11.839] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.839] (==) No Layout section.  Using the first Screen section.
[    11.839] (==) No screen section available. Using defaults.
[    11.839] (**) |-->Screen "Default Screen Section" (0)
[    11.839] (**) |   |-->Monitor "<default monitor>"
[    11.839] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[    11.839] (**) |   |-->Device "Intel Graphics"
[    11.839] (**) |   |-->GPUDevice "Device0"
[    11.839] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    11.839] (==) Automatically adding devices
[    11.839] (==) Automatically enabling devices
[    11.839] (==) Automatically adding GPU devices
[    11.839] (==) Automatically binding GPU devices
[    11.839] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.839] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    11.839]    Entry deleted from font path.
[    11.839] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    11.839]    Entry deleted from font path.
[    11.839] (==) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi
[    11.839] (==) ModulePath set to "/usr/lib/xorg/modules"
[    11.839] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.839] (II) Module ABI versions:
[    11.839]    X.Org ANSI C Emulation: 0.4
[    11.839]    X.Org Video Driver: 25.2
[    11.839]    X.Org XInput driver : 24.4
[    11.839]    X.Org Server Extension : 10.0
[    11.839] (++) using VT number 7

[    11.840] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    11.840] (II) xfree86: Adding drm device (/dev/dri/card1)
[    11.840] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    11.840] (II) xfree86: Adding drm device (/dev/dri/card0)
[    11.840] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    11.903] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[    11.983] (--) PCI:*(0@0:2:0) 8086:46a6:1028:0b1a rev 12, Mem @ 0x6186000000/16777216, 0x4000000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[    11.983] (--) PCI: (1@0:0:0) 10de:25b9:1028:0b1a rev 161, Mem @ 0xbb000000/16777216, 0x6000000000/4294967296, 0x6100000000/33554432, I/O @ 0x00003000/128
[    11.983] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    11.983] (II) LoadModule: "glx"
[    11.984] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    11.984] (II) Module glx: vendor="X.Org Foundation"
[    11.984]    compiled for 1.21.1.7, module version = 1.0.0
[    11.984]    ABI class: X.Org Server Extension, version 10.0
[    11.984] (II) LoadModule: "modesetting"
[    11.984] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    11.984] (II) Module modesetting: vendor="X.Org Foundation"
[    11.984]    compiled for 1.21.1.7, module version = 1.21.1
[    11.984]    Module class: X.Org Video Driver
[    11.984]    ABI class: X.Org Video Driver, version 25.2
[    11.984] (II) LoadModule: "nvidia"
[    11.984] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    11.985] (II) Module nvidia: vendor="NVIDIA Corporation"
[    11.985]    compiled for 1.6.99.901, module version = 1.0.0
[    11.985]    Module class: X.Org Video Driver
[    11.985] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    11.985] (II) NVIDIA dlloader X Driver  525.89.02  Wed Feb  1 23:14:37 UTC 2023
[    11.985] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    11.985] (II) modeset(0): using drv /dev/dri/card0
[    11.986] (II) Loading sub module "fb"
[    11.986] (II) LoadModule: "fb"
[    11.986] (II) Module "fb" already built-in
[    11.986] (II) Loading sub module "wfb"
[    11.986] (II) LoadModule: "wfb"
[    11.986] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    11.986] (II) Module wfb: vendor="X.Org Foundation"
[    11.986]    compiled for 1.21.1.7, module version = 1.0.0
[    11.986]    ABI class: X.Org ANSI C Emulation, version 0.4
[    11.986] (II) Loading sub module "ramdac"
[    11.986] (II) LoadModule: "ramdac"
[    11.986] (II) Module "ramdac" already built-in
[    11.987] (II) modeset(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[    11.987] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    11.987] (==) modeset(0): RGB weight 888
[    11.987] (==) modeset(0): Default visual is TrueColor
[    11.987] (II) Loading sub module "glamoregl"
[    11.987] (II) LoadModule: "glamoregl"
[    11.987] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    11.992] (II) Module glamoregl: vendor="X.Org Foundation"
[    11.992]    compiled for 1.21.1.7, module version = 1.0.1

Here are my relevant config files:

➜ cat /etc/X11/xorg.conf.d/20-intel.conf

Section "Device"
    Identifier "Intel Graphics"
    Driver "modesetting"
    Option "Backlight" "intel_backlight"
EndSection
➜ cat /etc/X11/xorg.conf.d/30-nvidia.conf 

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:1:0:0"
EndSection

Offline

#7 2023-02-16 01:21:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: Running any wine application results in an unhandled pagefault

Which makes sense since you now have at least assigned one device to the correct BusId. Logically speaking you should do the same for intel, however, both of these should not add anything new in regards to detection/resolution. Where do you have the Backlight parameter from? It doesn't exist for modesetting.

Last edited by V1del (2023-02-16 02:06:54)

Offline

Board footer

Powered by FluxBB