Author Topic: MG 3.5.0: Error [i>=upCellCount in Display::setUpImage]  (Read 1569 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
This just happened to me on a 2 humans (one tech, one romans) + 1 ultra CPU (romans) against 3 ultra CPUs (2 tech, 1 romans) game while I think I was pressing buttons to produce units (but not sure):

Code: [Select]
v3.5.0-GNUC: 40401 [64bit]-Apr 20 2011 09:55:20, SVN: [Rev: 2145], [STREFLOP]
Warning, Server and client are using the same version but different platforms.

Server: v3.5.0-GNUC: 40401 [64bit]-Apr 20 2011 09:55:20
Client: v3.5.0-VC++: 1500-Apr 20 2011 10:02:56 player [Daveman]
[2011-05-06 16:30:06] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 16:30:06] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 16:30:06] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 16:30:06] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 16:56:44] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp::update Line: 919] Error [i>=upCellCount in Display::setUpImage]
[2011-05-06 16:56:44] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 342] [i>=upCellCount in Display::setUpImage] gameInitialized = 1, program = 0x1d4cb80
[2011-05-06 16:56:45] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 433] [i>=upCellCount in Display::setUpImage
Stack Trace:
./bin/megaglest.bin:Glest::Game::glestMain(int, char**) address [0x6493e4] line: 2647
./bin/megaglest.bin:Glest::Game::glestMainWrapper(int, char**) address [0x64c53e] line: 2706
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7f7174bdfeff] line: 0
./bin/megaglest.bin() [0x572a39] address [0x572a39] line: 116
]
terminate called after throwing an instance of 'std::runtime_error'
  what():  i>=upCellCount in Display::setUpImage
Aborted (core dumped)

(Proper) stack trace:

Code: [Select]
warning: Can't read pathname for load map: Eingabe-/Ausgabefehler.
Core was generated by `./bin/megaglest.bin'.
Program terminated with signal 6, Aborted.
#0  0x00007f7174bf4d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007f7174bf4d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f7174bf8ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f71754ab6dd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007f71754a9926 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f71754a9953 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007f71754a9a5e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x000000000062ecd5 in Glest::Game::Display::setUpImage (this=<value optimized out>, i=<value optimized out>, image=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/gui/display.cpp:66
#7  0x000000000062d612 in Glest::Game::Gui::computeDisplay (this=0x7f7158014588) at /home/softcoder/Code/megaglest/trunk/source/glest_game/gui/gui.cpp:685
#8  0x000000000065028a in Glest::Game::Program::loopWorker (this=0x1d4cb80) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:331
#9  0x000000000064db55 in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#10 0x00000000006493e4 in Glest::Game::glestMain (argc=1512271184, argv=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2648
#11 0x000000000064c53e in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff5a237e18) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2704
#12 0x00007f7174bdfeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000572a39 in _start () at ../sysdeps/x86_64/elf/start.S:113
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 · · ·

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: MG 3.5.0: Error [i>=upCellCount in Display::setUpImage]
« Reply #1 on: 6 May 2011, 15:50:32 »
And again... looks like the same error. Daveman is from down under, I'm from Germany, so network issues are not unlikely to be in the mix.

This time I had switched my camera back to my first base which was on the other side of the map (by clicking on the mini map), and was just drawing a selection box around a bunch of units there. I have this in my .ini in case it would matter:
MaxUnitSelectCount=64

Code: [Select]
v3.5.0-GNUC: 40401 [64bit]-Apr 20 2011 09:55:20, SVN: [Rev: 2145], [STREFLOP]
Warning, Server and client are using the same version but different platforms.

Server: v3.5.0-GNUC: 40401 [64bit]-Apr 20 2011 09:55:20
Client: v3.5.0-VC++: 1500-Apr 20 2011 10:02:56 player [Daveman]
[2011-05-06 17:17:28] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 17:17:28] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 17:17:28] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 17:17:28] *ERROR* SOCKET WRITE TIMEOUT In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/platform/posix/socket.cpp::isWritable Line: 1435] i = 0 sock = 14
[2011-05-06 17:46:35] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp::update Line: 919] Error [i>=upCellCount in Display::setUpImage]
[2011-05-06 17:46:35] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp::mouseUpLeft Line: 1228] Error [i>=upCellCount in Display::setUpImage]
[2011-05-06 17:46:35] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 342] [i>=upCellCount in Display::setUpImage] gameInitialized = 1, program = 0x166bb80
[2011-05-06 17:46:36] *ERROR* In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 433] [i>=upCellCount in Display::setUpImage
Stack Trace:
./bin/megaglest.bin:Glest::Game::glestMain(int, char**) address [0x6493e4] line: 2647
./bin/megaglest.bin:Glest::Game::glestMainWrapper(int, char**) address [0x64c53e] line: 2706
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fc1f6875eff] line: 0
./bin/megaglest.bin() [0x572a39] address [0x572a39] line: 116
]
Aborted (core dumped)

And the backtrace:
Code: [Select]
$ gdb -q -n -ex bt -batch bin/megaglest.bin core
[..]
Core was generated by `./bin/megaglest.bin'.
Program terminated with signal 6, Aborted.
#0  0x00007f7174bf4d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#0  0x00007f7174bf4d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f7174bf8ab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f71754ab6dd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007f71754a9926 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007f71754a9953 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007f71754a9a5e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x000000000062ecd5 in Glest::Game::Display::setUpImage (this=<value optimized out>, i=<value optimized out>, image=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/gui/display.cpp:66
#7  0x000000000062d612 in Glest::Game::Gui::computeDisplay (this=0x7f7158014588) at /home/softcoder/Code/megaglest/trunk/source/glest_game/gui/gui.cpp:685
#8  0x000000000065028a in Glest::Game::Program::loopWorker (this=0x1d4cb80) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:331
#9  0x000000000064db55 in Glest::Game::ExceptionHandler::handleRuntimeError(char const*) ()
#10 0x00000000006493e4 in Glest::Game::glestMain (argc=1512271184, argv=<value optimized out>) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2648
#11 0x000000000064c53e in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff5a237e18) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:2704
#12 0x00007f7174bdfeff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#13 0x0000000000572a39 in _start () at ../sysdeps/x86_64/elf/start.S:113
« Last Edit: 6 May 2011, 16:00:15 by tomreyn »
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 · · ·

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: MG 3.5.0: Error [i>=upCellCount in Display::setUpImage]
« Reply #2 on: 6 May 2011, 18:01:03 »
Turns out MaxUnitSelectCount was indeed the cause of this.It should never be higher than 32.
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 · · ·