Author Topic: [fixed] crash in 3.3.5-dev while playing ( workaround available )  (Read 1933 times)

MJR

  • Guest
On MegaGlest 3.3.5 dev I get a unknown error and the game stops in the middle of a game. I am on XP 64 Bit.
« Last Edit: 2 May 2010, 23:30:27 by titi »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
crash in 3.3.5-dev while playing
« Reply #1 on: 2 May 2010, 13:43:11 »
Are you able to give any more details than that? Can you trun on debuggin an reproduce the issue and tell us the last things in the logfile? How long were you playing the game etc?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
crash in 3.3.5-dev while playing
« Reply #2 on: 2 May 2010, 16:18:46 »
We had the same issue now (in linux). Crash after about 5 minutes normal single player game.
Will try to produce a corefile.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

MJR

  • Guest
crash in 3.3.5-dev while playing
« Reply #3 on: 2 May 2010, 16:39:35 »
Playing a single player game about 5 to 10 minutes into the game it crashes and a message says unknown error.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
crash in 3.3.5-dev while playing
« Reply #4 on: 2 May 2010, 17:47:58 »
I have a core file now. Which took very very long! Obviously its a timing problem too and it doesn't happen very often when you use a binary with debug info, but now i got it.  Looks like it has something to do with soundplayback. Thats something what softcoder changed lately. I will talk to him about it.

Here is the stack of the crash:
Code: [Select]
#0  0x0818ff2e in Shared::Sound::SoundInfo::getSamplesPerSecond (this=0x8) at shared_lib/sources/../include/sound/sound.h:39
#1  0x081918ff in Shared::Sound::OpenAL::StreamSoundSource::fillBufferAndQueue (this=0xfdf95a8, buffer=32778) at shared_lib/sources/sound/openal/sound_player_openal.cpp:274
#2  0x08192b96 in Shared::Sound::OpenAL::StreamSoundSource::play (this=0xfdf95a8, sound=0x878eef0, fadeon=6000) at shared_lib/sources/sound/openal/sound_player_openal.cpp:179
#3  0x08193723 in Shared::Sound::OpenAL::SoundPlayerOpenAL::play (this=0x83a6000, strSound=0x878eef0, fadeOn=6000) at shared_lib/sources/sound/openal/sound_player_openal.cpp:412
#4  0x080fcb5a in Glest::Game::SoundRenderer::playAmbient (this=0x820fc50, strSound=0x878eef0) at glest_game/sound/sound_renderer.cpp:143
#5  0x081550b6 in Glest::Game::TimeFlow::update (this=0x878f020) at glest_game/world/time_flow.cpp:62
#6  0x0815da38 in Glest::Game::World::update (this=0x878ecb8) at glest_game/world/world.cpp:140
#7  0x0807431f in Glest::Game::Game::update (this=0x878ecb0) at glest_game/game/game.cpp:355
#8  0x080a637f in Glest::Game::Program::loop (this=0x82689e8) at glest_game/main/program.cpp:203
#9  0x080a1217 in Glest::Game::glestMain (argc=1, argv=0xbfe20514) at glest_game/main/main.cpp:362
#10 0x080a15bf in main (argc=1, argv=0xbfe20514) at glest_game/main/main.cpp:396
(xxgdb)

In general the current version is much slower than the one before! And gets choppy very fast!
« Last Edit: 2 May 2010, 17:55:45 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: crash in 3.3.5-dev while playing
« Reply #5 on: 2 May 2010, 23:30:05 »
The reason for crash is that the current work with an own thread for the sound isn't finished yet.

just add this to your glest.ini and it will work:

Code: [Select]
ThreadedSoundStream=false
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: crash in 3.3.5-dev while playing ( workaround available )
« Reply #6 on: 3 May 2010, 02:12:16 »
Vista 32bit operating system is not aware of this problem, XP 64bit operating system Can be such a problem? Is incredible!

By the way, hello,titi! ubuntu10.04 operating system can run properly glest3.3.5-dev??? Thank you!
« Last Edit: 3 May 2010, 02:14:21 by tom123 »

MJR

  • Guest
Re: crash in 3.3.5-dev while playing ( workaround available )
« Reply #7 on: 3 May 2010, 07:02:57 »
Maybe for you but Vista is a pain in just about every other way. From slow start up to compatibility issues with other third party software. Wouldn't work with Vista for love or money.

Super Tom

  • Draco Rider
  • *****
  • Posts: 311
    • View Profile
Re: crash in 3.3.5-dev while playing ( workaround available )
« Reply #8 on: 3 May 2010, 07:28:34 »
Oh, man! I did not understand what you're saying, let me guess, I might ... you should know what I have to say it, well, I would like to softcoder will solve your problem!

MJR

  • Guest
Re: crash in 3.3.5-dev while playing ( workaround available )
« Reply #9 on: 3 May 2010, 19:37:59 »
I tried your patch and it still crash at about 5 minutes into the game unknown error on Windows Xp 64 Bit with MegaGlest 3.3.5 dev with the fix in place.

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: crash in 3.3.5-dev while playing ( workaround available )
« Reply #10 on: 3 May 2010, 20:22:52 »
did you update from svn? softcoder fixed it now in the code.

You can also download the latest binary here:

http://soft-haus.com/glest/sf-files/     ( !! they are currently all called 3.3.5-dev but they are different !!)

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios