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] Polling remote resource can cause widget to freeze. #1237

Open
3 tasks done
Eugenenoble2005 opened this issue Nov 26, 2024 · 0 comments
Open
3 tasks done

[BUG] Polling remote resource can cause widget to freeze. #1237

Eugenenoble2005 opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Eugenenoble2005
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

In the example below i am polling a remote image every second:

(defpoll mediaart 
  :interval "1s"
  `ruby ~/.config/hypr/UserScripts/MediaWidget.rb --arturl`
)

(defwindow media
  :geometry (geometry :anchor "bottom left" :width "300px" :height "330px" :x "30px")
  (box :orientation "v" 
    (box  :height "300px" :style "background-image:url('${mediaart}')" :class "mediaart")
  )
)

This works but if for any reason the internet is disconnected, the widget just freezes. Killing eww will remove all other widgets or layers as expected but this frozen widget will persist. Restarting eww and re-showing the widget will just draw a new instance of the widget over the frozen one.

Reproducing the issue

No response

Expected behaviour

No response

Additional context

No response

Platform and environment

Compositor is Hyprland on Wayland Display Protocol.
Installed version of eww-git on arch from aur is: eww-git 0.6.0.r62.g50ec181-1

@Eugenenoble2005 Eugenenoble2005 added the bug Something isn't working label Nov 26, 2024
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

1 participant