Jump to content

0 A.D. Crashes on Multiplayer


luchiz
 Share

Recommended Posts

Hey everyone

0 A.D. just crashed when I tried to host a multiplayer session with a friend. I got this error in my log right after I clicked the start game button:

 

GAME STARTED, ALL INIT COMPLETE
/usr/include/c++/15.1.1/array:210: constexpr std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::operator[](size_type) [with _Tp = std::pair<unsigned int, unsigned int>; long unsigned int _Nm = 2; reference = std::pair<unsigned int, unsigned int>&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
/usr/bin/0ad: line 9: 38514 Aborted                 (core dumped) "$pyrogenesis" "$@"

To reproduce:

  • Go to Multiplayer > Host New Game
  • Click Continue
  • Wait for another player to join the game
  • Click "Start Game"

I don't know if it's a bug in the Arch Linux official build or if it's really 0AD's source code. I tried hosting a multiplayer server without the other player and the problem persists.

Edited by luchiz
Grammar and clarity
Link to comment
Share on other sites

1 hour ago, luchiz said:

I'll try switching to Vulkan once I'll come back home. If it still doesn't work then it could be a bug in the engine itself and not the rendering stack.

No no, it's a known bug with OpenGL. IIRC the patch has been backported in the flatpak. It will also be in A27.1 which hasn't yet come out.

Link to comment
Share on other sites

Well apparently if people claim that Vulkan is faster than any Linux rendering API (which it clearly is) then I'll try switching to that. Also thanks a lot for the info

EDIT: It works! I changed from OpenGL to Vulkan and things seem to be great. The game loaded and I got to play with the friend I told you about in the OP. Thanks a lot!

Edited by luchiz
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...