Homebrew RELEASE Amiigo - Emuiibo GUI

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
I'm not sure if this is an amiigo or emutool glitch but the Splatoon 2 Inkling Boy & Girl Amiibos show up in-game as their Splatoon 1 counterparts... anyone know how to fix this (or where to get the .flag and .json files for these Amiibos)?
Both Amiigo and Emutool source Amiibo data from the Amiibo API. If there's a mislabeled Amiibo it's an issue with that. You could try opening an issue on their GitHub.
https://www.amiiboapi.com/
https://github.com/n3evin/amiiboapi
 
  • Like
Reactions: TwoMinutes2319

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
Hi,

When I launch Amigo, Atmosphere crashes.
Any idea what could be causing this problem?

I'm on

- Amiigo 2.3.0

- Emiibo 0.6.4

- Atmosphere 1.3.2

- FW 14.1.2.
 

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
Yes here it is :
300027146_809845180170460_7298793090669994140_n.jpg
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Damn that's a segfault. Kind of a pain in the ass to debug remotely. Would you be able to send me a crash log? Should be in sdmc:/atmosphere/fatal_reports

You might have a few so you might want to delete them all then crash Amiigo on purpose to generate a new one instead of looking through them one by one to find which one it is.

If you want, one thing you can try while I try to debug this is delete sdmc:/config/amiigo then try to start it in airplane mode to see if that helps.
 
  • Like
Reactions: Masana

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
tmosphère Fatal Report (v1.1):
Result: 0x4A2 (2162-0002)

Program ID: 0100000000000012
Process Name: bsdsocket
Firmware: 14.1.2 (Atmosphère 1.3.2-master-e96972c93)
General Purpose Registers:
FP: 0000000186f26b00
LR: 0000005f31ad5df4
SP: 0000000186f26b00
PC: 0000005f31ae3d64
Start Address: 0000005f31a00000
Stack Trace:
ReturnAddress[00]: 0000005f31ae5f04
ReturnAddress[01]: 0000005f31ae5bd8
ReturnAddress[02]: 0000005f31ae57b4
ReturnAddress[03]: 0000005f31ae5908
ReturnAddress[04]: 0000005f31a8f7ec
ReturnAddress[05]: 0000005f31a8f560
ReturnAddress[06]: 0000005f31a8f658
ReturnAddress[07]: 0000005f31a652e0
ReturnAddress[08]: 0000005f31a66050
ReturnAddress[09]: 0000005f31a65fe4
ReturnAddress[10]: 0000005f31a682cc
ReturnAddress[11]: 0000005f31ad3ac0
ReturnAddress[12]: 0000005f31ad34f0
ReturnAddress[13]: 0000005f31ad262c
ReturnAddress[14]: 0000005f31ad28bc
ReturnAddress[15]: 0000005f31ad2938
ReturnAddress[16]: 0000005f31ac2d28
ReturnAddress[17]: 0000005f31ac6db4
ReturnAddress[18]: 0000000000000000
Stack Dump: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
000186f26b00 a0 6b f2 86 01 00 00 00 04 5f ae 31 5f 00 00 00
000186f26b10 01 01 00 00 00 00 10 00 0c 00 00 80 01 00 00 00
000186f26b20 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000186f26b30 05 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00
000186f26b40 00 00 00 00 14 00 00 00 50 64 ad 31 01 00 00 00
000186f26b50 58 6b f2 86 01 00 00 00 00 00 00 00 00 00 00 00
000186f26b60 00 20 71 49 01 00 00 00 00 00 00 00 00 00 00 00
000186f26b70 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00
000186f26b80 e0 19 61 32 5f 00 00 00 50 02 00 00 00 00 00 00
000186f26b90 10 6b f2 86 01 00 00 00 00 c6 b4 1f 26 00 00 00
000186f26ba0 f0 6b f2 86 01 00 00 00 d8 5b ae 31 5f 00 00 00
000186f26bb0 58 f6 a8 31 5f 00 00 00 88 6d f2 86 01 00 00 00
000186f26bc0 53 62 b4 31 5f 00 00 00 00 00 00 00 00 00 00 00
000186f26bd0 80 e8 ba 31 5f 00 00 00 58 6c f2 86 01 00 00 00
000186f26be0 00 00 00 00 00 00 00 00 70 e7 ba 31 5f 00 00 00
000186f26bf0 20 6c f2 86 01 00 00 00 b4 57 ae 31 5f 00 00 00
TLS Address: 000000261fb4c600
TLS Dump: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
00261fb4c600 06 00 10 00 0c 00 00 80 01 00 00 00 54 81 18 02
00261fb4c610 00 00 00 00 50 02 00 00 e0 19 61 32 14 00 00 f0
00261fb4c620 53 46 43 49 01 00 00 00 02 00 00 00 00 00 00 00
00261fb4c630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c640 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c650 08 00 00 00 00 00 00 00 00 a0 04 00 00 00 00 00
00261fb4c660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
Damn that's a segfault. Kind of a pain in the ass to debug remotely. Would you be able to send me a crash log? Should be in sdmc:/atmosphere/fatal_reports

You might have a few so you might want to delete them all then crash Amiigo on purpose to generate a new one instead of looking through them one by one to find which one it is.

If you want, one thing you can try while I try to debug this is delete sdmc:/config/amiigo then try to start it in airplane mode to see if that helps.
By deleting the configuration folder, the software is launched. thanks a lot for your help
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Process Name: bsdsocket
Aww. I hate debugging network stuff. Oh well at least I know the issue is in the networking code now, just need to use that stack addresses to figure out where exactly. Fwiw since it's in the networking code starting Amiigo in airplane mode after deleting the config should work around it since Amiigo will use local copies of files it usually retrieves from the internet if it goes a certain amount of time (20 seconds iirc) without an internet connection. Just wait when it says "waiting for connection" and it should skip all the networking stuff. Depending on what the bug is you might only need to go in to airplane once when you first launch it.
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
By deleting the configuration folder, the software is launched. thanks a lot for your help
No problem. That stuff has caused a bunch of problems in the past so I had a hunch but I thought I had figured it all out now. Oh well. Once I work out what it is I'll release 1.3.1 to patch it if anyone else has that issue.
 

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
Aww. I hate debugging network stuff. Oh well at least I know the issue is in the networking code now, just need to use that stack addresses to figure out where exactly. Fwiw since it's in the networking code starting Amiigo in airplane mode after deleting the config should work around it since Amiigo will use local copies of files it usually retrieves from the internet if it goes a certain amount of time (20 seconds iirc) without an internet connection. Just wait when it says "waiting for connection" and it should skip all the networking stuff. Depending on what the bug is you might only need to go in to airplane once when you first launch it.
I changed the network configuration because of the bug then deleted the folder you mentioned above and the Amiigo now launches. Thanks again, I've been looking all afternoon.
 
  • Like
Reactions: CompSciOrBust

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
tmosphère Fatal Report (v1.1):
Result: 0x4A2 (2162-0002)

Program ID: 0100000000000012
Process Name: bsdsocket
Firmware: 14.1.2 (Atmosphère 1.3.2-master-e96972c93)
General Purpose Registers:
FP: 0000000186f26b00
LR: 0000005f31ad5df4
SP: 0000000186f26b00
PC: 0000005f31ae3d64
Start Address: 0000005f31a00000
Stack Trace:
ReturnAddress[00]: 0000005f31ae5f04
ReturnAddress[01]: 0000005f31ae5bd8
ReturnAddress[02]: 0000005f31ae57b4
ReturnAddress[03]: 0000005f31ae5908
ReturnAddress[04]: 0000005f31a8f7ec
ReturnAddress[05]: 0000005f31a8f560
ReturnAddress[06]: 0000005f31a8f658
ReturnAddress[07]: 0000005f31a652e0
ReturnAddress[08]: 0000005f31a66050
ReturnAddress[09]: 0000005f31a65fe4
ReturnAddress[10]: 0000005f31a682cc
ReturnAddress[11]: 0000005f31ad3ac0
ReturnAddress[12]: 0000005f31ad34f0
ReturnAddress[13]: 0000005f31ad262c
ReturnAddress[14]: 0000005f31ad28bc
ReturnAddress[15]: 0000005f31ad2938
ReturnAddress[16]: 0000005f31ac2d28
ReturnAddress[17]: 0000005f31ac6db4
ReturnAddress[18]: 0000000000000000
Stack Dump: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
000186f26b00 a0 6b f2 86 01 00 00 00 04 5f ae 31 5f 00 00 00
000186f26b10 01 01 00 00 00 00 10 00 0c 00 00 80 01 00 00 00
000186f26b20 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000186f26b30 05 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00
000186f26b40 00 00 00 00 14 00 00 00 50 64 ad 31 01 00 00 00
000186f26b50 58 6b f2 86 01 00 00 00 00 00 00 00 00 00 00 00
000186f26b60 00 20 71 49 01 00 00 00 00 00 00 00 00 00 00 00
000186f26b70 00 00 00 00 00 00 00 00 15 00 00 00 00 00 00 00
000186f26b80 e0 19 61 32 5f 00 00 00 50 02 00 00 00 00 00 00
000186f26b90 10 6b f2 86 01 00 00 00 00 c6 b4 1f 26 00 00 00
000186f26ba0 f0 6b f2 86 01 00 00 00 d8 5b ae 31 5f 00 00 00
000186f26bb0 58 f6 a8 31 5f 00 00 00 88 6d f2 86 01 00 00 00
000186f26bc0 53 62 b4 31 5f 00 00 00 00 00 00 00 00 00 00 00
000186f26bd0 80 e8 ba 31 5f 00 00 00 58 6c f2 86 01 00 00 00
000186f26be0 00 00 00 00 00 00 00 00 70 e7 ba 31 5f 00 00 00
000186f26bf0 20 6c f2 86 01 00 00 00 b4 57 ae 31 5f 00 00 00
TLS Address: 000000261fb4c600
TLS Dump: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
00261fb4c600 06 00 10 00 0c 00 00 80 01 00 00 00 54 81 18 02
00261fb4c610 00 00 00 00 50 02 00 00 e0 19 61 32 14 00 00 f0
00261fb4c620 53 46 43 49 01 00 00 00 02 00 00 00 00 00 00 00
00261fb4c630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c640 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c650 08 00 00 00 00 00 00 00 00 a0 04 00 00 00 00 00
00261fb4c660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c670 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c690 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00261fb4c6f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
There isn't enough information in here to properly debug the issue. Running all those stack addresses through addr2line doesn't give any functions that I wrote myself, I guess because it is actually a system module that's crashing and not Amiigo itself. I do have a rough idea of where the bug is though so I'll keep looking for it. Let me know if you get the same issue again in the future and we'll see what info we can squeeze out of your console if I haven't figured out what it is before then.
 

HalfScoper

Well-Known Member
Member
Joined
Apr 16, 2021
Messages
551
Trophies
0
Age
84
XP
1,480
Country
Germany
I guess because it is actually a system module that's crashing and not Amiigo itself
Error 0x4A2 (2162-0002) definitely isn't related to Amiigo so you shouldn't break your head over it.
The person who asked probably didn't uninstall themes before updating their (C)FW, at least that's the most common issue a quick google search showed as result.
Generally speaking something in /atmosphere/contents/ is incompatible with latest (C)FW or with other installed plugins.
Or he messed up formatting the SD card, like this guy: https://github.com/FlagBrew/Checkpoint/issues/259
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Error 0x4A2 (2162-0002) definitely isn't related to Amiigo so you shouldn't break your head over it.
The person who asked probably didn't uninstall themes before updating their (C)FW, at least that's the most common issue a quick google search showed as result.
I think it is an Amiigo issue. 0x4A2 is a generic system module error. I initially misread it as 0x4A8 which would be a segfault, explains why the fatal screen is missing register data which is usually included in segfault reports. We know it's definitely not theme related because the title ID in the image is 0100000000000012 which SwitchBrew says is bsdsockets but themes are handled by qlaunch (title ID 0100000000001000). Also the crash report says so. I'm probably passing incorrect (or corrupted) data in to the networking system module and it doesn't know what to do with it so it throws a generic error since it can't possibly have a dedicated error code for every possible thing that could go wrong in such a huge codebase (not without making error codes use more digits at least).
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
I changed the network configuration because of the bug then deleted the folder you mentioned above and the Amiigo now launches. Thanks again, I've been looking all afternoon.
After lots of debugging I have discovered that the issue is actually in how nlohmann's JSON library handles corrupt data. For some reason it relies on BSD sockets even if the system is offline, and if the data is malformed it causes crashes. Malformed data might come from the connection being interrupted while it's caching the Amiibo API. I do have a fixed version of Amiigo but I'm very tired so I'm probably going to start over from scratch tomorrow to make sure I'm not introducing any other bugs by fixing this one. It should be easy now that I know what the issue is.

If anyone else has this issue before I release 1.3.1 just delete sdmc:/config/amiigo and start Amiigo in airplane mode for 5 seconds so that it unpacks the local copy. After that it should run fine even while connected to the internet.
 

Masana

Well-Known Member
Member
Joined
Aug 12, 2016
Messages
108
Trophies
0
XP
2,241
Country
France
Error 0x4A2 (2162-0002) definitely isn't related to Amiigo so you shouldn't break your head over it.
The person who asked probably didn't uninstall themes before updating their (C)FW, at least that's the most common issue a quick google search showed as result.
Generally speaking something in /atmosphere/contents/ is incompatible with latest (C)FW or with other installed plugins.
Or he messed up formatting the SD card, like this guy: https://github.com/FlagBrew/Checkpoint/issues/259
FYI, the bug occurred when I updated Emiibo, switched to Amiigo (I used Amiiswap) and used ccproxy to block incoming connections. I haven't used a theme for several years and my SD card is perfectly formatted.
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
I released 2.3.1. If the local API cache isn't a valid JSON file it will refuse to load it and tell the user to manually update the API cache in the settings. If your setup is currently working fine you don't need to update, this is more to prevent future first time users from having the same issue that Masana had.
 
  • Like
Reactions: ber71 and linuxares

pandavova

56
Member
Joined
Oct 27, 2015
Messages
902
Trophies
0
XP
2,110
Country
Germany
Was preparing this today with latests versions for Fire Emblem Engage Amiibos but also ran into 2162-0002 (0x4a2) on 0100000000000012 with 15.0.1, atmosphere 1.4.0, amiigo 2.3.1 and emuiibo 0.6.4.
This only happens when pressing on "Super Smash Bros." every other category loads up.
Deleting the config folder/ updating the api cache/ offline mode didn't help.
 

CompSciOrBust

🤔
OP
Member
Joined
Sep 9, 2019
Messages
904
Trophies
1
Location
Switch scene
Website
github.com
XP
2,663
Country
Korea, North
Was preparing this today with latests versions for Fire Emblem Engage Amiibos but also ran into 2162-0002 (0x4a2) on 0100000000000012 with 15.0.1, atmosphere 1.4.0, amiigo 2.3.1 and emuiibo 0.6.4.
This only happens when pressing on "Super Smash Bros." every other category loads up.
Deleting the config folder/ updating the api cache/ offline mode didn't help.
I'll look in to this when I can, but right now my Switch is bricked because the dat0 cable came loose and I don't have the tools to reattach it. Might be a few weeks, sorry.

When it crashes is it when you tap on the Super Smash Bros category? Or can you get in to that and it crashes when you select one of the Amiibos in that sub-menu?
 

pandavova

56
Member
Joined
Oct 27, 2015
Messages
902
Trophies
0
XP
2,110
Country
Germany
I'll look in to this when I can, but right now my Switch is bricked because the dat0 cable came loose and I don't have the tools to reattach it. Might be a few weeks, sorry.

When it crashes is it when you tap on the Super Smash Bros category? Or can you get in to that and it crashes when you select one of the Amiibos in that sub-menu?
No problem, after clicking on the Super Smash Bros category I get a black screen for ~3 seconds and then the atmosphere crash screen.
Tried this both in Applet Mode and Redirection Mode.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Nut on the hill