{"action":"created","issue":{"url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/47","repository_url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS","labels_url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/47/comments","events_url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/47/events","html_url":"https://github.com/JK3Y/NPS-Browser-macOS/issues/47","id":358403994,"node_id":"MDU6SXNzdWUzNTg0MDM5OTQ=","number":47,"title":"Sometimes downloads are corrupted","user":{"login":"einsteinx2","id":350423,"node_id":"MDQ6VXNlcjM1MDQyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/350423?v=4","gravatar_id":"","url":"https://api.github.com/users/einsteinx2","html_url":"https://github.com/einsteinx2","followers_url":"https://api.github.com/users/einsteinx2/followers","following_url":"https://api.github.com/users/einsteinx2/following{/other_user}","gists_url":"https://api.github.com/users/einsteinx2/gists{/gist_id}","starred_url":"https://api.github.com/users/einsteinx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einsteinx2/subscriptions","organizations_url":"https://api.github.com/users/einsteinx2/orgs","repos_url":"https://api.github.com/users/einsteinx2/repos","events_url":"https://api.github.com/users/einsteinx2/events{/privacy}","received_events_url":"https://api.github.com/users/einsteinx2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-09T19:22:01Z","updated_at":"2018-09-10T20:05:24Z","closed_at":null,"author_association":"NONE","body":"Got another one for ya ;) Sorry I don't have time to do preliminary investigations into these bugs, I'm swamped at work, but I figured better to report what I know than wait.\r\n\r\n**Describe the bug**\r\nSometimes when I download a pkg (note I've only tested PS3, as I don't have any of the other supported consoles), the resulting package will fail to install. Usually if I download it again, it will work. I checked broken and working files with sha1sum and they are different, though the file sizes are the same, so it's clearly corrupting the data somehow.\r\n\r\nOne game in particular, Gran Turismo 6, I downloaded 2 or 3 times, every time they failed to install, every time with a different sha1 hash but the same file size. Finally I tried out the Windows version of NPS on another machine in my house and it downloaded and installed correctly the first try with yet another sha1 hash.\r\n\r\nAt first I thought it was an issue with resuming, as it's a large download and previously I had paused and resumed if the speed dropped. However, the last time I tried, I made sure not to resume it. Though I don't know for sure if the app automatically resumes if the file slows to 0 or something, so maybe that's still a common factor.\r\n\r\nNote, I've had this problem on smaller downloads as well, and I've had similarly large downloads work perfectly, so I can't seem to find the pattern, but there's clearly something wrong in the download code.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Download Gran Turismo 6 for PS3\r\n2. Try to install the package\r\n\r\n**Expected behavior**\r\nThe package should install correctly and not be corrupted\r\n\r\n**Desktop (please complete the following information):**\r\n - OS: macOS Mojave 10.14 Beta (18A377a)\r\n\r\n**Additional context**\r\nI don't think this is a Mojave bug specifically, as I have zero issues with downloads in any other app. Also I don't think it's a router issue, as again I can successfully download and upload huge chunks of data as well as move huge amounts of data around my home wifi network without any issues, and the Windows machine used the same router, though to be fair it was hooked up via ethernet (maybe leading more credence to the resume issue assuming that Wifi is less stable than Ethernet.\r\n"},"comment":{"url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/comments/420042301","html_url":"https://github.com/JK3Y/NPS-Browser-macOS/issues/47#issuecomment-420042301","issue_url":"https://api.github.com/repos/JK3Y/NPS-Browser-macOS/issues/47","id":420042301,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDA0MjMwMQ==","user":{"login":"einsteinx2","id":350423,"node_id":"MDQ6VXNlcjM1MDQyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/350423?v=4","gravatar_id":"","url":"https://api.github.com/users/einsteinx2","html_url":"https://github.com/einsteinx2","followers_url":"https://api.github.com/users/einsteinx2/followers","following_url":"https://api.github.com/users/einsteinx2/following{/other_user}","gists_url":"https://api.github.com/users/einsteinx2/gists{/gist_id}","starred_url":"https://api.github.com/users/einsteinx2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einsteinx2/subscriptions","organizations_url":"https://api.github.com/users/einsteinx2/orgs","repos_url":"https://api.github.com/users/einsteinx2/repos","events_url":"https://api.github.com/users/einsteinx2/events{/privacy}","received_events_url":"https://api.github.com/users/einsteinx2/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T20:05:24Z","updated_at":"2018-09-10T20:05:24Z","author_association":"NONE","body":"Yep, I mean that the download completes but it fails to install because it fails the signature check at some point during the installation due to the file not being correct (confirmed using sha1 hashes). I also used sha1 hashes to confirm that it isn't happening during my copying it around my home network and only the usb drive for installation.\r\n\r\nSo if it doesn't auto-resume then it must not be an issue with resuming after all as the third time I tried downloading it, I specifically made sure to allow it to complete in one go. I didn't close or otherwise touch the app until the download completed. The interesting thing is that the files are always the same size, so assuming you're not preallocating the space, it seems that it downloads the entire file, but messes up some of the data somehow. Each time I downloaded it, it was the same size with a different sha1 hash. I downloaded it a fourth time using the Windows version and it had the same size and yet another sha1 hash. That last one downloaded on Windows was the only one that installed correctly, so the others must have had some data corruption somewhere causing the signing check to fail.\r\n\r\nAlso I re-downloaded 2 other games that had failed to install, one was about 2GB and other about 6GB, and both installed correctly on the second download. Checking the sizes and hashes again showed that while they had the same sizes as the ones that didn't work, their sha1 hashes were different so they had different data.\r\n\r\nNot really sure what's up. Anyway, since I use an NTFS drive to move the files to my PS3 and keep them on my Windows machine's hdd anyway, I've just started using the Windows version so I don't have to download to my Mac then move to the other machine before copying again to USB. So, I won't be able to provide much more info, but wanted to give you a heads up."}}
{"actor":{"display_login":"einsteinx2"}}