switchbrew / nx-hbmenu

The Nintendo Switch Homebrew Menu
ISC License
1.19k stars 127 forks source link

Temperature call conflictions on HOS 17.0.0+ with v3.6.0 #168

Closed ppkantorski closed 8 months ago

ppkantorski commented 8 months ago

Right now temperature calls conflict with overlays using temperature like Status Monitor 0.9.2 (and others) on HOS 17. The moment another program runs libnx's tsOpenSession (or like how it was done in Status Monitor)

Result tsOpenTsSession(Service* serviceSession, TsSession* out, TsDeviceCode device_code) {
    return serviceDispatchIn(serviceSession, 4, device_code,
        .out_num_objects = 1,
        .out_objects = &out->s,
    );
}

while hbmenu v3.6.0 is pulling temperature (or potentially any other program using temperature), the system will freeze then reboot.

Not sure if you were aware of this issue so i just wanted to raise it.

ppkantorski commented 8 months ago

So i just tested sys-clk-manager.nro and it has no issues pulling temperatures live in applet mode with status monitor and other overlays making temperature requests simultaneously. Perhaps there is indeed something wrong still with how temperature is being implemented in hbmenu/libnx on HOS 17

ppkantorski commented 8 months ago

Issue is resovled. This was purely because of the version of sys-clk that I was using. With the latest version "rc" this bug is completely gone. Disabling the system module was how I figured it out. Anyways, could be helpful to someone. Closing this issue now.