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

Taffybar hangs on FUTEX_WAIT_PRIVATE #44

Closed
NickHu opened this issue Jul 28, 2013 · 8 comments
Closed

Taffybar hangs on FUTEX_WAIT_PRIVATE #44

NickHu opened this issue Jul 28, 2013 · 8 comments

Comments

@NickHu
Copy link
Contributor

NickHu commented Jul 28, 2013

Often Taffybar hangs, appearing not to launch. Recently I made the switch to TaffyPager, and afterwards I began to experience this behaviour. The full strace is below

strace taffybar

http://puu.sh/3NOOW.txt

@travitch
Copy link
Member

Interesting. Are you running Linux? Can you attach your config?

@NickHu
Copy link
Contributor Author

NickHu commented Jul 29, 2013

Yes, and yes:

uname -r
3.10.3-1-ARCH
import System.Taffybar
import System.Taffybar.Systray
import System.Taffybar.TaffyPager
import System.Taffybar.Pager (colorize, escape, shorten, wrap)
import System.Taffybar.SimpleClock
import System.Taffybar.MPRIS2
import System.Taffybar.FreedesktopNotifications
import System.Taffybar.Weather
import System.Taffybar.NetMonitor
import System.Taffybar.Battery

import Solarized

space = " "

main = do
  let weatherCfg = (defaultWeatherConfig "EGBE") { weatherTemplate = colorize solarizedViolet "" "Coventry Airport" ++ colorize solarizedBlue "" ":" ++ space ++ colorize solarizedGreen "" "$tempC$" ++ colorize solarizedBlue "" "°C" ++ space ++ colorize solarizedViolet "" "@" ++ space ++ colorize solarizedMagenta "" "$humidity$" ++ colorize solarizedBlue "" "%" ++ space ++ colorize solarizedRed "" "$skyCondition$" }
      clock = textClockNew Nothing (colorize solarizedViolet "" "%a" ++ space ++ colorize solarizedBlue "" "%b" ++ space ++ colorize solarizedCyan "" "%_d" ++ space ++ colorize solarizedYellow "" "%H" ++ colorize solarizedViolet "" ":" ++ colorize solarizedYellow "" "%M" ++ colorize solarizedViolet "" ":" ++ colorize solarizedYellow "" "%S") 1
      pager = taffyPagerNew defaultPagerConfig
        { activeWindow = colorize solarizedBlue "" . escape . shorten 128
        , activeLayout = colorize solarizedViolet "" . escape
        , activeWorkspace = colorize solarizedMagenta "" . escape
        , hiddenWorkspace = colorize solarizedBase01 "" . escape
        , emptyWorkspace = colorize solarizedBase00 "" . escape
        , visibleWorkspace = colorize solarizedGreen "" . escape
        , urgentWorkspace = colorize solarizedOrange "" . wrap "!" "!" . escape
        , widgetSep = colorize solarizedCyan "" " | "
        }
      tray = systrayNew
      nowPlaying = mpris2New
      notifications = notifyAreaNew defaultNotificationConfig
      net = netMonitorNew 1 "wlp3s0"
      weather = weatherNew weatherCfg 10
      battery = textBatteryNew (colorize solarizedRed "" "%d" ++ colorize solarizedBlue "" "%%") 5
  defaultTaffybar defaultTaffybarConfig { 
    monitorNumber = 0
  , barHeight = 16
  , startWidgets = [ pager ]
  , endWidgets = [ clock, battery, weather, tray, net, nowPlaying, notifications ]
  }

@NickHu
Copy link
Contributor Author

NickHu commented Jul 29, 2013

I think this may be related to issue #43

@travitch
Copy link
Member

Just to try to get a better handle on this issue: you are using dynamic workspaces as well, as in #43?

If so, are you adding (or, I suspect, removing) workspaces when this hang occurs? I can think up a scenario where removing one of the initial workspaces might cause a hang. That said, I don't know off-hand how the internals of taffypager work.

@NickHu
Copy link
Contributor Author

NickHu commented Jul 30, 2013

I am using dynamic workspaces, but this hang actually seems to occur during initialization. Infact, I can't even get taffybar to appear anymore, and I haven't changed my xmonad.hs at all.

@NickHu
Copy link
Contributor Author

NickHu commented Aug 4, 2013

I no longer believe this to be an issue with TaffyPager, as I've since switched back to the standard DBus XMonadLog method, and this still occurs. Infact, I don't even think it's a hang, I think it's an issue of XMonad not making room for Taffybar. My config can be found at https://www.github.com/NickHu/dotxmonad - It's broken at the latest commit.

@NickHu
Copy link
Contributor Author

NickHu commented Aug 4, 2013

Infact, I can't get any commit to work properly. I'm starting to think this might be an XMonad darcs issue... I'll recompile, but @travitch could you please confirm that it works on your end?

EDIT: The example taffybar configs work fine.

@NickHu
Copy link
Contributor Author

NickHu commented Aug 4, 2013

I found the issue, it was with the battery component. It seems that UPower for me was broken by a recent update. Taffybar could die or otherwise act more gracefully, perhaps spew out an error rather than wait eternally though.
Follow up here: https://bbs.archlinux.org/viewtopic.php?pid=1307804

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

No branches or pull requests

2 participants