Closed Jeleren closed 3 years ago
2.4.3
wechatgame
反复加载释放骨骼动画,内存会不断上涨
已经定位到骨骼动画json文件没有被释放掉,加载一次骨骼动画,json文件就会泄露一次
/Applications/CocosCreator/Creator/2.4.3/CocosCreator.app/Contents/Resources/builtin/adapters/platforms/wechat/wrapper/fs-utils.js 添加这行代码之后json文件被释放掉了,希望官方测试一下,并及早修复
相关论坛反馈 https://forum.cocos.org/t/spine/82247/11
我这边测试没有泄漏的情况呢。 请你也测试一下我的代码 wechatgame.zip
请问能发下源码吗 我这要加jsb才能在我们的宿主上运行
spine-leak-test.zip
Creator version?(版本号)
2.4.3
Affected platform?(受影响的平台)
wechatgame
How to reproduce?(如何重现)
反复加载释放骨骼动画,内存会不断上涨
问题定位
已经定位到骨骼动画json文件没有被释放掉,加载一次骨骼动画,json文件就会泄露一次
问题修复
/Applications/CocosCreator/Creator/2.4.3/CocosCreator.app/Contents/Resources/builtin/adapters/platforms/wechat/wrapper/fs-utils.js 添加这行代码之后json文件被释放掉了,希望官方测试一下,并及早修复