You are not logged in.

#1 2021-07-22 00:14:13

DemonLord
Member
Registered: 2021-04-21
Posts: 16

[SOLVED] Wine Kernel32.dll Problem

Hello everyone!
Today i encountered with problem like "could not load kernel32.dll". Already tried google it, but no solution found. I hope you will help me.

Thanks!

P.S. Yes i tried already reinstall it, but it didn't help

Last edited by DemonLord (2021-07-30 14:54:14)

Offline

#2 2021-07-22 11:44:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

Don't post a video (or screenshot) of terminal output, post the output itself .

try

$ WINEARCH=win32 WINEPREFIX=~/clean_win32 winecfg
$ WINEPREFIX=~/clean_win64 winecfg

Those commands will (attempt to) create 2 new wine prefixes .
Post the output as TEXT  .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#3 2021-07-22 12:42:22

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

I ran the command and it just paused after it, nothing is happen

$ WINEARCH=win32 WINEPREFIX=~/clean_win32 winecfg
wine: created the configuration directory '/home/user/clean_win32'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
-Controls" (6.0.0.0)
0048:err:winediag:nodrv_CreateWindow Application tried to create a window, but no
ded.
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 0x8000400
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11c
}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x800040

Also

$ WINEPREFIX=~/clean_win64 winecfg                                                
wine: created the configuration directory '/home/user/clean_win64'
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)
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0050:err:winediag:nodrv_CreateWindow Unknown error (998).
0050:err:systray:initialize_systray Could not create tray window
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002

Offline

#4 2021-07-22 13:04:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

Not sure what goes wrong, but both 32 and 64 bit show similar errors.

let's try to take the gui out of things for testing.

$ env WINEPREFIX=~/.customprefix wineboot -u

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#5 2021-07-22 16:02:10

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

Lone_Wolf wrote:

Not sure what goes wrong, but both 32 and 64 bit show similar errors.

let's try to take the gui out of things for testing.

$ env WINEPREFIX=~/.customprefix wineboot -u

Not sure if i'm doing it right, but get the error

$ env WINEPREFIX=~/.customprefix wineboot -u                         
wine: invalid directory ~/.customprefix in WINEPREFIX: not an absolute path

Offline

#6 2021-07-23 10:36:41

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

Normally ~/.customprefix is converted to /home/your-username/.customprefix  by your shell .

I am beginning to think the problem is not with wine but something in your user setup.

To verify that please create a fresh temporary user[1], login as that user then try the wineboot command as that user.


[1] https://wiki.archlinux.org/title/Users_ … ing_a_user


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#7 2021-07-24 20:54:40

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

Lone_Wolf wrote:

Normally ~/.customprefix is converted to /home/your-username/.customprefix  by your shell .

I am beginning to think the problem is not with wine but something in your user setup.

To verify that please create a fresh temporary user[1], login as that user then try the wineboot command as that user.


[1] https://wiki.archlinux.org/title/Users_ … ing_a_user

Well, i created a new user, but the problem is the same:

$ winecfg
wine: created the configuration directory '/home/newuser/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Micro
0050:err:winediag:nodrv_CreateWindow Application tried to create a window, but no
0050:err:winediag:nodrv_CreateWindow Unknown error (998).
0050:err:systray:initialize_systray Could not create tray window
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x8000400
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11c
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002

Offline

#8 2021-07-25 11:06:39

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

I compared your output with my own and found I don't get the winediag:nodrv lines.

Searches showed several possible causes :
- no valid logind sesssion
- graphics driver issues


What is the last version of wine that did work on your system ?

How are you starting X : display manager (sddm, gdm, lightdm etc) or xinit / startx ?
Incase you are running wayland, does the issue occur also under X ?

Please post output of

$ loginctl show-session $XDG_VTNR
$ lspci -k
$ glxinfo -B    # comes with mesa-demos
$ glxinfo32 -B  # comes with lib32-mesa-demos

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#9 2021-07-25 11:42:52

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

Lone_Wolf wrote:

I compared your output with my own and found I don't get the winediag:nodrv lines.

Searches showed several possible causes :
- no valid logind sesssion
- graphics driver issues


What is the last version of wine that did work on your system ?

Well, don't remember, but i was using wine-staging. I launched wine and perfectly works about month ago.
My laptop is muxless. Integrated UHD 630 and 1050ti Mobile.

How are you starting X : display manager (sddm, gdm, lightdm etc) or xinit / startx ?
Incase you are running wayland, does the issue occur also under X ?

SDDM, also i'm using DWM and there is .xsession with the following:

#!/bin/bash
exec dwm

Please post output of

$ loginctl show-session $XDG_VTNR
$ lspci -k
$ glxinfo -B    # comes with mesa-demos
$ glxinfo32 -B  # comes with lib32-mesa-demos

I get an error with $XDG_VTNR

$ loginctl show-session $XDG_VTNR                                      
Failed to get session path: No session '1' known

But here is without $XDG_VTNR

$loginctl show-session                                                                                                                                                 
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
RebootToBootLoaderMenu=18446744073709551615
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
UserStopDelayUSec=10s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
LidClosed=no
OnExternalPower=yes
RemoveIPC=yes
RuntimeDirectorySize=817561600
RuntimeDirectoryInodesMax=199600
InhibitorsMax=8192
NCurrentInhibitors=0
SessionsMax=8192
NCurrentSessions=1

lspci:

$ lspci -k
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: skl_uncore
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 07)
	Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
	DeviceName: Onboard - Video
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: i915
	Kernel modules: i915
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Intel Corporation Device 7270
00:14.3 Network controller: Intel Corporation Cannon Lake PCH CNVi WiFi (rev 10)
	DeviceName: Onboard - Ethernet
	Subsystem: Intel Corporation Device 02a4
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
	DeviceName: Onboard - SATA
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: ahci
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #16 (rev f0)
	Kernel driver in use: pcieport
00:1e.0 Communication controller: Intel Corporation Cannon Lake PCH Serial IO UART Host Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
	DeviceName: Onboard - Sound
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
	DeviceName: Onboard - Other
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: intel-spi
	Kernel modules: intel_spi_pci
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
02:00.0 Ethernet controller: Qualcomm Atheros QCA8171 Gigabit Ethernet (rev 10)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 121a
	Kernel driver in use: alx
	Kernel modules: alx

Glxinfo

$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 630 (CFL GT2) (0x3e9b)
    Version: 21.1.5
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    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
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.5
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.5
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.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Glxinfo32

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 630 (CFL GT2) (0x3e9b)
    Version: 21.1.5
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    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
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.5
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.5
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.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Offline

#10 2021-07-25 12:22:15

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

It seems $XDG_VNTR may not be set when using a display manager, try

$ loginctl show-session $XDG_SESSION_ID

If that also fails run  loginctl --list-sessions to determine the id of the active session and add it manually to loginctl --show-session .

Just in Case : Are you using xf86-video-intel ?
If yes, remove it temporarily

what is the output of pacman -Qs nvidia ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#11 2021-07-27 12:54:28

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

Lone_Wolf wrote:

It seems $XDG_VNTR may not be set when using a display manager, try

$ loginctl show-session $XDG_SESSION_ID

loginctl

loginctl show-session $XDG_SESSION_ID                                     
Id=2
User=1000
Name=username
Timestamp=Tue 2021-07-27 18:39:49 EEST
TimestampMonotonic=16212977
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Scope=session-2.scope
Leader=654
Audit=2
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no

If that also fails run  loginctl --list-sessions to determine the id of the active session and add it manually to loginctl --show-session .

loginctl list-sessions

 loginctl list-sessions                                   
SESSION  UID USER       SEAT  TTY
      2 1000 username seat0

1 sessions listed.

loginctl show-session

EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
RebootToBootLoaderMenu=18446744073709551615
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
UserStopDelayUSec=10s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
LidClosed=no
OnExternalPower=yes
RemoveIPC=yes
RuntimeDirectorySize=817561600
RuntimeDirectoryInodesMax=199600
InhibitorsMax=8192
NCurrentInhibitors=1
SessionsMax=8192
NCurrentSessions=1

Just in Case : Are you using xf86-video-intel ?
If yes, remove it temporarily

It is not installed

 pacman -Ss xf86-video-intel                            
extra/xf86-video-intel 1:2.99.917+916+g31486f40-1 (xorg-drivers)
    X.org Intel i810/i830/i915/945G/G965+ video drivers

what is the output of pacman -Qs nvidia ?

# pacman -Qs nvidia
local/bumblebee 3.2.1-21
    NVIDIA Optimus support for Linux through VirtualGL
local/egl-wayland 1.1.7-1
    EGLStream-based Wayland external platform
local/lib32-nvidia-utils 470.57.02-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 470.57.02-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/nvidia-dkms 470.57.02-3
    NVIDIA drivers - module sources
local/nvidia-lts 1:470.57.02-3
    NVIDIA drivers for linux-lts
local/nvidia-utils 470.57.02-3
    NVIDIA drivers utilities

Offline

#12 2021-07-28 10:19:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,515

Re: [SOLVED] Wine Kernel32.dll Problem

session looks fine, and nvidia drivers are all same version.

wine should be using the intelcard.

Are wine-gecko and wine-mono installed ?

If yes, remove them and run WINEPREFIX=~/test_win64 winecfg again.


If not present, install wine-gecko and run  WINEPREFIX=~/test_win64 winecfg


for both cases : if wine shows a window telling you it can't find wine-gecko and/or wine-mono , cancel installing them .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

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

Offline

#13 2021-07-30 14:53:13

DemonLord
Member
Registered: 2021-04-21
Posts: 16

Re: [SOLVED] Wine Kernel32.dll Problem

Lone_Wolf wrote:

session looks fine, and nvidia drivers are all same version.

wine should be using the intelcard.

Are wine-gecko and wine-mono installed ?

If yes, remove them and run WINEPREFIX=~/test_win64 winecfg again.


If not present, install wine-gecko and run  WINEPREFIX=~/test_win64 winecfg


for both cases : if wine shows a window telling you it can't find wine-gecko and/or wine-mono , cancel installing them .

I installed wine-mono and it works! Thanks!!!

Offline

Board footer

Powered by FluxBB