[SDL] SDL_Init never return ( Linux with Framebuffer )
Gustavo Moreira
gmoreira at gmail.com
Fri Apr 18 08:41:26 PDT 2008
On Fri, Apr 18, 2008 at 2:46 AM, Sam Lantinga <slouken at devolution.com> wrote:
> > Hi guys!
> > I'm trying run a simple SDL example "http://friedspace.com/SDLTest.c"
> > and SDL_init function hangs never return and obviously the image never
> > appear.
> > The error is:
> > fb0: unsupported mode requested
>
> Where do you see that error?
It appears on the first console (Ctrl-Alt-F1) where I run the SDL program.
>
> Based on the strace, it looks like FB_OpenMouse() may be hanging.
I tried setting environment variables SDL_MOUSEDEV=/dev/mouse and
SDL_NOMOUSE=1, but neither worked,
no images appears.
I have attached the respective strace. With SDL_NOMOUSE=1 it never
returns, then because of size I edited the strace file and I added
comments with "//" to indicate the repeated lines.
> Was that actually the end of the strace?
In the strace file attached at original email, I interrupted it (ctrl-c)
>
> It might also be hanging in FB_EnterGraphicsMode(), where it waits for
> the virtual terminal to become active. Are you running the test as root?
Yes, I'm running it as root
> It may be that you don't have full access to the console?
It could be but I am running as root, these are the ttys
crw-rw-rw- 1 root tty 5, 0 Apr 18 12:05 /dev/tty
crw-rw---- 1 root root 4, 0 Mar 25 15:07 /dev/tty0
crw------- 1 root root 4, 1 Apr 18 12:26 /dev/tty1
crw--w---- 1 root root 4, 2 Apr 18 11:47 /dev/tty2
crw--w---- 1 root root 4, 3 Apr 18 11:47 /dev/tty3
crw-rw---- 1 root tty 4, 4 Mar 25 15:07 /dev/tty4
crw-rw---- 1 root tty 4, 5 Apr 18 11:47 /dev/tty5
crw-rw---- 1 root tty 4, 6 Mar 25 15:07 /dev/tty6
crw-rw---- 1 root root 4, 7 Mar 25 15:07 /dev/tty7
crw-rw---- 1 root tty 4, 8 Mar 25 15:07 /dev/tty8
crw-rw---- 1 root tty 4, 9 Mar 25 15:07 /dev/tty9
> I'd be really curious to see the full strace output, or at least the part
> after the KDGKBENT ioctl() calls.
>
> See ya!
> -Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-mousedev.gz
Type: application/x-gzip
Size: 11150 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080418/d1cbd32f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-nomouse.gz
Type: application/x-gzip
Size: 2352 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080418/d1cbd32f/attachment-0001.bin>
More information about the SDL
mailing list