Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Strange android ANR #1057

Closed vizgl closed 5 years ago

vizgl commented 5 years ago

Tested on different AIR sdk versions and still the same. Current SDK version is 32.116, Starling version 2.5.1.

ANR INFO: Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 1.)

"main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 obj=0x75201000 self=0xb7407bf8 | sysTid=9533 nice=-4 cgrp=apps sched=0/0 handle=0xb6f18ec8 | state=R schedstat=( 85485654222 20564262241 116086 ) utm=7035 stm=1513 core=0 HZ=100 | stack=0xbe30d000-0xbe30f000 stackSize=8MB | held mutexes=

00 pc 000000000064c3d6 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_Z12MipMapHelperPKhi11EBitmapTypePhiRK5SRECTP11SColorTable+357)

01 pc 000000000064a4ff /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN11SBitmapCore6MipMapEP5SRECT+782)

02 pc 000000000064a1e7 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN15MipMapCacheItem7RestoreEv+22)

03 pc 000000000064a103 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN11SBitmapCore7RestoreEv+58)

04 pc 000000000064b359 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN11SBitmapCore8LockBitsEb+124)

05 pc 000000000058c7d4 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN6RColor10BuildCacheEP7CRaster+740)

06 pc 000000000061f5a3 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN12SurfaceImage26RenderFromBitmapCoreToBitsEP6CanvasR11SBitmapCoreR10STransformRK5SRECTii+578)

07 pc 0000000000621db7 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN12SurfaceImage22RenderFromImageToImageEPS_R10STransformRK5SRECTii+262)

08 pc 0000000000782013 /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN7avmplus16BitmapDataObject10drawHelperEPNS_24IBitmapDrawableInterfaceEPNS_12MatrixObjectEPNS_20ColorTransformObjectEPNS_6StringEPNS_15RectangleObjectEbS8_b+702)

09 pc 0000000000781d4d /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN7avmplus16BitmapDataObject4drawEPNS_24IBitmapDrawableInterfaceEPNS_12MatrixObjectEPNS_20ColorTransformObjectEPNS_6StringEPNS_15RectangleObjectEb+24)

10 pc 00000000007af37f /data/app/com.mygamesisland.is.snake.mlg.edition-2/lib/arm/libCore.so (_ZN7avmplus8NativeID35flash_display_BitmapData_draw_thunkEPNS_9MethodEnvEjPi+66)

at com.adobe.air.AndroidActivityWrapper.nativeActivateEvent (Native method) at com.adobe.air.AndroidActivityWrapper.onResume (AndroidActivityWrapper.java:1256) at java.lang.reflect.Method.invoke! (Native method) at java.lang.reflect.Method.invoke (Method.java:372) at com.mygamesisland.is.snake.mlg.edition.AppEntry.InvokeMethod (AppEntry.java:365) at com.mygamesisland.is.snake.mlg.edition.AppEntry.onResume (AppEntry.java:432) at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1253) at android.app.Activity.performResume (Activity.java:6231) at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3342) at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3384) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1437) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:135) at android.app.ActivityThread.main (ActivityThread.java:5753) at java.lang.reflect.Method.invoke! (Native method) at java.lang.reflect.Method.invoke (Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1200)

P.S. Is this anr related to the air sdk or starling?

PrimaryFeather commented 5 years ago

You're probably experience what's discussed in this very (!) long thread. The good news is that it seems to be fixed or at least immensely enhanced in the very latest AIR release. Have a look at the bottom part of the thread more more information.

In any case, this doesn't have to do anything with Starling per se, so I'm closing this thread. You can still post here or reopen if you need any more information or if it turns out to be something else! All the best! :smile:

rewb0rn commented 5 years ago

It looks like vizgl is already using the latest SDK version, so potentially this is a new issue or the one that is mentioned in the (currently) last post by Faketa in that thread.