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

[BUG] Crash when monitor turned off #1158

Open
3 tasks done
tsvallender opened this issue Aug 16, 2024 · 5 comments
Open
3 tasks done

[BUG] Crash when monitor turned off #1158

tsvallender opened this issue Aug 16, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tsvallender
Copy link

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

Turning off the monitor causes eww to crash.

Reproducing the issue

If eww is running and the monitor is turned off, when turned back on eww will have crashed.

From the logs:

 2024-08-16T08:13:31.265Z INFO  eww::app        > Closing gtk window bar

(eww:86616): GLib-GObject-CRITICAL **: 09:13:31.265: ../gobject/gsignal.c:2685: instance '0x564390eb3d80' has no handler with id '92'
 2024-08-16T08:13:31.265Z ERROR eww::error_handling_ctx > Failed to send success response from application thread

Caused by:
    channel closed

This seems unrelated to config, I’ve removed my config and replaced it with the barebones config below and still have the issue.

Running eww 0.6.0 on openSUSE.

Config:

(defwidget bar [] (music))
(defwindow bar
  :monitor 0
  :windowtype "dock"
  :exclusive true
  :geometry (geometry :x "0%"
                      :y "0%"
                      :width "90%"
                      :height "10px"
                      :anchor "top center")
  :reserve (struts :side "top" :distance "100px")
  (bar))

(defwidget music []
  (box :class "music"
       :orientation "h"
       :space-evenly false
       :halign "center"
    {"hello"}))

Expected behaviour

No response

Additional context

No response

@tsvallender tsvallender added the bug Something isn't working label Aug 16, 2024
@cstruck
Copy link

cstruck commented Oct 2, 2024

can confirm. whenever I turn off my monitor the eww window crashes

@elkowar
Copy link
Owner

elkowar commented Oct 11, 2024

is this happening on wayland or on X11? Is it actually related to the monitor, or is it the entire computer going to sleep?
If wayland, we might need to do some explicit work to catch this sort of thing, Idk exactly how compositors deal with monitors vanishing and popping up

@cstruck
Copy link

cstruck commented Oct 11, 2024

oh sry, should have added that. Yeah, its wayland.

it crashes with

(eww:10221): GLib-GObject-CRITICAL **: 15:44:02.137: ../glib-2.78.6/gobject/gsignal.c:2777: instance '0x562307bb3e30' has no handler with id '180'
 2024-10-11T13:44:02.137Z ERROR eww::error_handling_ctx > Failed to send success response from application thread

Caused by:
    channel closed
 2024-10-11T13:44:02.137Z INFO  eww::app                > Closing gtk window win1

(eww:10221): GLib-GObject-CRITICAL **: 15:44:02.137: ../glib-2.78.6/gobject/gsignal.c:2777: instance '0x562307cff0a0' has no handler with id '313'
 2024-10-11T13:44:02.137Z ERROR eww::error_handling_ctx > Failed to send success response from application thread

Caused by:
    channel closed

@cstruck
Copy link

cstruck commented Oct 13, 2024

ah, its when I manually turn off my monitor either by unplugging or just hitting the poweroff button

@elkowar
Copy link
Owner

elkowar commented Oct 13, 2024

I'll try to investigate within the next few days 👍🏻 Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants