Jump to content


Photo

Error starting some plugins.


  • Please log in to reply
34 replies to this topic

#1 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 July 2020 - 17:45

After today's enigma update,2 plugins stopped running subssupport and extensions-kodi.What you need to do to run these plugins.

 

Attached Files



Re: Error starting some plugins. #2 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 July 2020 - 18:54

Log

Plugin  Extensions/SubsSupport failed to load: 'str' object has no attribute 'dialog_stack'
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 52, in readPluginList
  File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/__init__.py", line 31, in <module>
    from subtitles import SubsSupport, SubsSupportStatus,  initSubsSettings
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 61, in <module>
    from compat import eConnectCallback, FileList
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/compat.py", line 65, in <module>
    OrigMessageBox("", "", simple=True)
  File "/usr/lib/enigma2/python/Screens/MessageBox.py", line 49, in __init__
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 148, in setTitle
AttributeError: 'str' object has no attribute 'dialog_stack'
E2KODI_DEBUG_LVL =  40
Plugin  Extensions/Kodi failed to load: 'str' object has no attribute 'dialog_stack'

[GUISkin] Warning: Skin is missing element 'WarningPixmap' in <class 'Screens.MessageBox.MessageBox'>(Некоторые плагины недоступны:
Extensions/SubsSupport ('str' object has no attribute 'dialog_stack')
Extensions/Kodi ('str' object has no attribute 'dialog_stack')
).
[GUISkin] Warning: Skin is missing element 'autoresize' in <class 'Screens.MessageBox.MessageBox'>(Некоторые плагины недоступны:
Extensions/SubsSupport ('str' object has no attribute 'dialog_stack')
Extensions/Kodi ('str' object has no attribute 'dialog_stack')


Re: Error starting some plugins. #3 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 20:25

Hi FoxBob,

 

What skin are you using?  It appears to be inappropriate for use on OpenPLi.

 

Is this an official OpenPLi build?

 

What exactly was happening at the time of the crash?

 

Regards,

Ian.


Edited by IanSav, 5 July 2020 - 20:29.


Re: Error starting some plugins. #4 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 July 2020 - 20:29

PLi-FullHD skin.I understand that this cannot be,but before these changes,I ran the kodi and everything worked.

 

There was no crash,these are lines from the log file.


Edited by foxbob, 5 July 2020 - 20:30.


Re: Error starting some plugins. #5 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 20:35

Hi Foxbob,

 

I don't know anything about Kodi on Enigma2.  Is it running as a plugin or a separate process?  If it is using Enigma2 resources then it should have a Session and then the data should be available.  This error hints that it is not integrated into Enigma2.

 

Can anyone help me with information about how Kodi is linked into Enigma2?

 

Regards,

Ian.



Re: Error starting some plugins. #6 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 July 2020 - 20:42

Just returned 2 files back-old skreen.py,old guiskin.py and everything works(This is for verification)-kodi and subssupport.

Attached Files


Edited by foxbob, 5 July 2020 - 20:44.


Re: Error starting some plugins. #7 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 20:43

Hi Foxbob,

 

Line 148 of the Screen.py is "if len(self.session.dialog_stack) > 2:" for this to fail there must be something very wrong with the Enigma2 session that is being used.  All screens being properly launched in Enigma2 must have a session and the sessions must have a dialog_stack.

 

Something very unexpected is happening here.

 

Regards,

Ian.



Re: Error starting some plugins. #8 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 20:45

Hi Foxbob,

 

The way the titles were managed had some issues that the new code addresses.  How is Kodi running in/with Enigma2 if it doesn't have an Enigma2 session?

 

Regards,

Ian.


Edited by IanSav, 5 July 2020 - 20:45.


Re: Error starting some plugins. #9 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 20:48

Hi Foxbob,

 

Where is the source code for Kodi on Enigma2?

 

Is the title code broken *anywhere* other than in Kodi?

 

Regards,

Ian.


Edited by IanSav, 5 July 2020 - 20:48.


Re: Error starting some plugins. #10 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 5 July 2020 - 20:53

I won’t tell you about kodi,it’s like a process.But subssupport works as a plug-in.

 

The kodi management plugin does not start http://github.com/mx3L/kodiext.

 

When I return the changes everything works.Maybe you need to add something to these plugins?


Edited by foxbob, 5 July 2020 - 20:54.


Re: Error starting some plugins. #11 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 21:00

Hi Foxbob,

 

I can't find any Python code that relates to Kodi.  I need to know what is going on to address the issue.  Kodi itself doesn't set any titles so what is making this call?  If Kodi is calling functions in Enigma2 then it appears to not be doing it properly.

 

Okay, the link you provided appears to be what I wanted.  Looking at it now...

 

Regards,

Ian.



Re: Error starting some plugins. #12 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 21:11

Hi Foxbob,

 

This is not going to be a quick fix.  It appears that the Kodi Starter plugin is redefining the Enigma2 standard method "getTitle()".  I need to speak to Captain and/or pull this apart and understand what is going on.

 

It is now after 6:00 AM in the morning here so I need to get some sleep first.  I will update this thread when I know more.

 

Regards,

Ian.



Re: Error starting some plugins. #13 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 21:18

Hi Foxbob,

 

Captain, the author of this code, is not currently online.  I will try and speak with him ASAP to find out what he is doing in his code.  It certainly looks like the code you are running has not been changed to support OpenPLi.  (Captain is a developer for OpenATV.)

 

Can you please give me all the steps, from live TV, that I need to take to generate this crash.

 

Again, let me ask if the code is breaking *anywhere* else in OpenPLi?

 

Regards,

Ian.


Edited by IanSav, 5 July 2020 - 21:20.


Re: Error starting some plugins. #14 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 21:23

Hi Foxbob,

 

I just installed Kodi on my OpenViX box that is running the same Screen.py code with the new title code that is in OpenPLi and Kodi started with no issues.  I need to know exactly what you are doing to get to where the crash is happening.  You can start your description from when Kodi starts.

 

Regards,

Ian.


Edited by IanSav, 5 July 2020 - 21:24.


Re: Error starting some plugins. #15 IanSav

  • PLi® Contributor
  • 1,491 posts

+51
Good

Posted 5 July 2020 - 21:31

Hi Foxbob,

 

Sorry, this is not Captain's code he is only a contributor.  Still he may know more about the code.

 

Again, I can't move forward until you document how to trigger the crash.

 

As you no longer seem to be online and I appear to be talking to myself, I am going to get some sleep and hope that you have given me the information I need by the time I wake.

 

Regards,

Ian.



Re: Error starting some plugins. #16 Dimitrij

  • PLi® Core member
  • 9,970 posts

+335
Excellent

Posted 6 July 2020 - 05:33

 

I just installed Kodi on my OpenViX

Install new openPLi + Kodi


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


Re: Error starting some plugins. #17 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 6 July 2020 - 06:17

Once again I repeat.There is no failure,when you enter the menu of installed plugins a message appears and these plugins do not work.Before the change,everything worked.I made a plugin download log:

Plugin  Extensions/SubsSupport failed to load: 'str' object has no attribute 'dialog_stack'
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 52, in readPluginList
  File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/__init__.py", line 31, in <module>
    from subtitles import SubsSupport, SubsSupportStatus,  initSubsSettings
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 61, in <module>
    from compat import eConnectCallback, FileList
  File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/compat.py", line 65, in <module>
    OrigMessageBox("", "", simple=True)
  File "/usr/lib/enigma2/python/Screens/MessageBox.py", line 49, in __init__
  File "/usr/lib/enigma2/python/Screens/Screen.py", line 148, in setTitle
AttributeError: 'str' object has no attribute 'dialog_stack'
E2KODI_DEBUG_LVL =  40
Plugin  Extensions/Kodi failed to load: 'str' object has no attribute 'dialog_stack'



Re: Error starting some plugins. #18 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 6 July 2020 - 06:30

Kodi is still using e2 as player and for subtitles another plugin is needed and that subtitle plugin you get as bonus crashes the screenstuf at settitle...

Edited by littlesat, 6 July 2020 - 06:31.

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


Re: Error starting some plugins. #19 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 6 July 2020 - 06:38

There is no crash, just plugins do not start, no definition setTitle.



Re: Error starting some plugins. #20 Dimitrij

  • PLi® Core member
  • 9,970 posts

+335
Excellent

Posted 6 July 2020 - 06:57

https://github.com/m...lugin/compat.py

# there is no simple MessageBox in DMM images
SimpleMessageBox = False
try:
    OrigMessageBox("", "", simple=True)
    SimpleMessageBox = True
except TypeError:
    pass

 

 

from Screens.MessageBox import MessageBox as OrigMessageBox


Edited by Dimitrij, 6 July 2020 - 06:58.

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



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users