developersu / ns-usbloader

Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files.
GNU General Public License v3.0
1.87k stars 127 forks source link

Cannot install nsz, Tinfoil Exception is thrown #73

Open carlosen14 opened 4 years ago

carlosen14 commented 4 years ago

Describe the bug (mandatory) Crash when uploading a .nsz rom.

Information about environment (mandatory):

Steps to reproduce Steps to reproduce the behavior:

  1. On Switch, go to Awoo Installer v1.3.3
  2. Select 'Install over USB'
  3. On NS-USBloader v4.2, click on 'Select file' also tried the legacy version, same result, also tested with boost mode
  4. Click 'Upload to NS'
  5. On switch, a message will appear to select the incoming files to install
  6. Select to install on SD Card
  7. Here throws an exception!!

Expected behavior A clean install was expecting.

Screenshots and/or information from application log Have this log on terminal even running the same steps Run command $ java -jar ns-usbloader-4.2.jar Sometimes this log, when this appears, i get into Atmosphere OS Exception screen, and Switch needs to be rebooted.

java.io.IOException: TF Failure during file transfer.
    at nsusbloader.COM.USB.TinFoil.sendNormalFile(TinFoil.java:262)
    at nsusbloader.COM.USB.TinFoil.fileRangeCmd(TinFoil.java:189)
    at nsusbloader.COM.USB.TinFoil.proceedCommands(TinFoil.java:135)
    at nsusbloader.COM.USB.TinFoil.<init>(TinFoil.java:58)
    at nsusbloader.COM.USB.UsbCommunications.run(UsbCommunications.java:67)
    at java.base/java.lang.Thread.run(Thread.java:834)

Some times this other log, when this logs appears, i remain on Awoo Installer and an alert appears:

Partially installed contents can be removed from ths System Settings applet.
BufferData:189: USB Transfer timed out or failed

Terminal log

java.lang.NullPointerException
    at nsusbloader.COM.USB.TinFoil.fileRangeCmd(TinFoil.java:180)
    at nsusbloader.COM.USB.TinFoil.proceedCommands(TinFoil.java:135)
    at nsusbloader.COM.USB.TinFoil.<init>(TinFoil.java:58)
    at nsusbloader.COM.USB.UsbCommunications.run(UsbCommunications.java:67)
    at java.base/java.lang.Thread.run(Thread.java:834)

Did you see this issue in previous versions? First time using this

Additional context hbmenu appears Applet Mode as always, but even this it worked before with Goldleaf v0.7.3

carlosen14 commented 4 years ago

copied the .nsz files to sdcard, and installation was successful.

carlosen14 commented 4 years ago

I could split some nsz rom, copied to sdcard, but .nro installer can't handle it, amm, how it is supposed to installed when splitted?

developersu commented 4 years ago

First of all thanks for detailed report.

Secondly, there is log-section in app: latest tab where icon has three dots. Usually it contains a bit more detailed output.

Sometimes this log, when this appears, i get into Atmosphere OS Exception screen, and Switch needs to be rebooted.

Maybe it's an issue with cable or usb port. Like it's usb type-c cable or usb type-c port (I don't have any so I have no idea). Or it could be just a bad cable. Issues related to cables happens very often. I checked a part of code related to this issue and what you see means that there is something wrong happened in a moment application tried to write data. Drop me logs from 'three-dots-tab'. It would be really helpful.

...Also legacy and ordinary version doesn't make any difference on Linux hosts (AFAIK). It could be an issue inside OpenJDK, but I don't think so...

As for the second terminal log you gave me: it's really strange. Maybe (!) if you rename file so something latin letters only it would solve this issue (e.g. 'myfile.nsz'). Also logs from 'three-dots-tab' would be helpful here.

hbmenu appears Applet Mode as always, but even this it worked before with Goldleaf v0.7.3

Awoo-Installer is recommended to start in different mode. I don't remember how it's called, but to enter it you have to click 'R' and start ANY game while holding 'R' button.

I could split some nsz rom, copied to sdcard, but .nro installer can't handle it, amm, how it is supposed to installed when splitted?

No idea. Never did it using Awoo Installer. From my app I guess you can't do it.. since it doesn't allow to select any folder that doesn't have '.nso' in the end of the name. Do you need this function? Or someone else?

unbranched commented 3 years ago

I have a similar problem, app doesn't crash but can't transfer any file after usb connects. Goldleaf hangs before I should see the nsp info dialog (after choosing the install location). Awoo fails with error starting the transfer. Same IOException error. Tried different usb port, didn't try another usb cable but it always worked...

My setup: Arch Linux openjdk jre 15 Switch fw 10.2.0, Athmosphere 0.15.0