Javim
Javim
  • 发布:2020-11-04 16:29
  • 更新:2020-11-04 16:58
  • 阅读:1159

【报Bug】android app 使用一段时间后报:停止运行

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 10

HBuilderX类型: 正式

HBuilderX版本号: 2.8.11

手机系统: Android

手机系统版本号: Android 7.1.1

手机厂商: 华为

手机机型: 东大pda

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

使用一段时间后

预期结果:

不要出现 “停止运行”

实际结果:

一段时间后就报

bug描述:

11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] JNI ERROR (app bug): local reference table overflow (max=512)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] JNI ERROR (app bug): local reference table overflow (max=512)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] local reference table dump:
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] Last 10 entries (of 512):
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] local reference table dump:
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 511: 0x335cdf70 java.io.FileDescriptor
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 510: 0x32c06070 com.android.server.NetworkManagementSocketTagger
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 509: 0x335cdf60 java.io.FileDescriptor
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] Last 10 entries (of 512):
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 508: 0x33220138 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 511: 0x335cdf70 java.io.FileDescriptor
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 507: 0x33726ee8 java.net.URL
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 506: 0x6fcc6950 java.net.Proxy
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 510: 0x32c06070 com.android.server.NetworkManagementSocketTagger
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 509: 0x335cdf60 java.io.FileDescriptor
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 505: 0x335c10a0 javax.net.ssl.SSLHandshakeException
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 508: 0x33220138 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 504: 0x335c10a0 javax.net.ssl.SSLHandshakeException
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 507: 0x33726ee8 java.net.URL
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 503: 0x331ffc38 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 506: 0x6fcc6950 java.net.Proxy
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 502: 0x33704f58 java.net.URL
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] Summary:
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 505: 0x335c10a0 javax.net.ssl.SSLHandshakeException
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 504: 0x335c10a0 javax.net.ssl.SSLHandshakeException
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 190 of javax.net.ssl.SSLHandshakeException (95 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 503: 0x331ffc38 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of java.net.Proxy (1 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 502: 0x33704f58 java.net.URL
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of java.net.URL (96 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] Summary:
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of com.android.okhttp.internal.huc.HttpsURLConnectionImpl (96 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 190 of javax.net.ssl.SSLHandshakeException (95 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 31 of java.lang.Class (1 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of java.net.Proxy (1 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 2 of java.io.FileDescriptor (2 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of java.net.URL (96 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 1 of com.android.server.NetworkManagementSocketTagger
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132]
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 96 of com.android.okhttp.internal.huc.HttpsURLConnectionImpl (96 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 31 of java.lang.Class (1 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 2 of java.io.FileDescriptor (2 unique instances)
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132] 1 of com.android.server.NetworkManagementSocketTagger
11-04 15:50:58.204 F/art ( 4892): art/runtime/indirect_reference_table.cc:132]
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] Runtime aborting...
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] Aborting thread:
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] "dclcoud" prio=5 tid=21 Runnable
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x32dbc790 self=0xd0e1d300
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] Runtime aborting...
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | sysTid=4912 nice=0 cgrp=default sched=0/0 handle=0xe399a920
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] Aborting thread:
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] "dclcoud" prio=5 tid=21 Runnable
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | state=R schedstat=( 5156649281 1111370604 13475 ) utm=379 stm=136 core=0 HZ=100
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x32dbc790 self=0xd0e1d300
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | stack=0xe389e000-0xe38a0000 stackSize=1014KB
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | sysTid=4912 nice=0 cgrp=default sched=0/0 handle=0xe399a920
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | held mutexes= "abort lock" "mutator lock"(shared held)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | state=R schedstat=( 5156649281 1111370604 13475 ) utm=379 stm=136 core=0 HZ=100
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #00 pc 00350b25 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #01 pc 00331269 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #02 pc 00324321 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3
113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #03 pc 0032416b /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3
113basic_ostreamIcNS1_11char_traitsIcEEEE+362)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #04 pc 0031ae9d /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+92)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | stack=0xe389e000-0xe38a0000 stackSize=1014KB
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #05 pc 000b5285 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1132)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] | held mutexes= "abort lock" "mutator lock"(shared held)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #06 pc 001bc4bb /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #00 pc 00350b25 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #07 pc 002b4163 /system/lib/libart.so (_ZN3artL21Reference_getReferentEP7_JNIEnvP8_jobject+46)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #01 pc 00331269 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #08 pc 00030829 /system/framework/arm/boot.oat (Java_java_lang_ref_Reference_getReferent
+76)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ref.Reference.getReferent!(Native method)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #02 pc 00324321 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3
113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ref.Reference.get(Reference.java:96)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #03 pc 0032416b /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEE+362)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #04 pc 0031ae9d /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+92)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal$ThreadLocalMap.getEntry(ThreadLocal.java:378)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal$ThreadLocalMap.-wrap0(ThreadLocal.java:-1)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #05 pc 000b5285 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1132)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #06 pc 001bc4bb /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal.get(ThreadLocal.java:146)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #07 pc 002b4163 /system/lib/libart.so (_ZN3artL21Reference_getReferentEP7_JNIEnvP8_jobject+46)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at com.android.server.NetworkManagementSocketTagger.tag(NetworkManagementSocketTagger.java:67)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.net.PlainSocketImpl.socketCreate(Native method)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] native: #08 pc 00030829 /system/framework/arm/boot.oat (Java_java_lang_ref_Reference_getReferent
+76)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ref.Reference.getReferent!(Native method)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.net.AbstractPlainSocketImpl.create(AbstractPlainSocketImpl.java:94)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ref.Reference.get(Reference.java:96)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] - locked <0x0c3ee230> (a java.net.SocksSocketImpl)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal$ThreadLocalMap.getEntry(ThreadLocal.java:378)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.net.Socket.createImpl(Socket.java:470)
11-04 15:50:58.531 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal$ThreadLocalMap.-wrap0(ThreadLocal.java:-1)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.net.Socket.getImpl(Socket.java:536)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.lang.ThreadLocal.get(ThreadLocal.java:146)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at com.android.server.NetworkManagementSocketTagger.tag(NetworkManagementSocketTagger.java:67)
11-04 15:50:58.532 F/art ( 4892): art/runtime/runtime.cc:422] at java.net.Socket.setSoTimeout(Socket.java:1134)
11-04 15:51:02.405 W/weex ( 6360): app AvailMemory ---->>>1113

2020-11-04 16:29 负责人:无 分享
已邀请:
Javim

Javim (作者)

我们的功能会频繁的请求网络,是不是uni.request这个api没有释放

该问题目前已经被锁定, 无法添加新回复