内存卸载不了的问题

オープン
#115 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, unity
領域
mobile

調査の方向性

Start by reading the Unity as a Library integration points that implement showunity and the unload call, then trace how the Cocos iOS project enters and exits Unity. Reproduce repeated transitions while observing memory in Xcode; the report says vm_allocate grows after 7–8 cycles and mentions ILRuntime. Done means identifying whether the integration can release that memory and confirming memory no longer grows across repeated returns.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Objective-C++
スター
815
フォーク
252
平均マージ
21時間 42分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/uaal-example のほかの issue

Unity-Technologies/uaal-example の issue をすべて見る

似ている issue

Mobile Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。