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

Does musializer not have logging? #101

Open
Subhranil-Maity opened this issue Mar 3, 2024 · 5 comments
Open

Does musializer not have logging? #101

Subhranil-Maity opened this issue Mar 3, 2024 · 5 comments

Comments

@Subhranil-Maity
Copy link

This says to check logs but the whole project have no log files

image

@Markos-Th09
Copy link
Contributor

It refers to the command line logs. Launch musializer from the command line if you want to see them.

@Subhranil-Maity
Copy link
Author

But in windows it doesn't show any log

@Markos-Th09
Copy link
Contributor

Markos-Th09 commented Mar 7, 2024

I think I know why. The subsystem is switched to windows instead of console, which means stdio is detached.

@jgabaut
Copy link
Contributor

jgabaut commented Mar 9, 2024

I think I know why. The subsystem is switched to windows instead of console, which means stdio is detached.

I didn't understand what you meant, so I looked around and wanted to leave some references.

I suppose it's related to the usage of /SUBSYSTEM:WINDOWS in nob_win64_msvc.c.

Link to example from msvc nob source

From this page:

WINDOWS
The application doesn't require a console, probably because it creates its own windows for interaction with the user. [...]

But this seems to be exactly the approach shown in raylib's build-windows.bat:

set SUBSYSTEM_FLAGS=/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

Link to raylib source

So I don't really know if trying other values is the way to go around this. Having no MSVC ready, I can't really test this now.

@Markos-Th09
Copy link
Contributor

Markos-Th09 commented Mar 9, 2024

The equivalent flag for /subsystem:windows is -mwindows in mingw.

By default windows subsystem gui applications don’t get a console which means they don’t have stdout, stdin and stderr. You manually allocate or attach a console, such as the parent cmd, by using the win32 api and get stdio back and achieve a hybrid console/gui app.

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