官网demo安装后,点击2次返回键退出程序时,就报错了。
- 发布:2024-10-30 12:05
- 更新:2024-11-02 19:04
- 阅读:822
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 11
HBuilderX类型: 正式
HBuilderX版本号: 4.24
手机系统: Android
手机系统版本号: Android 11
手机厂商: 小米
手机机型: 小米平板rk3568
页面类型: vue
vue版本: vue2
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
点击2次返回键退出程序时不会报错,app可以正常退出,不会报错。
点击2次返回键退出程序时不会报错,app可以正常退出,不会报错。
实际结果:
android.app.ServiceConnectionLeaked: Activity io.dcloud.PandoraEntryActivity has leaked ServiceConnection com.bun.miitmdid.provider.zte.MsaClient$1@f342dd2 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1835)
at android.app.LoadedApk.getServiceDispatcherCommon(LoadedApk.java:1707)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1686)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1819)
at android.app.ContextImpl.bindService(ContextImpl.java:1749)
at android.content.ContextWrapper.bindService(ContextWrapper.java:756)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.MsaClient.BindService(Unknown Source:30)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.ZteProvider.doStart(Unknown Source:27)
at com.bun.miitmdid.provider.BaseProvider$1.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
---------------------------- PROCESS ENDED (2917) for package com.android.UniPlugin ----------------------------
2024-10-30 10:50:22.184 2843-2879 libEGL com.android.UniPlugin W EGLNativeWindowType 0xe7d8b068 disconnect failed
2024-10-30 10:50:25.885 2843-2859 System com.android.UniPlugin W A resource failed to call dispose.
---------------------------- PROCESS ENDED (2843) for package com.android.UniPlugin ----------------------------
android.app.ServiceConnectionLeaked: Activity io.dcloud.PandoraEntryActivity has leaked ServiceConnection com.bun.miitmdid.provider.zte.MsaClient$1@f342dd2 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1835)
at android.app.LoadedApk.getServiceDispatcherCommon(LoadedApk.java:1707)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1686)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1819)
at android.app.ContextImpl.bindService(ContextImpl.java:1749)
at android.content.ContextWrapper.bindService(ContextWrapper.java:756)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.MsaClient.BindService(Unknown Source:30)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.ZteProvider.doStart(Unknown Source:27)
at com.bun.miitmdid.provider.BaseProvider$1.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
---------------------------- PROCESS ENDED (2917) for package com.android.UniPlugin ----------------------------
2024-10-30 10:50:22.184 2843-2879 libEGL com.android.UniPlugin W EGLNativeWindowType 0xe7d8b068 disconnect failed
2024-10-30 10:50:25.885 2843-2859 System com.android.UniPlugin W A resource failed to call dispose.
---------------------------- PROCESS ENDED (2843) for package com.android.UniPlugin ----------------------------
bug描述:
android.app.ServiceConnectionLeaked: Activity io.dcloud.PandoraEntryActivity has leaked ServiceConnection com.bun.miitmdid.provider.zte.MsaClient$1@f342dd2 that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1835)
at android.app.LoadedApk.getServiceDispatcherCommon(LoadedApk.java:1707)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1686)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1819)
at android.app.ContextImpl.bindService(ContextImpl.java:1749)
at android.content.ContextWrapper.bindService(ContextWrapper.java:756)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.MsaClient.BindService(Unknown Source:30)
at com.netease.nis.sdkwrapper.Utils.rL(Native Method)
at com.bun.miitmdid.provider.zte.ZteProvider.doStart(Unknown Source:27)
at com.bun.miitmdid.provider.BaseProvider$1.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
---------------------------- PROCESS ENDED (2917) for package com.android.UniPlugin ----------------------------
2024-10-30 10:50:22.184 2843-2879 libEGL com.android.UniPlugin W EGLNativeWindowType 0xe7d8b068 disconnect failed
2024-10-30 10:50:25.885 2843-2859 System com.android.UniPlugin W A resource failed to call dispose.
---------------------------- PROCESS ENDED (2843) for package com.android.UniPlugin ----------------------------
3***@163.com (作者)
你好,我在oppo真机上测试,两次返回退出app正常。在小米平板(Android11系统)两次退出,控制台打印 android.app.ServiceConnectionLeaked: Activity io.dcloud.PandoraEntryActivity has leaked ServiceConnection错误。
2024-11-04 10:45
[已删除]
回复 3***@163.com: 你我看你反馈的是 HBuilderX 低版本,最新版本是否有问题?最新版本 HBuilderX 内置的 hello uniapp 模版你运行是否有这个问题,多提供下你的测试结果,我好转给相关同事
2024-11-04 11:54