Crash when re-opening a molecule with electron density

Environment Information

Avogadro version: 1.99.0-164-g1e548d5 (nightly from 1/7)
Operating system and version: Windows 11 Version 10.0.26100

Behavior

Rendering the electron density of a molecule then switching to a different molecule and back causes a crash.

Steps to Reproduce

Used an ORCA output (any work, I included one that is not too large) in Av2 to render the electron density (automatic resolution, light smoothing, isosurface value 0.03 default), then switched to an empty molecule, and upon switching back a crash should occur. It is consistently reproducible for me, although occasionally the crash takes slightly longer and may require switching tabs again.

Iā€™ve tested with 2 different outputs, both cause the crash. Having electrostatic potential coloring and not having it still causes a crash. Iā€™ve also tried turning off mesh rendering before switching and it still crashes.

TMS.tar.gz (3.3 MB)

Thanks, Iā€™ll take a look later today.

To be sure, itā€™s:

  • create an electron density surface
  • switch to an empty molecule
  • switch back
  • crash

So fun fact, it is actually much more widespread than I thought.

So, it seems that if I open up an output and then switch to another molecule (empty or not) then switch back itā€™ll crash. No rendering required, switching back to the output will always crash it. Similarly, if I donā€™t switch back at all and just re-click on the moleculeā€™s tab it will also crash.

1 Like

The good news is that while I canā€™t reproduce on my Mac, I was able to get it to crash on Ubuntu in the debugger. (Weirdly on my Mac, the MO window didnā€™t open either :man_shrugging:)

Anyway, now that I have a backtrace, it should be an easy fix - testing on Ubuntu in a bit.

1 Like