lolstring / gnome-shell-extension-mycroft

Gnome Shell Extension for Mycroft AI Assistant
MIT License
48 stars 11 forks source link

Desktop freezes while extension connects #5

Open Red5d opened 7 years ago

Red5d commented 7 years ago

I have this extension pointing to a "remote" mycroft service that I've set up separately on my local machine with systemd user services, and when the extension connects or reconnects to the mycroft service, the entire desktop freezes. Sometimes for a few seconds, sometimes indefinitely until I ssh in from another computer to disable the extension and restart the gnome-shell process.

This connect-and-freeze behavior happens sometimes when starting the extension and also after locking/unlocking the desktop.

lolstring commented 7 years ago

Hi, Could you provide more details of your environment? I have added tried a possible fix on the crash that others are facing too in a new branch called soupfix. Could you see if that solved your issue.

If you have the issue again, let me know and try this instead of ssh switch to a terminal CTRL + ALT + F2 Login gnome-shell-extension-tool -d mycroft@rahul.io killall -3 gnome-shell (multiple times if nothing happens)

if you get 'no process found', restart your display manager. eg. sudo service lightdm restart or whichever display manager you are using.

lolstring commented 7 years ago

I added changes to the master branch. Let me know if it still crashes

Red5d commented 7 years ago

Just re-installed the extension from master branch. It works fine when it first starts up after I enable the extension, but if I lock and unlock the system, it still freezes the whole desktop and cpu usage for gnome-shell spikes to 100%.

lolstring commented 7 years ago

Is animation off from the miscellaneous tab in the extension settings? If not, try after switching it off. Could you provide me more details about your environment so I can try to replicate the issue ?

kangfredy commented 7 years ago

i have same problem...when i enable mycroft from my pc (local folder) my monitor is freezing but mycroft can active..i can speak "hi mycroft" but my screen still freeze..

lolstring commented 7 years ago

@kangfredy can you make sure that 'Animation' is in the off state in the misc tab of the extension settings ? Let me know if the problem persists.

Soneji commented 7 years ago

+1 This extension likes to crash my desktop frequently. Especially when trying to first enable mycroft and especially when trying to resume after suspend state (btw my animation is off)

kangfredy commented 7 years ago

@lolstring i've been animation off on mycroft..but it's still freeze.can you create state when it need connection,or error using dialog?or message option.so i can help you find a bug.

kangfredy commented 7 years ago

or can you make it stand alone not needed gnome?like normal application desktop on debian.

AIIX commented 7 years ago

@kangfredy there is a standalone application, you can get the appimage from releases. https://github.com/AIIX/Mycroft-Ai-QtApplication/

kangfredy commented 7 years ago

thx @AIIX maybe can you explain me how to install that mycroft?i didn't see on your readme

ShadowEO commented 6 years ago

Running Ubuntu 17.10, GNOME 3.26, Python 2.7/3.6 installed.

Using the extension, I receive a full freeze on both Xorg and Wayland when having the extension connect. It seems to do this if Mycroft is running at startup, and if it's running via script. I can get the extension to connect once, but if I have to restart the Mycroft services for any reason, upon hitting the Disable/Re-Enable button, the entire session freezes and I have to kill Xorg from another terminal (for some reason, Wayland freezes the entire PC so I have to restart the PC when using Wayland)

I am willing to do whatever you may need for troubleshooting.

A Concise way to trigger this (has happened everytime):

GNOME should then freeze, if using Xorg the entire session except for the mouse should freeze, if using Wayland, entire machine should freeze.

This is the exact description of what OP is experiencing, and as I said, I experience it when having Mycroft start at startup with the extension running or when having the extension start Mycroft for me. Without the extension, everything works normally.

Like the others, I can still use "Hey Mycroft" to trigger the AI, since the underlying system is still running (except when this happens in Wayland)

EDIT: Forgot to mention, this happens with Animation both on and off.

AIIX commented 6 years ago

@ShadowEO the major issues seems with the extension freezing seems to be coming from the libsoup library the extension is utilizing for connecting to mycroft via websockets, there is no known workaround at the moment for this. Unless there is another websocket library that can be implemented in gnome extensions i believe this issue is far from fixable.

ShadowEO commented 6 years ago

Thanks for that AIIX, I was worried that it might be something regarding GNOME itself or hell even Mycroft itself.