Atmosphere-NX / Atmosphere

Atmosphère is a work-in-progress customized firmware for the Nintendo Switch.
GNU General Public License v2.0
14.4k stars 1.21k forks source link

Panic occurred while running Atmosphere Error: std::abort (0xFFE) #2263

Open JulyIghor opened 9 months ago

JulyIghor commented 9 months ago

Bug Report

What's the issue you encountered?

Atmosphere crashed only if specific empty folder created in contents folder

How can the issue be reproduced?

1) Create an empty folder SD/atmosphere/contents/0100000000001008/romfs/message
2) Open All-in-One Switch Updater
3) Select tab "Custom downloads"
4) Press "Add a custom link"
5) Enter random text, like "abcd" and press Submit+
6) Atmosphere crashes with the message:

A fatal error occurred when running Atmosphere.
Program ID: 010041544d530000
Error Desc: std: abort() called (0xffe)
Report saved to /atmosphere/fatal_errors/report_000000002cb2b08f.bin
Press POWER to reboot.

Crash Report

report_000000002cb2b08f.bin.zip

System Firmware Version

17.0.0 atmosphere-1.6.2-master-f7bf379cf+hbl-2.4.4+hbmenu-3.6.0

Environment?

EmuMMC, Hekate, All-in-One Switch Updater

Additional context?

Possibly this issue related to https://github.com/Atmosphere-NX/Atmosphere/issues/2164 and https://github.com/NX-Family/NX-Translation/issues/3

borntohonk commented 9 months ago

Bug Report

What's the issue you encountered?

Atmosphere crashed only if specific empty folder created in contents folder

How can the issue be reproduced?

1. Create an empty folder SD/atmosphere/contents/0100000000001008/romfs/message

2. Open All-in-One Switch Updater

This is the atmosphere repository, it has nothing to do with 'All-in-One Switch updater'. Why are you creating an empty folder in swkbd in the first place?

SciresM commented 9 months ago

@borntohonk as much as what you commented would be correct in 99% of cases, this guy talked to me on discord, and the report he provided actually is somehow triggering an svc::ResultInvalidHandle() in ams.mitm, so I think there might be a real atmosphere bug at play.

JulyIghor commented 9 months ago

Why are you creating an empty folder in swkbd in the first place?

I'm making the FW translation to various languages, and I wish to create a custom keyboards so I need to put a files to that and other folders. I don't need an empty folder, that step is minimal required thing for reproducing the bug.

I created this issue because of this bug is similar to those mentioned in additional context section.

The issue causing crashes by just creating an empty folders in contents folder. It is expectingly should affect no apps, but system crashes. This bug also prevents in translating 010000000000100C and 0100000000001000 at the same time.

It could be a FW applets bug, but reproducing it with an open source apps proves it is possibly Atmosphere bug. I hope it helps in debugging and fixing it.

JulyIghor commented 9 months ago

report_000000002cb2b08f.bin.zip

sneakysnakek commented 9 months ago

I am also having this exact issue, anyway to fix it?

huypham1411 commented 6 months ago

I also got this issue, I tried some method from other related post such as

here is the log file report_000000000658c023.zip

Hope someone can help. Thanks!

Masamune3210 commented 6 months ago

On cards bigger that 32GB, you have to use an external tool or application to format to FAT32 since Microsoft in their infinite wisdom decided long ago that they know what the users want better than what the users do. Hekate can do it on the switch itself if you first back up all the contents to your PC so that you don't lose them

JulyIghor commented 6 months ago

On cards bigger that 32GB, you have to use an external tool or application to format to FAT32 since Microsoft in their infinite wisdom decided long ago that they know what the users want better than what the users do. Hekate can do it on the switch itself if you first back up all the contents to your PC so that you don't lose them

Are you saying that reformatting microSD via Hekate fixes the issue?

Masamune3210 commented 6 months ago

No, I was saying how to format a sd card that is larger than 32GB as FAT32 since Windows refuses to do so with any of the in-build methods of formatting a media