When the service tries to stop on windows there is an error

Bug #776557 reported by Manuel de la Peña
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Fix Released
Medium
Manuel de la Peña

Bug Description

The following occurs:

C:\Users\Mandel\Documents\ubuntu-sso-client\trunk>python bin\windows-ubuntu-sso-
login
2011-05-03 18:51:47,069:69.000005722 - ubuntu_sso.account - INFO - Created a new
 SSO access layer for service url 'https://login.ubuntu.com/api/1.0'
2011-05-03 18:52:00,226:226.000070572 - ubuntu_sso.main - DEBUG - ref_count is 0
, changing value to 1.
2011-05-03 18:52:00,506:506.999969482 - ubuntu_sso.credentials - INFO - find_cre
dentials: self.app_name "Ubuntu One", result is {}? False
2011-05-03 18:52:00,510:510.999917984 - ubuntu_sso.main - DEBUG - ref_count is 1
, changing value to 0.
2011-05-03 18:52:00,512:512.000083923 - ubuntu_sso.main - DEBUG - Setting up tim
er with <function <lambda> at 0x02EE81B0> (10000, <bound method CredentialsManag
ementRoot.shutdown of <ubuntu_sso.main.CredentialsManagementRoot object at 0x02F
68630>>).
2011-05-03 18:52:00,515:515.000104904 - ubuntu_sso.main - DEBUG - ref_count is 0
, changing value to -1.
2011-05-03 18:52:00,516:516.000032425 - ubuntu_sso.main - WARNING - Attempting t
o decrease ref_count to a negative value (-1).
2011-05-03 18:52:00,516:516.000032425 - ubuntu_sso.main - DEBUG - Setting up tim
er with <function <lambda> at 0x02EE81B0> (10000, <bound method CredentialsManag
ementRoot.shutdown of <ubuntu_sso.main.CredentialsManagementRoot object at 0x02F
68630>>).
Unhandled error in Deferred:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 1076, in
gotResult
    _inlineCallbacks(r, g, deferred)
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 1063, in
_inlineCallbacks
    deferred.callback(e.value)
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 361, in c
allback
    self._startRunCallbacks(result)
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 455, in _
startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 542, in _
runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "C:\Python27\lib\site-packages\ubuntu_sso\main\windows.py", line 425, in
_process_failure
    self.emit_credentials_error(app_name, except_to_errdict(failure.value))
  File "C:\Python27\lib\site-packages\ubuntu_sso\main\windows.py", line 469, in
emit_credentials_error
    self.root.ref_count -= 1
  File "C:\Python27\lib\site-packages\ubuntu_sso\main\__init__.py", line 300, in
 _set_ref_count
    self.timeout_func(TIMEOUT_INTERVAL, self.shutdown)
exceptions.TypeError: <lambda>() takes no arguments (2 given)

Nevertheless it does not make sense to have the service stopped on windows atm because it cannot be easily started. Therefore this bug should be fixed and the client should be able to start the process when needed.

Tags: windows

Related branches

tags: added: windows
Changed in ubuntu-sso-client:
assignee: nobody → Manuel de la Pena (mandel)
importance: Undecided → Medium
status: New → In Progress
Changed in ubuntu-sso-client:
status: In Progress → Fix Committed
dobey (dobey)
Changed in ubuntu-sso-client:
milestone: none → 1.3.1
dobey (dobey)
Changed in ubuntu-sso-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.