[LayaNative 1.0]打包成LayaNative之后,在oppo r9s和小米note上面,程序后台经常卡死Anr
LayaNative版本: 1.0.4
Laya版本: 1.8.0
我拿到的anr日志如下,只要是Android回调了onPause之后出现一些问题:
suspend all histogram: Sum: 10.466ms 99% C.I. 3us-1564.320us Avg: 222.680us Max: 1613us
DALVIK THREADS (140):
"Signal Catcher" daemon prio=5 tid=2 Runnable
| group="system" sCount=0 dsCount=0 obj=0x32c070a0 self=0xaebd7000
| sysTid=16095 nice=0 cgrp=default sched=0/0 handle=0xb420b930
| state=R schedstat=( 55770310 3145521 28 ) utm=0 stm=5 core=0 HZ=100
| stack=0xb410f000-0xb4111000 stackSize=1014KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 00371037 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+142)
native: #01 pc 003504a9 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEP12BacktraceMap+164)
native: #02 pc 0035a4c7 /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+446)
native: #03 pc 0035b073 /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+210)
native: #04 pc 0035b603 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+154)
native: #05 pc 0035bd37 /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+334)
native: #06 pc 00333dc1 /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+64)
native: #07 pc 0033b045 /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+928)
native: #08 pc 0033b929 /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+340)
native: #09 pc 0003f567 /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: #10 pc 00019c37 /system/lib/libc.so (__start_thread+6)
(no managed stack frames)
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 obj=0x73c133c0 self=0xb4cb6500
| sysTid=16088 nice=-4 cgrp=default sched=0/0 handle=0xb6f1cb34
| state=S schedstat=( 104078950592 22625099822 716544 ) utm=7647 stm=2760 core=3 HZ=100
| stack=0xbe650000-0xbe652000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x03f1c878> (a android.opengl.GLSurfaceView$GLThreadManager)
at android.opengl.GLSurfaceView$GLThread.onPause(GLSurfaceView.java:1663)
- locked <0x03f1c878> (a android.opengl.GLSurfaceView$GLThreadManager)
at android.opengl.GLSurfaceView.onPause(GLSurfaceView.java:551)
at layaair.game.browser.b.onPause(unavailable:-1)
at layaair.game.conch.LayaConch5.onPause(unavailable:-1)
at layaair.game.Market.GameEngine.game_plugin_onPause(GameEngine.java:110)
at com.jimu52.fiction.mvp.ui.activity.ReadActivity.onPause(ReadActivity.kt:254)
at android.app.Activity.performPause(Activity.java:6469)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1312)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3446)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3419)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3391)
at android.app.ActivityThread.access$1200(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1420)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5653)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Laya版本: 1.8.0
我拿到的anr日志如下,只要是Android回调了onPause之后出现一些问题:
suspend all histogram: Sum: 10.466ms 99% C.I. 3us-1564.320us Avg: 222.680us Max: 1613us
DALVIK THREADS (140):
"Signal Catcher" daemon prio=5 tid=2 Runnable
| group="system" sCount=0 dsCount=0 obj=0x32c070a0 self=0xaebd7000
| sysTid=16095 nice=0 cgrp=default sched=0/0 handle=0xb420b930
| state=R schedstat=( 55770310 3145521 28 ) utm=0 stm=5 core=0 HZ=100
| stack=0xb410f000-0xb4111000 stackSize=1014KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 00371037 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+142)
native: #01 pc 003504a9 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEP12BacktraceMap+164)
native: #02 pc 0035a4c7 /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+446)
native: #03 pc 0035b073 /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+210)
native: #04 pc 0035b603 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+154)
native: #05 pc 0035bd37 /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+334)
native: #06 pc 00333dc1 /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+64)
native: #07 pc 0033b045 /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+928)
native: #08 pc 0033b929 /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+340)
native: #09 pc 0003f567 /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: #10 pc 00019c37 /system/lib/libc.so (__start_thread+6)
(no managed stack frames)
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 obj=0x73c133c0 self=0xb4cb6500
| sysTid=16088 nice=-4 cgrp=default sched=0/0 handle=0xb6f1cb34
| state=S schedstat=( 104078950592 22625099822 716544 ) utm=7647 stm=2760 core=3 HZ=100
| stack=0xbe650000-0xbe652000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait!(Native method)
- waiting on <0x03f1c878> (a android.opengl.GLSurfaceView$GLThreadManager)
at android.opengl.GLSurfaceView$GLThread.onPause(GLSurfaceView.java:1663)
- locked <0x03f1c878> (a android.opengl.GLSurfaceView$GLThreadManager)
at android.opengl.GLSurfaceView.onPause(GLSurfaceView.java:551)
at layaair.game.browser.b.onPause(unavailable:-1)
at layaair.game.conch.LayaConch5.onPause(unavailable:-1)
at layaair.game.Market.GameEngine.game_plugin_onPause(GameEngine.java:110)
at com.jimu52.fiction.mvp.ui.activity.ReadActivity.onPause(ReadActivity.kt:254)
at android.app.Activity.performPause(Activity.java:6469)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1312)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3446)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3419)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3391)
at android.app.ActivityThread.access$1200(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1420)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5653)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
对方还没填写名称
赞同来自:
对方还没填写名称
赞同来自: