blawar / nut

GNU General Public License v3.0
1.12k stars 193 forks source link

[Bug] nut + Tinfoil Errors (MTP, `Failed to Create Thread!`, etc.) #314

Closed forthwrong1 closed 3 years ago

forthwrong1 commented 3 years ago

Versions Switch: First version Atmosphere: 12.1.0-0.19.5-r2 - Latest Firmware: 12.1.0 - Latest Sigpatches: Latest from https://github.com/ITotalJustice/patches/releases/tag/12.1.0-0.19.5-r2 Tinfoil: Self-Installer 12.10 - Latest Nut.exe: NUT 3.3 - latest Tinfoil Drivers installed: yes -latest

  1. I start nut.exe and get the following console log: https://pastebin.com/yx1xMSxP
  2. I start Tinfoil on my Switch
  3. I connect the usb between the laptop and switch. The usb drive shows in tinfoil. The games show in tinfoil. All seems to be going well. Then, within 30 seconds, The following error message repeatedly spawns until I press the home button to exit Tinfoil: Failed to Create Thread!. Only opening Tinfoil, and not connecting it to nut, does not produce any error.
drewskidrewsgv commented 3 years ago

Finally found a solution.

It's the Tinfoil to blame. I deleted it and erased all files on the sd card in Tinfoil folder. Re-installed a new version (Try applet and the other versions)

Open Tinfoil first time without being connected to a USB. And Voila, open your NUT and everything should be as good as new!

Did you try to install a large file game like BTOW or Diablo 3 for example?

YourSaviour commented 3 years ago

Yeah, installed large files, all NSPs, some larger than 20GBs with no problem at all, just keep on fidling with the Tinfoil versions and restart everytime (make sure you delete the tinfoil data on the sd card everytime you try a new version). For me Applet version is the one that worked!

YourSaviour commented 3 years ago

I was modding another switch today and I seemed to locate where the problem is.

Delete your current Tinfoil and download Tinfoil 12.00 (V3) via GoldLeaf.

Then a red screen will ask you to delete/uninstall Kosmos/Hekate (which maybe causing this problem)

Then it will load fine and you can use it as normal.

drewskidrewsgv commented 3 years ago

When it asks you to delete/uninstall hekate do you say yes?

YourSaviour commented 3 years ago

Yes

DeathPassito commented 3 years ago

And where can you get Tinfoil 12.00 ?

linhtranvu commented 3 years ago

Have the same problem, hope this fix soon

jessielw commented 3 years ago

Same issues here for me as well

SoggieWafflz commented 3 years ago

OS: Windows 10 CFW: Atmosphere 0.19.5 Switch FW: 12.1.0 SYS / EMU NAND: SYSNAND Tinfoil: 12.10 nut: 12.10

Immediately upon launching Tinfoil while connected to NUT, the console will print "USB Connected Entering NUT thread" about once every second. After a minute or so, tinfoil will pop up an error of "Failed to create thread!" every second, and the console also prints "USB Connected Entering NUT Thread Failed to create thread!"

SoggieWafflz commented 3 years ago

OS: Windows 10 CFW: Atmosphere 0.19.5 Switch FW: 12.1.0 SYS / EMU NAND: SYSNAND Tinfoil: 12.10 nut: 12.10

Immediately upon launching Tinfoil while connected to NUT, the console will print "USB Connected Entering NUT thread" about once every second. After a minute or so, tinfoil will pop up an error of "Failed to create thread!" every second, and the console also prints "USB Connected Entering NUT Thread Failed to create thread!"

Just did a complete clean install of atmosphere, tinfoil, and NUT and still am getting the same issue.

Knowitall599 commented 3 years ago

You all have emuMMC don't you? If you just run the program from an sd card without emuMMC if that will work. I'll update shortly.

silkyclouds commented 3 years ago

same issue here. Fresh (30 minutes ago) atmosphere 0.20 install, fusee-primary. Windows 10. driver and connection are working fine.

SoggieWafflz commented 3 years ago

wait, SD card?

On Tue, Aug 31, 2021, 08:41 Knowitall599 @.***> wrote:

You all have emuMMC don't you? If you just run the program from an sd card without emuMMC if that will work. I'll update shortly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blawar/nut/issues/314#issuecomment-909353305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJS4NY7ETTPQHEQK6AMJUYTT7TZZHANCNFSM5A4YSC6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

silkyclouds commented 3 years ago

You all have emuMMC don't you? If you just run the program from an sd card without emuMMC if that will work. I'll update shortly.

Of course, EmuMMC SD file mode (hekate 5.6.0) latest version...

SoggieWafflz commented 3 years ago

oh, I don't do emu

I thought you meant the installer accidentally put it on the system memory and not the SD card

On Tue, Aug 31, 2021, 09:08 silkyclouds @.***> wrote:

You all have emuMMC don't you? If you just run the program from an sd card without emuMMC if that will work. I'll update shortly.

Of course, EmuMMC SD file mode (hekate 5.6.0) latest version...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blawar/nut/issues/314#issuecomment-909375579, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJS4NY7HPLTWZHXQSPC63CLT7T47DANCNFSM5A4YSC6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SoggieWafflz commented 3 years ago

I just boot with fusee and have a separate switch for online

jessielw commented 3 years ago

I run it on sysnand, latest versions of everything.

SoggieWafflz commented 3 years ago

same, and I did fresh everything and still

jessielw commented 3 years ago

Using an older version of NUT allows me to usually get the game installed. However, I'll still receive the error on tinfoil on the switch.

xM45T3Rx commented 3 years ago

I have found that the issue is with Tinfoil. The only thing is that once your switch has an internet connection Tinfoil will update to a new version. For now, what has been working for me is loading an old version of Tinfoil and running it on airplane mode when I install Files using NUT.

SoggieWafflz commented 3 years ago

awesome, which version?

On Tue, Aug 31, 2021, 10:51 xM45T3Rx @.***> wrote:

I have found that the issue is with Tinfoil. The only thing is that once your switch has an internet connection Tinfoil will update to a new version. For now, what has been working for me is loading an old version of Tinfoil and running it on airplane mode when I install Files using NUT.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blawar/nut/issues/314#issuecomment-909456739, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJS4NY7QG3HX4KOAB65JUSLT7UJBHANCNFSM5A4YSC6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

silkyclouds commented 3 years ago

wait, putting the switch in airplane mode is a temporary workaround. is this what you say ? let me try this now.

SoggieWafflz commented 3 years ago

no it's a workaround for tinfoil auto updating

On Tue, Aug 31, 2021, 11:39 silkyclouds @.***> wrote:

wait, putting the switch in airplane mode is a temporary workaround. is this what you say ? let me try this now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blawar/nut/issues/314#issuecomment-909500859, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJS4NYYGYPDJWZCZASWCMB3T7UOWVANCNFSM5A4YSC6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

silkyclouds commented 3 years ago

Can someone please share the discord server link here ? the invite on the website is not working. lets stop flooding people in this thread and discuss this in real time. Thanks !

xM45T3Rx commented 3 years ago

Yeah I use version 11 for Tinfoil which I already had from when I set up my switch. I did a fresh install since my SD card had got corrupted.NUT is updated to the current version.Yes airplane mode is on during the time I install files since Tinfoil is a older version and will update itself.

Im on EmuMMC using atmosphere everything is up to date beside Tinfoil.

Another thing is that if tinfoil updates I leave it alone until I install new files using NUT in which I downgrade Tinfoil again before installing files over.

This work around has been working for me for a while hope it helps everyone else that is reading this.

linhtranvu commented 3 years ago

This is absolutely tinfoil issue, I can confirm by just connect USB and run Tinfoil on Switch, DO NOT turn on NUT

In Tinfoil console, you can see a loop of MTP connect and disconnected, that is the cause for fail to create thread

silkyclouds commented 3 years ago

Yeah I use version 11 for Tinfoil which I already had from when I set up my switch. I did a fresh install since my SD card had got corrupted.NUT is updated to the current version.Yes airplane mode is on during the time I install files since Tinfoil is a older version and will update itself.

Im on EmuMMC using atmosphere everything is up to date beside Tinfoil.

Another thing is that if tinfoil updates I leave it alone until I install new files using NUT in which I downgrade Tinfoil again before installing files over.

This work around has been working for me for a while hope it helps everyone else that is reading this.

any mirror where we could snatch a working nrp of that good old tinfoil version ?

YourSaviour commented 3 years ago

Reposted as an asshole marked this as offtopic!

This is the SOLUTION to this thread!

Finally found a solution.

It's the Tinfoil to blame. I deleted it and erased all files on the sd card in Tinfoil folder. Re-installed a new version (Try applet and the other versions)

Open Tinfoil first time without being connected to a USB. And Voila, open your NUT and everything should be as good as new!

I was modding another switch today and I seemed to locate where the problem is.

Delete your current Tinfoil and download Tinfoil 12.00 (V3) via GoldLeaf.

Then a red screen will ask you to delete/uninstall Kosmos/Hekate (which maybe causing this problem)

Then it will load fine and you can use it as normal.

silkyclouds commented 3 years ago

Well, lets say people should not be doing all these uninstall / reinstall things. Just as an example, I used the auto installer, as goldleaf was displaying an error message when trying to install the NSP of tinfoil. Also, I am pretty sure I DID start tinfoil for the first time without plugging the USB. And still I dd get this error message. A new build should come up fixing this bug. Is someone working on this ?

And what do you mean by removing kosmos / hekate ???

silkyclouds commented 3 years ago

I followed YourSavior steps, and removed tinfoil (which was installed using the auto install method). Did put the nro version in the switch folder. when I start it, I'm getting a kernel panic and atmosphere crashes. :(

So I deleted the NRO version and did go for the NSP. Tried to install it with both goldleaf or awoo installer resulted in errors.

The only version of tinfoil that seems to install and start on my console is the auto installer one. And that one has this error message... :(

UPDATE : now the self installer also do result in a kernel panic of atmosphere...

blawar commented 3 years ago

This error is fixed in Tinfoil 12.1 R12 and newer.