bastula / dicompyler

Extensible radiation therapy research platform and viewer for DICOM and DICOM RT
http://www.dicompyler.com
263 stars 99 forks source link

Dead listener called #100

Open bastula opened 7 years ago

bastula commented 7 years ago

Hi! Running dicompyler sometime I get a "RuntimeError: BUG: Dead Listener called, still subscribed!". The error is linked to "pub.sendMessage('patient.updated.raw_data', value)" into the ImportDicom function.

The error is not deterministically raised, and so I think is in some manner related to the threading stuff. Anyway, apart the "printing", the software works correctly.

Can anyone help me?

Thanks!

from: https://groups.google.com/forum/?hl=en#!topic/dicompyler/gYUFZYyFd5g

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/42170249-dead-listener-called?utm_campaign=plugin&utm_content=tracker%2F18109348&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18109348&utm_medium=issues&utm_source=github).
bastula commented 7 years ago

From the thread, the solution is to add:

pub.unsubscribe(self.OnUpdatePatient, 'patient.updated.raw_data')

at the bottom of the function: OnUpdatePatient in treeview.py