Author Topic: [fixed] r4362: Host reports: Value not found on list box: [***missing***]  (Read 600 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
When you host a game, and a client who is missing the currently configured mod joins (I assume that's the cause, it could also be the faction setting of "*Random*"), the server will spill out this error message repeatedly:
Code: [Select]
[2013-06-03 03:30:00] *ERROR* In [components.cpp::setSelectedItem Line: 439]
instanceName [listBoxFactions1] idx = 0 items[idx] = [Natulka]
[2013-06-03 03:30:00] *ERROR* In [components.cpp::setSelectedItem Line: 439]
instanceName [listBoxFactions1] idx = 1 items[idx] = [*Random*]
[2013-06-03 03:30:01] *ERROR* In [menu_state_custom_game.cpp::switchSetupForSlots Line: 2203] Error [[listBoxFactions1] Value not found on list box: [***missing***]
Stack Trace:
./megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xa1b012] line: 237
./megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool)address [0x555ea9] line: 441
./megaglest:Glest::Game::MenuStateCustomGame::switchSetupForSlots(Glest::Game::SwitchSetupRequest**, Glest::Game::ServerInterface*&, int, int, bool)address [0x7531df] line: 2183
./megaglest:Glest::Game::MenuStateCustomGame::update()address [0x76fd6f] line: 2350
./megaglest:Glest::Game::Program::loopWorker()address [0x6ac9c0] line: 459
./megaglest:Glest::Game::glestMain(int, char**)address [0x690790] line: 5121
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x694276] line: 5368
./megaglest:Glest::Game::glestMainWrapper(int, char**)address [0x69440e] line: 5440
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f5272616ea5] line: 0
./megaglest() [0x514bb9]address [0x514bb9]
]

I think this exception should be caught and handled, no need for an error message and stacktrace there, since it makes people think that an unhandled error occurred, when there is really not a problem.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Please try 4369 to see if this is fixed now.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
That's [fixed] for me, thanks.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything