Skip to content

微信点击允许之后返回APP,APP发生闪退 #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZoeyGit opened this issue Jul 10, 2024 · 4 comments
Open

微信点击允许之后返回APP,APP发生闪退 #146

ZoeyGit opened this issue Jul 10, 2024 · 4 comments

Comments

@ZoeyGit
Copy link

ZoeyGit commented Jul 10, 2024

E/AndroidRuntime(16826): java.lang.RuntimeException: Unable to destroy activity {com.zhikaodian.tk/com.zhikaodian.tk.wxapi.WXEntryActivity}: java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1
E/AndroidRuntime(16826): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:6828)
E/AndroidRuntime(16826): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:6874)
E/AndroidRuntime(16826): at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:57)
E/AndroidRuntime(16826): at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:50)
E/AndroidRuntime(16826): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
E/AndroidRuntime(16826): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105)
E/AndroidRuntime(16826): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3082)
E/AndroidRuntime(16826): at android.os.Handler.dispatchMessage(Handler.java:117)
E/AndroidRuntime(16826): at android.os.Looper.loopOnce(Looper.java:205)
E/AndroidRuntime(16826): at android.os.Looper.loop(Looper.java:293)
E/AndroidRuntime(16826): at android.app.ActivityThread.loopProcess(ActivityThread.java:9986)
E/AndroidRuntime(16826): at android.app.ActivityThread.main(ActivityThread.java:9975)
E/AndroidRuntime(16826): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16826): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
E/AndroidRuntime(16826): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1240)
E/AndroidRuntime(16826): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1
E/AndroidRuntime(16826): at java.util.ArrayList.remove(ArrayList.java:506)
E/AndroidRuntime(16826): at com.tencent.vod.flutter.tools.TXFlutterEngineHolder$1.onActivityDestroyed(TXFlutterEngineHolder.java:96)
E/AndroidRuntime(16826): at android.app.Application.dispatchActivityDestroyed(Application.java:549)
E/AndroidRuntime(16826): at android.app.Activity.dispatchActivityDestroyed(Activity.java:1601)
E/AndroidRuntime(16826): at android.app.Activity.onDestroy(Activity.java:2877)
E/AndroidRuntime(16826): at android.app.Activity.performDestroy(Activity.java:8875)
E/AndroidRuntime(16826): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1379)
E/AndroidRuntime(16826): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:6815)
E/AndroidRuntime(16826): ... 14 more


Flutter 版本 3.22.2 Dart 版本 3.4.3

@droplet-js
Copy link
Collaborator

E/AndroidRuntime(16826): at com.tencent.vod.flutter.tools.TXFlutterEngineHolder$1.onActivityDestroyed(TXFlutterEngineHolder.java:96)

这是腾讯 sdk 的问题,看起来是你引入的另外一个插件引发的

@ZoeyGit
Copy link
Author

ZoeyGit commented Jul 10, 2024 via email

@ZoeyGit
Copy link
Author

ZoeyGit commented Jul 10, 2024

确实如此 superplayer_widget 腾讯云播放插件 导致的闪退 我注释掉运行正常

@winter-tech
Copy link

我只是升级了一些第三方库,也是闪退了,我没有superplayer_widget这个库也闪退

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants