Skip to content

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

@SaverinOnRails

Description

@SaverinOnRails

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions