Skip to content

error on skill_id and gui.clear.namespace #37

@AIIX

Description

@AIIX

The error seems to occur randomly, sometimes when mycroft-gui is restarted or when mycroft-core looses internet connection and reconnects, or between sending pages

Adding two instances when the error has occurred:

2020-02-25 21:35:11.215 | ERROR    |  6208 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:805 | An error occurred while processing a request in Bit Chute Skill
Traceback (most recent call last):
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 389, in get_play_video
    self.set_video_thumb(vid_thumb)
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 378, in set_video_thumb
    self.gui.show_page("BitchutePlayer.qml", override_idle=True)
  File "/home/aix/mycroft-core/mycroft/enclosure/gui.py", line 137, in show_page
    self.show_pages([name], 0, override_idle)
  File "/home/aix/mycroft-core/mycroft/enclosure/gui.py", line 162, in show_pages
    data.update({'__from': self.skill.skill_id})
AttributeError: 'NoneType' object has no attribute 'skill_id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/aix/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 126, in bitchute
    self.get_play_video(utterance)
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 401, in get_play_video
    self.gui.clear()
  File "/home/aix/mycroft-core/mycroft/enclosure/gui.py", line 111, in clear
    self.skill.bus.emit(Message("gui.clear.namespace",
AttributeError: 'NoneType' object has no attribute 'bus'
2020-02-25 22:09:14.214 | ERROR    |  6208 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:805 | An error occurred while processing a request in Bit Chute Skill
Traceback (most recent call last):
  File "/home/aix/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 73, in launcherId
    self.show_homepage({})
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 188, in show_homepage
    self.process_home_page()
  File "/opt/mycroft/skills/bitchute-skill/__init__.py", line 197, in process_home_page
    self.gui.clear()
  File "/home/aix/mycroft-core/mycroft/enclosure/gui.py", line 111, in clear
    self.skill.bus.emit(Message("gui.clear.namespace",
AttributeError: 'NoneType' object has no attribute 'bus'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions