Goldleaf icon indicating copy to clipboard operation
Goldleaf copied to clipboard

GoldLeaf freezes when trying to install NSP

Open notPEVO opened this issue 5 years ago • 28 comments

GoldLeaf freezes when trying to install NSP

Bug description

I’ve updated Java to the 9th version, the file Quark.jar runs perfectly for Goldleaf. I moved the .nro file to the Switch and it works too on SX OS (v2.9.3). When I’m trying to instal a game from the PC as source, Goldleaf freezes and nothing happens. I select the file from PC, then click on Install and then Install on MicroSD or Internal Memory. In both cases the homebrew freezes and the client on Windows seems that is doing nothing. How can I fix that?

Your setup

  • Console firmware: 9.1.0

  • CFW with version: SX OS 2.9.3

  • Goldleaf version: 0.8

  • Goldtree version: //

Bug reproduction

I’ve tried many NSP files but with all of them the software freezes.

Additional information

I’ve already read other issues like mine and I’ve tried to use other USB ports, reinstall drivers and other things.

notPEVO avatar Jan 06 '20 10:01 notPEVO

Can you delete any goldleaf folder on the root of the sd and in /switch folder (maybe need to copy goldleaf.nro again into the switch folder afterwards) and try again.

lookye avatar Jan 08 '20 16:01 lookye

no solution for this issues, just back to old version 0.73

herman23a avatar Jan 19 '20 03:01 herman23a

Also: Make sure you read and did everything the readme said in regards to installation via quark.

lookye avatar Jan 30 '20 05:01 lookye

I have the same issue, but only with a particular title.

Details:

Goldleaf/Quark.jar 0.8 Win 10 pc with AdoptOpenJDK 13.0.2.8 x64

I previously had that title installed months ago, with (I think) Goldtree. Today, the switch recognized data corruption for that title. I deleted it via Goldleaf (both the title and update) and tried to reinstall it. But Goldleaf freezes.

The curious thing is that if instead of selecting "Install", I choose to see the hex dump in Goldleaf, I see only zeros. But looking at the file on my PC witha hex editor, it is not zero-filled. It begins with the "PFS0" signature, than it has data in it. Other nsps are sent correctly to the Switch, only this seems to have this problem.

The last log in Quark is:

[14:38:04] Command: GetDriveInfo [14:38:04] Command: GetDriveInfo [14:38:04] Command: GetSpecialPathCount [14:38:06] Command: SelectFile [14:38:16] Command: StatPath [14:38:16] Command: GetDirectoryCount [14:38:16] Command: GetFileCount [14:38:16] Command: GetFile [14:38:16] Command: StatPath [14:38:16] Command: StatPath [14:38:16] Command: StatPath [14:38:16] Command: StatPath [14:38:16] Command: StatPath [14:38:16] Command: ReadFile [14:38:41] Command: StatPath [14:38:41] Command: StartFile Than nothing happens.

If I disconnect the USB cable, Goldleaf complains: Error: 2356-0009 (0x1364) Descr: PFS0 (NSP) invalid (9)

then exits.

Hope this helps to diagnose the problem. I can do tests.

lx1 avatar Feb 02 '20 14:02 lx1

goldleaf.zip

I'd like to add that I was able to install the title by transferring the nsp to the sd card via nxmtp, and then installed it with goldleaf 0.8. I had a look at what happens on the usb wire when retrieving the nsp from Quark, and it seems to come out from the USB already zero-filled. I attach a usb traffic dump taken with Wireshark anche USBpcap. See about frame 1373.

lx1 avatar Feb 06 '20 07:02 lx1

I'm seeing this same problem with an NSP I dumped from a cart. I started over with a fresh exfat partition and a new load from sdsetup.com and saw the same issue.

GoldLeaf 0.8.0

This has worked many times over the last many months. I have checksummed the current files and my zfs-backed (IE: block-level checksummed) backups and they are the same.

danielhoherd avatar Feb 09 '20 03:02 danielhoherd

same problem here. Copying files( not just nsps) through quark seems to freeze the same way. I'm using the latest kosmos 15 with 9.1 FW ,GoldLeaf 0.8.0

wstlxx avatar Feb 24 '20 16:02 wstlxx

Same problem here. It seems it only happens with large files (above 8GB?). When browsing to the NSP and after clicking in "install" and selecting the SD card, Goldleaf freezes. If I can give you some support just ask to me. Kosmos, fw version 9.1. Same result as @lx1

LaiKash avatar Mar 08 '20 20:03 LaiKash

Maybe it's getting hung up somehow while trying to parse the nsp for the information it shows before installing it, like title and origin?

Masamune3210 avatar Mar 09 '20 03:03 Masamune3210

I'm experiencing the same issue. I've got Goldleaf 0.8, running the latest Kosmos and Quark. Installing an NSP file just seems to lock up the GUI and pressing HOME is the only way out of it.

NXMTP crashes the console as soon as the drive is opened in Windows Explorer.

Since the card is formatted FAT32, I cant copy larger NSP's over.

a331709 avatar Mar 13 '20 07:03 a331709

I'm having the same issue. 9.2.0 - AMS 0.10.4 Goldleaf 0.8 and latest Quark version. Java updated. Tried different USB ports and cables.

Taquito51 avatar Mar 19 '20 23:03 Taquito51

I had the same problem. I unchecked the read-only box in windows and then it worked.

tomgelmers avatar Mar 20 '20 13:03 tomgelmers

@tomgelmers: do you mean the read-only attribute in the file system? I tried setting it on a nsp, but it did work the same. I'm using NTFS. I only have the problem on certain specific nsps.

lx1 avatar Mar 20 '20 15:03 lx1

I never thought to check for read only. That fixed my issues. Thank you tomgelmers!

orochikun88 avatar Mar 21 '20 20:03 orochikun88

This also solved my issue and seems to be the solution. For those wonder how to do it. Right click on the .nsp file > Properties > At the bottom uncheck Read-Only > Apply and Ok

mlucap avatar Mar 22 '20 23:03 mlucap

I have this issue on macOS, the NSPs have write permission. I think this is more likely a problem in Quark since NS-USBLoader can just install them fine. I will stick with NS-USBLoader for now.

billsq avatar Mar 29 '20 22:03 billsq

I don't know anything about Java, so please take this with caution. But had a look at the source for curiousity. I see two lines in MainApplication.java:

in StartFile: readfile = new RandomAccessFile(path, "rw");

and in ReadFile: RandomAccessFile raf = new RandomAccessFile(path, "rw");

If the file has to be read, shouldn't that "rw" be only "r"?

HTH.

lx1 avatar Apr 05 '20 11:04 lx1

This also solved my issue and seems to be the solution. For those wonder how to do it. Right click on the .nsp file > Properties > At the bottom uncheck Read-Only > Apply and Ok

You are the man! This worked for me!

0fEfF2Dto4KoNAVZu8cb5 avatar Apr 12 '20 03:04 0fEfF2Dto4KoNAVZu8cb5

I had the same problem. I unchecked the read-only box in windows and then it worked.

You're a genius, I registred specially to say Thanks !!

erroubai avatar Apr 15 '20 23:04 erroubai

I have checked the permissions and attributes of the file in MacOS but it didn't make any difference :(

Used chflags nochg <filename>. Any ideas? Tried other files too and the same behavior.

chipironcin avatar Apr 17 '20 07:04 chipironcin

Unchecking readonly is just a workaround, and as @chipironcin pointed out, the workaround is not available on all platforms. (From what I can tell, it's only available on Windows.)

There is a bug somewhere, and my guess is that it's what @lx1 discovered regarding opening files rw.

danielhoherd avatar Apr 17 '20 19:04 danielhoherd

Actually, I'm not quite sure why I'm opening them rw... haven't worked with the code for a while

XorTroll avatar Apr 17 '20 19:04 XorTroll

It turned to me I was trying to install a corrupted NSP. Got a better error when using Awoo Installer which didn't break.

chipironcin avatar Apr 19 '20 21:04 chipironcin

For anyone having this issue, uncheking read-only in the NSP file solved for me. 9.2.0/AMS 0.11.1 Goldleaf 0.8 and latest Quark version. I Made an account just to post this and see if it helps someone XD

crestfallenxv avatar Apr 29 '20 14:04 crestfallenxv

I'll fix this for 0.9, but yeah this is a bug :P

XorTroll avatar Apr 29 '20 14:04 XorTroll

I finally got my hands on a windows PC and the NSP I am having problems with does not have the read-only bit set. It had the archive bit set, so I removed that and tried again and still got a freeze when trying to install it. I will continue to look at the issue to see if it is a problem with my system and files.

danielhoherd avatar Apr 30 '20 19:04 danielhoherd

I had the same problem on goldleaf 0.8, AMS 0.14.4, ofw 10.2.0, me too solved by unchecking the read only file attribute. I also noticed that this happened only with files > 4-5 gb and with the adoptopenjdk, with the standard java jdk it doesn't happen (same file, same USB port, same pc). Just my 2 ct.

zuixan avatar Oct 20 '20 11:10 zuixan

I had the same problem. I unchecked the read-only box in windows and then it worked.

You're the real MVP, thank you!

tassawii avatar Nov 23 '20 01:11 tassawii