Jump to content


Photo

Empty channels cause crash


  • Please log in to reply
11 replies to this topic

#1 kocus37

  • Senior Member
  • 121 posts

+4
Neutral

Posted 2 February 2013 - 18:55

I have update my vu+ uno today, online update. Scroll around my user bouquet, i have some empty channels not found (empty N/A), and when selected i get a green screen. ill send crash log.

Attached Files


Edited by kocus37, 2 February 2013 - 18:58.

OpenPli 4.0 - Vu+Solo2 - 30W Hispasat


Re: Empty channels cause crash #2 Dimitrij

  • PLi® Core member
  • 10,323 posts

+350
Excellent

Posted 2 February 2013 - 19:46

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Screens/ChannelSelection.py", line 401, in updateEventInfo
  File "/usr/lib/enigma2/python/Components/Sources/ServiceEvent.py", line 31, in newService
  File "/usr/lib/enigma2/python/Components/Element.py", line 86, in changed
  File "/usr/lib/enigma2/python/Tools/CList.py", line 7, in __call__
  File "/usr/lib/enigma2/python/Components/Converter/ServiceName.py", line 51, in changed
  File "/usr/lib/enigma2/python/Components/Element.py", line 86, in changed
  File "/usr/lib/enigma2/python/Tools/CList.py", line 7, in __call__
  File "/usr/lib/enigma2/python/Components/Renderer/Label.py", line 21, in changed
  File "/usr/lib/enigma2/python/Components/Element.py", line 15, in wrapper
  File "/usr/lib/enigma2/python/Components/Converter/ServiceName.py", line 35, in getText
TypeError: iStaticServiceInformationPtr_getName expected 2 arguments, got 1
issue to littlesat

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Empty channels cause crash #3 Mendiaco

  • Member
  • 3 posts

0
Neutral

Posted 2 February 2013 - 21:19

After last update I have the same problem with my Dream 7020HD

Re: Empty channels cause crash #4 littlesat

  • PLi® Core member
  • 57,161 posts

+698
Excellent

Posted 2 February 2013 - 22:27

I just cherry picked a fix

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Empty channels cause crash #5 kocus37

  • Senior Member
  • 121 posts

+4
Neutral

Posted 2 February 2013 - 22:55

Ok thanks littlesat and Dima73, i love openpli great image and support.

OpenPli 4.0 - Vu+Solo2 - 30W Hispasat


Re: Empty channels cause crash #6 Beeker

  • PLi® Contributor
  • 1,602 posts

+203
Excellent

Posted 2 February 2013 - 23:06

Fix works..thanks.. But now channelname in OSD(Skin)/LCD is gone. servicename appears in channel-selection but not in main screen.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Empty channels cause crash #7 speed

  • Senior Member
  • 420 posts

0
Neutral

Posted 2 February 2013 - 23:10

just updated and N/A channel cause crash on vuduo here

Re: Empty channels cause crash #8 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 2 February 2013 - 23:40

yes, there must be patch reverted. Problem is, it seems, in line up: name = ref and info.getName(ref), when ref is not None.

message: TypeError: iServiceInformationPtr_getName() takes exactly one argument (2 given)

Edited by ims, 2 February 2013 - 23:58.

Kdo nic nedělá, nic nezkazí!

Re: Empty channels cause crash #9 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 3 February 2013 - 02:29

1) Problem is, that there in lastest patches was changed tests
if XXX is None:
to
if not xxx:
and it is not same.
When is channel <N/A>, then is returned "", but it pass over test "if not xxx:" and then it crashes.

e.g.
   a = ""
   b = None
   if not a:
	print "AAA"
   if a is None:
	print "BBB"
   if not b:
	print "CCC"
   if b is None:
	print "DDD"
then output is:
AAA
CCC
DDD

Edited by ims, 3 February 2013 - 02:30.

Kdo nic nedělá, nic nezkazí!

Re: Empty channels cause crash #10 BuGless

  • Senior Member
  • 539 posts

+16
Neutral

Posted 3 February 2013 - 10:37

1) Problem is, that there in lastest patches was changed tests

if XXX is None:
to
if not xxx:
and it is not same.


Yes, I noticed, my fault. Then again, that the getName() method takes different arguments in different classes is surprising to say the least.

Re: Empty channels cause crash #11 Dimitrij

  • PLi® Core member
  • 10,323 posts

+350
Excellent

Posted 3 February 2013 - 10:41

Maybe so ...
@cached
def getText(self):
  service = self.source.service
  if isinstance(service, iPlayableServicePtr):
   info = service and service.info()
   ref = None
  else: # reference
   info = service and self.source.info
   ref = service
  if not info:
   return ""
  if self.type == self.NAME:
   if ref:
    name = ref and info.getName(ref)
   else:
    name = info.getName()
   return name.replace('\xc2\x86', '').replace('\xc2\x87', '')

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Empty channels cause crash #12 ims

  • PLi® Core member
  • 13,781 posts

+214
Excellent

Posted 3 February 2013 - 10:47

return not not (info and info.isPlayable(ref, getPlayingref(ref)))

has same results for "" and None
Kdo nic nedělá, nic nezkazí!


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users