The funny thing is the error goes away if I put traceback.print_stack() into the /usr/share/pyshared/ubuntuone-control-panel/ubuntu/controlpanel/web_client/libsoup.py insde the _handler() method of WebCLient class
File "/usr/lib/ubuntuone-control-panel/ubuntuone-control-panel-backend", line 28, in <module>
dbus_service.main()
File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/dbus_service.py", line 616, in main
run_mainloop(loop=loop)
File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/dbus_service.py", line 582, in run_mainloop
loop.run()
File "/usr/lib/python2.7/dist-packages/ubuntuone-control-panel/ubuntuone/controlpanel/web_client/libsoup.py", line 55, in _handler
traceback.print_stack()
As you can see from the traceback the _handler() is being called from loop.run() which is native code - and that is the moment when things go wrong - If I put time.time() inside the run_meanloop() it spits out a number, when I do the same inside the _handler() - it yields NaN....
having the traceback.print_stack() inside the _handler() magically fixes the problem - it is correcting the state of time module so subsequent time.time() invocations bellow the stack would work again ....
The funny thing is the error goes away if I put traceback. print_stack( ) into the /usr/share/ pyshared/ ubuntuone- control- panel/ubuntu/ controlpanel/ web_client/ libsoup. py insde the _handler() method of WebCLient class
File "/usr/lib/ ubuntuone- control- panel/ubuntuone -control- panel-backend" , line 28, in <module> service. main() python2. 7/dist- packages/ ubuntuone- control- panel/ubuntuone /controlpanel/ dbus_service. py", line 616, in main mainloop( loop=loop) python2. 7/dist- packages/ ubuntuone- control- panel/ubuntuone /controlpanel/ dbus_service. py", line 582, in run_mainloop python2. 7/dist- packages/ ubuntuone- control- panel/ubuntuone /controlpanel/ web_client/ libsoup. py", line 55, in _handler print_stack( )
dbus_
File "/usr/lib/
run_
File "/usr/lib/
loop.run()
File "/usr/lib/
traceback.
As you can see from the traceback the _handler() is being called from loop.run() which is native code - and that is the moment when things go wrong - If I put time.time() inside the run_meanloop() it spits out a number, when I do the same inside the _handler() - it yields NaN....
having the traceback. print_stack( ) inside the _handler() magically fixes the problem - it is correcting the state of time module so subsequent time.time() invocations bellow the stack would work again ....