Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Click of program hangs... #29

Closed
giorgosgs opened this Issue · 17 comments

3 participants

@giorgosgs

I use SDL and OpenGL ES. Playbook 2.0.1.358

I have a strange bug. Most of the times the game runs fine.
Sometimes (seems randomly and commonly) seems that the game hangs. Its unresponsive.

1) I have added the debugger and no error ocurrs. All runs fine. Then game is live (moves, sound etc) but the touch screen is dead. I have to close it and restart it to work. Is it a "TouchControlOverlay" issue? Should I write it there?

The only warnings I get when the game starts in debug mode is:

MsgNak received - resending
Remote target is little-endian
[New pid 145965214 tid 2]
warning: Could not load shared library symbols for libusc.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for libsrv_um.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for libpvr2d.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for libIMGegl.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for wsegl-screen.so.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for libImgGLESv1_CM.so.
Do you need "set solib-search-path" or "set sysroot"?
[New pid 145965214 tid 3]

thanks

@jnicholl
Collaborator
@giorgosgs

You are right. No, I dont have one. I made a simple one:

<?xml version="1.0" encoding="ISO-8859-1"?>
<emulation version="1">
<touchscreen x="0" y="0" width="1024" height="600"/>
</emulation>

...and placed it in the project directory. Where the other xml file is: bar-descriptor.xml
How do I use it now? Do I just catch it in SDL_PollEvent with SDL_MOUSEMOTION, SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONDOWN?

@jnicholl
Collaborator
@giorgosgs

If I dont need one then we go back to my initial error:
Do you have an idea why (randomly) my game touch input hangs?
(The rest of the game plays fine but the input touch hangs and so the game is unresponsive)

@jnicholl
Collaborator
@jnicholl
Collaborator
@giorgosgs

I am out of office now. Will return in a few days.
A) I don't know yet.
B) i have one window. Not multiple windows.
C) haven't tried that yet. But swiping up from the bottom works ok and minimizes the app.

@giorgosgs

So far it does not hang!
Can it be because I added the file: bar-descriptor.xml?

@jnicholl
Collaborator
@giorgosgs

I tried swiping down from the top. Nothing happens. This does not cause it.

@jnicholl
Collaborator
@giorgosgs

I found a way to make it freeze. I just left the game playing without doing anything more than 5 minutes and the click freeze. Does that makes sense? Swipedown does not freeze it or unfreeze it. The game is moving and music is playing, only clicks are not working.

Another thing I noticed: When the clicks are not responding and you quit the app 'SDL_QUIT' does not work. SDL_PollEvent does not send a 'SDL_QUIT' event. Maybe it does not send any events at all and that is why clicks are not working.

@giorgosgs

I gave the game to some beta-testers and they all complain that it freezes. Will try to debug again, maybe something happens...

@jnicholl
Collaborator
@giorgosgs

If I give you the game as a binary will it help?

@asimonov-im
@giorgosgs

It seems this was not SDL fault. It was a fault in my own code. Sorry for bothering you.

@giorgosgs giorgosgs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.