Skip to content

Network games crash immediate when -D_GLIBCXX_ASSERTIONS is added to the build

This is obviously primarily a bug in the upstream, but I wanted to post here in case someone thought adjusting how it was built by the PKGBUILD would be desirable.

Description:

After a network game starts (tested by joining and starting games from the lobby), after the loading screen finishes, the game crashes. Console output:

$ megaglest megaglest v3.13.0 Compiled using: GNUC: 140201 [64bit] platform: Linux-X64 endianness: little GIT: [Rev: 5604.3a5d459] - using STREFLOP [SSE] - [no-denormals] Game unique identifier is: 06e55166-ee27-11ef-affe-fd95e2b16f6a /usr/include/c++/14.2.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator [with _Tp = Glest::Game::NetworkCommand; _Alloc = std::allocatorGlest::Game::NetworkCommand; reference = Glest::Game::NetworkCommand&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Additional info:

Steps to reproduce:

  1. Enter lobby, host a game, join a game
  2. Host starts game
  3. After loading screen, the game crashes
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information