MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
348 stars 89 forks source link

stacktrace output after MG appears to exit normally #149

Closed andy5995 closed 7 years ago

andy5995 commented 7 years ago

Several times now I've noticed this in the terminal after exiting Megaglest (MG closes, reports no errors in the GUI, but this is output to the terminal):

I'm including all the output from the time MG is executed; the stacktrace is near the end.

This may only happen after after I host a game on my server, but not when I play a game. I'll be sure to take note of that in the future.

megaglest v3.12-dev
Compiled using: GNUC: 60300 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: 5582.bc74eebb] - using STREFLOP [SSE] - [no-denormals]
Auto Change resolution to (1280 x 1024) from (1024 x 768)
MainWindow forced change of resolution to desktop values (1280 x 1024) instead of (1024 x 768)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Game unique identifier is: 327e89d8-f16d-11e6-ba7f-a3b1f4ab840b
** #2 Socket peek error for sock = -1 err = -1 lastSocketError = 104 mustGetData = 0
** Disconnecting sock = -1
Game unique identifier is: 1d81dc22-f16f-11e6-a5a2-819f54204190
*TESTING*: START Waiting for lagging client playerIndex = 0 [Issh] clientLagCount = 23.000000 [0.000000]
**WARNING** Detected lag from client: 0 networkPauseGameForLaggedClients: 1
[CMDR] Pausing game for lagging client(s), current world frame [65218]
*TESTING*: FINISHED Waiting for lagging client playerIndex = 0 [Issh]
==> Requested Resume Game after Pause for lagging client(s)...
[CMDR] Resuming game after Pause for lagging client(s), current world frame [65220]
** #2 Socket peek error for sock = 27 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 27
** Disconnecting sock = 27
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
** #2 Socket peek error for sock = 26 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 26
** Disconnecting sock = 26
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
** #2 Socket peek error for sock = 23 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 23
** Disconnecting sock = 23
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
terminate called after throwing an instance of 'Shared::Platform::megaglest_runtime_error'
  what():  In [thread.cpp::removeThreadFromList Line: 164] iterFind == Thread::threadList.end() Thread::threadList.size() = 1
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x5613f3516c4c] line: 0
./megaglest:Shared::Platform::Thread::removeThreadFromList()address [0x5613f3517a60] line: 0
./megaglest:Shared::Platform::Thread::~Thread()address [0x5613f35186ac] line: 0
./megaglest:Shared::PlatformCommon::BaseThread::~BaseThread()address [0x5613f34c314e] line: 0
./megaglest:Shared::Platform::Thread::shutdownThreads()address [0x5613f3517e90] line: 0
./megaglest:()address [0x5613f30ece98] line: 0
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x5613f3109b4b] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f2fb48892b1] line: 0
./megaglest:_start()address [0x5613f2f2db0a] line: 0

Aborted
andy@oceanus:~/src/megaglest-source/mk/linux$ 
andy5995 commented 7 years ago

This may only happen when "auto-pause" for lagging clients is turned on, and it's used during the game at some point. During this game, issh almost lagged out once.

andy5995 commented 7 years ago

Auto-pause or pause is not likely related.

The sequence of events in the case below was:

  1. I started MG
  2. Joined titi's server
  3. disconnected and hosted so he could download a map
  4. after titi connected and downloaded a map, he hosted
  5. I joined his server
  6. We played a game with no pausing
  7. I exited through the menus and got this stacktrace

This stacktrace appears to be the same as the one above, so I won't post anymore until I have more info.


megaglest v3.12-dev
Compiled using: GNUC: 60300 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: 5584.48186124] - using STREFLOP [SSE] - [no-denormals]
Auto Change resolution to (1280 x 1024) from (1024 x 768)
MainWindow forced change of resolution to desktop values (1280 x 1024) instead of (1024 x 768)
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
** #2 Socket peek error for sock = 20 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 20
** Disconnecting sock = 20
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
** #2 Socket peek error for sock = -1 err = -1 lastSocketError = 104 mustGetData = 0
** Disconnecting sock = -1
** #2 Socket peek error for sock = 23 err = 0 lastSocketError = 0 mustGetData = 0
** LAST CHANCE for disconnection check for sock = 23
** Disconnecting sock = 23
IsConnected socket has disconnected sock = -1 err = 0 lastSocketError = 0
Game unique identifier is: 529315aa-f3d8-11e6-aaf0-630eb6c8a87e
terminate called after throwing an instance of 'Shared::Platform::megaglest_runtime_error'
  what():  In [thread.cpp::removeThreadFromList Line: 164] iterFind == Thread::threadList.end() Thread::threadList.size() = 1
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x555e3acd9c2c] line: 0
./megaglest:Shared::Platform::Thread::removeThreadFromList()address [0x555e3acdaa40] line: 0
./megaglest:Shared::Platform::Thread::~Thread()address [0x555e3acdb68c] line: 0
./megaglest:Shared::PlatformCommon::BaseThread::~BaseThread()address [0x555e3ac8612e] line: 0
./megaglest:Shared::Platform::Thread::shutdownThreads()address [0x555e3acdae70] line: 0
./megaglest:()address [0x555e3a8afe98] line: 0
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x555e3a8ccb4b] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f18888132b1] line: 0
./megaglest:_start()address [0x555e3a6f0b0a] line: 0

Aborted
andy5995 commented 7 years ago

This issue a duplicate of #142 ?

softcoder commented 7 years ago

Closing as duplicate