断网调试app
- 发布:2022-07-08 12:42
- 更新:2022-07-08 19:42
- 阅读:540
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window7
HBuilderX类型: 正式
HBuilderX版本号: 3.4.18
手机系统: Android
手机系统版本号: Android 7.1.1
手机机型: android7
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
一段时间会闪退
一段时间会闪退
实际结果:
一段时间会闪退
一段时间会闪退
bug描述:
uniapp是不是有什么东西一直在请求网络,我代码里面没有联网调试需求,然后网络请求失败一直往本地变量表里面堆,最后导致jni溢出
JNI ERROR (app bug): local reference table overflow (max=512)
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] local reference table dump:
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] Last 10 entries (of 512):
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 511: 0x12d19b90 java.lang.String ""
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 510: 0x12e0db60 java.net.UnknownHostException
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 509: 0x12e0db60 java.net.UnknownHostException
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 508: 0x12ea7978 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 507: 0x12f74548 java.net.URL
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 506: 0x6f87d120 java.net.Proxy
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 505: 0x12e035a0 java.net.UnknownHostException
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 504: 0x12e035a0 java.net.UnknownHostException
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 503: 0x12ea7c38 com.android.okhttp.internal.huc.HttpsURLConnectionImpl
2022-07-08 11:52:12.576 27810-27833/com.HBuilder.UniPlugin A/art: vendor/intel/art-extension/runtime/indirect_reference_table.cc:132] 502: 0x12f493c0 java.net.URL
2 个回复
啥也不会 (作者) - 黑牛
我使用的是离线打包,是我Android 离线SDK版本太低
DCloud_Android_ST
看日志是一个插件导致的 com.HBuilder.UniPlugin 具体需要你自行排查