PDA

View Full Version : [SF8008] Crash when pressing number 7 in GridEPG



Willo3092
12-11-21, 20:00
As per the title, clean install with no settings backup, ViX crashes if 7 on the keypad is pressed whilst viewing the gridEPG.

62771

62772

ccs
12-11-21, 20:09
... me too, just 7, no other numbers do it.

birdman
12-11-21, 22:07
self.instance.resize(eSize(self.listWidth, self.listHeight / self.itemHeight * self.itemHeight))In Python 3 that second term (whatever it is actualy meant to be - "a / b * b" isn't clear, parentheses woudl help to confirm that) produces a real number, not an int.

self.instance.resize(eSize(self.listWidth, int(self.listHeight / self.itemHeight * self.itemHeight)))probably fixes it...

Which it does. Although the actual equivalent of running this under Python2 is to use // in place of /, rather than using int(). So I'll set up a PR for that instead.


https://github.com/OpenViX/enigma2/pull/723