sometimes after exiting darwinia i cannot move mouse anymore

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

sleon
level0
Posts: 5
Joined: Mon Nov 15, 2004 9:21 am

sometimes after exiting darwinia i cannot move mouse anymore

Postby sleon » Mon Dec 20, 2004 4:10 pm

so i can see mouse but can't move it after exiting the game
Hier is an error:
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
Sorry, not enough mouse samples
ObstructionGrid took 2ms to generate

./darwinia: line 4: 7453 Segmentation fault $here/darwinia.x86
sleon@ma darwinia $

Same happenssometimes with ut2003

i need to restart darwinia and exit again then i can move it.
when it exits propelry the last line i see is:
CLIENT : Sending disconnect...
elDiablo
level5
level5
Posts: 3111
Joined: Thu Mar 14, 2002 12:23 pm
Location: London, UK

Postby elDiablo » Mon Dec 20, 2004 4:26 pm

Dave2 (on irc, think he's here too though) had this same problem... Dunno if its fixed yet, but you may wish to ask him :D
We dont stop playing cos we get old... We get old cos we stop playing.
sleon
level0
Posts: 5
Joined: Mon Nov 15, 2004 9:21 am

Postby sleon » Mon Dec 20, 2004 4:29 pm

and what is the address of irc-server / channel combination?
User avatar
Dave2
level4
level4
Posts: 550
Joined: Wed Feb 20, 2002 9:07 pm
Location: Reading, England

Postby Dave2 » Mon Dec 20, 2004 4:30 pm

It's because of the way that SDL grabs the mouse. Darwinia often segfaults (crashes) on exit, and this means that SDL won't release the mouse. Either running another SDL app (Darwinia, UT, whatever) or setting "Windowed" to "1" in preferences.txt are a couple of workarounds.

[edit]irc.uplinkcorp.net, #darwinia for IRC[/edit]
Don't think about The Game.
sleon
level0
Posts: 5
Joined: Mon Nov 15, 2004 9:21 am

Postby sleon » Mon Dec 20, 2004 4:31 pm

is there a command which would ungrab the mouse too?
User avatar
Dave2
level4
level4
Posts: 550
Joined: Wed Feb 20, 2002 9:07 pm
Location: Reading, England

Postby Dave2 » Mon Dec 20, 2004 4:56 pm

Not that I know of. There may be an extremely simple SDL sample app out there which will take hardly any time to load, though.
Don't think about The Game.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Mon Dec 20, 2004 6:04 pm

Do you get a blackbox in your home directory?
bdove
level1
level1
Posts: 10
Joined: Mon Nov 15, 2004 9:26 am
Location: Finland
Contact:

Postby bdove » Mon Dec 20, 2004 6:33 pm

Maybe this is the same problem as Im having (another post) but for me it does not hang the mouse (maybe because using x.org?)

for debugging I would suggest "strace -f -o debug.txt ./darwinia" hence blackbox.txt has been always empty on my problems.
- Dual AMD Athlon MP 2400+
- Kernel 2.6.8-gentoo-r1
- Geforce 6800 GT
- x.org
- SB live! / Aureon sky 5.1 spdiff
User avatar
Dave2
level4
level4
Posts: 550
Joined: Wed Feb 20, 2002 9:07 pm
Location: Reading, England

Postby Dave2 » Mon Dec 20, 2004 6:44 pm

The SDL mouse grabbing is the same on XFree86 and XOrg.
Don't think about The Game.
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Mon Dec 20, 2004 7:36 pm

Best thing to do with regards to SDL apps and mouse grabbing issue is run it windowed as Dave2 said. Perhaps john could also add a mouse ungrab hotkey like ut2k* and q3 has.
DEATH TO DUCKS!!!
User avatar
Dave2
level4
level4
Posts: 550
Joined: Wed Feb 20, 2002 9:07 pm
Location: Reading, England

Postby Dave2 » Mon Dec 20, 2004 8:43 pm

I made a mistake in my first post, that preferences.txt entry was for beta1. For beta4 it's ScreenWindowed = 1 in ~/.darwinia/preferences.txt.
Don't think about The Game.
dragoon
level0
Posts: 3
Joined: Sat Nov 13, 2004 11:03 am
Location: California, USA

Mouse loss + resolution remains at Darwinia resolution

Postby dragoon » Tue Dec 21, 2004 2:04 am

I'm also experiencing this problem, although in my case it also leaves the screen resolution at the darwinia resolution. Xrandr -s 0 takes care of it without a problem though. Ctrl+Alt+[+/-] does nothing, however, so this will be hard for many to fix.

I've never had it lose my mouse this way when I just run the program and quit, but I haven't been able to find what exactly makes it change behavior, other than time and playing.
Last edited by dragoon on Tue Dec 21, 2004 4:05 am, edited 1 time in total.
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Tue Dec 21, 2004 2:24 am

The difference is it exiting with SDL cleanly and releasing mouse focus vs just crashing while still having mouse focus.
DEATH TO DUCKS!!!
bdove
level1
level1
Posts: 10
Joined: Mon Nov 15, 2004 9:26 am
Location: Finland
Contact:

Postby bdove » Tue Dec 21, 2004 10:41 am

One possibility might also be to reimplement the standard exit handler to release the mouse. Naturally the crashes need to be fixed but atleast it would always release the mouse.
- Dual AMD Athlon MP 2400+

- Kernel 2.6.8-gentoo-r1

- Geforce 6800 GT

- x.org

- SB live! / Aureon sky 5.1 spdiff
cyberbillp
level0
Posts: 9
Joined: Fri Nov 12, 2004 1:51 am
Location: Florida
Contact:

Mouse Freeze

Postby cyberbillp » Tue Dec 21, 2004 9:24 pm

Here's my mouse freeze report:


Code: Select all

=========================
DARWINIA BLACK BOX REPORT
=========================

VERSION : linux-demo-beta4c
ERROR   : 'Got a fatal signal: 11
'

=========================
===== SYSTEM REPORT =====
=========================

SysInfoGenVersion: 2
CpuVendor: GenuineIntel
CpuModel: Intel(R) Pentium(R) 4 CPU 2.80GHz
Num Processors: 2
Country: N/A
Language: N/A
Num sound devices: 1
Primary sound device: Unknown
Graphics Card: Unknown
Operating System: Linux 2.6.4-52-smp
Computer Name: difl1pc9059a



=========================
====== USER DATA ========
=========================

USERNAME : cyberbillp

EMAIL    : cyberbillp@yahoo.com


=========================
====== STACKTRACE =======
=========================

retAddress = 0x808bac6
retAddress = 0x80d03e6
retAddress = 0x80d0ae9
retAddress = 0x80c19d3
retAddress = 0x401e34b0
retAddress = 0x8076421


gdb stack trace:

GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux".
(gdb) Reading symbols from /home/bill/darwinia/darwinia.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) Attaching to program: /home/bill/darwinia/darwinia.x86, process 6359
Reading symbols from ./libSDL-1.2.so.0...done.
Loaded symbols for ./libSDL-1.2.so.0
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 1086142720 (LWP 6359)]
[New Thread 1119456176 (LWP 6362)]
[Thread debugging using libthread_db enabled]
[New Thread 1086142720 (LWP 6359)]
[New Thread 1119456176 (LWP 6362)]
[Thread debugging using libthread_db enabled]
[New Thread 1086142720 (LWP 6359)]
[New Thread 1119456176 (LWP 6362)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libGLcore.so.1...done.
Loaded symbols for /usr/lib/libGLcore.so.1
Reading symbols from /usr/lib/tls/libnvidia-tls.so.1...done.
Loaded symbols for /usr/lib/tls/libnvidia-tls.so.1
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
0xffffe410 in ?? ()
(gdb)   2 Thread 1119456176 (LWP 6362)  0xffffe410 in ?? ()
  1 Thread 1086142720 (LWP 6359)  0xffffe410 in ?? ()
(gdb)
Thread 2 (Thread 1119456176 (LWP 6362)):
#0  0xffffe410 in ?? ()
#1  0x42b98a18 in ?? ()
#2  0x00002000 in ?? ()
#3  0x08f26c00 in ?? ()
#4  0x4027875b in __write_nocancel () from /lib/tls/libc.so.6
#5  0x400298c8 in DSP_PlayAudio (this=0x8e92b40) at SDL_dspaudio.c:140
#6  0x40025187 in SDL_RunAudio (audiop=0x8e92b40) at SDL_audio.c:232
#7  0x4007015b in SDL_RunThread (data=0x8f15248) at SDL_thread.c:218
#8  0x4007036f in RunThread (data=0x2000) at SDL_systhread.c:82
#9  0x4030a9dd in start_thread () from /lib/tls/libpthread.so.0
#10 0x4028664a in clone () from /lib/tls/libc.so.6

Thread 1 (Thread 1086142720 (LWP 6359)):
#0  0xffffe410 in ?? ()
#1  0xbfffb4bc in ?? ()
#2  0x00000000 in ?? ()
#3  0xbfffb378 in ?? ()
#4  0x4025570b in __waitpid_nocancel () from /lib/tls/libc.so.6
#5  0x402021ed in do_system () from /lib/tls/libc.so.6
#6  0x402025b2 in system () from /lib/tls/libc.so.6
#7  0x080a8ca0 in ?? ()
#8  0x080a8fdd in ?? ()
#9  0x080a8db8 in ?? ()
#10 <signal handler called>
#11 0x0808bfa0 in ?? ()
#12 0x0808bac6 in ?? ()
#13 0x080d03e6 in ?? ()
#14 0x080d0ae9 in ?? ()
#15 0x080c19d3 in ?? ()
#16 0x401e34b0 in __libc_start_main () from /lib/tls/libc.so.6
#17 0x08076421 in ?? ()
#0  0xffffe410 in ?? ()
(gdb) Detaching from program: /home/bill/darwinia/darwinia.x86, process 6359

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 10 guests