Page 1 of 5

Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 1:32 pm
by Quantize
Dear Folding@Home,

- Being a programmer and not (formally) a researcher:
- For strong promotional reasons, especially during this time:

=> I'd like to volunteer to fix your F@H viewer

I have plenty of programming skill yet I have never looked at your particular codebase before.
I can also just look at the VCS myself but I suspect it may be way, way more efficiënt if someone could reach out and bring me up to speed on it so that Ican take over from there.

Could the person who has been working on it before send me such a message, please?
A quick summary is all I'll need.

Sincerely yours,
Meerten

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 6:33 pm
by rixon
Meerteen, if you do that, I'll send you some (detailed/constructive) bug reports! Not sure what the clients are written in (looks like C or C++), but FAHControl is written in Python/Qt w/ the source on the machine, so anyone can have a go at working on that. Where to send patches... your guess is as good as mine.

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 6:39 pm
by Nathan_P
I've forwarded Quantize's request on to the project team, they are discussing it but will probably have to forward it to the project director. Lets see what happens

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 7:00 pm
by asm
rixon wrote:FAHControl is written in Python/Qt
FYI - on macOS at least - FAHControl 7.5.1 is not using Qt - it's using GTK. It includes libs such as libgdk-quartz-2.0.0 and libgtkmacintegration-gtk2.2 - no Qt libs to be found...

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 8:34 pm
by Quantize
rixon wrote:Meerteen, if you do that, I'll send you some (detailed/constructive) bug reports! Not sure what the clients are written in (looks like C or C++), but FAHControl is written in Python/Qt w/ the source on the machine, so anyone can have a go at working on that. Where to send patches... your guess is as good as mine.
Great! I might take you up on that offer.
Nathan_P wrote:I've forwarded Quantize's request on to the project team, they are discussing it but will probably have to forward it to the project director. Lets see what happens
Alright! Thank you, Nathan.

I'd've left my contact info but I fear spambots and crawlers picking up on it.
I'll just be watching this topic and PM box.

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 8:54 pm
by JimboPalmer
I am on the outside looking in, but my understanding is that it worked in Core_a4 and not in Core_a7 so having the data layout for both cores should provide guidance. I hear rumors it works in Core_22 but only in Linux, that might or might not be informative. A version that supported a7 and 22 would be great as Core_21 is on the way out.

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 9:35 pm
by dfgirl12
The viewer works in Linux (CPU: GRO_A7, and GPU: Core_21 and Core_22 all work on Linux), just not in Windows.

Searching the forum or looking at the issues in GitHub, you should be able to find more info on it. Like:
https://github.com/FoldingAtHome/fah-is ... pen+viewer
https://github.com/FoldingAtHome/fah-viewer/issues/5
https://github.com/FoldingAtHome/fah-control/issues/31
viewtopic.php?f=96&t=29258
Some recent general info on volunteering to help with the open source parts of FAH: viewtopic.php?f=15&t=32315

It would be awesome to finally get the viewer to work on Windows again. Any help would be appreciated :D

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 16, 2020 10:04 pm
by dfgirl12
There was a workaround mentioned recently: https://github.com/FoldingAtHome/fah-issues/issues/1283 by using the previous viewer executable (and a required dll) file with the current FAH v7.5.1 installation for viewing Core_22 on Windows

Re: Volunteering to fix F@H Viewer

Posted: Thu Mar 19, 2020 8:05 am
by Quantize
dfgirl12 wrote: https://github.com/FoldingAtHome/fah-is ... pen+viewer
Thank you dfgirl12!

You actually saved me a lot of time and pain because I assumed the handful of issues (7) noted at the 'fah-viewer' repo to be ALL.
I'm now much more up to speed and know where to resume this bughunt.

Re: Volunteering to fix F@H Viewer

Posted: Thu Mar 19, 2020 9:13 am
by kostuek
dfgirl12 wrote:The viewer works in Linux (CPU: GRO_A7, and GPU: Core_21 and Core_22 all work on Linux), just not in Windows.
GPU viewer does not work properly in Ubuntu 18.04 for me (graphic errors and disappearing molecule). CPU is fine.

Re: Volunteering to fix F@H Viewer

Posted: Sat Mar 21, 2020 2:25 pm
by Quantize
RESULTS so far:

Modern GPU WU's cannot be viewed as the simulation values that are relayed are vastly different than CPU WU's.

This behaviour is not yet supported and after a while will crash the viewer: https://meertronix.com/WhyGPUWasDisabled.png
It is possible that connectivity was intentionally severed to prevent this crash and to save time not having to write a method to ignore incompatible GPU slots while keeping the right ones.

Naturally, I've made a couple of changes and have compiled a new viewer.
This version should successfully connect and does not attempt to view GPU slots at all.

Kindly download it here and let me know if this works for you too:
http://meertronix.com/FAHViewer.exe

Should there still be any GPU cores that are actually compatible, I can also make it so that those are still viewed.
But we'd need to find out which cores will work because I have no idea how many variants there are and which ones should be selected.

Also I haven't yet looked at the GPU Trajectory wrapper thing.

Re: Volunteering to fix F@H Viewer

Posted: Sat Mar 21, 2020 2:49 pm
by Jesse_V
If it would help your codebase, you are welcome to take any OpenGL code from a tool I wrote long ago: https://github.com/Jesse-V/Folding-Atomata, maybe it would help.

Re: Volunteering to fix F@H Viewer

Posted: Sat Mar 21, 2020 3:20 pm
by Quantize
Well thank you that sounds very generous.

Thing is it's not my codebase and also I'm not that great with graphical thinking and math. I code, I bughunt, I fix. I help out where others can't or don't.
My primary objective here was to get the viewer connecting with the WU's again as it has only been showing me a demo proteïne ever since I started folding.

If I had the biophysiological knowhow you guys have then I'd be in the lab with you finding the cure and I wouldn't bother fixing the viewer either.
But alas hopefully I can contribute something to F@H & COVID research in this way, apart from my own cycles ofcourse.

Imo the viewer serves a significant promotional function and will remain in people's minds for a long time even after COVID-19.
Right now loads and loads of people are coming so it's F@H's time to shine and have a stunning first impression on those people. First impressions are everything.

Please keep up the good work and let me know whether my work on the viewer is appreciated or if I should go do something else against COVID-19.

Re: Volunteering to fix F@H Viewer

Posted: Sun Mar 22, 2020 10:37 am
by str4d
Quantize wrote:Imo the viewer serves a significant promotional function and will remain in people's minds for a long time even after COVID-19.
Right now loads and loads of people are coming so it's F@H's time to shine and have a stunning first impression on those people. First impressions are everything
I agree! It's why I started helping with FAHViewer in the last few days as well :) (though it turned out the bug I went in to fix had already been resolved!)

I think the best next step would be to open a PR on FoldingAtHome/fah-viewer with your current changes, and we can discuss them there and in FoldingAtHome/fah-viewer/issues/5. I've made several PRs myself in the last few days, and the maintainer has been very quick to merge (though they were more cursory changes, such as setting up a CI workflow to exercise the build process).

Re: Volunteering to fix F@H Viewer

Posted: Mon Mar 23, 2020 1:12 am
by Quantize
str4d wrote: I agree! It's why I started helping with FAHViewer in the last few days as well :) (though it turned out the bug I went in to fix had already been resolved!)
Hi! I'm not yet completely sure what you're referring to here. What did you go in to fix?
In the last release the viewer only works on demo mode.
It would seem something has gone horribly wrong in the process of compiling the latest version, winsock and all.
That, or it was intentionally hardcoded into demo mode awaiting an update for GPU trajectory support and was not communicated with git.
str4d wrote: I think the best next step would be to open a PR on FoldingAtHome/fah-viewer with your current changes, and we can discuss them there and in FoldingAtHome/fah-viewer/issues/5. I've made several PRs myself in the last few days, and the maintainer has been very quick to merge (though they were more cursory changes, such as setting up a CI workflow to exercise the build process).
For a while I thought those 6 issues were the only issues with the viewer and thus was not properly brought up to speed.
Good thing you're now looking after this.

May I ask why can't all repositories have their own issue page?
In what way exactly does throwing everything onto one huge heap create order & overview instead of .. well, one huge heap? :'D