This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matham
Recipients eric.araujo, loewis, mark.dickinson, matham, michael.foord, rye, vstinner
Date 2015-01-30.23:44:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Hi guys,

I'm running into this issue on windows 7 using python 2.7.8 (x86) from the python website.

The following exception occurs while cython code calls a python function which emits a log. When replaying the same code it happens consistently:

Traceback (most recent call last):
  File "g:\python\dev2\kivy\kivy\core\image\", line 28, in _log_callback
    logger_func[level]('ImageLoaderFFPy: {}'.format(message))
  File "E:\Python27\lib\logging\", line 1186, in error
    self._log(ERROR, msg, args, **kwargs)
  File "E:\Python27\lib\logging\", line 1278, in _log
    record = self.makeRecord(, level, fn, lno, msg, args, exc_info, func, extra)
  File "E:\Python27\lib\logging\", line 1252, in makeRecord
    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
  File "E:\Python27\lib\logging\", line 287, in __init__
    self.msecs = (ct - long(ct)) * 1000
ValueError: cannot convert float NaN to integer

Even weirder, if I add a line like `print time.time()` right before `ct = time.time()` in logging\ no error occurs. But if I duplicate the print line twice, it crashes right there instead of raising an exception.
Date User Action Args
2015-01-30 23:44:06mathamsetrecipients: + matham, loewis, mark.dickinson, vstinner, eric.araujo, michael.foord, rye
2015-01-30 23:44:06mathamsetmessageid: <>
2015-01-30 23:44:06mathamlinkissue14613 messages
2015-01-30 23:44:06mathamcreate