FET Forum

FET Development => Report a Bug => Topic started by: davvidde on September 25, 2015, 05:28:58 PM

Title: Fet Crashes
Post by: davvidde on September 25, 2015, 05:28:58 PM
I discover that FET crashes from vesion 5.27.1 to last when adding a very large number of constraint in the same dialog.
In my case, when I want to  to verify a timetable and add multple "an activity has a preferred starting time" constraint without exiting the dialog, FET crashes after about 100 inputs.
The same behaviour happens when I delete a very large number of the same constraint from a generated timetable.
I use the Mac version.

Davide.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 25, 2015, 05:50:33 PM
Thank you for your report!

Do you use Yush's precompiled version?

Could you attach a screen shot after crash? Also, tell me if it is assert failed or segmentation fault. Give me the file and line, if it is assert.

I tried to replicate: I generated on a file, locked all the activities, then entered the dialog "an activity has a preferred starting time" and removed about 600 constraints, leaving about 10 not removed. FET did not crash.

Could you give more details?
Title: Re: Fet Crashes
Post by: Volker Dirr on September 25, 2015, 05:51:29 PM
hmmm... sadly i can't reproduce that bug (With Linux version). I also can't see strange things (link much increasing memory). I will check tomorrow with valgrind. Maybe that helps me to detect that bug.
Title: Re: Fet Crashes
Post by: davvidde on September 25, 2015, 08:31:41 PM
Yes, I use Yush's precompiled version.
I've just attached some of the diagnostic reports from my mac.
I hope it will be useful.

Davide.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 26, 2015, 02:15:05 PM
Thank you very much! Yes, the files helped me. I just released a new version (5.28.0). I tried to fix some bugs, but I might not have found all of them, or they may be Qt bugs.

Please let me know if you get other crashes and try to find exact ways to duplicate them. And keep the log files.

More details: from your log files, I found that if you add a constraint teacher not available for a teacher, remove it, and add another again for the same teacher, it crashes (on 5.27.9 and previous versions). Also, I made in 5.28.0 that you cannot modify a constraint activity preferred starting time (in the dialog to modify such constraints) so that it is duplicated with another activity preferred starting time. But I am not sure this was a crash bug.
Title: Re: Fet Crashes
Post by: davvidde on September 26, 2015, 03:01:34 PM
FET didn't crash when "activity preferred starting time" constraint is duplicated but reported it.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 26, 2015, 03:51:12 PM
Quote from: Davide Cottignoli on September 26, 2015, 03:01:34 PM
FET didn't crash when "activity preferred starting time" constraint is duplicated but reported it.

Yes. Now it won't allow you to add such duplicates. Hopefully it will not crash anymore, but I am not sure.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 28, 2015, 05:25:58 PM
Does FET crash any more? Please inform me if it still will crash, in the future, and try to see how to duplicate such a crash.
Title: Re: Fet Crashes
Post by: davvidde on September 28, 2015, 06:21:06 PM
At the moment I have not tested the FET new version because I need to compile it for mac. However tomorrow I will get a try with the Windows version in my Virtualbox win XP virtual machine.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 28, 2015, 06:25:39 PM
Thank you! I would prefer you to do the tests with the native Mac compiled version, as you did until now, but any test is good.
Title: Re: Fet Crashes
Post by: davvidde on September 30, 2015, 01:53:50 AM
I compiled FET 5.28.0 from source with QT5.5 on my Mac with success. I tried to work with the file that caused the crash and this time FET has not crashed.
To make a complete package of the app after compilation what files need to be included with it? Only translation files or which others?
Inspecting the last FET official package distributed by Yush I found a folder named "Plugins" with 4 subfolders: there are many *.dylib files which I ignore the source but I suppose is from QT. Do you know what of them are really necessary and where can I find them?

Thanks.

Regards.
Davide.
Title: Re: Fet Crashes
Post by: Liviu Lalescu on September 30, 2015, 07:03:46 AM
I'm sorry, but I don't know. Maybe ask Yush. Or maybe search for those file names on your hard disk. I think all of them are necessary.