google-code-export / spinwaves

Automatically exported from code.google.com/p/spinwaves
0 stars 0 forks source link

Run away GUI thread with spinwave calc #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When running spinwave dispersion calc from GUI, it appears that the main python 
thread does not get killed when all windows are closed. This does not happen 
during ground state calc or cross-section calc, so I'm assuming it's a 
multiprocessing problem.

Thought it was me when I was trying to tackle issue #2 but it does this in the 
main branch.

Original issue reported on code.google.com by wfly...@gmail.com on 7 Jul 2010 at 10:12

GoogleCodeExporter commented 9 years ago
Removing the while loops from the run method of each *Thread class in the 
Processes module fixes the problem and still plots/displays the information it 
should for simple test cases.

I'm not exactly sure why the while loops are there since it seems that the 
current implementation waits for the result to be on the queue before trying to 
take it off.

Original comment by wfly...@gmail.com on 28 Jul 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Going to just mark this fixed.

Original comment by wfly...@gmail.com on 28 Jul 2010 at 4:55

GoogleCodeExporter commented 9 years ago
Opening this again. Seems that taking out the while loops prohibits one from 
running the calculation twice from the same window.

Original comment by wfly...@gmail.com on 28 Jul 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by wfly...@gmail.com on 30 Jul 2010 at 11:22