Graphics Initialization Failed

Questions about Wine on Linux
Post Reply
enigmaticemm
Newbie
Newbie
Posts: 2
Joined: Mon Apr 21, 2025 7:04 am

Graphics Initialization Failed

Post by enigmaticemm »

I recently reinstalled my operation system moving from separate partitions to using luks full disk encryption. Hence, I did what I normally do, copy out my wine prefix folder with all necessary desktop shortcuts as well. Did a reinstall including wine 10 (running Kubuntu 24.10), ran winecfg, installed winetrics and I was good to go. All my wine applications work including games except one of my favourites, "TextTwist2" by GameHouse.

When I double click on the desktop shortcut, I get "Graphics initialization failed and a box saying Failed to create Directx object. [4]" I've re-installed DirectX but same message. Do note, that all other games run perfectly fine so I pretty much doubt it's DirectX. Hence, I tried running it from the console and I get this error messages in the terminal

Code: Select all

emm@HOME-Ser:~/.wine/drive_c/Games/TextTwist2$ wine TextTwist2.exe 
ERROR: ld.so: object '/usr/NX/lib/libnxegl.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/NX/lib/libnxegl.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
06b0:fixme:wtsapi:WTSRegisterSessionNotification Stub 000D05E2 0x00000001
06b0:err:vulkan:vulkan_init_once Failed to load libvulkan.so.1
06b0:err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory
06b0:err:wgl:init_opengl OpenGL support is disabled.
06b0:err:d3d:wined3d_caps_gl_ctx_create Failed to find a suitable pixel format.
06b0:err:d3d:wined3d_adapter_gl_init Failed to get a GL context for adapter 016BBA18.
06b0:fixme:wtsapi:WTSUnRegisterSessionNotification Stub 000D05E2
Honestly, I'm stuck. I've created a new wine prefix using 32bit environment just in case and installed that particular game to it, same error message. Strange thing is before the reinstall, it worked just fine with the same 24.10 installation.

My current pc specs:
Model/Brand: Beelink SER5 Max Mini PC
Processor: AMD 7 Ryzen 5800H
Graphics: Radeon Integrated Graphics (4GB allocated in system BIOS)
Memory: 32GB DDR4 2400
Hard Drive(s) : 1 TB NVME Gen 3 Internal + 2 TB 2.5 7200 RPM SD Internal
OS: Kubuntu 24.10 fully updated

Any help would be appreciated.
enigmaticemm
Newbie
Newbie
Posts: 2
Joined: Mon Apr 21, 2025 7:04 am

Re: Graphics Initialization Failed

Post by enigmaticemm »

Update: I've found that if I remove Wine and run the version from the Ubuntu repos, there's no such message. I even went ahead and removed the winehq install and used the one available in the package manager. That works. So I tried this. With the packaged version working, I installed the one from WineHQ which went ahead and removed the one from Canonical Repository. However, when it asked to remove the left over files, I chose not to. That also worked. But once I removed the left over packages and left with just the raw one from here, I run into the same problem. I'm no software programmer so I'm not sure which files that aren't present in the one from WineHQ that results in the error. So, I've got no choice but downgrade to 9.20 which is the version available in the Ubuntu repository.
Post Reply