chemREACT / REACT

Development of a GUI for setting up and analysing DFT reaction (free) energies.
GNU General Public License v3.0
0 stars 2 forks source link

random segmentation fault #30

Closed benteb closed 2 years ago

benteb commented 2 years ago

Got a segmentation fault that is not reproducible while importing a pdb file:

first time, when segmentation fault occurred:

(envREACT) (base) bba029@uit-mac-131 REACT % python3 REACT.py qt.qpa.fonts: Populating font family aliases took 160 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost. libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Pymol: Starting Pymol: Running True setting defaults QPainter::begin: A paint device can only be painted by one painter at a time. QPainter::setCompositionMode: Painter not active QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? zsh: segmentation fault python3 REACT.py

Second time, when segmentation fault did not occur:

(envREACT) (base) bba029@uit-mac-131 REACT % python3 REACT.py qt.qpa.fonts: Populating font family aliases took 203 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost. libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Pymol: Starting Pymol: Running True setting defaults /Users/bba029/prorac/qmmm/L-PRO_RS.pdb setting defaults THREAD COMPLETE!

What is QPainter???

isaksengeir commented 2 years ago

I have seen this a couple of times before elsewhere. This is a hard one to debug, especially when it is random.

Qpainter? did you try to Google it?

There are two or more painter trying to paint widget at same time.

@benteb I interpret this as a race condition somewhere ... widget creation / text insertion ... that happens sometimes. Not often. I do not know how to fix this. Not that it matters I think, but I notice you still run through conda, so I guess we are not comparing stuff from within the same environment. Just a comment.