我在ffimageloading中有一些图像列表视图:CachedImage库....但是...当我测试时我正在反复做:我打开列表视图并按下操作栏上的后退按钮,在确定的时间,我按后退按钮我有一个例外:
03-02 09:31:13.511 I / art(2430):启动阻止GC显式03-02 09:31:13.522 I / art(2430):将目标GC堆从108MB钳制到96MB 03-02 09:31: 13.522 I / art(2430):显式并发标记扫描GC释放10820(745KB)AllocSpace对象,90(1956KB)LOS对象,3%免费,92MB / 96MB,暂停136us总计9.552ms 03-02 09:31:13.535 D /单声道(2430):GC_OLD_BRIDGE NUM-对象997个num_hash_entries 50753个SCCS大小25365个初始化0.00ms DF1 37.29ms排序7.73ms DFS2 26.26ms设置-CB 1.58ms自由数据17.62ms链路67211/67211/24685/2 DFS传递118961 / 92576九月3日至2日:31:13.535 d /单声道(2430):GC_BRIDGE:在使用9136K::完成,正在运行为79.60ms九月3日至2日:31:13.535 d /单声道(2430):GC_MAJOR_SWEEP:主要尺寸8634K 03-02 09:31:13.535 D / Mono(2430):GC_MAJOR :( LOS溢出)时间60.53ms,stw 67.10ms los size:27648K in use:8339K 03-02 09:31:13.578 I / art(2430) :启动阻止GC Alloc 03-02 09:31:13.578 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.580 I / art(2430):开始封锁GC Alloc 03-02 09:31:13.585 I / art(2430):夹紧目标GC堆从108MB到96MB 03-02 09:31:13.585 I / art(2430):Alloc部分并发标记扫描GC释放4847(397KB)AllocSpace对象,0(0B)LOS对象,4%免费,92MB / 96MB,暂停191us总计5.177ms 03-02 09:31:13.585 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.594 I / art(2430):Clamp目标GC堆从108MB到96MB 03-02 09:31:13.594 I / art(2430):Alloc并发标记扫描GC释放3(96B)AllocSpace对象,0( 0B)LOS对象,4%免费,92MB / 96MB,暂停172us总计8.267ms 03-02 09:31:13.594 I / art(2430):强制收集SoftReferences以进行7MB分配03-02 09:31:13.594 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.602 I / art(2430):钳制目标GC堆从108MB到96MB 03-02 09:31:13.602 I / art(2430):Alloc并发mark sweep GC释放3(96B)AllocSpace对象,0(0B)LOS对象,4%免费,92MB / 96MB,暂停178us总计7.794ms 03-02 09:31:13.602 W / art(2430):抛出OutOfMemoryError“无法分配带有4161352个空闲字节的8294412字节分配和3MB直到OOM”03-02 09:31:13.602 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.602 I / art (2430):启动阻塞GC Alloc 03-02 09:31:13.604 I / art(2430):启动阻塞GC Alloc 03-02 09:31:13.609 I / art(2430):从108MB夹紧目标GC堆至96MB 03-02 09:31:13.609 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.613 I / art(2430):将目标GC堆从108MB夹紧到96MB 03-02 09: 31:13.614 I / art(2430):强制收集SoftReferences以进行7MB分配03-02 09:31:13.614 I / art(2430):启动阻止GC Alloc 03-02 09:31:13.621 I / art(2430) ):Clamp目标GC堆从108MB到96MB 03-02 09:31:13.621 I / art(2430):Alloc并发标记扫描GC释放3(96B)AllocSpace对象,0(0B)LOS对象,4%免费,92MB / 96MB,暂停186us总计7.048ms 03-02 09:31:13.621 W / art(2430):抛出OutOfMemoryError“无法分配8294412 byt分配4162792个空闲字节和3MB直到OOM“03-02 09:31:13.621 D / skia(2430):---分配位图分配失败未处理异常:Java.Lang.OutOfMemoryError:无法分配8294412字节分配使用4162792个空闲字节和3MB直到OOM
在此错误之前我也可以在输出中看到:
03-02 09:28:17.208 I / mono-stdout(2430):在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common中的FFImageLoading.MiniLoggerWrapper.Error(System.String errorMessage,System.Exception ex)[0x00000] \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430):在C:\ projects中的FFImageLoading.MiniLoggerWrapper.Error(System.String errorMessage,System.Exception ex)[0x00000] \ ffimageloading \源\ FFImageLoading.Common \助手\ MiniLoggerWrapper.cs:30九月3日至2日:28:17.208 I /单标准输出(2430):在FFImageLoading.MiniLoggerWrapper.Error(System.String的errorMessage,System.Exception的前) [0x00000]在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430):at FFImageLoading.MiniLoggerWrapper.Error(System。字符串errorMessage,System.Exception ex)[0x00000]在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430):at FFImageLoading.MiniL oggerWrapper.Error(System.String errorMessage,System.Exception ex)[0x00000]在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-标准输出(2430):在FFImageLoading.MiniLoggerWrapper.Error(System.String的errorMessage,System.Exception的前)[0x00000]在C:\项目\ ffimageloading \源\ FFImageLoading.Common \助手\ MiniLoggerWrapper.cs:30 9月3日至2日:28:17.208 I /单标准输出(2430):在FFImageLoading.MiniLoggerWrapper.Error(System.String的errorMessage,System.Exception的前)[0x00000]在C:\项目\ ffimageloading \源\ FFImageLoading.Common \助手\ MiniLoggerWrapper .cs:30 03-02 09:28:17.208 I / mono-stdout(2430):在C:\ projects \ ffimageloading \ source中的FFImageLoading.MiniLoggerWrapper.Error(System.String errorMessage,System.Exception ex)[0x00000] \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430):在FFImageLoading.MiniLoggerWrapper.Error(System.String errorMessage,System.Exception) ex)[0x00000]在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430):at FFImageLoading.MiniLoggerWrapper.Error( System.String errorMessage,System.Exception ex)[0x00000]在C:\ projects \ ffimageloading \ source \ FFImageLoading.Common \ Helpers \ MiniLoggerWrapper.cs:30 03-02 09:28:17.208 I / mono-stdout(2430) :---抛出异常的前一个位置的堆栈跟踪结束--- 03-02 09:28:17.208 I / mono-stdout(2430):at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()[0x0000c]在<657aa8fea4454dc898a9e5f379c58734>:0 03-02 09:28:17.208 I / mono-stdout(2430):在<657aa8fea4454dc898a9e5f379c58734中的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task任务)[0x0003e]> :0九月3日至2日:28:17.208 I /单标准输出(2430):在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task任务)[0x00028]在<657aa8fea4454dc 898a9e5f379c58734>:0九月3日至2日:28:17.208 I /单标准输出(2430):在System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task任务)[0x00008]在<657aa8fea4454dc898a9e5f379c58734>:0 03-02 09:28:17.208 I / mono-stdout(2430):在System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1 + ConfiguredTaskAwaiter [TResult] .GetResult()[0x00000] in <657aa8fea4454dc898a9e5f379c58734>:0 03-02 09: 28:17.208 I /单标准输出(2430):在FFImageLoading.Work.WorkScheduler + d__43.MoveNext()[0x001bb]在C:\项目\ ffimageloading \源\ FFImageLoading.Common \工作\ WorkScheduler.cs:158 03- 02 09:28:17.208 I / mono-stdout(2430):---托管Java.Lang.OutOfMemoryError堆栈跟踪结束--- 03-02 09:28:17.208 I / mono-stdout(2430):java。 lang.OutOfMemoryError:尝试抛出OutOfMemoryError时抛出OutOfMemoryError;没有堆栈追踪可用03-02 09:28:17.211 I / Choreographer(2430):跳过80帧!应用程序可能在其主线程上做了太多工作。
我更新了ffimageloading但错误仍在这里...我试过了
MONO_GC_PARAMS=bridge-implementation=old
在环境txt
这是我在PCL中的xaml:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="neoFly_Montana.Views.ProdutosView"
xmlns:local="clr-namespace:neoFly_Montana.LayoutScripts"
xmlns:interface="clr-namespace:neoFly_Montana.Interface"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
BackgroundImage="prodBackground.jpg"
x:Name="ParentHost">
<ContentPage.Content>
<Grid HorizontalOptions="FillAndExpand" RowSpacing="0" VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="9.4*"/>
<RowDefinition Height="0.6*"/>
</Grid.RowDefinitions>
<!-- Lista de produtos -->
<ListView Grid.Row="0" Grid.Column="0" ItemSelected="ListView_ItemSelected" CachingStrategy="RecycleElement" BackgroundColor="Transparent" x:Name="listview_produtos" Margin="10,0,10,0" SeparatorVisibility="None" HasUnevenRows="True" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<ListView.Header>
<!-- Observação -->
<StackLayout>
<StackLayout x:Name="prod_stack_obser" IsVisible="False" Orientation="Horizontal" Spacing="0" HorizontalOptions="FillAndExpand">
<Label x:Name="label_observ" HorizontalTextAlignment="Start" VerticalOptions="Center" FontSize="Small" TextColor="White" Style="{StaticResource labelsfont}" Margin="20,10,0,10" />
<ffimageloading:CachedImage x:Name="lapis" Source="lapis.png" IsVisible="False" HorizontalOptions="EndAndExpand"/>
</StackLayout>
<BoxView HeightRequest="20"/>
</StackLayout>
</ListView.Header>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Margin="20,0,20,20">
<ffimageloading:CachedImage Source="texturaCateg.png" BackgroundColor="{Binding FundoColor, Source={x:Reference ParentHost}}" Grid.Row="0" Grid.Column="0" Aspect="Fill" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
<StackLayout Grid.Row="0" Grid.Column="0" VerticalOptions="FillAndExpand" x:Name="produtos_stack_color" Spacing="10">
<StackLayout Spacing="0" Grid.Row="0" Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand">
<StackLayout Orientation="Horizontal" Padding="10,10,10,0" VerticalOptions="Center" HorizontalOptions="FillAndExpand">
<ffimageloading:CachedImage FadeAnimationForCachedImages="True" DownsampleUseDipUnits="True" DownsampleHeight="60" HeightRequest="83" WidthRequest="130" Source="{Binding imagem}" Aspect="Fill" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" >
<!--<ffimageloading:CachedImage.CacheKeyFactory>
<interface:CustomCacheKeyFactory/>
</ffimageloading:CachedImage.CacheKeyFactory>-->
</ffimageloading:CachedImage>
<!--HeightRequest="83" WidthRequest="100"-->
<!--DownsampleHeight="83"-->
<!--<StackLayout Orientation="Horizontal" VerticalOptions="Center" HorizontalOptions="EndAndExpand">
<Label Style="{StaticResource labelsfont}" Text="R$" VerticalOptions="CenterAndExpand" TextColor="{Binding TextColor, Source={x:Reference ParentHost}}" FontSize="Medium"/>
<Label Style="{StaticResource labelsfont}" Text="{Binding valor}" TextColor="{Binding TextColor, Source={x:Reference ParentHost}}" FontAttributes="Bold" VerticalOptions="Start" FontSize="30"/>
</StackLayout>-->
</StackLayout>
<!--nome-->
<Label Text="{Binding nome}" Margin="0,10,0,10" Style="{StaticResource labelsfont}" TextColor="{Binding TextColor, Source={x:Reference ParentHost}}" HorizontalTextAlignment="Center" FontAttributes="Bold" FontSize="Medium" HorizontalOptions="CenterAndExpand"/>
</StackLayout>
<Grid VerticalOptions="FillAndExpand">
<BoxView Grid.Row="0" Grid.Column="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" BackgroundColor="WhiteSmoke" Opacity="0.2"/>
<Label Grid.Row="0" Grid.Column="0" Margin="10,10,10,10" HorizontalTextAlignment="Center" Text="{Binding observacao}" Opacity="1" FontSize="Small" Style="{StaticResource labelsfont}" TextColor="{Binding TextColor, Source={x:Reference ParentHost}}" HorizontalOptions="Center" />
</Grid>
</StackLayout>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.Footer>
<StackLayout>
<Grid x:Name="prod_rl_fundo" >
<Grid.Margin>
<OnPlatform x:TypeArguments="Thickness"
iOS="20,0,20,0"
Android="20,10,20,10"/>
</Grid.Margin>
<ffimageloading:CachedImage x:Name="prod_acomp_img" Source="texturaCateg.png" Grid.Row="0" Grid.Column="0" HorizontalOptions="FillAndExpand" Aspect="Fill" VerticalOptions="FillAndExpand"></ffimageloading:CachedImage>
<!--Acompanhamentos-->
<StackLayout x:Name="stack_acompanhamentos" Spacing="0" Grid.Row="0" Grid.Column="0">
<Grid x:Name="prod_acompanhamentos_title" HorizontalOptions="FillAndExpand">
<BoxView Grid.Row="0" Grid.Column="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" BackgroundColor="WhiteSmoke" Opacity="0.2"/>
<Label x:Name="produtos_acomp_title" Text="+ Dois Acompanhamentos" Grid.Row="0" Grid.Column="0" Style="{StaticResource labelsfont}" Margin="20,20,20,20" FontAttributes="Bold" VerticalOptions="CenterAndExpand" HorizontalOptions="Center" />
</Grid>
</StackLayout>
</Grid>
<BoxView HeightRequest="50"></BoxView>
</StackLayout>
</ListView.Footer>
</ListView>
<!--Rodapé Grid-->
<Grid Grid.Row="1" Grid.Column="0" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<ffimageloading:CachedImage Source="rodape.png"
HorizontalOptions="FillAndExpand"
Aspect="AspectFill"
VerticalOptions="FillAndExpand"
Grid.Row="0"/>
<!--Escrito Rodapé-->
<StackLayout Orientation="Horizontal"
Margin ="5,5,5,5" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" Grid.Row="0">
<Label
FontSize="Micro"
Text="Você está em:"
Style="{StaticResource labelsfont}"
VerticalOptions="CenterAndExpand"
TextColor="White"/>
<Label FontSize="Micro"
Text="loja"
x:Name="prod_lbl_lojaprox"
Style="{StaticResource labelsfont}"
VerticalOptions="CenterAndExpand"
TextColor="{StaticResource laranjacolor}"
LineBreakMode="TailTruncation"
FontAttributes="Bold" />
</StackLayout>
</Grid>
</Grid>
</ContentPage.Content>
我的主要活动:
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
//inicializa imageCircle
ImageCircleRenderer.Init();
//shared Preferences
App.Init(new AndroidUserPreferences());
//Gerenciador de memória
CachedImageRenderer.Init(true);
var config = new FFImageLoading.Config.Configuration()
{
VerboseLogging = false,
VerbosePerformanceLogging = false,
VerboseMemoryCacheLogging = false,
VerboseLoadingCancelledLogging = false,
FadeAnimationForCachedImages = false,
MaxMemoryCacheSize = 50000000,
FadeAnimationDuration = 500
//Logger = new CustomLogger(),
};
FFImageLoading.ImageService.Instance.Initialize(config);
LoadApplication(new App());
}
public override void OnTrimMemory([GeneratedEnum] TrimMemory level)
{
FFImageLoading.ImageService.Instance.InvalidateMemoryCache();
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
base.OnTrimMemory(level);
}
public override void OnLowMemory()
{
FFImageLoading.ImageService.Instance.InvalidateMemoryCache();
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
base.OnLowMemory();
}
我的图像是base64(png),它们有8kb,它们是150x84像素
其中之一:
数据:图像/ PNG; BASE64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABQCAMAAADMbnx5AAAC / VBMVEUAAAAAAAAAAAAAAAABAQEAAAAEBAQAAAAAAAAAAAAAAAACAgIAAAABAQEAAAAAAAAAAAD9 / P78 + / 36 + vxWVlgrKiv8 + / 3T0tb + / f5zc3X8 + / 39 / f7x8fLIx8r8 + / 3t7O + xsbX8 + / 3a2N6Yl5v9 / F79 / F76 + fzh4eW9vL + 5ub6mpamIiIqOjY / W1NkUFBT29vv5 + FZ7 + / 3 + / f7y8PX08 / X39vn9 + / NW7 / L08 / j49fX7 + PcpMhX18fA6RiExPBckLRA0Px7y6d83RBk8Sxr56bO8LAj35az567stNhr07un67sJDUSIeJg / V6 + 3FNQz89 / HHTCA / SyX78c29ORD27uNHVSrt7PLp49 / z4Kfgl2zs6Obv5djy2o / BVjDo39bz48VMWyj135u / RByxLQnRWyxGVhzo3MoZIAvc2 + Ll1cL48 + / + ko3ndiFItORLOQhHx4rb433a3gDb78 rx2r344YjggELUajz55JbUf1z322V3RyPp6O3Hytrw2p3uv4zy1n / kmVnv49D45aH21lJPYh368tqxppLqsn7diWXKa0zok0NjdimRWRqiNQ7k5OrrxqzyypvosI66lm + HUyz26dHkzrTYw6z76qjux1xcVVTWdEvdcznJYjk9NDVTYyrstCSoaSTfaiJXGAfx067Wj3vyz2VETis0Jyfrvp / ppGruxFB / ajRSXDKyTCSGPhslGRe8s53mz5zZnIuIgHpqZ2XmtEXEl0JIREJhajagVDS2eCXPUx / dWBZxKAujm5vSr4vHeFO0aUiodTqwPxh + cHPktV / uwTYWDg3c1NTNo3mbaFZ4WVWoukDBijSUNA3S09vguZjiw3urpXtxeEbmpiZYbCOQhU70zkC / w9HY0LabgHuhkWKtf1NZZTyZcTmQqCjLxr3gsKzOuqGPio / YrkrXoyyUQi JqVxtqPhW7vcO8ta2clXbLjWlZPTSEmSpygSixs7jM0Iu9wHOol08QFwXGeG87RCjdkx + fo7Hk332 / p1jN0U1VOh8LEQLk4WCAeeGlAAAAL3RSTlMACRAWXzIcIEksJlZPOj9ENgrqtXtvm9 / Oj0qKJ9R56rU57adZGmnfzL + 5OO + GNZIyLVgAABYOSURBVGje7NKxaoNAGMDxvIIR5FARBJPZO + LBiUtGh3BLpgh21iXgO3To1Kl9Ap / A53DK5iT3AoKCQ7d + Zw9a6dYmNAV / 6OBy / VM + Wy0Wi8Vi8Q9p2uq + aK5joZDScI10w / LuI892Iko5pwohBFmeCVzX3vxJomabnhHSnEFOc2qSkBeqDAMyWU8jdDzXvnki5DiGjtYY + 0wuT + rrth0aHnJKKAE + Vr4UIsMx7dUtaO7WQAFW / ICxkPPj5dL1Q133xTHlclzzrnkgRsbWvebkNp6FZj / zd4yxnMb7oe26toWuPink + AjAIi0PVSCiTFRY8QEG0GaZ10jTTAvJ42ZghYDS + JTJHdZv52MB3 / xjXq + 76uVJ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XsV7ZzZgT4DYJbLo + 7HKMwzWCAPSlUKhfMNVIHPQwvqSNVRUz2wmwm HvDFqskUGHXb8HrOqckk96BwDmGJ / AMgy2cCJaqaysrFSr1Wbr8vJypxYMMph7iDxL00KQZRn + In8jsqJoWkGDWYUj / MCto / 2ieRwLhykf7B8d8xCojvo9xjBU8gZscHLU5 / VBVKyNRlRF2nLpdM5Wmih30mraxMWjet2yLMWCX9ghkskfuAQ4iMInHBemqZFhh8NlQ3XfUT2ajICRUrpdTsfw5KiXkHnDILtDuyWEVirRRAxKEPJoWyVM4VJ0PhGboyjvNJC8cyPPYZTL3df1X1B3YP9qs4MVBaEwDMObpBnBxoVycHFAdOMclw3YTbT1ZroHr3ne7 + fISdxlfQRRET68WhvzrLh8IauCm0W7TtA4eNqycHL4wd9udkdm0mZ2j8Nk37t3g0yE4kJPqJdgXPz5d1b8SFY3wT0mqwYujmOyvzRoPMTT9BGNH93QVyeZFCrH9DLKYDEZMs4mtFM1 / rplVjjxNpvWmVP1rirb + dDUkNQJUwxlqGOwKCuhUQ1b3fSt7xartaLEQEocfPThKnRDGBGpkjKVMm1DHZc90bCBQ1c1Yx / awXvnXKfx7P3Qhn5sKjyATHRZSTIl1HFZomHLCnDSwcO3HxrzADKRSJYpmd5PMxu4soSHD + BmvCMOHoHyc6z0flP6lzVbxJ3h4UO4HRg45gGE6EOkfTXhpGMAGcY4XkgjTwQh + qRp3y0B0yLmmOcfWN + InURusO8AAAAASUVORK5CYII =
更新:我搜索了这么多......我需要缓存密钥吗?
您是否已将InvalidateMemoryCache实施到MainActivity中?在https://github.com/luberda-molinet/FFImageLoading/wiki/Advanced-Usage#clear-cache-and-memory-considerations了解更多信息
public override void OnTrimMemory([GeneratedEnum] TrimMemory level)
{
FFImageLoading.ImageService.Instance.InvalidateMemoryCache();
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
base.OnTrimMemory(level);
}
public override void OnLowMemory()
{
FFImageLoading.ImageService.Instance.InvalidateMemoryCache();
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
base.OnLowMemory();
}
我想,问题出在你的base64逻辑上,但试试吧。