后台并发复制GC已释放-Flutter [英] Background concurrent copying GC freed - Flutter
问题描述
在Flutter日志中,我不断收到此消息(只是带有一些不同的数字):
In my Flutter log I'm constantly getting this messages(just with some different numbers):
Background concurrent copying GC freed 153040(3MB) AllocSpace objects, 12(4MB) LOS objects, 49% free, 4MB/8MB, paused 819us total 173.633ms
我最近实现了块模式,我对流不那么熟悉,也许我在这里做错了...
I recently implemented the bloc pattern and I'm not that familiar with streams, maybe I've done something wrong there...
I有大约5000行代码,所以我不能在这里发布所有代码,只是想知道你是否知道这个问题,也许这是一个常见错误。
I got about 5000 lines of code so I can't post it all here, just wanna know if you know this problem, maybe it's a common error.
编辑:哦,是的,顺便说一句,我正在Android模拟器Android Pie上进行测试。我的平台是Windows。
Oh yeah, btw I'm testing on Android Emulator, Android Pie. My platform is Windows.
推荐答案
很明显,这是我自己的一个愚蠢的错误……我做了一些更新功能,增加了一些东西到 Stream
,然后立即又被调用,因为它也在听 Stream
。因此,存在无限循环添加和响应 Stream
。
Obviously it was a dumb mistake by myself... I made some update function, that added something to the Stream
, and then instantly got called again because it was also listening to the Stream
. So there was an infinite loop of adding and reacting to the Stream
.
感谢任何人的帮助,一些有用的提示!
Thanks to anyone helping anyways, there are some useful tips!
这篇关于后台并发复制GC已释放-Flutter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!