2025-06-14 04:45 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002166Spring engineLinuxpublic2010-10-29 23:48
Reporterspliff 
Assigned ToKloot 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version0.82.7 
Summary0002166: Can't run two instances of Spring on one PC
DescriptionI'd like to be able to run spring head-to-head on one PC for testing purposes. I have the screen space and resources to handle it but it looks like spring crashes when it can't (re)init OpenAL. It also looks like it uses a fixed UDP port and conflicts with the running instance there.
Additional InformationSuggest disabling sound and moving to the next available UDP port. If the second instance can't host at least allow it to join.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (3,381 bytes) 2010-10-08 12:38 -
    LogOutput initialized.
    Spring 0.82+.4.0 (Debug)
    Build date/time: Oct  6 2010 18:16:46
    Available log subsystems: Texture, Piece-detail, Piece, Model-detail, Model, CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, Sound
    Enabled log subsystems: Texture, Piece-detail, Piece, Model-detail, Model, Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/spliff/.springrc"
    [CMyMath::Init] CPU SSE mask: 888, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 1,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 64bit native mode
    Adding /mnt/work/workspace/spring-patch-git/linux/final/ to directories
    Adding /home/spliff/.spring/ to directories
    Adding /share/games/spring/ to directories
    Using read-write data directory: /mnt/work/workspace/spring-patch-git/linux/final/
    Using read-only data directory: /home/spliff/.spring/
    Scanning: /home/spliff/.spring/maps
    Scanning: /home/spliff/.spring/base
    Scanning: /home/spliff/.spring/mods
    Scanning: /mnt/work/workspace/spring-patch-git/linux/final/base
    Supported Video modes: 2560x1600, 1280x800
    Video mode set to 1024x768/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   1.5 Mesa 7.8.2
    [      0] GL:   DRI R300 Project
    [      0] GL:   Mesa DRI R300 (RV560 7280) 20090101  TCL
    [      0] GLSL: (null)
    [      0] GLEW: 1.5.6
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Connecting to local server
    [      0] Network error Error: Failed to initialize UDP.
    Spring may already be running.
    [      0] Starting GameServer: 6 ms
    [      0] Thread error: Network error Error: Failed to initialize UDP.
    Spring may already be running.
    [      0] Aborted (SIGABRT) in spring 0.82+.4.0 (Debug)
    [      0] Stacktrace:
    [      0] ./spring() [0xfa2f4f]
    [      0] /lib/libc.so.6(+0x324c0) [0x7f4d5b0b24c0]
    [      0] /lib/libc.so.6(gsignal+0x35) [0x7f4d5b0b2445]
    [      0] /lib/libc.so.6(abort+0x180) [0x7f4d5b0b3860]
    [      0] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0xfd) [0x7f4d5b94c95d]
    [      0] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/libstdc++.so.6(+0xccc86) [0x7f4d5b94ac86]
    [      0] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/libstdc++.so.6(+0xcccb3) [0x7f4d5b94acb3]
    [      0] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/libstdc++.so.6(+0xccdbe) [0x7f4d5b94adbe]
    [      0] ./spring() [0xf9e4e6]
    [      0] ./spring() [0xf560d2]
    [      0] ./spring() [0xf567e1]
    [      0] /usr/lib/libboost_thread-mt-1_42.so.1.42.0(thread_proxy+0x79) [0x7f4d5cca9cd9]
    [      0] /lib/libpthread.so.0(+0x6c3a) [0x7f4d5e64fc3a]
    [      0] /lib/libc.so.6(clone+0x6d) [0x7f4d5b151a9d]
    [      0] Translated Stacktrace:
    [      0] /www/spring-patch-git/spring/rts/System/Platform/Linux/CrashHandler.cpp:249
    [      0] Sound: Could not open a sound device, disabling sounds
    [      0] Sound: CSound::InitAL: 
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] /www/spring-patch-git/spring/rts/System/Platform/errorhandler.cpp:77
    [      0] /www/spring-patch-git/spring/rts/System/Main.cpp:63
    [      0] /usr/include/boost-1_42/boost/thread/detail/thread.hpp:57
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    
    txt file icon infolog.txt (3,381 bytes) 2010-10-08 12:38 +

-Relationships
+Relationships

-Notes

~0005707

SirMaverick (reporter)

Last edited: 2010-10-08 14:58

2 instances or more should work fine, always worked for me.

If you run 2 hosts you need to specify different HostPort (script.txt). Running several clients should not be a problem as they bind random ports ( = they are not listening for incoming connections).

Edit: Sound wasn't problem either. Haven't tested master yet.

~0005727

hoijui (reporter)

Last edited: 2010-10-13 10:09

yeah, also never had a problem with that under linux. SirMav is also under linux, spliff under windows i guess.
disable sound with NoSound=1 in spring-config.

~0005799

Kloot (developer)

There was a bug causing Spring to bind a socket even for local games started through the menu; you may have run into that one.

If you want to start two instances from the same script.txt, you either have to specify different host ports (as said before) or add the line "OnlyLocal=1;" (new option) to its [GAME] section.
+Notes

-Issue History
Date Modified Username Field Change
2010-10-08 12:38 spliff New Issue
2010-10-08 12:38 spliff File Added: infolog.txt
2010-10-08 14:35 SirMaverick Note Added: 0005707
2010-10-08 14:58 SirMaverick Note Edited: 0005707
2010-10-12 16:35 hoijui Note Added: 0005727
2010-10-13 10:09 hoijui Note Edited: 0005727
2010-10-29 23:47 Kloot Note Added: 0005799
2010-10-29 23:48 Kloot Status new => resolved
2010-10-29 23:48 Kloot Fixed in Version => 0.82.6.1+git
2010-10-29 23:48 Kloot Resolution open => fixed
2010-10-29 23:48 Kloot Assigned To => Kloot
+Issue History