ctru-rs icon indicating copy to clipboard operation
ctru-rs copied to clipboard

Screenshots with Luma sometimes don't show console output

Open ian-h-chamberlain opened this issue 3 years ago • 4 comments

I haven't figured out why, but it seems like printing to the console sometimes isn't written to whatever buffer Luma uses when it takes a screenshot. It would be nice if we can work around this, since taking screenshots is one of the few ways available to share debug state of a hardware device.

ian-h-chamberlain avatar Jan 29 '22 14:01 ian-h-chamberlain

This is more of a problem with libctru than with ctru-rs, I don't even know how much we can tamper with it. We can just search around for any documentation of this issue.

Meziu avatar Jan 29 '22 15:01 Meziu

@ian-h-chamberlain How did you get the screenshots in this PR? https://github.com/Meziu/ctru-rs/pull/41

AzureMarker avatar Feb 04 '22 01:02 AzureMarker

Looks like a stdout redirection. It’s supported using the latest Homebrew Menu and 3dslink. I didn’t understand how to use it though.

Meziu avatar Feb 04 '22 08:02 Meziu

@ian-h-chamberlain How did you get the screenshots in this PR? #41

To be honest, I'm not sure what was different in this one... I just took a normal Luma screenshot with the code shown in that PR, as far as I remember. I thought originally maybe wide mode had something to do with it, or perhaps the lack of flushing / flipping buffers in the busy loop at the end of the test runners? I can try experimenting to see what makes it work or not.

ian-h-chamberlain avatar Feb 07 '22 03:02 ian-h-chamberlain