Winecfg and windows applications not launching

After updating when I try to run windows games through steam through proton nothing will load. Before updating everything worked fine. Also when trying to run winecfg I get this:

winecfg
002c:fixme:winediag:loader_init wine-staging 8.21 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
0080:fixme:wineusb:query_id Unhandled ID query type 0x5.
00f0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00f0:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

It is indicating it cannot load driver so I ran:

 pacman -Qs nvidia
local/egl-wayland 2:1.1.13-1
    EGLStream-based Wayland external platform
local/gwe 0.15.6-1
    A system utility for controlling NVIDIA GPUs
local/lib32-libvdpau 1.5-2
    Nvidia VDPAU library
local/lib32-nvidia-utils 545.29.06-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/libxnvctrl 545.29.06-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 545.29.06-4
    NVIDIA drivers - module sources
local/nvidia-prime 1.0-4
    NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 545.29.06-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-tweaks 545-2
    A collection of tweaks and improvements to the NVIDIA driver
local/nvidia-utils 545.29.06-4
    NVIDIA drivers utilities

Hoping someone could guide me in the right direction.

Is it older prefix or new one?

If older - Linux gaming [Guide] - #198 by keybreak

I deleted .wine in my home folder and ran winecfg got:

winecfg
wine: created the configuration directory '/home/seb/.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:fixme:winediag:loader_init wine-staging 8.21 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
004c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0054:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
002c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0044:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0044:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0074:err:ntoskrnl:ServiceMain Failed to load L"C:\\windows\\system32\\win32k.sys"
0074:err:ntoskrnl:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgkrnl.sys"
0074:err:ntoskrnl:ServiceMain Failed to load L"C:\\windows\\system32\\drivers\\dxgmms1.sys"
008c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
008c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
0094:fixme:file:NtLockFile I/O completion on lock not implemented yet
0094:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
009c:fixme:file:NtLockFile I/O completion on lock not implemented yet
009c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0094:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0094:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0104:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0104:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
012c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
012c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
012c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
012c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
wine: configuration in L"/home/seb/.wine" has been updated.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
012c:fixme:wineusb:query_id Unhandled ID query type 0x5.
0164:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0164:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

Then ran winecfg again and got:

winecfg
0184:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0184:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

Are you up to date?

latest wine-staging and system fully updated

Try wine package instead for now (it’s already 9.x series), see if it helps.
Also i don’t advice to use system wine and system wineprefix…it will certainly break, unless version that you know for a fact won’t braek and that can easily change to whatever version you want, while using portable prefixes.

The regular wine package is working for me. Hasn’t broken in the last year that I’ve been using it. Never tried wine-staging.

thanks for the suggestions, It kept me motivated to keep trying. I am not sure exactly what fixed it, so far it is working after I uninstalled and reinstalled nvidia-dkms nvidia-utils, lib32-nvidia-utils python-py3nvml and gwe installed lib32-opencl-nvidia
uninstalled nvidia-prime
Restarted.

Now non steam games runs fine and winecfg and wine explorer.exe launch no problem.