Page 1 of 3

Freezing in Ubuntu Lucid

Posted: Mon May 24, 2010 11:03 am
by rawler
For me, Osmos (Linux version) may randomly (fairly often) freeze, after just a few minutes of playing.

Running on Nvidia GTS8800 with proprietary driver, Ubuntu Lucid under KWin4 (if that makes any difference).

I've tried running nosound, which doesn't help. No output is issued at the crash, I've also GDB:ed which simply shows a single thread (under nosound, otherwise openal also has a thread), with contents;

Code: Select all

(gdb) bt
#0  0xb7844430 in __kernel_vsyscall ()
#1  0xb72ee6d6 in gettimeofday () at ../sysdeps/unix/syscall-template.S:82
#2  0x0809a2d1 in ?? ()
#3  0x0809a307 in ?? ()
#4  0x0808196f in ?? ()
#5  0xb727bbd6 in __libc_start_main (main=0x8080fbb, argc=2, ubp_av=0xbffe0b94, init=0x809e150, fini=0x809e140, rtld_fini=0xb78530c0 <_dl_fini>, stack_end=0xbffe0b8c)
    at libc-start.c:226
#6  0x0804c211 in ?? ()


Running "finish" a couple of times, the stack is pop:ed as far as 0x0808196f (frame 4), although without debug-info, I won't be able to produce much more info, I'm afraid.

If someone wants to send me the corresponding -dbg from the build, or like me to perform other test, I'd gladly give it a try to nail it down.

Re: Freezing in Ubuntu Lucid

Posted: Fri May 28, 2010 9:21 am
by Meal Worms
Thanks for the post rawler. Looks like there's a known issue in the Linux kernel where frequent gettimeofday system calls can cause a freeze. Sadly I cannot repro the freeze myself, but I hope to have a workaround to roll out for test shortly.

Stay tuned...
Dave

Re: Freezing in Ubuntu Lucid

Posted: Sun May 30, 2010 2:41 am
by rawler
Hmm. Could be it, but I actually see the gettimeofday() returning control to Osmos when this occurs? Do you have any upstream references of this kernel issue?

Re: Freezing in Ubuntu Lucid

Posted: Mon May 31, 2010 7:40 am
by Meal Worms
rawler, I've got a new binary that hopefully works around this issue. Can you send me an email at daveburke at hemispheregames dot com referencing this post? Cheers!

Dave

Re: Freezing in Ubuntu Lucid

Posted: Mon May 31, 2010 11:09 am
by Laeki
I get this issue too, particularly on large impasse levels. May I join the beta-test for the new binary?

Re: Freezing in Ubuntu Lucid

Posted: Mon May 31, 2010 11:14 am
by rawler
Dave, you've got mail from ulrik.<something>@<popularmail>.com.

Re: Freezing in Ubuntu Lucid

Posted: Mon May 31, 2010 11:58 am
by Meal Worms
@ rawler : got it,thanks! Stay tuned...
@ Laeki : certainly! Send me a mail and I'll get you hooked up.

Dave

Re: Freezing in Ubuntu Lucid

Posted: Sun Jun 06, 2010 10:32 am
by rawler
Sorry for not getting back about this eariler. I've attempted to test it, first by re-playing the original binary, but honestly, I have not been able to reproduce at all this past week.

Thus I'm unsure how much testing the modified beta would be worth, since it may be something else in my environment that changed and stopped triggering the problem? Is it a candidate for release, and you would like some regular beta testing anyways?

Re: Freezing in Ubuntu Lucid

Posted: Sun Jun 06, 2010 6:09 pm
by Mountain Man
I seem to have had some luck changing the sound engine to ALSA which is soundDevice "1" in my ~/.Osmos/Config.cfg. Played for about 20-minutes and didn't have any problems. This is with the release binary.

Re: Freezing in Ubuntu Lucid

Posted: Mon Jun 07, 2010 8:30 am
by Meal Worms
Glad to hear it Mountain Man, thanks. This isn't a big surprise, because some audio implementations contain frequent gettimeofday/clock_gettime calls that are responsible for this hang.

Dave