martukas / nuclei

An Evaluated Nuclear Structure Data (ENSDF) parser, viewer and editor
GNU General Public License v3.0
20 stars 6 forks source link

Drawing tool hangs after clicking on a nuclide whose graph is empty #12

Open ferdymercury opened 1 year ago

ferdymercury commented 1 year ago

I can usually click on some elements and view the decay scheme. But sometimes, when I enter on some line, a blank screen appears, and all the subsequent attempts on different nuclei, even those that worked well before, fail.

I get the warning:

Pd-93 LEVEL  Spins=(45/2+) comment=A
      Gamma: Pd-93 GAMMA  Intensity(phot)=8±2
QGraphicsItemGroup::addToGroup: cannot add null item
QGraphicsItemGroup::addToGroup: cannot add null item
QGraphicsItemGroup::addToGroup: cannot add null item
ferdymercury commented 1 year ago

If I then close and restart the app, the graph appears

ferdymercury commented 8 months ago

Reproducer with current master and Ubu 22.04:

unfold A12 unfold C12 click on N-12 beta+ --> graph and comments are shown click on N-16 beta- --> only comments are shown click on N-12 beta+ --> only comments are shown, graph is no longer visible

@php1ic @martukas could you verify on your side if the same happens to you?

Thanks in advance!

php1ic commented 8 months ago

I don't have this issue with latest commit and Fedora 39.

I clicked on lots of different levels many times in the C-12 tree and the graph and comments always show. I also clicked a few other isotopes and had no issues seeing both graph and comment.

ferdymercury commented 8 months ago

Very weird. Not sure how to debug. And it's a big issue.