Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attemt to open hbmenu leads to crash #102

Open
DCNick3 opened this issue Apr 15, 2020 · 6 comments
Open

Attemt to open hbmenu leads to crash #102

DCNick3 opened this issue Apr 15, 2020 · 6 comments

Comments

@DCNick3
Copy link

DCNick3 commented Apr 15, 2020

The sysmodule works, I can even communicate with it and get some information from console. But when I try to run hbmenu (using key-combo), I get an atmosphere crash screen with empty register value and traceback full of zeros.

Versions of software used:
twili 1.3.0
Firmware 9.0.0
Atmosphere 0.10.5

@epopcop
Copy link

epopcop commented Apr 15, 2020

Same. only difference for me is FW 9.0.1.
The error code i'm receiving is: 2239-0021 / 0x2aef.

@DCNick3
Copy link
Author

DCNick3 commented Apr 16, 2020

Hmm, for me it's a different error - 0x19280. I found some information that it's an AM_BUSY_ERROR, which can be returned by OpenApplicationProxy. Programs are to wait a bit and retry the call. Will investigate...

@DCNick3
Copy link
Author

DCNick3 commented Apr 16, 2020

Changed the code that calls OpenLibraryAppletProxyOld to handle this result.

    ipc::client::Object ilap;
    do {
        auto rc = iasaps.SendSyncRequest<200>( // OpenLibraryAppletProxyOld
            ipc::InPid(),
            ipc::InRaw<uint64_t>(0),
            ipc::InHandle<handle_t, ipc::copy>(0xffff8001),
            ipc::OutObject(ilap));
        if (!rc) {
            auto error = rc.error();
            if (error.code == 0x19280) { // "BUSY"; see https://switchbrew.org/wiki/Applet_Manager_services#OpenApplicationProxy
                svcSleepThread(10000000);
                continue;
            }
            throw ResultError(error);
        }
    } while (false);

Now I get 2001-0123 (Kernel error "Port remote dead"). Not sure what to do with that...

@misson20000
Copy link
Owner

@epopcop your issue was fixed in AMS 0.11.0, but skip over that of course and go to 0.11.1.
@DCNick3 Can you also try on AMS 0.11.1?

@DCNick3
Copy link
Author

DCNick3 commented Apr 17, 2020

Well, with twili 1.3.0 on atmosphere 0.11.1 I still get 0x19280

@DCNick3
Copy link
Author

DCNick3 commented Apr 17, 2020

And with applied change I still get 0xf601... So, nothing changed when I updated to AMS 0.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants