ptrv / SaM-Designer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synth-A-Modeler GUI seems like it is crashing during long compiles

eberdahl opened this issue · comments

When it takes a long time to compile, it seems like the Synth-A-Modeler GUI is crashing. Currently, the GUI just spins indicating nothing. Then, when the compiler finishes, it suddenly displays the entire compilation results in the Output window. In my opinion, the best way to fix that would be to show the output from the compilation process in the Output window while it is being generated.

Yes, it is like this. The Gui is not crashing, but the child process (i.e. Synth-A-Modeler compiler) is a blocking process and it will display the output when it is finished. I agree that it would be better to have the child process running non-blocking. I have to find a better way for this with probably a library which wraps the whole start/read process, since it is platform specific.

Hmmm... well maybe we don't want to have much platform-specific code at all because it will confound debugging. Here are some other ideas: when compiling finishes, flash the menu bar briefly a different color so that it's obvious? Or maybe just slow down the text from the compiler as at feeds into the GUI. (Otherwise, especially if the compiler responds with the same output code, if the user blinks at the wrong time, the user cannot tell that the compiler finished.

Commit b535156 fixes this issue. The commands are now started in separate threads which does not block the user interface anymore.