Xibo Open Source Digital Signage

PyClient race condition setting up log object

Reported by Alex Harrington on 2012-01-19
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xibo
Low
Alex Harrington

Bug Description

Intermittently I get this error after restarting the python client or the entire box. I have to restart the client several times before it then starts working.

[12-01-14 15:31:29.875] WARNING: Could not find font face Arial. Using sans instead.
Exception in thread Thread-8 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "XiboClient.py", line 897, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'log'
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
Exception in thread Thread-2 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "XiboClient.py", line 3464, in run
  File "XiboClient.py", line 1706, in next
  File "/usr/lib/python2.6/threading.py", line 337, in release
  File "/usr/lib/python2.6/threading.py", line 274, in notify
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Unhandled exception in thread started by
Error in sys.excepthook:

Seems to be some kind of race where the log object hasn't been fully instantiated before the DownloadManager parses RequiredFiles.

It's odd because the log object is created and started before the DownloadManager is - so perhaps need to look at some way of locking the startup of subsequent objects until the log object is happy.

Dan Garner (dangarner) on 2012-09-14
no longer affects: xibo/1.2
no longer affects: xibo/1.3
Dan Garner (dangarner) on 2012-09-16
Changed in xibo:
milestone: 1.4.0-rc1 → 1.5.0

Looked at this and cannot reproduce anymore.

Changed in xibo:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers