cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
7.37k stars 1.86k forks source link

wechatgame spine 骨骼动画内存泄露 #8451

Closed Jeleren closed 3 years ago

Jeleren commented 3 years ago

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 image 添加这行代码之后json文件被释放掉了,希望官方测试一下,并及早修复

yeshao2069 commented 3 years ago

相关论坛反馈 https://forum.cocos.org/t/spine/82247/11

zhefengzhang commented 3 years ago

我这边测试没有泄漏的情况呢。 图片 请你也测试一下我的代码 wechatgame.zip

Jeleren commented 3 years ago

我这边测试没有泄漏的情况呢。 图片 请你也测试一下我的代码 wechatgame.zip

请问能发下源码吗 我这要加jsb才能在我们的宿主上运行

zhefengzhang commented 3 years ago

spine-leak-test.zip