efosamark / Uberhand-Overlay

The fully craft-able overlay executor.
https://efosamark.github.io/Uberhand-Overlay/
GNU General Public License v2.0
23 stars 4 forks source link

Error downloading file: Out of memory / Error in download command #137

Open rashevskyv opened 1 week ago

rashevskyv commented 1 week ago

Again there’s a problem with downloading the translation.

log.txt

I've attached the log file.

The problem occurs when trying to execute the following part of the script, I haven't tried it on the other parts:

[*Ukrainian]

catch_errors

json_source '/switch/.packages/Translate Interface/langs/Ukrainian.json' lang

delete '/config/uberhand/downloads/translations/'
delete '/atmosphere/contents/010000000000080B/'
delete '/atmosphere/contents/010000000000080C/'
delete '/atmosphere/contents/010000000000100D/'
delete '/atmosphere/contents/0100000000000803/'
delete '/atmosphere/contents/0100000000000811/'
delete '/atmosphere/contents/0100000000001000/romfs/message/'
delete '/atmosphere/contents/0100000000001001/'
delete '/atmosphere/contents/0100000000001002/'
delete '/atmosphere/contents/0100000000001003/'
delete '/atmosphere/contents/0100000000001004/'
delete '/atmosphere/contents/0100000000001005/'
delete '/atmosphere/contents/0100000000001006/'
delete '/atmosphere/contents/0100000000001007/'
delete '/atmosphere/contents/0100000000001008/' 
delete '/atmosphere/contents/0100000000001009/'
delete '/atmosphere/contents/0100000000001012/'
delete '/atmosphere/contents/0100000000001013/'
delete '/atmosphere/contents/0100000000001015/'
download https://github.com/NX-Family/NX-Translation/releases/latest/download/NX-Translation_ukrainian.zip /config/uberhand/downloads/translations/ukrainian.zip
unzip /config/uberhand/downloads/translations/ukrainian.zip /config/uberhand/downloads/translations/
move /config/uberhand/downloads/translations/Nx-Translation_ukrainian/{json_source(*,dir)}/contents/ /atmosphere/contents/
delete '/config/uberhand/downloads/translations'
delete '/switch/.packages/Translate Interface/config.ini'
delete '/switch/.packages/Translate Interface/langs'
move '/switch/.packages/Translate Interface/config.ini.bkp' '/switch/.packages/Translate Interface/config.ini'
reboot

Here’s the full script. On version 2.1.5, everything still works fine.

You can reproduce the issue in Kefir, after downloading the translations and updating the overlay.

efosamark commented 3 days ago

The initial investigation points to the size of the script as a likely culprit. In the meantime, I will contact you to provide a workaround. Thank you!