HGL
eastern-cyan

Moved to nix from flatpak while purging packages. KSP won't launch.

It was mostly working in flatpak, but an update broke it. For various reasons, I decided to move a number of packages from flatpak to nix, including heroic. Because of space constraints, I also removed a bunch of apt packages, which includes dxvc. After installing everything I can think of, including all listed on the WineDependencies.md file as well as dxvc, after importing the install of Kerbal Space Program, attempting to run it yields a launcher screen, then an error saying it can't connect to Epic Online Services. After some research, I've found someone saying to change the alternative EXE to KSP_x64.EXE. That gives me a new error screen (attached) with the following error message:
OPENGL ERROR: failed to choose pixel format for dc 1701004b
GLContext warn: failed to setup offscreen pixel format: Invalid window handle.

GLContext: failed to create context: Success.

Failed to initialize graphics.
Make sure you have DirectX 11 installed, have up to date
drivers for your graphics card and have not disabled
3D acceleration in display settings.
InitializeEngineGraphics failed
OPENGL ERROR: failed to choose pixel format for dc 1701004b
GLContext warn: failed to setup offscreen pixel format: Invalid window handle.

GLContext: failed to create context: Success.

Failed to initialize graphics.
Make sure you have DirectX 11 installed, have up to date
drivers for your graphics card and have not disabled
3D acceleration in display settings.
InitializeEngineGraphics failed
I've also attached the heroic log file, although I don't think it has anything relevant (outside of the empty listing under GRAPHICS). I will note that it worked in the past on this laptop, so it appears to be a dependency issue.
13 Replies
CommandMC
CommandMC3y ago
failed to create context: Success.
Sounds very fun I'm not familiar with Devuan Linux, but judging by the empty "GRAPHICS" section, you might be missing GPU drivers. Since Devuan seems to be based on Debian, you should be able to follow https://github.com/lutris/docs/blob/master/WineDependencies.md#ubuntudebianubuntu-derivativesdebian-derivatives
eastern-cyan
eastern-cyanOP3y ago
As I said, I have installed all dependencies listed there.
eastern-cyan
eastern-cyanOP3y ago
Those are also all installed.
CommandMC
CommandMC3y ago
Hmm Does something like vkcube run fine?
eastern-cyan
eastern-cyanOP3y ago
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
Could not find both graphics and present queues
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
Could not find both graphics and present queues
nope glxgears does though
CommandMC
CommandMC3y ago
Well, something Vulkan-related isn't quite right then Could you try adding PROTON_USE_WINED3D to the game environment variables (Name PROTON_USE_WINED3D, Value 1) and seeing if the game now runs?
eastern-cyan
eastern-cyanOP3y ago
very similar error (the eight digit number is different)
eastern-cyan
eastern-cyanOP3y ago
looking at https://askubuntu.com/questions/817226/how-to-enable-dri3-on-ubuntu-16-04#817232 , I don't have any DRI stuff in any of the xorg.conf.d files.
Ask Ubuntu
How to enable DRI3 on Ubuntu 16.04
I'm trying to learn Vulkan, so I install the Mesa Vulkan drivers and development files. I downloaded some examples. I compiled the examples and tried to execute one. But when I run the file from
eastern-cyan
eastern-cyanOP3y ago
Added the file and rebooted, but vkcube still doesn't work, and neither does KSP.
harsh-harlequin
harsh-harlequin3y ago
you need to install vulkan drivers
eastern-cyan
eastern-cyanOP3y ago
Where would I find those? and would installing them with apt work, or would it need to be with nix? installing goverlay, along with it's dependencies seems to have fixed it.
harsh-harlequin
harsh-harlequin3y ago
depends on your distro.. look up installing vulkan for your distro

Did you find this page helpful?