Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Not enough storage space to install required resources.

Discussion in 'Android' started by krzyszpieta, Feb 24, 2021.

  1. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    So here is the story. Our builds are done on Jenkins via a custom script. 99% of cases, we have our builds successful running on devices. However sometimes (no particular reason :)), we are getting errors as mentioned in the title. And of course, WE DO have enough space to install .apk :) Now, what is funny about this is that even if we got this error, some devices are running the same .apk without a problem :D I run logcat to try to figure out what might be the problem and the only thing that I noticed, is when the error occurs, we also see this error in the logs:

    2021-02-24 12:46:46.880 16669-17835/com.potatoplay.MergeManor D/Unity: il2cpp failed to extract resources (assets/bin/Data/Managed => /storage/emulated/0/Android/data/com.potatoplay.MergeManor/files/il2cpp)

    Unity 2019.4.17f1 - my workspace
    Unity 2019.4.15f1 - Jenkins
    Any thoughts/help? :)
     

    Attached Files:

    Last edited: Feb 24, 2021
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    The error is a bit misleading, what really happens in this case, Unity fails to extract files into /storage/emulated/0/Android/data/com.potatoplay.MergeManor/files/il2cpp, the most common case is not enough space. But there are probably other reasons as well.

    You say in 99% it's fine, but 1% is not fine, is that 1% happens only on one specific device, or it can happen on any device?
     
  3. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    As for devices, this is a good question. Don't have any specifics. One build did not work on OnePlus Nord but worked on motorola g7 power. Furthermore, when I hit "build again" with the same build configuration, NOTHING changed, the build works perfectly on all devices. If needed can provide build logs.
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    If possible try running the build on failing device, and see if it happens consistently
     
  5. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    Yes it does.
     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Try using adb or Android Studio's device explorer and see if you can reach /storage/emulated/0/Android/data/ folder, or even /storage/emulated/0/Android/data/com.potatoplay.MergeManor/ .

    Additionally check if device really has enough storage memory.
     
  7. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    Got two empty folders "cache" and "files" inside of /storage/self/primary/Android/data/com.potatoplay.MergeManor/

    I know that it is not the same folder, but don't have permission to enter emulated/0
     
    Last edited: Feb 24, 2021
  8. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    I am not sure I understand, when you manually install on that specific device, then the app runs fine, but when installing in automated way you get "Not enough storage space to install required resources."
     
  9. krzyszpieta

    krzyszpieta

    Joined:
    Jun 14, 2020
    Posts:
    12
    Sorry :) What I wanted to say is just that, I don't have any files in those specific folders :)
     
  10. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Hard to say what's wrong, if you can please submit a bug a with apk attached, specify which phones and what Android version they have, which show this behavior. Maybe our QA can reproduce
     
  11. marcomandy

    marcomandy

    Joined:
    Dec 9, 2013
    Posts:
    2
    We just solved a "not enough storage space to install required resources" by whitelisting "unityLibrary/src/main/assets/bin" folder (that default android studio .gitignore ignored). We were building on a Jenkins server and that folder was not being pushed from the machine we used to export the Unity project to the server.
     
    abe_unity647 and thiedemike50 like this.
  12. pf_ana

    pf_ana

    Joined:
    Sep 12, 2021
    Posts:
    9
    @krzyszpieta Hi, did you find any workthrough for the issue?
     
  13. domonyiv

    domonyiv

    Joined:
    Oct 1, 2016
    Posts:
    75
    @Tomas1856 I can reproduce this issue on 90 % of the app starts when the Split Application Binary and Build App Bundle options are turned on (when the new Play Asset Delivery feature used) and the Compression method set to LZ4. If I change it to Default the problem goes away. Bug report id: 1372558
     
  14. abe_unity647

    abe_unity647

    Joined:
    Apr 28, 2022
    Posts:
    6
    Thank you, this was my problem as well!
     
  15. noambe

    noambe

    Joined:
    Aug 13, 2014
    Posts:
    32
  16. Nodupe

    Nodupe

    Joined:
    Jan 26, 2018
    Posts:
    12
    Is there a way to disable buggy storage check by Unity? I want to implement my own storage check
     
  17. KellanUnfiller

    KellanUnfiller

    Joined:
    Feb 7, 2023
    Posts:
    2
    I deleted my library folder within my Unity project and and then reopened Unity and this solved. I think it has something to do with a corrupted build.