ns-usbloader icon indicating copy to clipboard operation
ns-usbloader copied to clipboard

StreamToPlaceholder:147: An error occured during data transfer

Open hexindent opened this issue 4 years ago • 4 comments

I'm not sure if this is a bug or not. I'm trying to install nsp files with NS-USBloader (5.0) and Awoo (1.3.4) but the upload often fails with this pop-up: "StreamToPlaceholder:147: An error occured during data transfer."

This is my setup: iMac (Mojave) connected to the wireless router, and Switch (Atmosphere 0.17.1, FW 11.0.1, SD card FAT32) connected to iMac with a USB-Ethernet adapter and a cable. iMac shares internet from WiFi with Switch via Ethernet. Switch has the IP 192.168.2.2 and iMac has 192.168.2.1, while to the router iMac is 192.168.50.7. Java version is openjdk@11.

I've tried uploading nsps and nsp split files. In both cases the error occurred. NS-USBloader NET set is configured to use the 192.168.2.1 IP address so I don't think data go through the router. About 1-2 seconds after the failure pop-up, the yellow and orange lights on the adapter will turn off, so Switch is disconnected for a brief moment until the adapter is back online. The Ethernet adapter and the cable don't malfunction when I use ftpd for file transfer or SysDVR for streaming footage to iMac for hours. This only happens when I'm trying to upload nsp

Here are some logs I find from the terminal:

objc[18452]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff976993f0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x12ea47f50). One of the two will be used. Which one is undefined.
java[18452:1068369] unrecognized type is 4294967295
java[18452:1068369] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.60.109/AppKit.subproj/NSEvent.m:1977

Thank you for your help!

hexindent avatar Jan 17 '21 18:01 hexindent

Logs section is in application: last tab on a left-hand panel (three dots). As for IP: you have to set switch IP address on the first tab, not Mac's one. Not sure if you set it in there.. As for ethernet adapter.. not sure if it's supported by Awoo or not. I'll ask them =)

developersu avatar Jan 18 '21 16:01 developersu

Yup, it must be supported. Drop me logs from application's log section. Hope it will be more helpful.

developersu avatar Jan 18 '21 17:01 developersu

Thank you for your help!

I didn't make it clear about the IPs: I set Switch IP on the 1st tab as 192.168.2.2 and I set the iMac host IP on the settings (gear icon) tab Expert mode (NET setup) as 192.168.2.1. If I use the default auto-detect IP, Switch will send requests to iMac (192.168.50.7) via the wireless router, which is not necessary since they are already connected via the Ethernet adapter and the cable.

After I posted the issue, I've been trying combinations of configurations (Awoo boost mode ON/OFF, running it in Applet mode or not, etc.). I realized that the number 4294967295 is just a little bit smaller than 4GB, the FAT32 file limit. So I re-formatted the SD card with a Windows PC (still FAT32). The card was formatted with Disk Utility on the iMac before.

After the re-format the error occurs less frequently. My combination now is Awoo boost mode OFF + running Awoo over an installed title (not Applet mode). I've installed several nsp files successfully, but the error is still there now and then. Here are the logs I copied from the "chat icon" tab:

Files to upload:
 /Users/myname/NS/my-legal-backup=p.nsp
[ PASS ] NET: Host IP defined as: 192.168.2.1
[ PASS ] NET: Your port detected as: 6086
[ INFO ] 	Start chain
[ PASS ] Initiation files list has been sent to NS.
[ INFO ] Reply to range: 256-259
[ INFO ] Replying for requested file: my-legal-backup=p.nsp
[ INFO ] Reply to range: 61440-61455
[ INFO ] Reply to range: 61456-61951
[ INFO ] Reply to range: 62976-62991
[ INFO ] Reply to range: 62992-64511
[ INFO ] Reply to range: 11632863232-11632866303
[ INFO ] Reply to range: 11632863232-11632866815
[ INFO ] Reply to range: 17540701184-17540710399
[ INFO ] Reply to range: 17540825088-17540828671
[ INFO ] Reply to range: 17540943360-17540946943
[ INFO ] Reply to range: 64512-11632557055
[ INFO ] File transmission failed:
         Broken pipe (Write failed)
[ PASS ] Closing server socket.
[ INFO ] 	End chain

About the logs I posted last time, I think I know when the logging will happen in the terminal (I launch the jar file in Terminal: java -jar ns-usbloader-5.0.jar)

Class FIFinderSyncExtensionHost is implemented in both... One of the two will be used. Which one is undefined. will show up when I click the "Select files" button in the first tab and open the file browser. unrecognized type is 4294967295 *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:] will show up when NS-USBloader is idle after uploading a file (success or not). Being idle after launching will not trigger this event.

A minor issue I didn't mention last time. NS-USBloader doesn't know if the upload is successful on my iMac. If it fails, it will know and show "Failed" in the status column. If it succeeds, it keeps sending and I have to click the "Interrupt" button manually. Then it will show "unknown" in the status column. Maybe this is related to the unrecognized type is 4294967295 log.

Sorry this is quite lengthy... Thanks again!

hexindent avatar Jan 19 '21 08:01 hexindent

A correction update:

Last time I said "Being idle after launching will not trigger this event". It is incorrect. unrecognized type is 4294967295 *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:] will show up, about 12 minutes being idle after launching. So this error will happen no matter what.

hexindent avatar Feb 01 '21 02:02 hexindent