Atmosphere icon indicating copy to clipboard operation
Atmosphere copied to clipboard

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

Open JulyIghor opened this issue 1 year ago • 11 comments

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

JulyIghor avatar Jan 04 '24 05:01 JulyIghor

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?

borntohonk avatar Jan 04 '24 07:01 borntohonk

@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.

SciresM avatar Jan 04 '24 07:01 SciresM

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 avatar Jan 04 '24 08:01 JulyIghor

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

sneakysnakek avatar Jan 09 '24 19:01 sneakysnakek

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

  • Get your switch in RCM mode. Inject Hekate payload Tap on "Tools" on top of the hekate screen. Tap on "Archive Bit - AutoRCM" on the right bottom. Tap on "Unset archive bit" button.
  • Format sd card to FAT32 (I don't have the FAT32 option) image

here is the log file report_000000000658c023.zip

Hope someone can help. Thanks!

huypham1411 avatar Mar 16 '24 07:03 huypham1411

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

Masamune3210 avatar Mar 16 '24 13:03 Masamune3210

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?

JulyIghor avatar Mar 16 '24 20:03 JulyIghor

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

Masamune3210 avatar Mar 17 '24 05:03 Masamune3210