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

Not enough storage space to install required resources - AssetModuleException #202

Open
noambe opened this issue Sep 27, 2022 · 13 comments
Open

Comments

@noambe
Copy link

noambe commented Sep 27, 2022

I'm seeing a very strange problem on my Android phone- I have a game published in Google Play that works fine on all of my devices.
Recently, on the same device that used to work just fine, when I download the game from Google Play I get this popup message saying "Error - Not enough storage space to install required resources".
I haven't updated the game on Google Play at all, it just started happening.

Important to note: the game worked fine on the same phone just a few days ago.
My phone's space is fine, I have 40gb free, and I also tried another Unity game of mine and it loads fine.
Phone model: Galaxy S22
This is what I see in the adb logs:

2022-09-27 06:36:10.226 25347-27302 E/Finsky: [303] gid.a(75): Request execution failed with error code: -2
com.google.android.finsky.assetmoduleserviceutils.AssetModuleException: Request to PGS failed because all packs are unavailable.
at fkv.Yb(PG:69)
at foy.l(PG:7)
at eqr.run(PG:5)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8751)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
2022-09-27 06:36:10.227 27203-27216 E/PlayCore: UID: [10515] PID: [27203] AssetPackServiceImpl : onError(-2)

I tried:
cleaning Google Play cache
reboot phone
uninstall/reinstall multiple times from different accounts.

Still repros- any idea??

@tromagon
Copy link

Currently facing the exact same issue, did you manage to fix it?

@noambe
Copy link
Author

noambe commented Nov 16, 2022

Currently facing the exact same issue, did you manage to fix it?

No. I was only able to understand why the problem happens, but not a solution. It's related to Android not deleting the app folder from the external memory after uninstall. My next step is to factory reset the phone...

See my other post here: https://forum.unity.com/threads/app-uninstall-doesnt-clean-folder-inside-storage-emulated-0-android-data.1353758/#post-8544083

@noambe
Copy link
Author

noambe commented Nov 16, 2022

Currently facing the exact same issue, did you manage to fix it?

Can you write your device model? I just heard of another S22 that can't install my app.

@tromagon
Copy link

Can you write your device model? I just heard of another S22 that can't install my app.

Phone is a Galaxy S22+
Model number is SM-S906W

@noambe
Copy link
Author

noambe commented Nov 18, 2022

It sure looks like a problem with S22 then. I updated my post in this forum, and also opened a ticket on Samsung. Now it's just hoping that the right eyes see that.
https://forum.unity.com/threads/samsung-s22-broken-with-unity-not-enough-storage-space-to-install-required-resources-100-repro.1349477/#post-8592478

@tromagon
Copy link

tromagon commented Nov 18, 2022

Would this occur if you were to post resulting build on the store, and download it from there?
Also does this happen when debugging directly from Unity?

@noambe
Copy link
Author

noambe commented Nov 19, 2022

Yes for both.
You can download my game, launch it, uninstall and download again: https://play.google.com/store/apps/details?id=NoamStudios.Games.MegaTicTacToeFree&hl=en_US&gl=US&pli=1
Let me know if that repro's for you.

@tromagon
Copy link

I did a factory reset of the phone, so it was okay for a while then the issue started happening again.
I tried your game and the steps you provided, the bug occurs 100%
Any progress on your end?

@noambe
Copy link
Author

noambe commented Dec 21, 2022

No, at this point Samsung and Unity needs to figure this out between themselves. So far I opened tickets for both of them, but it's not getting traction. I wish I had better way to escalate.
It seems to be happening just on S22, so I simply avoid testing on this device.

@guenthereder
Copy link

No, at this point Samsung and Unity needs to figure this out between themselves. So far I opened tickets for both of them, but it's not getting traction. I wish I had better way to escalate.
It seems to be happening just on S22, so I simply avoid testing on this device.

I seem to have run into a similar problem, also with an S22.

@noambe
Copy link
Author

noambe commented Jan 11, 2023

If anyone has good connections with either Samsung or Unity, please help escalate to their eng team. As of now I'm not getting any traction from any of them being a single developer.

@End2417
Copy link

End2417 commented Jan 18, 2023

I managed to fix it by doing the following: delete the data folder (Android/data (not sure if it's necessary, but just to be safe)), clear your app data/cache, and give storage permission before opening the app.

I'm pretty sure it should work. Gl.

@KitoKato7
Copy link

I have the same issue, this occur after I use SDMaid pro to clean my Mi 8, and after that crash keep happening, so I enable Storage Permission before open the app -> open the app then wait a bit . then bom the app works normally again

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

5 participants