FET Forum

FET Development => Report a Bug => Topic started by: maxi_mus on January 10, 2024, 04:30:09 PM

Title: Mac: Add activity preferred room crashes
Post by: maxi_mus on January 10, 2024, 04:30:09 PM
Space - Activities - An activity has a preferred room - Add - Choose anything from a dropdown

crashes the program on Mac every time. Mac mini M2 Pro, latest OS. I'm not gonna test it on another Mac machine, gonna continue on Windows for the time being.
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on January 10, 2024, 04:59:02 PM
Clarification: Only filtering causes the app to crash, choosing a single activity doesn't. Also, this isn't the only function where using the filters causes a crash.

So basically the functionality is still usable, but you have to choose every activity from the complete list.
Title: Re: Mac: Add activity preferred room crashes
Post by: Liviu Lalescu on January 10, 2024, 05:19:59 PM
Thank you for your report!

What FET version are you using? What Qt? (See Help of FET, About Qt.)

I just tried on my GNU/Linux, no crash. So it might be a Qt for macOS (big!) problem.

Could you share more details? Like: segmentation fault or assertion failed? Crash log text file, or a small movie?

@Darren McDonald , @Volker Dirr , could you please test this if you have a Mac?
Title: Re: Mac: Add activity preferred room crashes
Post by: Volker Dirr on January 10, 2024, 07:09:20 PM
I sadly can't reprocude it.
Maybe attach your fet file or (if private or a not simplified minimum example) sent me by email and tell me a bit more detailed what filter i should use to ge a crash.

But more impartant is Livius request: Please do one more time and sent us a more detailed crash log. Is there an assert warning and/or a crash report? Did you compiled yourself or did you use Darrens compiled version. If you compiled yourself: What Qt version are you using?
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on January 10, 2024, 08:41:43 PM
I'm using Darren's compiled version, latest version.

I'm not sure if the following is what you mean by crash report, if not, please give me a step by step instruction of what you need.

BTW: My FET file won't be of any help, you can just open a new file, define one subject and one activity, and then the crash is reproducible to me.
Title: Re: Mac: Add activity preferred room crashes
Post by: Liviu Lalescu on January 10, 2024, 09:00:13 PM
Yes, this is a useful file. It seems to be a segmentation fault, not an assert failed. It seems Qt-related. We need other people to check on their Mac.
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on January 29, 2024, 03:42:52 PM
Hi. Has this error been reproduced? There is no newer/corrected Mac version available yet for download, is there?

Is it possible to download old versions of FET for Mac? I still have a laptop running 10.15
Title: Re: Mac: Add activity preferred room crashes
Post by: Liviu Lalescu on January 29, 2024, 03:52:02 PM
Hello,

I don't have a Mac => I cannot investigate.

I don't know why Darren did not answer.

I am just on the point of releasing a new version. I am not sure it will fix the bug, probably not.

See https://lalescu.ro/liviu/fet/forum/index.php?topic=2674.0 for older versions. But I prefer you to use the latest.
Title: Re: Mac: Add activity preferred room crashes
Post by: Darren McDonald on January 31, 2024, 01:23:20 AM
Hi all, sorry, I hadn't seen this thread until now. I also can't reproduce this issue, and I'm also on a Mac Mini M2 Pro.
Title: Re: Mac: Add activity preferred room crashes
Post by: Darren McDonald on January 31, 2024, 01:31:56 AM
Quote from: maxi_mus on January 10, 2024, 08:41:43 PMyou can just open a new file, define one subject and one activity, and then the crash is reproducible to me.

I've just tried, this, then gone to Space>Activities>An activity has a preferred room and selected Add. I'm then able to select Add constraint, at which point I get an Invalid Room alert – no crash.
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on January 31, 2024, 11:45:35 AM
I just downloaded the latest version (6.16.0) and the bug is still there. Just to make completely sure I have described that bug so that it could be reproducible to you, I will list every single thing I do:

File - new - official - OK
Data - Subjects - Add - OK
Data - Activities - Add - (Select Subject from previous step) - Add
Space - Activities - An activity has a preferred room - Add - and then select the subject form the Filter at the top.

This immediately crashes FET every time. Space - Activities is just an example in the last step, you can use anything in either 'Time' or 'Space', selecting something from the filter will always crash FET.

It also has nothing to do with no teachers or no students existing yet at this point, the behavior is exactly the same with a lot of basic data entered.

If you guys want, I an even record a video.

Darren: just a suggestion, downloads from your page are extremely slow, perhaps that could be hosted externally?
Title: Re: Mac: Add activity preferred room crashes
Post by: Volker Dirr on January 31, 2024, 01:17:13 PM
Quote from: maxi_mus on January 31, 2024, 11:45:35 AMDarren: just a suggestion, downloads from your page are extremely slow, perhaps that could be hosted externally?

Well, that is also always a question of money. For example Livius and my site are only not too slow, since we spent every month our private money to pay the external hoster. So we work in spare time and code, support in the forum, pay for hoster, ...
If more guys donate a bit money, we could have enough money for better external hosters. I bet Darren never get a donation so far. I never get a donation so far and if you check Livius donation page, then you will probably notice that after subtraction the money for external hosters, a new computer, paying the bill for eclectic energy, buying a new computer, coding books, ... will end in totally more or less no income for 20+ years working.
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on February 02, 2024, 10:40:23 AM
I would be very grateful if someone could try and reproduce this bug, I find it highly unlikely that it's affecting just me. Having to choose every activity individually is very cumbersome as the filters are not working.
Title: Re: Mac: Add activity preferred room crashes
Post by: Volker Dirr on February 02, 2024, 01:27:16 PM
Sadly i can't reproduce it. And i can't see a bug in the FET source. We need someone that can reproduce the bug and locate it.

Since you can reproduce the bug: Do you know how to compile FET yourself? Since if you can compile FET yourself, then you could run a debugger software on FET and locate the problem more detailed.
If you can compile yourself, then I can teach you how to run a debugger.
Title: Re: Mac: Add activity preferred room crashes
Post by: Darren McDonald on February 02, 2024, 04:43:23 PM
Quote from: maxi_mus on February 02, 2024, 10:40:23 AMI would be very grateful if someone could try and reproduce this bug, I find it highly unlikely that it's affecting just me. Having to choose every activity individually is very cumbersome as the filters are not working.

I think everyone here has tried (unsuccessfully) to reproduce this bug. Volker's suggestion is a good next step, but it seems like a rather isolated issue (since this involves very basic FET functionality, I think we would have heard about this from other FET users on macOS if it were more widespread). I've tried on two machines without issue (macOS Sonoma 14.2.1 on a Mac Mini M2 Pro, and on an M1 MacBook Pro).
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on February 03, 2024, 11:17:07 AM
OK. The next thing I will do is try to reproduce it on my older MacBook Pro, for this I'll need an older version of FET, but I think someone posted some links on the forum so I should find one.

If I can't reproduce it there, I'll try to go the debugger route.
Title: Re: Mac: Add activity preferred room crashes
Post by: Darren McDonald on February 03, 2024, 07:04:06 PM
I've got a few older versions that might work, but I can't tell you which you'd need.

A selection of older macOS versions of FET can be found here.

Good luck!
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on February 05, 2024, 03:32:55 PM
I can confirm that the crash doesn't happen on 6.3.4 on my old laptop running Catalina.

Maybe it's got something to do with my M2...
Title: Re: Mac: Add activity preferred room crashes
Post by: Volker Dirr on February 05, 2024, 09:06:52 PM
Just to understand correct:
FET 6.3.4 is running fine on your old laptop, but it crashes with your new M2 ?
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on February 26, 2024, 04:08:50 PM
I didn't try 6.3.4 on the M2, just the most current version.
Title: Re: Mac: Add activity preferred room crashes
Post by: Liviu Lalescu on February 26, 2024, 04:25:52 PM
@maxi_mus , the new FET-6.18.0 is compiled with Qt 6.6.2 (out 15 February 2024) by Darren, so you might want to try, maybe the bug is solved.
Title: Re: Mac: Add activity preferred room crashes
Post by: maxi_mus on March 06, 2024, 02:23:26 PM
Yes, thank you very much, the bug is solved!!

I also just tried it on my other (older) Mac mini, but it works there too of course, I guess it doesn't matter anymore whether it would have worked there :)
Title: Re: Mac: Add activity preferred room crashes
Post by: Liviu Lalescu on March 06, 2024, 02:26:38 PM
Great, then! :)