Closed ZechariahB closed 1 year ago
The latter is a problem of the GUI toolkit I'm using. As for the crash what is your OS?
OS: Fedora Linux 36 (Workstation Edition) GNOME Version: 42.4 Windowing System: X11
The crash has a chance of occurring when replacing the 0s with numbers. Using this program in command line has no crash.
I've been trying to reproduce this crash to no avail for a while now, mind trying to get it on video?
I've been able to reproduce this by selecting numbers with the mouse and mashing in random numbers, then doing this over and over again to other boxes. It happens if you are unlucky enough it seems, but is pretty easy to activate.
I have also been experiencing this crash.
Looks like its due to app::wait_for(0.2).unwrap()
at lines 100 and 104 here:
https://github.com/4JX/L5P-Keyboard-RGB/blob/5a6cc0f226613887a13687d441db5aac84aff8ba/src/gui/app.rs#L98-L112
FLTK wait_for()
produces an FltkError::Unknown
error on UNIX systems if a signal happens. This unhandled error appears to be what is causing the crash.
I have created a pull request with a fix: PR #97
Fixed via 0.19.0
When inputting numbers into the boxes, this application often crashes in GUI mode. These boxes can also be resized left or right, which is definitely not supposed to happen. Here is the crash log.