gpt4 book ai didi

从最近的应用程序重新打开后,Flutter 应用程序无法正常工作

转载 作者:行者123 更新时间:2023-12-03 03:03:40 24 4
gpt4 key购买 nike

我正在开发一个 flutter 应用程序,但遇到了以下错误。
当我关闭 flutter 应用程序而不从最近的应用程序中删除它并从最近的应用程序重新打开它时,我得到了这种类型的错误:

D/MALI    ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed
D/MALI ( 3778): gles_state_set_error_internal:75: [MALI] GLES ctx: 0x88f80008, error code:0x505
D/MALI ( 3778): gles_state_set_error_internal:76: [MALI] GLES error info: execution failed

并且应用程序中的当前屏幕卡住。该应用程序无法运行,除非我重建(flutter clean 和构建)并重新安装它。我尝试在网上搜索解决方案,但一无所获! `flutter doctor` 的结果:
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.18362.1016], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[√] VS Code (version 1.48.1)
[√] Connected device (1 available)

• No issues found!

提前致谢。

最佳答案

对于答案,我假设您是在 Android 设备上进行模拟,而不是 iOS 12 之前的模拟器。此外,导致错误的屏幕代码会有所帮助

从错误日志我们可以看出原因是graphics rendering API .此外,错误的触发是在 Android 设备上按下最近的应用程序按钮

鉴于上述参数,我的第一个假设是您的应用正试图在 Activity LifecycleonPause() 回调中呈现某些内容| .因此,您可能需要检查如何在代码中覆盖生命周期方法。

我的第二个猜测是,您可能正在执行一些在运行时没有很好地处理/回收的异步进程。因此,您可能需要正确启动/运行/处置您可能拥有的任何异步方法。在那种情况下,错误处理的异步任务可能会干扰图形进程并导致内存泄漏

关于从最近的应用程序重新打开后,Flutter 应用程序无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63561100/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com