Skip to content

webview_flutter memory leak #47992

Closed
Closed

Description

@amirh

Originally posted by @nuptdzs in #24714 (comment)

with IOS ,I use webview_flutter plugin,I repeatedly enter and exit this page .The memory will grow all the time, and in the leaks tool of Xcode, we can see that a variable is not released after exiting, as shown in the figure below, it seems that some other changes to GL cause this problem.

image

image


[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G87, locale zh-Hans-CN)
 
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.38.1)
[!] Proxy Configuration
    ! NO_PROXY is not set
[✓] Connected device (1 available)

Can you try to analyze this problem, and look forward to your answer. This problem will cause our application memory to grow until it crashes, hoping to give us a solution.

@nuptdzs can you please share a minimal code sample that reproduces the issue?

cc @cyanglaz

Activity

  1. Doris1994 commented on Jan 10, 2020

    @Doris1994

    I also encountered the same problem,See the previous solution https://github.com/flutter/flutter/commit/93f339fb67df2934e618cfca0f9d5bd7982e4bcd , flutter version is v1.12.13+hotfix.5.
    But the problem still exists

  2. added
    c: performanceRelates to speed or footprint issues (see "perf:" labels)
    on Mar 30, 2020
  3. owenkealey commented on Jul 19, 2020

    @owenkealey

    This has been open for 7 months -- am I correct in assuming platform views in flutter have been causing memory leaks for the last seven months?

  4. ycv005 commented on Oct 24, 2020

    @ycv005

    Tagging all Webview team: @blasten @TahaTesser @chinmaygarde @jason-simmons Do this issue is fixed ?. It is going to be 1 Year nearly.

  5. added
    P3Issues that are less important to the Flutter project
    on Nov 9, 2020
  6. danagbemava-nc commented on Aug 10, 2021

    @danagbemava-nc
    Member

    Hi @amirh, can you please confirm if you're still experiencing this issue on the latest flutter stable and webview_flutter version?

  7. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 10, 2021
  8. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 3, 2021
  9. TahaTesser commented on Sep 3, 2021

    @TahaTesser
    Contributor

    Without additional information, we are unfortunately not sure how to resolve this issue.
    We are therefore reluctantly going to close this bug for now.
    Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
    Thanks for your contribution.

    Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
    All system setups can be slightly different, so it's always better to open new issues and reference related issues.

  10. added
    r: timeoutIssue is closed due to author not providing the requested details in time
    on Sep 3, 2021
  11. github-actions commented on Sep 17, 2021

    @github-actions

    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, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)p: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.perf: memoryPerformance issues related to memoryplatform-iosiOS applications specificallyr: timeoutIssue is closed due to author not providing the requested details in time

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions