Project

General

Profile

Bug #9428

KSP crashes on startup with >8-bit X display

Added by nand about 8 years ago. Updated almost 8 years ago.

Status:
Needs Clarification
Severity:
Normal
Assignee:
-
Category:
Application
Target version:
-
Start date:
04/22/2016
% Done:

0%

Version:
Platform:
Linux
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

I'm not entirely sure where exactly this bug is (KSP or Unity), but the faulty code is inside the “KSP.x86_64” binary itself.

When setting up the GLX context, you request a backbuffer with GLX_ALPHA_SIZE >= 8. On systems with a higher color depth than 8 (e.g. R10G10B10A2) this fails because A >= 8 is unsatisfiable.

The fix is to remove this constraint from the GLX attribute list passed to glXChooseFBConfig, or set it to 0.

Attached is a work-around that others running into this issue can use in the meantime.

Linux 64-bit 1.1.0 non-Steam. Note that this also affects 1.0.5, although in that version glXChooseFBConfig was linked directly instead of being loaded through glXGetProcAddressARB. (And I still have no idea what line of thought could possibly have prompted that change)

kspfix.c (842 Bytes) kspfix.c Work-around for glXChooseFBConfig bug nand, 04/22/2016 10:58 PM

History

#1 Updated by TriggerAu almost 8 years ago

  • Status changed from New to Needs Clarification

Also available in: Atom PDF