i3: Chromium-based applications periodically "freeze"
I’m submitting a…
[x] Bug [ ] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
Current Behavior
For the past 2–3 months (but never before then, so perhaps this issue began with the i3 upgrade to 4.16.1 on 27 Jan 2019), Chromium-based applications such as qutebrowser and Slack will periodically “freeze”, requiring a SIGKILL
and restart. I’ll be able to move my cursor across the application window, but it won’t respond to input from the keyboard or mouse. If I switch to another workspace and then back again, the frozen application’s window won’t be redrawn—that window will simply continue to display whatever was on the last workspace I just switched from. Affected applications tend to display this behavior at the same time. I’ve been monitoring application-specific logs without finding any clues to the root cause. This issue appears to be related to #1720.
Expected Behavior
Applications should not freeze.
Reproduction Instructions
I’ve not been able to trigger this issue manually. It’s quite unpredictable. I can go days without it happening—but sometimes, it’ll occur several times back-to-back with no apparent cause.
Environment
Output of i3 --moreversion 2>&-
:
i3 version: 4.16.1 (2019-01-27)
set $mod Mod4 font pango:monospace 8 floating_modifier $mod bindsym $mod+Return exec "$HOME/.config/i3/cwd.sh" bindsym $mod+Shift+q kill bindsym $mod+d exec dmenu_run bindsym $mod+h focus left bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down bindsym $mod+Shift+k move up bindsym $mod+Shift+l move right bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right bindsym $mod+g split h bindsym $mod+v split v bindsym $mod+f fullscreen toggle bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+a focus parent set $ws1 "term" set $ws2 "web" set $ws3 "chat" set $ws4 "edit" set $ws5 "read" set $ws6 "vm" set $ws7 "vnc" set $ws8 "8" set $ws9 "9" set $ws10 "10" bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 bindsym $mod+Shift+4 move container to workspace $ws4 bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+6 move container to workspace $ws6 bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart bindsym $mod+Shift+t exec "$HOME/.config/i3blocks/update.sh" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" mode "resize" { bindsym h resize shrink width 10 px or 10 ppt bindsym j resize grow height 10 px or 10 ppt bindsym k resize shrink height 10 px or 10 ppt bindsym l resize grow width 10 px or 10 ppt bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt bindsym Return mode "default" bindsym Escape mode "default" bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" bar { status_command i3blocks tray_output none font pango:source code pro, 9 } gaps inner 10 gaps outer 5 bindsym XF86AudioMute exec amixer -q set Master toggle; exec pkill -RTMIN+10 i3blocks bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute; exec pkill -RTMIN+10 i3blocks bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute; exec pkill -RTMIN+10 i3blocks bindsym XF86AudioMicMute exec amixer set Capture toggle; exec pkill -RTMIN+9 i3blocks bindsym XF86MonBrightnessDown exec xbacklight -dec 5; exec pkill -RTMIN+9 i3blocks bindsym XF86MonBrightnessUp exec xbacklight -inc 5; exec pkill -RTMIN+9 i3blocks exec --no-startup-id feh --bg-fill $HOME/.config/img.png new_window 1pixel bindsym $mod+shift+z exec i3lock -tfi $HOME/.config/img.png exec --no-startup-id redshift -l `cat $HOME/.config/i3blocks/coord.txt | tr -d '\n'` & exec --no-startup-id $HOME/.dropbox-dist/dropboxd & bindsym Shift+$mod+bracketright move workspace to output right bindsym Shift+$mod+bracketleft move workspace to output left
- Linux Distribution & Version: 5.0.7-arch1-1-ARCH x86_64 - Are you using a compositor (e.g., xcompmgr or compton): No
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 23 (3 by maintainers)
Yes, I see it almost everyday for the past few months. As I said here, I’d connect this issue with hardware acceleration in blink-based software. After appending
--disable-gpu
flag to executables the issue doesn’t occur.For software like Figma, that requires hardware acceleration, you can temporarily solve the bug by killing gpu process:
And just call
kill-gpu <process-name>
everytime it happens.@ClydeDroid are you using a notification daemon? If not, you can try installing one like Dunst.
Also, since I’ve installed Picom (ex Compton) my problem has disappeared.
After troubleshooting this issue for the better part of a year, I opted to reinstall my OS in hopes that the problem won’t reappear. Will report back here if I experience freezing again.
I see that there are a lot of related issues regarding freezing in qutebrowser, electron etc:
https://github.com/qutebrowser/qutebrowser/issues/4809 https://github.com/qutebrowser/qutebrowser/issues/4641 https://github.com/electron/electron/issues/21415
Closing as not i3-specific
@mattiabiondi Installing Dunst fixed the issue!! Thanks a bunch!!
I’m fairly certain that this issue started happening after this upgrade: https://pastebin.com/raw/urbwzv6p
It has happen to me with a bunch of electron apps! Not only with I3 but with Awesome also!