Author Topic: Ubuntu 13.04 32bit signal 11 SIGSEGV error on scenario startup V3.7.1 r3948  (Read 1485 times)

jdallara

  • Guest
Loaded latest version from sourceforge.  Game starts fine, audio and graphics work, can edit the options screen.  Click New Game.  Select either Tutorial or Scenario.  Select tutorial or scenario desired.  Game starts loading, starts the music and then dies.

CPU: Pentium Dual-Core E5200 @2.5 GHZ x 2, Intel G33 x86/MMX/SSE2 graphics, 2GB memory, Ubuntu 13.04 32bit

error.log:
jon@jon-desktop:~/.megaglest$ more error.log
[2013-07-14 22:17:56] Runtime Error information:
======================================================
In [/home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp::handle
SIGSEGV Line: 4934] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)
address [0x83a6b45] line: 0
./megaglest:Glest::Game::handleSIGSEGV(int)address [0x8374881] line: 4939
[0xb7782400]address [0xb7782400] line: 0

glest.log:
Scenario: Beginner 1
Faction types
State cells
Unloading Map
Compute minimap surface
Generate elements
Creating AI for faction 0
Initializing renderer
Waiting for network players
Starting faction music
Launching game

jon@jon-desktop:~/.megaglest$ tail debug.log
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3455 / 5626, cipher = 4135393040
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3456 / 5626, cipher = 2336731021
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3457 / 5626, cipher = 1643106828
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3458 / 5626, cipher = 3859667363
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3459 / 5626, cipher = 3310574615
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3460 / 5626, cipher = 2222225650
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3461 / 5626, cipher = 965258698
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3462 / 5626, cipher = 2404613154
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3463 / 5626, cipher = 3532504305
[2013-07-14 22:17:35] In [/home/softcoder/Code/megaglest/trunk/source/shared_lib/sources/util/checksum.cpp::addFileToSum Line: 311] 3464 / 5626, cipher = 3015417314

The problem occurs regardless of video settings or scenario I select.  I'm hoping someone can shed some light on what is going on.  From what I've been able to see thus far the game looks very interesting and well done.

Thanks in advance,

Jon.
 

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Hi Jon,

thanks for submitting a bug report.

The problem you are facing with this six year old integrated Intel G33 graphics chipset is probably simply performance related.

Nevertheless we can try to see whether we can get the game working for you.

Did you activate debug logging on purpose? Normally it's off by default. It can cause some issues by itself (most notably it takes some resources), so it's best to keep it off unless a developer recommends to use it during a specific test (or you want to hunt for an error yourself). If you are not aware of making this change or are trying MegaGlest again after not using it for some months, then I suggest you move your ~/.megaglest and ~/.config/megaglest directories out of the way and have MegaGlest create them from scratch as you start the game.

Please test whether you are able to reproduce the issue you are describing on MegaGlest 3.8.0 beta1, since there were a lot of changes since 3.7.1.

If it's still reproducible with the beta then please run the following in a terminal window to install header files and the Gnu Debugger:
Code: [Select]
sudo apt-get update
sudo apt-get install gdb libsdl1.2-dev libxerces-c2-dev libalut-dev libgl1-mesa-dev libglu1-mesa-dev libvorbis-dev libwxbase2.8-dev libwxgtk2.8-dev libx11-dev liblua5.1-0-dev libjpeg-dev libpng12-dev libcurl4-gnutls-dev libxml2-dev libircclient-dev libglew-dev libftgl-dev libfribidi-dev libvlc-dev libcppunit-dev

Then, assuming you installed MegaGlest to a "megaglest" subdirectory below your home directory (that's the default install location), run this in a terminal window:
Code: [Select]
cd ~/megaglest
ulimit -c unlimited
rm -f core*
./start_megaglest --opengl-info > ~/megaglest_opengl.txt 2>&1
./start_megaglest --show-ini-settings > ~/megaglest_settings.txt 2>&1
./start_megaglest --verbose ~/megaglest_verbose.txt 2>&1
[code]

The last line will keep the game running - make it crash again. Then, in the same window, do:
[code]
gdb -q -n -ex "bt" -batch ./megaglest core* > ~/megaglest_bt.txt 2>&1

Now copy all the commands you ran and the output returned from your terminal window, starting at cd ~/megaglest, and paste it to a text editor. Save this file as ~/megaglest_output.txt, that's in a file called megaglest_output.txt, stored in your home directory (that's not the same as the Desktop).

Finally, do this:
Code: [Select]
cd ~
tar cJf megaglest_jdallara.tar.xz megaglest_*.txt
rm megaglest_*.txt

You should end up with a compressed file megaglest_jdallara.tar.xz in your home directory. Upload this to some free file hosting site and post the download location here.
« Last Edit: 15 July 2013, 17:23:38 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 · · ·

jdallara

  • Guest
Turned on debug mode to see if I could figure out the problem.  I'll try the beta version.  May be a day or two before I can post the out come.

jdallara

  • Guest
Got done sooner than expected.  Here is the location.

http://www1.datafilehost.com/d/e98ed924

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks, the 3.8.0 beta1 backtrace is:
Code: [Select]
#0  0x00000000 in ?? ()
#0  0x00000000 in ?? ()
#1  0x0836dfbb in Glest::Game::Renderer::MapRenderer::renderVisibleLayers (this=0x8d3267c <Glest::Game::Renderer::getInstance()::renderer+828>, map=0xa531ea0, coordStep=1, qCache=...) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:4106
#2  0x0836e8bf in Glest::Game::Renderer::renderSurface (this=0x8d32340 <Glest::Game::Renderer::getInstance()::renderer>, renderFps=-1) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:4221
#3  0x082b7f8b in Glest::Game::Game::render3d (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:4957
#4  0x082cd992 in Glest::Game::Game::renderWorker (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:3118
#5  0x082cdfc0 in Glest::Game::Game::render (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:3048
#6  0x083ed241 in Glest::Game::Program::loopWorker (this=0x952f598) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:422
#7  0x083a1147 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>, getStackTraceString=true) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:684
#8  0x083a15a1 in Glest::Game::handleSIGSEGV (sig=11) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5532
#9  <signal handler called>
#10 0x00000000 in ?? ()
#11 0x0836dfbb in Glest::Game::Renderer::MapRenderer::renderVisibleLayers (this=0x8d3267c <Glest::Game::Renderer::getInstance()::renderer+828>, map=0xa531ea0, coordStep=1, qCache=...) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:4106
#12 0x0836e8bf in Glest::Game::Renderer::renderSurface (this=0x8d32340 <Glest::Game::Renderer::getInstance()::renderer>, renderFps=-1) at /home/softcoder/Code/megaglest/trunk/source/glest_game/graphics/renderer.cpp:4221
#13 0x082b7f8b in Glest::Game::Game::render3d (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:4957
#14 0x082cd992 in Glest::Game::Game::renderWorker (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:3118
#15 0x082cdfc0 in Glest::Game::Game::render (this=0xa531e38) at /home/softcoder/Code/megaglest/trunk/source/glest_game/game/game.cpp:3048
#16 0x083ed241 in Glest::Game::Program::loopWorker (this=0x952f598) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/program.cpp:422
#17 0x083c2f4a in Glest::Game::glestMain (argc=2, argv=0xbfa05444) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5379
#18 0x083c715d in Glest::Game::glestMainSEHWrapper (argc=2, argv=0xbfa05444) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5624
#19 0x083c734f in Glest::Game::glestMainWrapper (argc=2, argv=0xbfa05444) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5697
#20 0x083c7443 in main (argc=2, argv=0xbfa05444) at /home/softcoder/Code/megaglest/trunk/source/glest_game/main/main.cpp:5703

Since the developers are currently enjoying their summer holidays (for another two weeks), I can only offer a guess on what may help. Try the following:
  • FAQ: My video performance is bad, what can I do?
  • Experiment with the three unit selection types in the Options -> Video menu.
  • Set a lower resolution in the Options -> Video menu.
  • Toggle the texture compression option  in the Options -> Video menu
  • Run MegaGlest with the --disable-vbo command line argument
  • Try getting a newer video driver (your current one only provides OpenGL 1.4 support)
If one of these options works around it for you, please let us know here.
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 · · ·

jdallara

  • Guest
I'll try it out and let you know if anything happens.  Thanks for your time.

jdallara

  • Guest
Tried most of the ideas and no luck.  After you mentioned that the G33 is 6 years old (I've only had the box 8 months but it is from a surplus store) I started looking at getting a new graphics card.  Do you have any minimum recommendations?  Cheap is best.  I've been looking at nVidia 610 and 620 (1 and 2 GB) cards that seem reasonable.  Does something in that class have enough horse power?

Thanks

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Nvidia GeForce GT 610 provides about thirty-eight times more performance than what you have now. So yes, that's definitely enough.
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 · · ·

jdallara

  • Guest
Settled on a PNY card with a GT620 chip with 1GB memory ($60 on sale).  After installing nvidia driver game runs just fine.  Beautiful graphics!  Thanks for your help and time.  Still would be interesting to see if the G33 would work some how. 
Thanks again,

Jon.