Troubleshooting KSA (Pre-Alpha) on Linux under Wine

I'm also getting out of memory error. I have 64 gigs of ram, amd 9800x3d and AMD Radeon RX 7000 XT with 12 gigs of vram. It runs in windows just fine. I'm using vanilla wine on arch linux.
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt
That's a segfault, not oom
 
I'm also getting out of memory error. I have 64 gigs of ram, amd 9800x3d and AMD Radeon RX 7000 XT with 12 gigs of vram. It runs in windows just fine. I'm using vanilla wine on arch linux.
You're not getting an out of memory error. The log you posted says "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

You could try setting this environment variable: WINEDLLOVERRIDES="ntdll.dll=b"
 
OS: Debian-13
GPU: Radeon RX 590




UPDATE 2025-11-18: Working with Wine on Debian-13 (X11, KDE).

I'm not sure, what caused the problem before. But this reliably runs the game (order of steps may be important):

1. install Wine-10.19 or Wine-Staging-10.19 on Debian
2. clean wine prefix (no Mono installation needed)
3. winetricks: winetricks dotnetdesktop9
4. install setup_ksa_v2025.11.5.2819.exe
5. start in Earth only mode for the first test

Do NOT install DXVK or any additional software. The game runs on native Vulkan and needs no DXVK or any other DirectX technology. Vulkan-SDK seems NOT to be needed.

I'm occasionally getting an Attempted to read or write protected memory. crash message on the shell at the end of startup. But I'm pretty sure my system memory is absolutely fine and this is simply because the game is in pre-alpha stage and still very unstable.

Planetary (and moon) surfaces are NOT rendered and appear either transparent or black. Oceans and atmosphere are rendered.

Very occasionally the game triggers a GPU (Radeon RX590) reset which crashes the whole X11 server.
I've played quite some games on this machine via Debian (KSP, Elite Dangerous, Diablo V, SC2, CS2, ...). But none triggered a GPU reset.
Code:
# 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux
00:42:06.993815+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: GPU fault detected: 147 0x0e004401
00:42:06.993825+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu:  for process KSA.exe pid 1048040 thread KSA.exe pid 1048040
00:42:06.993826+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x0DCBE7C0
00:42:06.993827+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0A044001
00:42:06.993828+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: VM fault (0x01, vmid 5, pasid 32793) at page 231466944, read from 'TC5' (0x54433500) (68)

00:59:02.981814+01:00 pc kernel: gmc_v8_0_process_interrupt: 175 callbacks suppressed

01:16:55.069813+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: Dumping IP State
01:16:55.069825+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: Dumping IP State Completed
01:16:55.077802+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: ring gfx timeout, signaled seq=73806144, emitted seq=73806146
01:16:55.077808+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: Process information: process KSA.exe pid 1053131 thread KSA.exe pid 1053131
01:16:55.077810+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset begin!
01:16:55.445808+01:00 pc kernel: amdgpu: cp is busy, skip halt cp
01:16:55.729807+01:00 pc kernel: amdgpu: rlc is busy, skip halt rlc
01:16:55.729818+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: BACO reset
01:16:55.965809+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset succeeded, trying to resume
01:16:55.969800+01:00 pc kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400900000).
01:16:55.969803+01:00 pc kernel: [drm] VRAM is lost due to GPU reset!
01:16:56.145805+01:00 pc kernel: [drm] UVD and UVD ENC initialized successfully.
01:16:56.245797+01:00 pc kernel: [drm] VCE initialized successfully.
01:16:56.281817+01:00 pc kernel: amdgpu 0000:07:00.0: amdgpu: GPU reset(4) succeeded!
01:16:56.281832+01:00 pc kernel: [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser -125!
01:16:58.833812+01:00 pc kernel: show_signal_msg: 171 callbacks suppressed
01:16:58.833824+01:00 pc kernel: Isolated Web Co[2885558]: segfault at 8 ip 00007feb18a0f266 sp 00007fff94d3fdd0 error 4 in libxul.so[640e266,7feb152f3000+6956000] likely on CPU 12 (core 4, socket 0)
01:16:58.833826+01:00 pc kernel: Code: cc cc cc cc f3 0f 1e fa 41 57 41 56 41 54 53 48 83 ec 38 49 89 d6 49 89 f7 48 89 fb 64 48 8b 04 25 28 00 00 00 48 89 44 24 30 <48> 8b 77 08 48 8d 7c 24 28 ba 02 00 15 00 31 c9 41 b8 01 00 00 00
01:17:14.773823+01:00 pc kernel: audit: type=1400 audit(1763425034.767:600): apparmor="ALLOWED" operation="capable" class="cap" profile="Xorg" pid=1053543 comm="Xorg" capability=12  capname="net_admin"

See also:
- https://appdb.winehq.org/objectManager.php?sClass=application&iId=21524
- https://forums.ahwoo.com/threads/ksa-and-linux-compatibility.239/
- https://forums.ahwoo.com/threads/one-true-linux-thread-tm.144/
- https://forums.ahwoo.com/threads/massive-gpu-bottleneck-on-frame-copy-operation-on-linux.265/
- https://forums.ahwoo.com/threads/linux-discussion.72/
- https://forums.ahwoo.com/threads/graphical-glitches-linux-under-proton.179/
- https://forums.ahwoo.com/threads/linux-amd-gpu-terrain-not-rendering.445/
- https://lutris.net/games/kitten-space-agency/



OUTDATED INFORMATION

Game: setup_ksa_v2025.11.4.2791.exe

KSA is NOT working on this system via Wine.
Tried Wine-10.19 + Wine-Staging-10.19
winetricks d3dx9 msls31 d3dcompiler_43 d3dcompiler_47 corefonts dotnetdesktop9
+ vulkansdk-windows-X64-1.4.328.1.exe
Supplemental: Same error in a recent ArchLinux Podman container + setup_ksa_v2025.11.5.2819.exe

KSA works on the same system when using Steam + Proton-10.0-3 + dotnetdesktop9 via ProtonTricks.
Supplemental: No terrain visible with Proton (when zooming in so the Earth / Moon fills the screen). Earth has only ocean and air, moon is transparent or simply black.

Code:
# ...
0154:err:eventlog:ReportEventW L"Application: KSA.exe\n"
0154:err:eventlog:ReportEventW L"CoreCLR Version: 9.0.24.52809\n"
0154:err:eventlog:ReportEventW L".NET Version: 9.0.0\n"
0154:err:eventlog:ReportEventW L"Description: The process was terminated due to an unhandled exception.\n"
0154:err:eventlog:ReportEventW L"Exception Info: System.InvalidOperationException: Failed to enumerate device extension properties: Incomplete\r\n"
0154:err:eventlog:ReportEventW L"   at Brutal.VulkanApi.PhysicalDevice.get_ExtensionNames()\r\n"
0154:err:eventlog:ReportEventW L"   at Brutal.VulkanApi.PhysicalDevice.SupportsExtension(String extension)\r\n"
0154:err:eventlog:ReportEventW L"   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)\r\n"
0154:err:eventlog:ReportEventW L"   at System.Linq.Enumerable.ArrayWhereIterator`1.MoveNext()\r\n"
0154:err:eventlog:ReportEventW L"   at System.Linq.Enumerable.OrderedIterator`2.TryGetFirst(Boolean& found)\r\n"
0154:err:eventlog:ReportEventW L"   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\r\n"
0154:err:eventlog:ReportEventW L"   at Core.KSADeviceContextEx..ctor(Api inApiVersion)\r\n"
0154:err:eventlog:ReportEventW L"   at Core.Renderer..ctor(GlfwWindow window, VkFormat depthFormat, VkPresentModeKHR presentMode, Api vulkanApiVersion)\r\n"
0154:err:eventlog:ReportEventW L"   at KSA.Program..ctor(IReadOnlyList`1 inArgs)\r\n"
0154:err:eventlog:ReportEventW L"   at KSA.Program.Main(String[] inArgs)\n"
# ...

Code:
$ vulkaninfo --summary
==========
VULKANINFO
==========

Vulkan Instance Version: 1.4.309

[...]

Devices:
========
GPU0:
        apiVersion         = 1.4.305
        driverVersion      = 25.0.7
        vendorID           = 0x1002
        deviceID           = 0x67df
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = AMD Radeon RX 590 Series (RADV POLARIS10)
        driverID           = DRIVER_ID_MESA_RADV
        driverName         = radv
        driverInfo         = Mesa 25.0.7-2
        conformanceVersion = 1.4.0.0
        deviceUUID         = 00000000-0700-0000-0000-000000000000
        driverUUID         = 414d442d-4d45-5341-2d44-525600000000
# ... (LLVM virtual GPU)
 
Last edited:
Weird. I don't see any terrain. (RX7600, 16GB VRAM), no matter what I do, no matter what Wine or Proton version I use. I could land the ship on water, though.
Manjaro, Wayland, Plasma.

There seems to be something weird happening with visibility in the game, though: Moving the Flightplan too far down makes it invisible, moving it up again (if one can find it :D), brings it back. Maneuver windows are sometimes visible, sometimes not.
 
Last edited:
You're not getting an out of memory error. The log you posted says "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

You could try setting this environment variable: WINEDLLOVERRIDES="ntdll.dll=b"
Also no change.