Skip to content
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

Android App freezes after resuming from background #1215

Closed
4 tasks done
W3-Tariqul opened this issue Jun 8, 2022 · 14 comments
Closed
4 tasks done

Android App freezes after resuming from background #1215

W3-Tariqul opened this issue Jun 8, 2022 · 14 comments
Labels
bug Something isn't working stale

Comments

@W3-Tariqul
Copy link

W3-Tariqul commented Jun 8, 2022

Environment

Technology Version
Flutter version 3.0.1
Plugin version flutter_inappwebview: ^5.4.3+7
Android version Android 10
iOS version
Xcode version

Device information:

Samsung A10.
Ram 4 GB

Description

I am using this plugin test app. After opening the app scroll through the web view content then pause the app by switching to another app and coming back again. Then scroll not working. Webview stuck.

Expected behavior:

Should be scrollable

Current behavior:

App stuck scroll not working even page not moving.

Steps to reproduce

  1. Just run the example app
  2. Scroll the content
  3. Switch to another app. Spend 3-4 seconds there
  4. Comeback to the example app and try to scroll through the web view

Video

stuck_issue.mp4
@W3-Tariqul W3-Tariqul added the bug Something isn't working label Jun 8, 2022
@github-actions
Copy link

github-actions bot commented Jun 8, 2022

👋 @W3-Tariqul

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@W3-Tariqul W3-Tariqul changed the title App freezes after resuming from background Android App freezes after resuming from background Jun 10, 2022
@p-chaldaios
Copy link

Same problem here.
Got any update on this one?

@W3-Tariqul
Copy link
Author

Same problem here. Got any update on this one?

Unfortunately not. It seems it's a flutter current version problem cause I found flutter_webview and Google Maps has the same problem.

@p-chaldaios
Copy link

Same problem here. Got any update on this one?

Unfortunately not. It seems it's a flutter current version problem cause I found flutter_webview and Google Maps has the same problem.

Just found this project https://github.com/pichillilorenzo/flutter_browser_app
that uses flutter_inappwebview and seems that this issue does not exist.
Is it possible due to older flutter version?

@W3-Tariqul
Copy link
Author

Same problem here. Got any update on this one?

Unfortunately not. It seems it's a flutter current version problem cause I found flutter_webview and Google Maps has the same problem.

Just found this project https://github.com/pichillilorenzo/flutter_browser_app that uses flutter_inappwebview and seems that this issue does not exist. Is it possible due to older flutter version?

I found it starts from flutter 3.0

@blackorbs-dev
Copy link

Same problem here. Got any update on this one?

Unfortunately not. It seems it's a flutter current version problem cause I found flutter_webview and Google Maps has the same problem.

Just found this project https://github.com/pichillilorenzo/flutter_browser_app that uses flutter_inappwebview and seems that this issue does not exist. Is it possible due to older flutter version?

I found it starts from flutter 3.0

Hi guys, I'm facing the same issue here and I have downgraded Flutter to version 2.2.0. The inappwebview UI freezes when the app is resumed from background on Android 10+ and it crashes on Android version less than 10

@p-chaldaios
Copy link

Same problem here. Got any update on this one?

Unfortunately not. It seems it's a flutter current version problem cause I found flutter_webview and Google Maps has the same problem.

Just found this project https://github.com/pichillilorenzo/flutter_browser_app that uses flutter_inappwebview and seems that this issue does not exist. Is it possible due to older flutter version?

I found it starts from flutter 3.0

Hi guys, I'm facing the same issue here and I have downgraded Flutter to version 2.2.0. The inappwebview UI freezes when the app is resumed from background on Android 10+ and it crashes on Android version less than 10

For me after downgrading to Flutter 2.0.6 the issue seems to be resolved. Can you test on Flutter 2.0.6 and give us feedback?

@Manuito83
Copy link
Contributor

I have the same issue, but I'm unable to replicate it locally.

Reverting to InAppWebView v5.3.2 seems to have fixed it. Could you maybe check? Perhaps that way we could try to identify what's causing it?

@W3-Tariqul
Copy link
Author

I have the same issue, but I'm unable to replicate it locally.

Reverting to InAppWebView v5.3.2 seems to have fixed it. Could you maybe check? Perhaps that way we could try to identify what's causing it?

Could you share your flutter doctor report?

@sathya4code
Copy link

sathya4code commented Jul 1, 2022

Hi,

I am also facing the same issue. App crashing after resuming it from background.

Crash Log:

F/libc ( 6850): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 6991 (RenderThread), pid 6850 (m.xxx.xxx)


Build fingerprint: 'Redmi/dandelion_in/dandelion:10/QP1A.190711.020/V12.0.22.0.QCDINXM:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2022-07-01 16:41:03+0530
pid: 6850, tid: 6991, name: RenderThread >>> com.xxx.xxx <<<
uid: 10456
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'drawRenderNode called on a context with no surface!'
r0 00000000 r1 00001b4f r2 00000006 r3 ba55ab50
r4 ba55ab64 r5 ba55ab48 r6 00001ac2 r7 0000016b
r8 ba55ab60 r9 ba55ab50 r10 ba55ab80 r11 ba55ab70
ip 00001b4f sp ba55ab20 lr e7150343 pc e7150356
backtrace:
#00 pc 0005f356 /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: af31ec96b35fedca378e07659b30896c)
#1 pc 00005a31 /system/lib/liblog.so (__android_log_assert+176) (BuildId: 0e6ad61102d821f742108ac9db1c6d21)
#2 pc 0029ec3b /system/lib/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::getFrame()+26) (BuildId: cf5a3982d29f06d7a11e7d077a3d4440)
#3 pc 002a4b11 /system/lib/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+140) (BuildId: cf5a3982d29f06d7a11e7d077a3d4440)
#4 pc 002a414b /system/lib/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+170) (BuildId: cf5a3982d29f06d7a11e7d077a3d4440)
#5 pc 002b1aef /system/lib/libhwui.so (android::uirenderer::WorkQueue::process()+158) (BuildId: cf5a3982d29f06d7a11e7d077a3d4440)
#6 pc 002b194d /system/lib/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+72) (BuildId: cf5a3982d29f06d7a11e7d077a3d4440)
#7 pc 0000d8b3 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+182) (BuildId: a4424e73dbe004e8623d6713ad30a604)
#8 pc 000a6293 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: af31ec96b35fedca378e07659b30896c)
#9 pc 00060803 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: af31ec96b35fedca378e07659b30896c)

@sathya4code
Copy link

Hi All,

This issue has been resolved after upgrading the Flutter version.(Current version 3.0.4)

@blackorbs-dev
Copy link

Yes @sathya4code, the issue has been fixed in Flutter version 3.0.4, thanks!.

Copy link

github-actions bot commented Oct 4, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

5 participants