Goldleaf
Goldleaf copied to clipboard
GoldLeaf freezes when trying to install NSP
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.
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.
no solution for this issues, just back to old version 0.73
Also: Make sure you read and did everything the readme said in regards to installation via quark.
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.
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.
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.
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
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
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?
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.
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.
I had the same problem. I unchecked the read-only box in windows and then it worked.
@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.
I never thought to check for read only. That fixed my issues. Thank you tomgelmers!
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
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.
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.
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!
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 !!
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.
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.
Actually, I'm not quite sure why I'm opening them rw... haven't worked with the code for a while
It turned to me I was trying to install a corrupted NSP. Got a better error when using Awoo Installer which didn't break.
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
I'll fix this for 0.9, but yeah this is a bug :P
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.
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.
I had the same problem. I unchecked the read-only box in windows and then it worked.
You're the real MVP, thank you!