xamarin/Xamarin.Forms

Webviews aren't being garbage collected when the containing page is popped

オープン

#1,430 opened on 2017/12/20

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
a/webviewe/2 :clock2:good first issuehacktoberfest 🍻help wantedp/Androidt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Migrated from https://bugzilla.xamarin.com/show_bug.cgi?id=55749

Description

In the sample program, ThirdPage contains a webview defined in the xaml. Nothing is done to the webview in the code. Run the program and press the ThirdPage button, then the back arrow, 5 times and look at the memory allocations - there are 5 instances of the ThirdPage, WebView, WebViewRenderer, and WebClient (snapshot1 in the attached file). Not tap the button to garbage collect. The instances of ThirdPage and WebView drops to one, but WebViewRenderer and WebViewClient are still 5 (snapshot2). Why aren't these garbage collected?

Basic Information

  • Version with issue: 2.3.4

Reproduction Link

MemoryTest0.zip

コントリビューターガイド