Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内存卸载不了的问题 #115

Open
Temozly opened this issue Aug 19, 2024 · 0 comments
Open

内存卸载不了的问题 #115

Temozly opened this issue Aug 19, 2024 · 0 comments

Comments

@Temozly
Copy link

Temozly commented Aug 19, 2024

使用unity嵌入到一个cocos导出的ios工程里面,从cocos主界面有一个按钮可以进入到unity,unity里面有一个按钮可以返回到cocos。现在发现,进入到unity,然后再返回到cocos,再进入unity,这样7 8 次之后,就会因为内存太大而导致crash,返回cocos的时候,调用了unload,进入unity调用的是showunity,通过xcode工程观察到 vm_allocate 确实变大了好多,怎么样才能卸载掉vm_allocate分配的内存,项目使用了ilruntime作为热更新的工具。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant