Closed jamerlan closed 9 years ago
Probably this bug happens when you are trying to join a battleroom when you have no map
relevant parts from stacktrace:
0 + 4519592515
BattleRoomTab::UpdateMapInfoSummary() + 1253
BattleRoomTab::UpdateBattleInfo(wxString const&) + 1025
BattleRoomTab::SetBattle(IBattle*) + 1325
Ui::OnJoinedBattle(IBattle&) + 64
ServerEvents::OnJoinedBattle(int, std::1::basic_string<char, std::__1::char_traits
uncatched exception i guess:
https://github.com/springlobby/springlobby/blob/master/src/gui/hosting/battleroomtab.cpp#L501
@Usaga:
we should not use exceptions imo. c++ compilers sadly doesn't detect uncatched exceptions at compile time :-|
oh, i'm tired, sorry this exception should be catched, no clue why it crashes in this function. but still the usage of the exception in this function is weird. it is not needed.
@jamerlan:
can you please test if the commit fixes the crash?
I did not wrote that code nor modifed it, so do not know why it uses exceptions. It is really weird...
Oh shi... Why I done this :-)
no clue if my change fixed the crash, it shouldn't, but lets see...
Here is a test version https://www.dropbox.com/s/6bnqxmwv5x4d9k2/SpringLobby-0.226-4-g7bebb06-OSX-10.10.dmg?dl=0 Seems to work for me. I didn't notice before as I always downloaded the map then tried to join the room :)
He said it works :) https://springrts.com/phpbb/viewtopic.php?f=65&t=32970&start=40
great, thanks!
crash when you try to join a battleroom
http://pastebin.com/bUWuQwYn