You are not logged in.

#1 2013-10-18 18:46:24

LucetLux
Member
Registered: 2013-08-16
Posts: 165

[SOLVED] (ish) Trine 2 not working, ksmserver issue ?

I have Trine 2 that I got from the Humble Indie Bundle 9, I failed at "installing" it manually, because of some selinux nonsense, so I used the aur package "trine2-hib" to help me install it.
It was working perfectly, until after some updates it didn't work anymore.
This all started together with the problems caused by the latest update of kde stuff and qt4 not being updated, that solved, I though this would've been solved too, well, not really.

Whenever I run Trine 2 from a .desktop launcher, it kills my kde session and shows me this: "Could not start ksmserver. Check your installation " and only an option to logout.

trine2-hib.desktop content :

[Desktop Entry]
Version=1.0
Type=Application
Categories=Game;
Name=Trine 2: Complete Story
Comment=Frozenbyte
GenericName=Action-Puzzle Platformer
Icon=trine2
Exec=trine2
Terminal=false

If I run it from a console, with the command "trine2" the game starts loading,  and then it just closes.

Terminal output:

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1959
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2634
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2758
Pa_OpenDefaultStream failed Invalid sample rate

If I run it from a terminal with "kdesudo trine2" it works perfectly, but using this on a regular basis is less than ideal.

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.CA0106.pcm.modem.0:CARD=0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1959
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2634
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2758
Pa_OpenDefaultStream failed Invalid sample rate <<This appears only when I close the game

I don't think that any of that alsa nonsense has anything to do with this.

I'm putting this on Multimedia as this is actually a problem with a game, however I don't think the game itself is what's causing the problems.

Any ideas ?
Thanks in advance.

Last edited by LucetLux (2014-01-08 16:59:55)

Offline

#2 2013-10-19 02:41:05

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: [SOLVED] (ish) Trine 2 not working, ksmserver issue ?

I can confirm that this only happens when I use kdm, I tried using gdm and the game works just fine, however, not using kdm isn't really a "solution", any ideas as to why would kdm be causing this problem ?

Offline

#3 2013-10-19 19:38:04

sas
Member
Registered: 2009-11-24
Posts: 155

Re: [SOLVED] (ish) Trine 2 not working, ksmserver issue ?

1) Does it also happen when you start the game binary directly? Like so:

cd /opt/Trine2
export LD_LIBRARY_PATH=./lib/lib32
./bin/trine2_linux_32bit

2) Does it also happen when you start it in windowed mode? To do so, open the file ~/.frozenbyte/Trine2/options.txt in an editor, find the line...

setOption(renderingModule, "Windowed", false)

...and change false to true. Then run the game again.

3) What graphics driver are you using? Does hardware-accelerated 3D rendering work with other applications?

If it's one of the open-source drivers, you might get some more debug output by executing the following in the terminal, before starting the game from the same terminal:

export LIBGL_DEBUG=verbose
export MESA_DEBUG=true

4) After your KDE session crashes, does the log file ~/.xsession-errors include anything of interest?

Last edited by sas (2013-10-19 19:47:12)

Offline

#4 2014-01-04 01:00:14

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: [SOLVED] (ish) Trine 2 not working, ksmserver issue ?

Sorry I lost track of this thread, I hope it isn't too late.

Answering to your points;

1; No it doesn't happen, if I run it like that it only closes after the loading screen, but it doesn't crash kde.

2: If I run it on windowed mode it works just fine.

3: I'm using the catalyst proprietary drivers, most other things I've tried work fine, far better than using the opensource drivers, that's why I'm using the proprietary ones. i've only had problems with some windows applications on wine that could be related to the drivers.

4: I don't really know what could be considered of interest, but this looks like it's related:

kwin(22944) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 4294967295
kwin(22944) KWin::Client::readUserTimeMapTimestamp: User timestamp, final: 'ID: 85983238 ;WMCLASS: "trine2_linux_32bit" : "trine2_linux_32bit" ;Caption: "OpenGL test" ' : 194644424
kwin(22944) KWin::Workspace::allowClientActivation: Activation, compared: 'ID: 85983238 ;WMCLASS: "trine2_linux_32bit" : "trine2_linux_32bit" ;Caption: "OpenGL test" ' : 194644424 : 194639746 : true
kwin(22944) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(22944) KWin::Workspace::updateClientArea: Done.
kwin(22944) KWin::Workspace::allowFullClientRaising: Raising: Belongs to active application
kwin(22944) KWin::Workspace::updateClientArea: screens:  1 desktops:  4
kwin(22944) KWin::Workspace::updateClientArea: Done.
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x5200006
kwin(22944) KWin::Client::readUserTimeMapTimestamp: User timestamp, ASN: 4294967295

Thanks for your help, and sorry for the long delay.

Last edited by LucetLux (2014-01-04 01:00:55)

Offline

#5 2014-01-08 16:59:20

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: [SOLVED] (ish) Trine 2 not working, ksmserver issue ?

Well, nevermind, I "solved it", it had never occurred to me that the Windows version on wine would work way better than the native linux version, but surprisingly it does, so there's that....

Offline

Board footer

Powered by FluxBB