Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506586 - x11-wm/awesome-3.5.3 [fixed in 3.5.4 upstream] - awesome wibox crashes when changing the desktop wallpaper
Summary: x11-wm/awesome-3.5.3 [fixed in 3.5.4 upstream] - awesome wibox crashes when c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Maxim Koltsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 17:22 UTC by razamatan
Modified: 2014-04-03 19:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description razamatan 2014-04-02 17:22:15 UTC
awesome wm 3.5.3
cairo 1.12.16

after updating awesome wm to 3.5.3 i'm seeing corruption in the screen (usually just the naughty widgets) and wibox errors as if awesome just crashes.  i boiled it down to my wallpaper changing that causes this error.  here's the current state of that code:

-- {{{ Wallpaper
local wp_timer = timer { timeout = 10 }
local wp_files = {}
wp_timer:connect_signal("timeout", function()
    if next(wp_files) == nil then
        local fh = io.popen("find /home/razamatan/images/bkg -type f | grep -Ei \"\\\.(jpg|jpeg|gif|bmp|png)\$\" | grep -v vertical | rl")
        for file in fh:lines() do table.insert(wp_files, file) end
        io.close(fh)
    end
    local wp_file = table.remove(wp_files)
    naughty.notify({title = "wallpaper", text = wp_file})
    --[[ uncommenting this block will actually perform the wallpaper switch
    for s=1, screen.count() do
        if string.match(wp_file, '/center/') then
            gears.wallpaper.centered(wp_file, s, "#000000")
        else
            gears.wallpaper.fit(wp_file, s, "#000000")
        end
    end
    --]]
    wp_timer:stop()
    wp_timer.timeout = 60 * 60
    wp_timer:start()
end)
wp_timer:start()
-- }}}

obviously, to recreate the error, you'll have to
1.  change the find statement in the io.popen to grab a directory with image files in them
2.  remove the "rl" command (it's a perl script i wrote to randomize input lines)
3.  uncomment the for loop that actually makes the gears.wallpaper calls to swap out the background
Comment 1 Bohdan Trach 2014-04-02 18:02:27 UTC
Awesome 3.5.4 was released recently. It reverts some changes to code dealing with cairo, maybe you shoult try it?
Comment 2 razamatan 2014-04-02 22:48:12 UTC
i'm going to see if 3.5.4 fixes.  talking w/ upstream, it appears that this commit/rollback is the likely fix:

http://git.naquadah.org/?p=awesome.git;a=commit;h=eef20459540991d900ed0d6e8eb6e20cefcc36e1

if 3.5.4 fixes things for me, it seems that 3.5.3 should just be skipped given the nature of the issue.  the version bump effort should be minimal since i literally just symlinked the 3.5.3 ebuild to 3.5.4 and manifest/installed it.

will post the results of 3.5.4 later today when i get back to my home machine.
Comment 3 razamatan 2014-04-03 03:25:46 UTC
confirming that 3.5.4 fixes this issue for me.  i'd recommend bumping getting 3.5.4 in portage pronto given the "low level" nature of this bug (interaction in the X/cairo layer).
Comment 4 tman 2014-04-03 06:49:10 UTC
i can also confirm this problem and it would be nice to get a bump of the ebuild in portage.

thanks
Comment 5 Bohdan Trach 2014-04-03 11:34:24 UTC
In case awesome is bumped to 3.5.4, it should be patched with the code from the following commit - http://git.naquadah.org/?p=awesome.git;a=commit;h=7967d05915c95c8eba7709a46093cc1b6de55572

Otherwise it will have rather nasty warnings in menubar (Mod4-P).
Comment 6 Maxim Koltsov (RETIRED) gentoo-dev 2014-04-03 19:17:14 UTC
Commited with patch, thanks.