glest / glest-source

Glest is a network multi-player cross-platform 3D real-time strategy (RTS) game, where you create armies of units and battle different factions.
https://glest.io
GNU General Public License v3.0
58 stars 40 forks source link

if headless server running, starting new instance of zetaglest produces excessive output #256

Closed andy5995 closed 5 years ago

andy5995 commented 6 years ago

Running a headless server

In another window, start an instance of zetaglest and selecting "custom game", this message appears in the console. Seems like a lot of unnecessary output.

The message might simply read:

"address already in use. Another instance of ZetaGlest is probably running." And provide a little usage output for how to listen on another port.

*ERROR* [2018-10-02 12:32:10] In [server_interface.cpp::ServerInterface Line: 107] Warning Server admin port bind/listen error:
Error binding socket sock = 21, address [127.0.0.1] port = 61355 err = -1, error = (Error: 98 - [Address already in use])

Stack Trace:
./zetaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x564885d8309c] line: 0
./zetaglest:Shared::Platform::ServerSocket::bind(int)address [0x564885dc207b] line: 0
./zetaglest:Shared::Platform::ServerSocket::listen(int)address [0x564885dc2335] line: 0
./zetaglest:Glest::Game::ServerInterface::ServerInterface(bool, Glest::Game::ClientLagCallbackInterface*)address [0x564885b6554e] line: 0
./zetaglest:Glest::Game::NetworkManager::init(Glest::Game::NetworkRole, bool)address [0x564885b26e02] line: 0
./zetaglest:Glest::Game::MenuStateCustomGame::MenuStateCustomGame(Glest::Game::Program*, Glest::Game::MainMenu*, bool, Glest::Game::ParentMenuState, bool, Glest::Game::GameSettings*, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)address [0x564885a23d78] line: 0
./zetaglest:Glest::Game::MenuStateNewGame::mouseClick(int, int, Shared::Platform::MouseButton)address [0x564885a9e89d] line: 0
./zetaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x5648859607e2] line: 0
./zetaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0x564885d941cc] line: 0
./zetaglest:Shared::Platform::Window::handleEvent()address [0x564885d95fac] line: 0
./zetaglest:Glest::Game::glestMain(int, char**)address [0x56488596ea07] line: 0
./zetaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x564885972c44] line: 0
./zetaglest:Glest::Game::glestMainWrapper(int, char**)address [0x564885972e1d] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7facb263eb17] line: 0
./zetaglest:_start()address [0x56488579233a] line: 0