Crash in Teachers - Max hours daily in hourly interval

Started by math, December 21, 2024, 10:43:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

math

I noticed that FET crashes when performing the following steps:
1) Loading an arbitrary data file
2) Opening the dialog Time -> Teachers -> A teacher (1) -> Max hours daily in an hourly interval for teacher
3) Selecting "add" in the dialog that has opened
4) Selecting some teacher, selecting some start time, selecting some end time, Max daily 1, then pressing "add constraint"
5) Confirming the FET information dialog with pressing "ok"
6) Selecting some other teacher, set Max daily 0, then pressing "add constraint".

After pressing "add constraint" in step 6, FET crashes immediately. I was using an older version of FET, then updating to the most recent version 6.28.3. The problem exists also in this version.

Volker Dirr

Huhh... True. I can confirm it with FET 6.28.3
Thank you for report!

Volker Dirr


Volker Dirr

It crashes as soon as the value is 0. It doesn't matter if "add constraint" or "add constraints".
Well, value of 0 doesn't makes sense. In that case a not available time constraint will be faster. We shouldn't allow 0 and/or warn to use not available time constraint if the value is 0.

Liviu Lalescu

Thank you, Matthias! The new version 6.28.4 fixing this is just released.

math

Volker, Liviu, thanks a lot for confirming and fixing the bug. Unfortunately I currently don't have a compiler installed on my machine, so I'm waiting until Darren is providing an updated binary for macOS.

Have yourself a merry christmas and a happy new year!

   

Liviu Lalescu