Jump to content


Photo

Hotkey---enigma ( CRASH)


  • Please log in to reply
16 replies to this topic

#1 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 15:08

Hello everybody

I assigned the power button to the power menu using hotkey
It was working well, but a week ago i had a problem that has not been resolved yet, even though i update the image daily.
I was busy adapting some skins for openpli image and i noticed that when i click on the channel list or on the menu and then press the power button, a crash occurs... I thought that the skins that I was adapting were the reason, thats why i reflashed the image without  using the Backup Restore, and the problem still exists.

I don't face this problem with openpli 9.0 ... only with openpli-develop .. you can take a look to the crash log

some thing else >>> Skin Selection disappeared from the hotkey list for a long time. i always add it without any problems
hotkey.functions.append((_("Skin Selection"), "Module/Screens.SkinSelector/SkinSelector", "Setup"))

 

regards

Attached Files


pli image is de beste

Re: Hotkey---enigma ( CRASH) #2 WanWizard

  • PLi® Core member
  • 69,793 posts

+1,780
Excellent

Posted 12 June 2024 - 15:13

The relevant bit from the log:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/StartEnigma.py", line 369, in powerup
    self.doAction(config.misc.hotkey.power.value)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 394, in doAction
    menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
AttributeError: 'PowerKey' object has no attribute 'MenuClosed'
[ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xb2e34988>>,('GlobalActions', 'power_up')) failed)

 


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Hotkey---enigma ( CRASH) #3 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 15:21

 

The relevant bit from the log:

Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 57, in action
  File "/usr/lib/enigma2/python/StartEnigma.py", line 369, in powerup
    self.doAction(config.misc.hotkey.power.value)
  File "/usr/lib/enigma2/python/StartEnigma.py", line 394, in doAction
    menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
AttributeError: 'PowerKey' object has no attribute 'MenuClosed'
[ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xb2e34988>>,('GlobalActions', 'power_up')) failed)

is it possible to fix it next update ? ;)
 


pli image is de beste

Re: Hotkey---enigma ( CRASH) #4 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 15:49

As far I know the SkinSelector was never added to Hotkey (via the UI... of course in the past you could manipulate the settings file by yourself)... It is also not clear what you tried to add to the power button... i tried to assigned different stuff to it... but I could not verify that issue. What did you change about the power key?


Edited by littlesat, 12 June 2024 - 15:55.

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


Re: Hotkey---enigma ( CRASH) #5 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 15:57

As far I know the SkinSelector was never added to Hotkey.... It is also not clear what you tried to add to the power button...

for sure - for 100% ... skinselection was added to hotkey

 

I assigned the power button to the powermenu .. now when i press on the channel list  and then press on the power button, a crash occurs


pli image is de beste

Re: Hotkey---enigma ( CRASH) #6 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 16:03

for sure - for 100% ... skinselection was added to hotkey -> I searched in our sources and as far I can see it was never available.

 

I can indeed confirm you get the GSOD when you press power in the channel selector. This is an obvious 'thing' actually as we activated this option in the channel selection... disabled it again but we did not remember why... so it get re-enabled..... needs research...


Edited by littlesat, 12 June 2024 - 16:04.

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


Re: Hotkey---enigma ( CRASH) #7 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 16:11

Solution for the GSOD will be committed soon...


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


Re: Hotkey---enigma ( CRASH) #8 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 16:11

maybe it was called before ( skin setup or skinselektor or something else )  >>> but that's strange .. because i started adding it to the hotkey manually after it disappeared from the list

anyway is it possible to add it to the hotkey list ? it's very useful


Edited by dany, 12 June 2024 - 16:13.

pli image is de beste

Re: Hotkey---enigma ( CRASH) #9 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 16:21

FYI 

https://github.com/O...da459674e8d3346

https://github.com/O...daa880054be0b78


Edited by littlesat, 12 June 2024 - 16:21.

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


Re: Hotkey---enigma ( CRASH) #10 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 16:48

littlesat  ... thank you so much fo adding skin selection to the hotkey list  .. will be added to the pli 9.0 and 8.3 ?

i tried your fix but the problem still exists

 

StartEnigma.py .. before added your lines:

for x in root.findall("menu"):
     if x.get("key") == "shutdown":
      self.session.infobar = self
      menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
      menu_screen.setTitle(_("Standby / restart"))
      break

 

 

StartEnigma.py .. after added your lines :

for x in root.findall("menu"):
     if x.get("key") == "shutdown":
      self.session.infobar = self
      menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
      menu_screen = self.session.open(MainMenu, x)
      menu_screen.setTitle(_("Standby / restart"))
      break


Edited by dany, 12 June 2024 - 16:48.

pli image is de beste

Re: Hotkey---enigma ( CRASH) #11 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 16:54

There is a second change that changes this line

 

- menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)+ 

+ menu_screen = self.session.open(MainMenu, x)

 

It looks you left the line with the WithCallback... you need to remove it....

 

There might be more functions that could be added to hotkey.... it was forked and other images made a lot of adaptions to this code I originally made... Even the source code name was changed.... and at that time nothing merged back.... So it could be in compared with other images we do not have all the functions available.
 


Edited by littlesat, 12 June 2024 - 16:55.

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


Re: Hotkey---enigma ( CRASH) #12 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 17:00

Thanks for reporting this GSOD... this was a 'bug' in there for a longer time....


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


Re: Hotkey---enigma ( CRASH) #13 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 17:30

you are right ... now fixed after removed this line ( menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)

really a great code ... very usefull and easy to use

 

openpli image will be always the best for me and for most users

anyway .. im busy with adapting these skins : all of them are FHD

- Metrixhd

- ExtremeGoldenFHD

- Nacht

- NexGenGradient-FHD

- Novaler-indianred

- YouViX ( red-blue-green)

 

Soon they will all be ready for use

When its work is finished, i can contact you if you want to use it instead of the old skins in the feed that no one uses

i adappted them from A to Z

regards


pli image is de beste

Re: Hotkey---enigma ( CRASH) #14 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 17:45

Note that over the last months a lot of skin features were added for the E2OS skin.... Please try to keep out python rendering code out of skins....


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


Re: Hotkey---enigma ( CRASH) #15 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 18:05

Perhaps i did not understand exactly what you mean, but all the skins that i adapted have their own converters-renderes , and they all work together without problems, and if you delete any skin from the image, the other skins will not be affected.
Of course  i used some of converters-renderes that they are not exist  in the openpli image 
in general, these things can be discussed after the skins are presented

 

regards


pli image is de beste

Re: Hotkey---enigma ( CRASH) #16 littlesat

  • PLi® Core member
  • 56,905 posts

+695
Excellent

Posted 12 June 2024 - 18:26

It works maybe…. But this is how it should not be done…. Aka have two skins adapting different code under the same name or make a unique file name and have duplicates. This was always a mess with skins…

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


Re: Hotkey---enigma ( CRASH) #17 dany

  • Senior Member
  • 231 posts

+8
Neutral

Posted 12 June 2024 - 18:34

I agree with you, but i think you can try it and then judge it
You and many of the developers here have great experience in this field and can discuss everything smoothly


pli image is de beste


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users