Summary of Problem
Hello devkitPro Team and Community,
I am experiencing a persistent and highly consistent issue where any Nintendo Switch NRO I compile using devkitPro crashes immediately upon launch from hbloader
. This occurs even with pristine, unmodified examples taken directly from the $DEVKITPRO/examples/switch/templates/application
directory.
This issue has been reproduced on two separate Windows 11 Pro 24H2 machines (one desktop, one laptop), both after full, clean installations of devkitPro.
Importantly, all precompiled NROs work perfectly fine on my Switch. This includes NROs downloaded via the HB AppStore directly on the Switch, as well as precompiled NROs downloaded on a PC and transferred to the SD card. The problem is strictly limited to applications compiled in my own devkitPro environment.
The crash always presents with the same signature: a Data Abort (NULL pointer dereference) at a consistent offset ([ModuleName] + 0x9844
) within the compiled NRO, with an equally consistent early stack trace entry ([ModuleName] + 0xc4
). The method of launching the NRO (applet mode vs. full-memory mode via hbmenu) makes no difference.
System Information
PC Environment (Tested on two separate machines with identical results):
- Operating System: Windows 11 Pro, Version 24H2 (on both Desktop and Laptop)
- devkitPro Updater Version Tried (on both machines):
- Initially: devkitPro Updater 3.0.3
- Currently (after full clean reinstall): devkitPro Updater 3.0.2
- DevkitA64 Toolchain Version (consistent across both updaters and machines after package installations):
aarch64-none-elf-gcc.exe (devkitA64 release 28) 15.1.0
- The GCC copyright notice for this version shows:
Copyright (C) 2025 Free Software Foundation, Inc.
- libnx Version:
libnx-4.8.0-1
(as installed/reinstalled bypacman -S switch-dev
) - MSYS2 Environment: Installed via the official devkitPro installers on each machine.
Nintendo Switch Environment:
- Custom Firmware (CFW): Atmosphère v1.8.0
- System Firmware Version: 19.0.1
- Fuse Version: 20
- SoC Type: Mariko
(full Atmosphère crash log for the $DEVKITPRO/examples/switch/templates/application/application.nro
compiled with the 3.0.2 setup)