FrancescoCeruti / linux-show-player

Linux Show Player - Cue player designed for stage productions
https://linux-show-player.org
GNU General Public License v3.0
205 stars 49 forks source link

[develop] Errors about weakref upon LiSP close #182

Closed s0600204 closed 5 years ago

s0600204 commented 5 years ago

Expected Behavior

LiSP to close without error.

Actual Behavior

The following message is emitted multiple times: once for each Media cue that was created since LiSP's start:

Exception ignored in: <function WeakMethod.__new__.<locals>._cb at 0x7f8b385c9d90>
Traceback (most recent call last):
  File "/usr/lib/python3.7/weakref.py", line 55, in _cb
    if self._alive:
AttributeError: 'NoneType' object has no attribute '_alive'

Step to reproduce

  1. Open LiSP from the command line,
  2. Create a new showfile (doesn't matter which layout),
  3. Add at least one Media Cue,
  4. Remove at least one Media Cue,
  5. Close LiSP,
  6. Notice the error messages.

Investigation:

s0600204 commented 5 years ago

Tested, and this seems to be fixed. Thanks!