Possible ideas for a possible new FET-6 version

Started by Vangelis Karafillidis, March 19, 2021, 08:39:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

Hello, ghani  :)

Please confirm:

1) My precompiled GNU/Linux executable, not compiled by you. Please go to Help/About Qt and tell me the Qt version.

2) When you begin generation multiple, it crashes at start? After less than 1 second? After 1-5 seconds?

ghani1990

Quote from: Liviu Lalescu on April 22, 2021, 02:56:28 PM
Hello, ghani  :)

Please confirm:

1) My precompiled GNU/Linux executable, not compiled by you. Please go to Help/About Qt and tell me the Qt version.

2) When you begin generation multiple, it crashes at start? After less than 1 second? After 1-5 seconds?

1- yes it yours, Qt version 5.15.2.
2- The behavior is different every time, generally it crash immediately, or in 3 seconds in total.

Liviu Lalescu

Quote from: ghani1990 on April 22, 2021, 02:18:56 PM
Hello dear sir @Liviu Lalescu
It is a great honor for me to see you again as you make this mighty extraordinary feat.
I just noticed, while working on the new version, a problem using multiple threads, on a Linux system, as the app sometimes stops with the appearance of a message: "segmentation fault (core dumped)  ./fet"
And sometimes it works normally on the same file and the same options.

I confirm the bug, on a laptop with openSUSE  :'(

The only advice I can give you: compile with Qt 6.0.3.

I'll try to isolate the bug, but it is very hard.

ghani1990

Really, it's a tough issue, can you confirm that it does not exist with version 6?
Well, I will try to build the new version with QT 6.
What if you release the new version, with QT 6? Can't you??


Liviu Lalescu

I isolated some random seeds which crash on my computer with Qt 5, but I never crashed with Qt 6.

I cannot release with Qt 6, because linuxdeployqt only works with Qt 5.

Also, I need to take care of this very ugly bug. It must work on any Qt.

Liviu Lalescu

I would like to tell you that I would like you to wait for a possible fix from me, so that you can test it.

ghani1990

Well, I am waiting for the solution, and I will test all versions until we get a good result.
I'm very grateful to you for all your help and for the wonderful work you are doing, my friend

Liviu Lalescu

Working on it... bug isolated, see attached screenshot for my work. Bug maybe in generate.cpp, line 6811.

ghani1990

 :o
I am sure that the solution will be very soon, with your insistence.
Waiting for that.

Liviu Lalescu

It seems that it is a Qt-5 problem, from Qt-5.14.0 to Qt-5.15.2.

I will investigate further the Qt code, but I think I cannot make a hack to fix FET behavior on Qt 5.14.0 to Qt-5.15.2.

I could compile for you with Qt-5.12.10, if you really need, but I would advise you to get Qt-6 and compile, it is not difficult at all. Please let me know. I can help you in both variants, either way you choose.

ghani1990

Please, Don't tire yourself out, my friend.
I will build it on manjaro with Qt ​6 and tell you the result.

Liviu Lalescu

Install gcc and g++ (or gcc-c++), I have 10.3.0, but maybe you can only install older.

Make a Qt account (free), use the online installer, install Qt 6.0.3 gcc 64-bit. qt.io is the site, you need to dig a bit for the link. Let me know if you need help.

"~/Qt/6.0.3/gcc_64/bin/qmake", then "time make -j 4" (time if you want to know how long it compiled).

Liviu Lalescu

I tried something and it seems I found a solution even for Qt 5.15.2. I hope you can help me with testing. I will try to put a test version for you soon.

Liviu Lalescu

#43
Dear ghani,

I hope I found the best solution. I have put a snapshot for GNU/Linux exe: https://lalescu.ro/liviu/Backup-fet/fet-6.0.2-snapshot-23-apr-2021-00_01-gnu-linux-executable.tar.bz2  (the best is to go to https://lalescu.ro/liviu/Backup-fet/  and get the one named with "GNU/Linux exe", I might change something)

Please let me know if this version is OK and does not crash anymore. It is very important.

Thank you for your help!

ghani1990

Sorry for the delay due to my internet speed, and also my old computer. It took a full hour and three minutes to build.
I can confirm that the problem disappeared in the version that I built on Qt 6.
I will try the new version that you uploaded and tell you the result.