Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta_context_notify_ready: assertion 'priv->state == META_CONTEXT_STATE_STARTED || priv->state == META_CONTEXT_STATE_RUNNING' failed #25

Closed
peterlobster opened this issue Aug 6, 2022 · 8 comments · Fixed by #46

Comments

@peterlobster
Copy link

peterlobster commented Aug 6, 2022

Noticed this error in my logs on a clean shell restart (alt + F2 -> r) with only your plugin installed, no user themes either. Only happens with this plugin installed and enabled.

OS: Gentoo - 5.19.0
GNOME: 42.3.1

$ journalctl -r /usr/bin/gnome-shell
Aug 06 11:38:25 localhost gnome-shell[1707]: Registering session with GDM
Aug 06 11:38:25 localhost gnome-shell[1707]: GNOME Shell started at Sat Aug 06 2022 11:38:23 GMT-0700 (PDT)
Aug 06 11:38:23 localhost gnome-shell[1707]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 06 11:38:23 localhost gnome-shell[1707]: meta_context_notify_ready: assertion 'priv->state == META_CONTEXT_STATE_STARTED || priv->state == META_CONTEXT_STATE_RUNNING' failed
Aug 06 11:38:23 localhost gnome-shell[1707]: Failed to create file /run/user/1000/gnome-shell-disable-extensions: Error opening file “/run/user/1000/gnome-shell-disable-extensions”: File exists
Aug 06 11:38:23 localhost gnome-shell[1707]: Will monitor session 3
Aug 06 11:38:23 localhost gnome-shell[1707]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 06 11:38:22 localhost gnome-shell[1707]: Enabling experimental feature 'scale-monitor-framebuffer'
Aug 06 11:38:22 localhost gnome-shell[1707]: Running GNOME Shell (using mutter 42.3) as a X11 window and compositing manager

Disabling the plugin (and restarting the GNOME shell), makes the error go away.

Aug 06 11:45:52 localhost gnome-shell[1707]: Registering session with GDM
Aug 06 11:45:52 localhost gnome-shell[1707]: GNOME Shell started at Sat Aug 06 2022 11:45:49 GMT-0700 (PDT)
Aug 06 11:45:50 localhost gnome-shell[1707]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Aug 06 11:45:49 localhost gnome-shell[1707]: Will monitor session 3
Aug 06 11:45:49 localhost gnome-shell[1707]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Aug 06 11:45:48 localhost gnome-shell[1707]: Enabling experimental feature 'scale-monitor-framebuffer'
Aug 06 11:45:48 localhost gnome-shell[1707]: Running GNOME Shell (using mutter 42.3) as a X11 window and compositing manager
@yilozt
Copy link
Owner

yilozt commented Aug 7, 2022

I don't know how / why this error appears, it still exists even I try to comment all lines in enable () of this extensions:

@peterlobster
Copy link
Author

@yilozt I just started doing GTK-based development, but I'll ask around if someone can point out the problem, and I'll send whatever they say along...

@peterlobster
Copy link
Author

@yilozt
Copy link
Owner

yilozt commented Aug 7, 2022

Give up... I still don't have any idea to solve this issue.

@peterlobster
Copy link
Author

@yilozt I'm working on it. I'm talking to a few of the GNOME developers on Matrix. I think we're making progress.

@yilozt
Copy link
Owner

yilozt commented Aug 8, 2022

Comfirmed that ES Modules occurs this error. I don't think it is a real bug, because it not effect user experience.

Maybe I should stop use ES modules in extensions, it can fix this error message.

@yilozt yilozt removed the help wanted Extra attention is needed label Aug 8, 2022
@yilozt
Copy link
Owner

yilozt commented Aug 8, 2022

This is a example extensions that uses ES Modules, it can emit this error message: [email protected]

This is normal extensions that will not emit error message: [email protected]

This example extensions even do nothing, it just print something to log:

class Extension {
    enable() {
        log ('Extension Enabled')
    }
    disable() {
        log ('Extension disabled')
    }
}

function init () {
    return new Extension()
}

@peterlobster
Copy link
Author

@yilozt WOW! Great work! ...and thank you for taking the time to debug and share that.

I had hit a similar crux yesterday, but hadn't hit on the ESM modules, but I guess it makes sense. Interestingly, I was told yesterday (on the GNOME Matrix) that eventually the GNOME Shell will move to ESM (in 43 or 44).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants