Please help.

Please help.

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Please help.

Post by mathmaster12345 »

I'm a new user of spring and had an error that I can't cipher. The screen for the spring program shows up for less ~.5 seconds and the completely dissapears. Here is the error message:
Using configuration source: "/home/administrator/.springrc"
[CMyMath::Init] CPU SSE mask: 127, flags:
SSE 1.0: 1, SSE 2.0: 1
SSE 3.0: 1, SSSE 3.0: 1
SSE 4.1: 1, SSE 4.2: 1
SSE 4.0A: 0, SSE 5.0A: 0
using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Linux 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64
OS: 64bit native mode
[Watchdog] Installed (HangTimeout: 10sec)
Available log sections: Font, VFS, Piece, KeyBindings, Sound, CSMFGroundTextures, RoamMeshDrawer, BumpWater, DynWater, SkyBox, FarTextureHandler, ModelDrawer, OBJParser, WorldObjectModelRenderer, Texture, CollisionVolume, GroundMoveType, UnitScript, AutohostInterface, ArchiveScanner, Path, Model
Enabled log sections: Sound(LOG_LEVEL_INFO)
Enable or disable log sections using the LogSections configuration key
or the SPRING_LOG_SECTIONS environment variable (both comma separated).
Use "none" to disable the default log sections.
LogOutput initialized.
Spring 88.0 (OMP)
Build date/time: Aug 27 2013 16:50:21
Build environment: boost-105300, GNU libstdc++ version 20130815
Compiler: gcc-4.8.1
Using read-write data directory: /home/administrator/.spring/
Using read-only data directory: /usr/share/games/spring/
Using read-only data directory: /usr/lib/spring/
Scanning: /usr/share/games/spring/base
Supported Video modes: 1600x900, 1440x900, 1360x768, 1152x864, 1024x768, 800x600, 640x480
Video mode set to 1440x900/32bit
[f=0000000] SDL version: 1.2.15
[f=0000000] GL version: 3.0 Mesa 9.2.1
[f=0000000] GL vendor: Intel Open Source Technology Center
[f=0000000] GL renderer: Mesa DRI Intel(R) Ivybridge Mobile
[f=0000000] GLSL version: 1.30
[f=0000000] GLEW version: 1.8.0
[f=0000000] Video RAM: unknown
[f=0000000] Installing OpenGL-DebugMessageHandler
[f=0000000] GL info:
haveARB: 1, haveGLSL: 0, ATI hacks: 0
FBO support: 1, NPOT-texture support: 1, 24bit Z-buffer support: 1
maximum texture size: 8192, compress MIP-map textures: 1
[f=0000000] [Sound] OpenAL info:
[f=0000000] [Sound] Available Devices:
[f=0000000] [Sound] OpenAL Soft
[f=0000000] [Sound] Device: OpenAL Soft
[f=0000000] [Sound] Vendor: OpenAL Community
[f=0000000] [Sound] Version: 1.1 ALSOFT 1.14
[f=0000000] [Sound] Renderer: OpenAL Soft
[f=0000000] [Sound] AL Extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points
[f=0000000] [Sound] ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
[f=0000000] Joysticks found: 1
[f=0000000] Using joystick 0: Logitech Logitech Dual Action
[f=0000000] CPU Cores: 4
[f=0000000] CPU affinity not set
[f=0000000] [ArchiveScanner] Warning: No game selected checksum: not found (0)
[f=0000000] [ArchiveScanner] Warning: No map selected checksum: not found (0)
[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 88.0 (OMP)
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> /lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0) [0x7f206155dbb0]
[f=0000000] Error: <1> ??:?
[f=0000000] Error: <2> ??:?
[f=0000000] Error: <3> ??:?
[f=0000000] Error: <4> /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e) [0x7f2061555f6e]
[f=0000000] Error: <5> /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f20612809cd]
When I ran spring in a termianl, I also had a message that came after it saying:

terminate called after throwing an instance of 'boost::thread_interrupted'
Aborted

I tried downloading the source to compile it, however, being a noob with computers, I double clicked on the executable provided and was interested to find that the screen that showed for the execuatble was the same that had been dissapearing suddenly, except this time, with this specifically provided executable, the screen didn't dissapear instantly. I'm running linux mint 15 and here is the output of uname -a:

Linux GLaDOS 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Any and all help on this matter is appreciated, alothough I have a funny feeling that I'm just missing a library (which has been the case recently).
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Please help.

Post by Jools »

Spring 88.0 (OMP
Why not use the latest Spring? It's 96.0
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

I acctually got this version through apt-get, and for some reason synaptic's corrupted. Also, I don't know how or where to download the latest version of spring. If it involves compiling, I'm just not going to bother.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Please help.

Post by Jools »

http://springrts.com/wiki/Download

Either use the static linux builds or see the linux setup guide for your distro.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Thank you very much, but I still don't know how to install kernel panic to it, all I read was how to install a game under the home directory, and I guess that's not going to be used.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Okay, I got spring working. Now, whenever I try to select a level in kernel panic, the game doesn't do anything, it's as if it completely ignores my click. Can someone help with that?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Please help.

Post by abma »

which spring version are you using?

mouse clicks not working was a very specific bug which is fixed in spring 96.0: http://springrts.com/mantis/view.php?id=4091

so it seems you are using an old version again.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Please help.

Post by zwzsg »

mathmaster12345 wrote:Okay, I got spring working. Now, whenever I try to select a level in kernel panic, the game doesn't do anything, it's as if it completely ignores my click. Can someone help with that?
Or maybe it's because Spring.Restart doesn't restart the game? But then usually it crashes, instead of doing nothing. Could you upload your infolog.txt? I made Kernel Panic dumps much info in infolog.txt when it tries to do do a Spring.Restart.


abma: Kernel Panic single player menu is implemented as a widget, not as a gadget, so it was not affected by bug 4091. Beside, mathmaster12345 said "whenever I try to select a level in kernel panic", which I suppose means "select a mission", which isn't the first menu of KP. So if he reaches the "mission select" menu, that means the clicking works. But the action that should happen when a mission is clicked involves recopying a start script (which can fails due to missing write permission, to ending in another folder than expected, or whatever) and running Spring.Restart, which is known to be prone to bugs. In fact I am not even sure Spring.Restart ever worked in Linux, and it gets broken so often for Windows I've come to regret relying upon it.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Okay, I'm running spring 96 with kernel panic 4.6, and here is the infolog.txt (note: I pressed all the mission select buttons, so this is a BIG file). Also, scrolling upward from the bottom of the file I noticed that on line 2161 it says
"[f=0000249] Error: [Spring.Restart] error No such file or directory".
When I installed kernel panic I clicked on the download link I got a windows standalone version, from where I copied the maps and games folder from into the standalone spring folder. Also, this bug only ever happened when I tried pressing a button in a submenu.
Attachments
infolog.txt
(53.13 KiB) Downloaded 7 times
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Please help.

Post by zwzsg »

Code: Select all

[f=0000000] Spring Direct Launch 2: Ok, calling Spring.Restart("","[GAME]{..}") now!
[f=0000000] Error: [Spring.Restart] error No such file or directory
[f=0000000] Spring Direct Launch 2: Just called Spring.Restart("","[GAME]{..}")
[f=0000000] Spring Direct Launch 2: Wait, we shouldn't be here, should have restarted or crashed or quitted by now.
Yes, this is the part that does not work.

I do not know why it says "error No such file or directory" because, in this case, I pass the startscript content, as a big string, not the startscript as a file, to Spring.Restart.


For missions with small startscripts (under 32k), you can try extracting them from /games/Kernel_Panic_4.6.sd7 and passing the txt as a parameter to Spring. But that's very inconvenient and shouldn't have had to do that.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

So is there a way to fix this directly? Or is it an inbuilt error that I should just give up on?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Please help.

Post by zwzsg »

I think the bug you have is the same as http://springrts.com/mantis/view.php?id=4329

Fixing it directly, well only if you are an experienced C++ coder and willing to help developing Spring.

However, as I said in my previous post, there are ways to play skirmishes and missions without using that buggy Spring.Restart:
  • Use the menu inside Kernel Panic to select a mission
  • Nothing happens or Spring crash.
  • However, the files script.txt and script.sav are still created!
  • Find the file script.txt (probably next to Spring, or in Spring data directory).
  • Open it in a text editor to check it's the correct one (like, for a mission, it should contains the tags MissionScript, MissionTitle, MissionBriefing).
  • Run Spring with script.txt as argument.
  • In Windows it's as simple as drag and dropping the file script.txt over the file spring.exe, in Linux, idk, maybe you'll need a commandline console or something
You can also use an online lobby, host a game, and while alone in a battleroom, add some AIs. SpringLobby even allows you to create a single player battleroom without logging online. Just: make sure to only use "Kernel Panic AI" or "Fair KPAI". Other AIs won't work.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Well, it loaded. Then, it crashed. I *think* it has to do with a missing/faulty runtime library on my part as I've been having those kinds of issues lately. Here is the error output.
Attachments
infolog.txt
(18.39 KiB) Downloaded 13 times
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Please help.

Post by zwzsg »

What a shame. :(

Have you tried another map? Hex Farm is a bit special, as it disable engine rendering of the terrrain, which may sometimes displease the engine / the graphic card driver / ...
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Frankly, I don't think I can get that far :( . At this point it's not really worth it anymore. I guess that this thread will only be a memorial to how much I accidentally messed up my computer (through which methods it occured I can still only wonder about). It is at this point which I ask a moderator to close this thread.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Please help.

Post by zwzsg »

No. It is yet another reminder of how unreliable, rough, and unfriendly Spring is.

It's none of your fault. I just remembered that, for exemple, the bug you have with mission not starting, was already known, reported and fixed (in january), but a new "stable" build with the bugfix has not yet been released.
mathmaster12345
Posts: 9
Joined: 12 Apr 2014, 16:06

Re: Please help.

Post by mathmaster12345 »

Ah. Still, this discussion has largely become useless in any case and my computer has enough bugs as it is. I guess I'll just come back in a month or so.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Please help.

Post by knorke »

I *think* it has to do with a missing/faulty runtime library on my part as I've been having those kinds of issues lately.
Maybe. No idea of Linux so might be totally off:
Your infolog mentions libc.
Here someone wrote:
"Missing a library, look it up, just install the latest one. And it should work." and links to http://www.gnu.org/software/libc/libc.html
Post Reply

Return to “Linux”