You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered while attempting to export my project for Android. When I tried to export a game project multiple times, I noticed that the size of the game's APK package was growing at an alarming rate, doubling in size each time. It started from 600MB, then grew to 1.3GB, and further to 2.9GB. Moreover, during the fourth export attempt, the editor crashed directly.
I then took steps to reproduce this issue. I found that when there were no audio resources (such as .ogg/.wav/.mp3) in the project directory, this problem didn't occur, and I could export the project multiple times without the editor crashing. However, once I added any audio file to the project, the size of the game's APK package would increase with each export, and it was guaranteed to crash during the fourth export. Specifically, the editor would flash back (close unexpectedly) after pressing the export project button.
I have also created a minimal reproducible example, and the steps are as follows:
Create a new game project and set up a Control scene as the root node.
Load the fmod-gdextension plugin in the addons, check it within the editor, install the default Android export template, and add the godot android plugin mentioned in the wiki.
Use Gradle for building, check the fmod plugin, and export in release.
After testing, when exporting the game project multiple times with this setup and without adding an audio file, there were no issues, and the size of the game's APK package was 71.068KB.
After that, I added a base.ogg file (with a size of 104KB) to the project directory, and then the problem emerged.
During the first build, the APK package size was 71.068KB.
During the second build, the APK package size was 72,645KB.
During the third build, the APK package size was 74,310KB.
During the fourth build, the editor flashed back (crashed).
After the crash, I inspected the "res://android/build/assets" folder and discovered a recursive structure within its directory:
In the "res://android/build/assets/android/build/assets" path, the base.ogg file appeared.
In the "res://android/build/assets/android/build/assets/build/assets/" path, the base.ogg file appeared again.
In the "res://android/build/assets/android/build/assets/android/build/assets/android/build/assets" path, the base.ogg file was also present.
Furthermore, I checked the corresponding directories of the previously crashed projects and found that all audio resources in the project (such as .mp3/.ogg/.wav) were being repeatedly imported under the above paths. I suspect that this might be where the problem lies.
I encountered while attempting to export my project for Android. When I tried to export a game project multiple times, I noticed that the size of the game's APK package was growing at an alarming rate, doubling in size each time. It started from 600MB, then grew to 1.3GB, and further to 2.9GB. Moreover, during the fourth export attempt, the editor crashed directly.
I then took steps to reproduce this issue. I found that when there were no audio resources (such as .ogg/.wav/.mp3) in the project directory, this problem didn't occur, and I could export the project multiple times without the editor crashing. However, once I added any audio file to the project, the size of the game's APK package would increase with each export, and it was guaranteed to crash during the fourth export. Specifically, the editor would flash back (close unexpectedly) after pressing the export project button.
I have also created a minimal reproducible example, and the steps are as follows:
After testing, when exporting the game project multiple times with this setup and without adding an audio file, there were no issues, and the size of the game's APK package was 71.068KB.
After that, I added a base.ogg file (with a size of 104KB) to the project directory, and then the problem emerged.
During the first build, the APK package size was 71.068KB.
During the second build, the APK package size was 72,645KB.
During the third build, the APK package size was 74,310KB.
During the fourth build, the editor flashed back (crashed).
After the crash, I inspected the "res://android/build/assets" folder and discovered a recursive structure within its directory:
In the "res://android/build/assets/android/build/assets" path, the base.ogg file appeared.
In the "res://android/build/assets/android/build/assets/build/assets/" path, the base.ogg file appeared again.
In the "res://android/build/assets/android/build/assets/android/build/assets/android/build/assets" path, the base.ogg file was also present.
Furthermore, I checked the corresponding directories of the previously crashed projects and found that all audio resources in the project (such as .mp3/.ogg/.wav) were being repeatedly imported under the above paths. I suspect that this might be where the problem lies.
Godot Version: v4.3.stable.steam/v4.3.stable.mono
Plugin Version: 5.0.0-4.3.0
The text was updated successfully, but these errors were encountered: