MesserLab / SLiM

SLiM is a genetically explicit forward simulation software package for population genetics and evolutionary biology. It is highly flexible, with a built-in scripting language, and has a cross-platform graphical modeling environment called SLiMgui.
https://messerlab.org/slim/
GNU General Public License v3.0
160 stars 33 forks source link

Unable to close the population visualization graph generated by SLiMgui on Windows with WSL #408

Closed mustafacharoghi closed 11 months ago

mustafacharoghi commented 11 months ago

Hi,

I have recently encountered an issue while executing SLiMgui on Windows with WSL. When I try to make a graph, e.g., "Graph Population Visualization" or "Graph Age Distribution" (screenshot enclosed below), I could not close the graph itself unless I terminate the whole process of SLiMgui.

My Ubuntu version is Ubuntu 20.04 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64), and all the libraries are updated to the latest. Thanks!

bhaller commented 11 months ago

Hi @mustafacharoghi. Thanks for the report. I think the screenshot still needs to be added to this report?

I have got my hands on an Ubuntu box, and tried this out. It seems to work fine there. So, either (1) this is a problem only for Ubuntu running under the WSL (weird, but not inconceivable), or (2) it was a one-off glitch of some kind. It is reproducible? Did it happen to you in more than one run? What version of SLiM are you using? If you build from current GitHub sources (see chapter 2 of the manual for instructions, quite easy usually), does it still happen then? Oh, and: if you are running SLiMgui starting from a terminal window (please do, for debugging this), do any error logs appear in that terminal window?

bhaller commented 11 months ago

In preparation for SLiM 4.1, I just went over the code in SLiMgui with some new (well, new to me) error-checking tools – clang-tidy, clazy – and found a handful of issues that might have caused instability/bugs in the graph windows. Given that, and the lack of a reproducible case here, I'm going to close this as "cannot reproduce / hopefully fixed". If it happens again once you have upgraded to SLiM 4.1, please do let me know.