Open Hejsil opened 1 week ago
the program ends
You mean unwanted exit, like a crash? Or a normal exit?
Is there a reason why blocking = false is passed to gtk_main_iteration_do?
I guess if blocking = true
the websocket server will be blocked or something... you can easily test it to be sure.
just change the line, and run make
.
the program ends
You mean unwanted exit, like a crash? Or a normal exit?
Aaah no. I guess that is bad phrasing. The program will spin on this loop (100% CPU usage) after opening a window. So the program "ends up" here once the window has been opened.
I guess if
blocking = true
the websocket server will be blocked or something... you can easily test it to be sure. just change the line, and runmake
.
Aah ok. Just tested a little further. It does not seem this is the loop that causes 100% CPU usage. I just assumed (my bad)
When running webui with WebView as the browser the program ends in the following busy loop:
https://github.com/webui-dev/webui/blob/d5b25ca1a827d3ec07be9607232edb0c27172918/src/webui.c#L3099-L3101
This causes high CPU usage. Is there a reason why
blocking = false
is passed togtk_main_iteration_do
?