pelya / commandergenius

Port of SDL library and several games to the Android OS.
http://libsdl-android.sourceforge.net/
GNU Lesser General Public License v2.1
533 stars 248 forks source link

Crashes on SDL_Delay #83

Open protoman opened 6 years ago

protoman commented 6 years ago

I'm getting ANRs from users with this problem:

Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 4. Wait queue head age: 5001.5ms.)

"main" prio=5 tid=1 TimedWaiting | group="main" sCount=1 dsCount=0 obj=0x734b7258 self=0xb7b30e78 | sysTid=12398 nice=0 cgrp=default sched=0/0 handle=0xb6fddb34 | state=S schedstat=( 1259922564 1122063308 4206 ) utm=85 stm=40 core=3 HZ=100 | stack=0xbe284000-0xbe286000 stackSize=8MB | held mutexes= at java.lang.Object.wait! (Native method)

"GLThread" prio=5 tid=9 Native | group="main" sCount=1 dsCount=0 obj=0x22c09080 self=0xb7d1d770 | sysTid=12456 nice=0 cgrp=default sched=0/0 handle=0xa3797930 | state=S schedstat=( 1416983655 2264009285 14247 ) utm=75 stm=66 core=1 HZ=100 | stack=0xa3695000-0xa3697000 stackSize=1038KB | held mutexes=

00 pc 0000000000043940 /system/lib/libc.so (nanosleep+12)

01 pc 000000000002a515 /data/app/net.upperland.rockbot-1/lib/arm/libsdl-1.2.so (SDL_Delay+88)

02 pc 000000000004870d /data/app/net.upperland.rockbot-1/lib/arm/libapplication.so (_ZNK8timerLib5delayEi+4)

03 pc 0000000000033365 /data/app/net.upperland.rockbot-1/lib/arm/libapplication.so (_ZN8inputLib13wait_keypressEv+32)

04 pc 0000000000033ad9 /data/app/net.upperland.rockbot-1/lib/arm/libapplication.so (_ZN4game25show_beta_version_warningEv+496)