PDA

View Full Version : [ViX_Misc] PicturePlayer: pressing green causing a crash



Orlandox
17-07-22, 09:03
Hello,

when pressing green button on Picture Player is causing a crash.

< 97046.7064> 10:58:37.8225 [InfoBarGenerics] Key: 399 (Make) KeyID='KEY_GREEN' Binding='('GREEN',)'.
< 97047.0421> 10:58:38.1582 [eInputDeviceInit] 0 18f (399) 1
< 97047.0421> 10:58:38.1582 [eRCDeviceInputDev] emit: 0
< 97047.0425> 10:58:38.1586 [InfoBarGenerics] Key: 399 (Break) KeyID='KEY_GREEN' Binding='('GREEN',)'.
< 97047.0429> 10:58:38.1590 [ActionMap] Keymap 'ColorActions' -> Action = 'green'.
< 97047.0452> 10:58:38.1612 Traceback (most recent call last):
< 97047.0452> 10:58:38.1613 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 58, in action
< 97047.0457> 10:58:38.1618 File "/usr/lib/enigma2/python/Plugins/Extensions/PicturePlayer/ui.py", line 113, in KeyGreen
< 97047.0461> 10:58:38.1622 File "/usr/lib/enigma2/python/StartEnigma.py", line 304, in openWithCallback
< 97047.0468> 10:58:38.1629 dlg = self.open(screen, *arguments, **kwargs)
< 97047.0469> 10:58:38.1630 File "/usr/lib/enigma2/python/StartEnigma.py", line 314, in open
< 97047.0475> 10:58:38.1636 dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
< 97047.0475> 10:58:38.1636 File "/usr/lib/enigma2/python/StartEnigma.py", line 251, in instantiateDialog
< 97047.0480> 10:58:38.1641 return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
< 97047.0480> 10:58:38.1641 File "/usr/lib/enigma2/python/StartEnigma.py", line 274, in doInstantiateDialog
< 97047.0486> 10:58:38.1647 dlg = screen(self, *arguments, **kwargs)
< 97047.0486> 10:58:38.1647 File "/usr/lib/enigma2/python/Plugins/Extensions/PicturePlayer/ui.py", line 257, in __init__
< 97047.0490> 10:58:38.1651 TypeError: 'float' object cannot be interpreted as an integer
< 97047.0491> 10:58:38.1652 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xad7f3b08>>,('ColorActions', 'green')) failed)

Huevos
17-07-22, 10:08
Probably this: https://github.com/OpenViX/enigma2/commit/6723c640be7ab1e4e12d0c9088c1c24ab70569af

"range" needs an "int".


>>>
>>> for x in range(5.0):
... pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'float' object cannot be interpreted as an integer
>>>

Orlandox
17-07-22, 10:15
Confirmed working, thank you Huevos.