OpenChemistry / avogadroapp

Avogadro is an advanced molecular editor designed for cross-platform use in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas.
https://two.avogadro.cc/
BSD 3-Clause "New" or "Revised" License
187 stars 71 forks source link

Graphics don't display properly (Avogadro 2 on Linux, displayed on XQuartz) #108

Closed stmilne closed 3 years ago

stmilne commented 4 years ago

Avogadro version: Installed from "yum install", on a Linux cluster running CentOS 7:

Desktop version: Desktop machine is the graphics client, displaying windows:

Describe the bug

Window that displays molecules is messed up, with pieces of other desktop windows randomly scattered inside.

To Reproduce

Window is immediately messed up on launch, rather than black.

Screenshots Screen Shot 2020-02-04 at 3 46 47 PM

welcome[bot] commented 4 years ago

Thanks for opening your first issue here! Please try to include example files and screenshots if possible. If you're looking for support, please post on our forum: https://discuss.avogadro.cc/

ghutchis commented 4 years ago

I guess my first question is why you installed this way, rather than the Mac build?

My guess is that there's an issue with XQuartz and OpenGL contexts - it seems to be grabbing something from a webpage?

stmilne commented 4 years ago

Because 1) I found Avogadro 2 to be really crashy and buggy on the Mac, and 2) the intended workflow is to build and examine configurations for quantum chemistry codes on our cluster.

I was hoping Avo 2 would be better behaved on Linux. In contrast, Avogadro 1.2 is quite usable on both platforms, whereas I find Avo 2 unusable.

Sent from my iPhone

On Feb 4, 2020, at 19:51, Geoff Hutchison notifications@github.com wrote:

 I guess my first question is why you installed this way, rather than the Mac build?

My guess is that there's an issue with XQuartz and OpenGL contexts - it seems to be grabbing something from a webpage?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ghutchis commented 4 years ago

send me an e-mail and let's talk. I've never been able to crash Avo2 on my Mac, so I'm curious.

stmilne commented 4 years ago

Goeff — Thanks for your reply. I re-examined the Mac version of Avo 2 this morning, and reminded myself why it is unusable for me in its present form. I didn’t get Avo 2 to crash, but functionally it is a big step backwards from Avo 1.2:

1) I can’t clean up structures with energy minimization (there’s no button on the toolbar, and menu item Extension / OpenBabel / Optimize Geometry doesn’t work). This is basically fatal, since e.g., building an alkane gives an incorrect C-C bond length of 1.07A, with atoms so close together it’s difficult to select bonds.

2) There’s no “Add Fragment” menu item, and Build / Insert / SMILES… doesn’t work. It seems there’s a Plugin Downloader (under Extensions) with a plugin for structures, but the downloader doesn’t do anything when I select plugins and press the button.

3) There’s no Properties windows for Atoms / Bonds / Angles / Torsions, so no way to edit these numbers to precise values.

4) Avo 2 cannot read or write pdb files. PDB is the “lingua franca” of molecular structures. This is also a fatal shortcoming for me.

It appears that Avo 2 is a ground-up rewrite of Avo 1.2, with a different toolbox for the GUI, faster response to menu choices, etc. That’s nice — but if Avo 2 is not functionally equivalent to Avo 1.2, then those advantages are not helpful.

Scott Milner William H. Joyce Professor The Pennsylvania State University Department of Chemical Engineering 204 CBE Building University Park, PA 16802 (814) 863-9355 stm9@psu.edu

On Feb 4, 2020, at 11:01 PM, Geoff Hutchison notifications@github.com wrote:

send me an e-mail and let's talk. I've never been able to crash Avo2 on my Mac, so I'm curious.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenChemistry/avogadroapp/issues/108?email_source=notifications&email_token=AOO4T2BPHNUECXDDJN2724TRBI2ZDA5CNFSM4KP6TBVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK2CBAI#issuecomment-582230145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO4T2CDWRUZD6RAY56AMXTRBI2ZDANCNFSM4KP6TBVA.

drew-parsons commented 3 years ago

@stmilne Hi Scott, avogadro2 v1.9.4 now addresses the first two problems you raised. Geometry optimization is now in Extensions->Open Babel->Optimize Geometry (Ctrl-Alt-O). Fragments can be added via Build-Insert-Fragment.

Insert fragments with Smiles doesn't work for me either (the new Insert-Fragment is a separate function), and pdb files don't load for me.

ghutchis commented 3 years ago

@drew-parsons - please file an issue about Insert SMILES. As far as reading PDB files, that should be fixed by a recent avogadrolibs patch (https://github.com/OpenChemistry/avogadrolibs/pull/647)

My guess is that Scott will be better served by releases near the end of the summer. 😄

drew-parsons commented 3 years ago

Thanks Geoff, it's a good summer :) Your PR#647 does indeed fix pdb file loading.

I'll check SMILES documentation and then file a bug if I still can't get it to import molecules.

drew-parsons commented 3 years ago

I filed a SMILES bug at https://github.com/OpenChemistry/avogadrolibs/issues/657

ghutchis commented 3 years ago

@stmilne - I'm going to close this bug. While I understand what features you want, it's unrelated to this redraw bug. (Which I can't reproduce on my Mac with current versions.)

If you'd like to try a nightly build, it's here, although it does not yet have the property tables right now: https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/macOS.dmg.zip

(OTOH, you may be interested in some of the new Python command options for polymer building...)