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 QPainter crashes #40

Open isaksengeir opened 2 years ago

isaksengeir commented 2 years ago

QPainter random crashes REACT

QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

I have seen this a few times on my mac, but on linux this happens way too often. Thus, we need to find a fix! @benteb

isaksengeir commented 2 years ago

I am far from finding a solution here, but this seems to some how be related to ... this is normal for any QWidget. If you access it in a thread that it doesn't belong to it will crash. .

So, I think that calling modifying, starting or ending QtWidgets from a different thread could do this, though not sure exactly where we do this, or how to solve it...

isaksengeir commented 2 years ago

Sometimes this one too:

Widget::repaint: Recursive repaint detected
*** Error in `python3': free(): invalid next size (normal): 0x0000563a2cc3e6c0 ***
isaksengeir commented 2 years ago

Could possibly be related to the updating of progress-bar from the threads... https://stackoverflow.com/questions/25733142/qwidgetrepaint-recursive-repaint-detected-when-updating-progress-bar