You are not logged in.

#1 2021-08-10 18:39:43

Hubbleexplorer
Member
Registered: 2021-05-15
Posts: 89

[solved] Wine and nvidia drivers not working

My wine is not working properly with nvidia drivers.
Already deleted .wine several times and this is the output of

winecfg

:

wine: created the configuration directory '/home/hubble/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0048:err:winediag:nodrv_CreateWindow Unknown error (998).
0048:err:systray:initialize_systray Could not create tray window
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002

i have already tried nouveau drivers (mesa), nvidia-lts, nvidia drivers and nothing work.
I also tried using 

DISPLAY=:0 winecfg 

but didnt work (gives the same output as 

winecfg

)
Thank you in advance and Im sorry for my english.

Edit 1
I forgot to mention that is a laptop and i have gtx 1660 ti and intregated amd graphics and wine works with amd intregated graphics

Arch_Linux_Hubble ~ $: hwinfo --short
cpu:                                                            
                       AMD Ryzen 9 4900H with Radeon Graphics, 3600 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3839 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3855 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 2996 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3688 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3629 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3566 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3720 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 4125 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3909 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3611 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3800 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3695 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3611 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3804 MHz
                       AMD Ryzen 9 4900H with Radeon Graphics, 3787 MHz
keyboard:
  /dev/input/event4    AT Translated Set 2 keyboard
mouse:
  /dev/input/mice      ELAN1203:00 04F3:307A Mouse
  /dev/input/mice      ELAN1203:00 04F3:307A Touchpad
monitor:
                       LM156LF-2F03 LCD Monitor
graphics card:
                       nVidia TU116M [GeForce GTX 1660 Ti Mobile]
                       ATI Renoir
sound:
                       ATI Audio device
                       AMD Family 17h (Models 10h-1fh) HD Audio Controller
                       nVidia TU116 High Definition Audio Controller
storage:
                       Floppy disk controller
                       AMD FCH SATA Controller [AHCI mode]
                       Sandisk WD Blue SN550 NVMe SSD
                       AMD FCH SATA Controller [AHCI mode]
network:
  wlan0                Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
  enp2s0               Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
network interface:
  wlan0                WLAN network interface
  lo                   Loopback network interface
  enp2s0               Ethernet network interface
disk:
  /dev/nvme0n1         Sandisk WD Blue SN550 NVMe SSD
  /dev/sda             Samsung SSD 860
partition:
  /dev/nvme0n1p1       Partition
  /dev/nvme0n1p2       Partition
  /dev/nvme0n1p3       Partition
  /dev/nvme0n1p4       Partition
  /dev/nvme0n1p5       Partition
  /dev/nvme0n1p6       Partition
  /dev/nvme0n1p7       Partition
  /dev/nvme0n1p8       Partition
  /dev/sda1            Partition
  /dev/sda2            Partition
usb controller:
                       AMD Renoir USB 3.1
                       nVidia TU116 USB 3.1 Host Controller
                       AMD Renoir USB 3.1
bios:
                       BIOS
bridge:
                       AMD Renoir PCIe Dummy Host Bridge
                       AMD Renoir Device 24: Function 3
                       AMD Renoir Device 24: Function 1
                       AMD Renoir PCIe Dummy Host Bridge
                       AMD FCH LPC Bridge
                       AMD Renoir PCIe GPP Bridge
                       AMD Renoir Device 24: Function 6
                       AMD Renoir Root Complex
                       AMD Renoir Internal PCIe GPP Bridge to Bus
                       AMD Renoir Device 24: Function 4
                       AMD Renoir Device 24: Function 2
                       AMD Renoir PCIe GPP Bridge
                       AMD Renoir PCIe GPP Bridge
                       AMD Renoir Device 24: Function 0
                       AMD Renoir PCIe GPP Bridge
                       AMD Renoir PCIe Dummy Host Bridge
                       AMD Renoir Device 24: Function 7
                       AMD Renoir Internal PCIe GPP Bridge to Bus
                       AMD Renoir Device 24: Function 5
hub:
                       Linux Foundation 3.0 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
memory:
                       Main Memory
bluetooth:
                       Lite-On Bluetooth Radio
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       AMD Renoir IOMMU
                       AMD Family 17h (Models 10h-1fh) Platform Security Processor
                       nVidia TU116 USB Type-C UCSI Controller
                       AMD FCH SMBus Controller
                       AMD Raven/Raven2/FireFlight/Renoir Audio Processor
  /dev/input/event16   IMC Networks USB2.0 HD UVC WebCam

Edit 2
This happends if i execute the command again

002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
wine: could not load kernel32.dll, status c0000135

Edit 3

Finally solve the problem after install nvidia-dkms and changing mkinitcpio 

 nano /etc/mkinitcpio.conf 
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=(amdgpu nvidia nvidia_modeset nvidia_uvm nvidia_drm)

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

Note
If you ever run in to this problem do not run wine with root it wont solve anything just make things worse

Last edited by Hubbleexplorer (2021-08-12 15:18:44)

Offline

#2 2021-08-10 18:56:33

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

Re: [solved] Wine and nvidia drivers not working

Is lib32-nvidia-utils installed? What's your

glxinfo32 -B #Needs lib32-mesa-demos

That said there are some similar threads around and it's not entirely clear what the issue is. You might want to try and install wine-mono and wine-gecko.

Offline

#3 2021-08-10 19:13:10

Hubbleexplorer
Member
Registered: 2021-05-15
Posts: 89

Re: [solved] Wine and nvidia drivers not working

V1del wrote:

Is lib32-nvidia-utils installed?

Yes it is install

V1del wrote:

What's your

glxinfo32 -B #Needs lib32-mesa-demos 

Here it is

Arch_Linux_Hubble ~ $: glxinfo32 -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD RENOIR (DRM 3.40.0, 5.10.56-1-lts, LLVM 12.0.1) (0x1636)
    Version: 21.1.6
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 101 MB, largest block: 101 MB
    VBO free aux. memory - total: 2909 MB, largest block: 2909 MB
    Texture free memory - total: 101 MB, largest block: 101 MB
    Texture free aux. memory - total: 2909 MB, largest block: 2909 MB
    Renderbuffer free memory - total: 101 MB, largest block: 101 MB
    Renderbuffer free aux. memory - total: 2909 MB, largest block: 2909 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 3584 MB
    Currently available dedicated video memory: 101 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (DRM 3.40.0, 5.10.56-1-lts, LLVM 12.0.1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.1.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

You might want to try and install wine-mono and wine-gecko.

Already did still not working

Offline

#4 2021-09-02 12:25:18

Zeben
Member
Registered: 2015-08-26
Posts: 6

Re: [solved] Wine and nvidia drivers not working

Same problem here. Dell Vostro 5459 (iGPU 520, dGPU GeForce 930M), can not run 3D applications with discrete graphics through wine anymore. The main problem appears when I try to use primus_vk - with `pvkrun` I can't even open anything related with Wine's GUI. BTW, I use wine with dxvk.

% pvkrun winefile 
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

007c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
007c:err:winediag:nodrv_CreateWindow Unknown error (998).
007c:err:systray:initialize_systray Could not create tray window

When I try using `bumblebee` with `optirun` - I get slightly different behaviour, but still unable to use 3D applications - they crash always but when I try to use the same application with iGPU - everything works fine, but with worse 3D performance, for sure.

wine: Unhandled page fault on read access to 00000000 at address F71C16BC (thread 0108), starting debugger...

Can someone try to replicate this issue with fresh Arch packages?

`hwinfo --short` output:

% hwinfo --short
cpu:                                                            
                       Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 1911 MHz
                       Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400 MHz
                       Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 1689 MHz
                       Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz, 2400 MHz
keyboard:
  /dev/input/event6    AT Translated Set 2 keyboard
mouse:
  /dev/input/mice      SYNA2393:00 06CB:75E2 Mouse
  /dev/input/mice      SYNA2393:00 06CB:75E2 Touchpad
monitor:
                       DP36C HB14601 LCD Monitor
graphics card:
                       nVidia GM108M [GeForce 930M]
                       Intel Skylake GT2 [HD Graphics 520]
sound:
                       Intel Sunrise Point-LP HD Audio
storage:
                       Floppy disk controller
                       Intel Sunrise Point-LP SATA Controller [AHCI mode]
network:
  enp3s0               Realtek RTL8111/8168 PCI Express Gigabit Ethernet controller
  wlp2s0               Intel Wireless 3165
network interface:
  lo                   Loopback network interface
  enp3s0               Ethernet network interface
  wlp2s0               Ethernet network interface
disk:
  /dev/sda             KINGSTON SUV400S
partition:
  /dev/sda1            Partition
  /dev/sda2            Partition
  /dev/sda3            Partition
  /dev/sda4            Partition
  /dev/sda5            Partition
  /dev/sda6            Partition
  /dev/sda7            Partition
  /dev/sda8            Partition
  /dev/sda9            Partition
  /dev/sda10           Partition
usb controller:
                       Intel Sunrise Point-LP USB 3.0 xHCI Controller
bios:
                       BIOS
bridge:
                       Intel Sunrise Point-LP PCI Express Root Port #1
                       Intel Sunrise Point-LP LPC Controller
                       Intel Sunrise Point-LP PCI Express Root Port #6
                       Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
                       Intel Sunrise Point-LP PCI Express Root Port #9
hub:
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
memory:
                       Main Memory
bluetooth:
                       Intel Bluetooth wireless interface
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       Intel Sunrise Point-LP PMC
                       Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
                       Intel Sunrise Point-LP CSME HECI #1
                       Intel Sunrise Point-LP Serial IO I2C Controller #0
                       Intel Sunrise Point-LP Thermal subsystem
                       Intel Sunrise Point-LP SMBus
  /dev/input/event19   Microdia Integrated Webcam HD

Last edited by Zeben (2021-09-02 12:26:21)

Offline

#5 2021-09-03 10:33:35

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: [solved] Wine and nvidia drivers not working

Zeben , OP has amd + nvidia while you have intel + nvidia .
The error messages are also not identical.

Try removing bumblebee and bbswitch and use prime-run from https://archlinux.org/packages/extra/any/nvidia-prime/ instead .
If that doesn't help, start a new thread.


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

Board footer

Powered by FluxBB