Error when running wine for a second time
Error when running wine for a second time
Hi all, I am trying to install a software with wine, but when I frist run the installer everything works fine and the software is installed, but when I try to run wine for a second time (to execute the software), I get the following error:
```
00c4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c4:err:winediag:nodrv_CreateWindow The explorer process failed to start.
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
006c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0024:err:winediag:nodrv_CreateWindow The explorer process failed to start.
```
I tried exporting the DISPLAY but that does not solve the issue
it is worth mentioning that if I delete the .wine folder and the run any wine, it works, but whenn the folder .wine exists and I try to run wine, I get the same error
```
00c4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c4:err:winediag:nodrv_CreateWindow The explorer process failed to start.
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
006c:err:winediag:nodrv_CreateWindow The explorer process failed to start.
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
00c4:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
006c:err:ole:apartment_createwindowifneeded CreateWindow failed with error 0
0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0024:err:winediag:nodrv_CreateWindow The explorer process failed to start.
```
I tried exporting the DISPLAY but that does not solve the issue
it is worth mentioning that if I delete the .wine folder and the run any wine, it works, but whenn the folder .wine exists and I try to run wine, I get the same error
Re: Error when running wine for a second time
Can you tell a bit more about your system?
- Linux distribution and version
- Wine version
- Graphics card
- Linux distribution and version
Code: Select all
cat /etc/os-release
Code: Select all
wine --version
Code: Select all
glxinfo -B
Re: Error when running wine for a second time
Thanks for the reply, this is the info of my system
Code: Select all
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Code: Select all
wine-6.0.3 (Ubuntu 6.0.3~repack-1)
Code: Select all
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Intel (0x8086)
Device: Mesa Intel(R) UHD Graphics (TGL GT1) (0x9a60)
Version: 23.0.4
Accelerated: yes
Video memory: 63999MB
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 (TGL GT1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
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 23.0.4-0ubuntu1~22.04.1
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 23.0.4-0ubuntu1~22.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Re: Error when running wine for a second time
Do you have another graphics card in your computer besides the Intel GPU?
If this is the case, will Wine work if you use the VK_ICD_FILENAMES variable?
If this is the case, will Wine work if you use the VK_ICD_FILENAMES variable?
Code: Select all
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json wine winecfg
Re: Error when running wine for a second time
Thanks for the reply @jkfloris, I have an nvidia card as well:
When I run with this it works for winecgf:
but when I try to execute my program, I get this error:
is there a way to make it work without that variable?
Code: Select all
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.12 Driver Version: 535.104.12 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA RTX A3000 Laptop GPU Off | 00000000:01:00.0 On | N/A |
| N/A 38C P8 15W / 90W | 148MiB / 6144MiB | 17% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 4646 G /usr/lib/xorg/Xorg 143MiB |
+---------------------------------------------------------------------------------------+
Code: Select all
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json
Code: Select all
ShellExecuteEx failed: Bad EXE format for ....\jre\bin\javaw.EXE.
Last edited by rivale on Wed Oct 11, 2023 2:43 am, edited 1 time in total.
Re: Error when running wine for a second time
Can you post the full output with the command you used?but when I try to execute my program, I get this error:Code: Select all
ShellExecuteEx failed: Bad EXE format for ....\jre\bin\javaw.EXE.
You will get this output if you are trying to run a 32-bit program with wine64.
Re: Error when running wine for a second time
Thanks for the reply, I am using this command:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json wine something.exe
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json wine something.exe
Re: Error when running wine for a second time
Does it make any difference if you use:
Code: Select all
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.i686.json wine something.exe
Re: Error when running wine for a second time
I get the same error, my application is 64-bits
Re: Error when running wine for a second time
There have been many improvements since Wine 6. Is it possible to try the program with Wine 8.x?