• 0
Sign in to follow this  
Sereneti

Linux, bug, game not launch, fresch install.

Question

Hi;

My problem was, the game only start as root.

i had removed the game  complet, even the savegames.

removed the game with the steam (deinstall routine)
removed the game folder with the console...

i think there was nothing left on the pc..
and installed it new.

but steam cant start KSP, it runs only as root...

:/

anything i forgot?

in the game folder, with ls -lisa all rights are for the current user.
there arnt any data/directorys for "root"...

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
2 hours ago, Sereneti said:

i think there was nothing left on the pc..

Have you removed the config files in ~/.config/unity3d/Squad as well? Are/were they r/w for your user?

2 hours ago, Sereneti said:

steam cant start KSP

What does the console say if you launch (as your normal user) KSP.x86_64 directly?
What do your logs (~/.config/unity3d/Squad/Kerbal\ Space\ Program/Player.log) say about it? ditto permissions.

Dunno what distro you're running, but some use a "video" group to control access to the GPU... you in it? I assume you can launch other games / OpenGl apps okay as an unprivileged user?

 

 

Share this post


Link to post
Share on other sites
  • 0

	User@User-Aspire-E1-571:~ > cd .steam/steam/steamapps/common/Kerbal\ Space\ Program/
User@User-Aspire-E1-571:~/.steam/steam/steamapps/common/Kerbal Space Program > ./KSP.x86
Set current directory to /home/User/.steam/steam/steamapps/common/Kerbal Space Program
Found path: /home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP.x86
Mono path[0] = '/home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP_Data/Managed'
Mono path[1] = '/home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP_Data/Mono'
Mono config path = '/home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP_Data/Mono/etc'
displaymanager : xrandr version warning. 1.4
client has 4 screens
displaymanager screen (0)(LVDS1): 1366 x 768
Using libudev for joystick management
	
Importing game controller configs
Abgebrochen
User@User-Aspire-E1-571:~/.steam/steam/steamapps/common/Kerbal Space Program > cd ~/.config/unity3d/Squad/
User@User-Aspire-E1-571:~/.config/unity3d/Squad > dir
Kerbal\ Space\ Program
User@User-Aspire-E1-571:~/.config/unity3d/Squad > cd Kerbal\ Space\ Program/
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > ls -lisa
insgesamt 16
2511650 4 drwx------ 2 User User 4096 Apr 15  2016 .
2511649 4 drwx------ 3 User User 4096 Apr 15  2016 ..
2511651 4 -rw-r--r-- 1 User User 1108 Dez  8 06:02 Player.log
2511781 4 -rw-r--r-- 1 User User  375 Mai  1  2016 prefs
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > cat /etc/issue
Linux Mint 17.1 Rebecca \n \l
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > cat /proc/version
Linux version 3.13.0-37-generic (buildd@kapok) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > inxi -fx
CPU:       Dual core Intel Core i5-3230M CPU (-HT-MCP-) cache: 3072 KB bmips: 10377
           Clock Speeds: 1: 1200.00 MHz 2: 1200.00 MHz 3: 1200.00 MHz 4: 1200.00 MHz
           CPU Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts
           acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good
           nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid
           sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm
           tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > ^C
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > dir
Player.log  prefs
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > nano Player.log                                                                                                            
User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program > cat Player.log                                                                                                             
Stacktrace:                                                                                                                                                                                     
	
Native stacktrace:
	        /home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP_Data/Mono/x86/libmono.so(+0x89917) [0xf5770917]
        /home/User/.steam/steam/steamapps/common/Kerbal Space Program/KSP_Data/Mono/x86/libmono.so(+0x21a63) [0xf5708a63]
        [0xf77cb410]
        ./KSP.x86() [0x8b97e4b]
        ./KSP.x86() [0x8b97fd6]
        /lib/i386-linux-gnu/libc.so.6(+0x33231) [0xf7309231]
        /lib/i386-linux-gnu/libc.so.6(+0x3328d) [0xf730928d]
        /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xfb) [0xf72efafb]
        ./KSP.x86() [0x80955c9]
	Debug info from gdb:
	Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Vorgang nicht zulässig.
No threads.
	=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
	User@User-Aspire-E1-571:~/.config/unity3d/Squad/Kerbal Space Program >
	

Edited by Sereneti

Share this post


Link to post
Share on other sites
  • 0

Well, that's not one of the bugs I know about, and permissions seem okay.
Other wild stabs in the dark:
If you haven't already, remove the entire ~/.config/unity3d/Squad/Kerbal Space Program directory, and let the game recreate it.
Try the 32bit binary.
Try forcing the renderer selection, unitys autodetection can be flaky. Some arguments to try: '-force-opengl', -force-glcore', -force-gfx-direct'
That machine has intel graphics, right? what driver (and mesa version) are you running? There have been reports of upgrading to mesa 12.x fixing these sort of issues. OpenGL version support? ('glxinfo | grep OpenGL')

It's rather odd that it works as root, still points to a permissions issue. I believe (Nvidia here) the intel driver uses DRI3 - what are the permissions in /dev/dri/?
glxgears runs okay as User?

Share this post


Link to post
Share on other sites
  • 0

32 64 bit dosnt make any differenze.

the big question is: why dos it work as root...


	user@user-Aspire-E1-571:~ > glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.1.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
user@user-Aspire-E1-571:~ > ls /dev/dri/? -lisa
ls: Zugriff auf /dev/dri/? nicht möglich: Datei oder Verzeichnis nicht gefunden
user@user-Aspire-E1-571:~ > ls /dev/dri/ -lisa
insgesamt 0
 209 0 drwxr-xr-x   2 root root       80 Dez  8 13:44 .
1025 0 drwxr-xr-x  17 root root     4240 Dez  8 13:44 ..
 211 0 crw-rw----+  1 root video 226,  0 Dez  8 16:03 card0
 210 0 crw-rw----   1 root video 226, 64 Dez  8 13:44 controlD64
user@user-Aspire-E1-571:~ > glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
306 frames in 5.0 seconds = 61.102 FPS
301 frames in 5.0 seconds = 60.093 FPS
301 frames in 5.0 seconds = 60.091 FPS
301 frames in 5.0 seconds = 60.091 FPS
301 frames in 5.0 seconds = 60.092 FPS
301 frames in 5.0 seconds = 60.093 FPS
301 frames in 5.0 seconds = 60.091 FPS
301 frames in 5.0 seconds = 60.092 FPS
301 frames in 5.0 seconds = 60.093 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 9068 requests (9068 known processed) with 0 events remaining.
user@user-Aspire-E1-571:~ > ^C
user@user-Aspire-E1-571:~ >
	 
	

Edited by Sereneti

Share this post


Link to post
Share on other sites
  • 0

Most likely you are not in a group which you need to be in to run KSP, but root is.

You can use the groups command with your user name to find what groups you are in, and the stat command to see the groups who own a file, like this.

$ groups user
user : user cdrom sudo plugdev lpadmin sambashare lxd
$ stat -c %U ./KSP.x86_64
user

This can happen when software is installed using sudo.

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Sereneti said:

211 0 crw-rw----+  1 root video 226,  0 Dez  8 16:03 card0

Is User in the "video" group?

Share this post


Link to post
Share on other sites
  • 0
	groups
User adm cdrom sudo dip plugdev lpadmin sambashare



no, i try to ad user to this group

okay



sudo usermod -aG video user 
groups
user adm cdrom sudo dip plugdev lpadmin sambashare

[/groups]

whats wrong...
no error message or similar...

 

Edited by Sereneti

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, Sereneti said:

whats wrong... no error message or similar...

To update group membership, log out and log in again.
You can also temporarily switch to a groups permissions with 'newgrp <groupname>', or start a new shell (inc. updated groups) with 'su - user'.  Note that these do not affect already running processes, only the current shell.

Edited by steve_v
Clarify

Share this post


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this