ubuntuone-control-panel-backend crashed with ValueError in __init__(): cannot convert float NaN to integer

Bug #844435 reported by Alonso Jiménez
60
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu One Control Panel
Confirmed
Medium
Ubuntu One Client Engineering team
ubuntuone-control-panel (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

this problem appeared when I opened the Ubuntu One Panel, it didn't show my actual cloud state and my files.. Also the U1 panel didn't work...

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: ubuntuone-control-panel 1.1.3-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic i686
Architecture: i386
Date: Wed Sep 7 19:53:27 2011
ExecutablePath: /usr/lib/ubuntuone-control-panel/ubuntuone-control-panel-backend
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-control-panel/ubuntuone-control-panel-backend
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
PythonArgs: ['/usr/lib/ubuntuone-control-panel/ubuntuone-control-panel-backend']
SourcePackage: ubuntuone-control-panel
Title: ubuntuone-control-panel-backend crashed with ValueError in __init__(): cannot convert float NaN to integer
UpgradeStatus: Upgraded to oneiric on 2011-09-04 (3 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Alonso Jiménez (alonjimo) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntuone-control-panel (Ubuntu):
status: New → Confirmed
Revision history for this message
Roman Yepishev (rye) wrote :

The Traceback lists the operation on ct which is previously assigned a value of time.time(), i.e. current time.
It looks like time.time() returns something weird.

Revision history for this message
Roman Yepishev (rye) wrote :

Could those who are affected by this bug please run the following ccmmand in the terminal and paste the output:

python -c 'import time; ct = time.time(); print "%r" % ct; print long(ct)'

Changed in ubuntuone-control-panel (Ubuntu):
status: Confirmed → Incomplete
Roman Yepishev (rye)
visibility: private → public
Revision history for this message
Removed by request (removed1967327) wrote :

This is what I see when I run this command

1323786350.446741
1323786350

Revision history for this message
alezflute (alezflute) wrote :

~$ python -c 'import time; ct = time.time(); print "%r" % ct; print long(ct)'
1324035393.989875
1324035393

Revision history for this message
Tony Parkin (a-c-parkin) wrote :

I also have this problem and have sent in bug report
 When I run the suggested line I see the following:

python -c 'import time; ct = time.time(); print "%r" % ct; print long(ct)'
1325703726.59995
1325703726

Good luck with resolving!

Revision history for this message
Duane Hinnen (duanedesign) wrote :

(from RT ticket #9908)
python -c 'import time; ct = time.time(); print "%r" % ct; print long(ct)'
1326742422.608749
1326742422

Revision history for this message
Roman Yepishev (rye) wrote :

Thank you all for the data, but as I can see, the conversion is done properly and time() returns real time, not None.
Another take on the diagnosing - http://paste.ubuntu.com/810932/ please run it and report whether the script resulted in an error message to the terminal.

Changed in ubuntuone-control-panel:
status: New → Confirmed
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
tags: added: support
Revision history for this message
zmicier (zmicier) wrote :

python -c 'import time; ct = time.time(); print "%r" % ct; print long(ct)'
1328563741.401587
1328563741

>> Another take on the diagnosing - http://paste.ubuntu.com/810932/ please run it and report whether the script resulted in an error message to the terminal.
I haven't got any error.

Revision history for this message
Roman Yepishev (rye) wrote :

Hello,

If you are still experiencing this error on oneiric, please try installing the package with workaround from
http://people.canonical.com/~roman.yepishev/lp844435/python-ubuntuone-control-panel_2.0.0-0ubuntu1.1~lp844435_all.deb

The only change there is that it tries to check that time() returns a valid value before going further to logger after the call to web client. The patch is attached.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "libsoup-response-delay.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Michael Foord (mfoord) wrote :

I've created a Python issue corresponding to this. time.time() should not return None or NaN (in my opinion) but should throw an exception if it can't get a meaningful value:

http://bugs.python.org/issue14613

tags: added: precise
Changed in ubuntuone-control-panel (Ubuntu):
importance: Undecided → Medium
tags: added: u1-support
removed: support
Changed in ubuntuone-control-panel:
importance: Undecided → Medium
Julien Funk (jaboing)
tags: added: u1-by-support
tags: removed: u1-support
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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