从桌面拖放到应用程序后输入法停止工作

从桌面拖放到应用程序后输入法停止工作

当我尝试将文件从桌面拖到浏览器或终端时,鼠标会卡在“手”的位置,键盘和鼠标都停止工作(我仍然可以移动它,但仅此而已)。到目前为止,唯一能解决这个问题的方法是重新启动 gdm,例如sudo service gdm restart从 TTY 重新启动。

我读过一些类似的问题这里,但我的XDG_SESSION_TYPE似乎是x11

我打开了一个tail -f/var/log/syslog尝试拖放一个文件,这是重要的输出(我认为):

Dec  4 11:38:07 ublin gnome-shell[6492]: value "inf" of type 'gfloat' is invalid or out of range for property 'x' of type 'gfloat'
Dec  4 11:38:07 ublin gnome-shell[6492]: value "inf" of type 'gfloat' is invalid or out of range for property 'y' of type 'gfloat'
Dec  4 11:38:07 ublin gnome-shell[6492]: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-x' of type 'gdouble'
Dec  4 11:38:07 ublin gnome-shell[6492]: value "-nan" of type 'gdouble' is invalid or out of range for property 'scale-y' of type 'gdouble'
Dec  4 11:38:07 ublin gnome-shell[6492]: JS ERROR: Error: Argument x: value is out of range for gfloat#012_onAnimationComplete@resource:///org/gnome/shell/ui/dnd.js:742:27#012onComplete@resource:///org/gnome/shell/ui/dnd.js:720:22#012_makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:84:13#012_easeActor/<@resource:///org/gnome/shell/ui/environment.js:165:64
Dec  4 11:38:07 ublin gnome-shell[6492]: clutter_actor_allocate: assertion '!isnan (real_allocation.x1) && !isnan (real_allocation.x2) && !isnan (real_allocation.y1) && !isnan (real_allocation.y2)' failed
Dec  4 11:38:07 ublin gnome-shell[6492]: Can't update stage views actor StWidget is on because it needs an allocation.
Dec  4 11:38:07 ublin gnome-shell[6492]: Can't update stage views actor ClutterClone is on because it needs an allocation.

很高兴提供更多细节,但我基本上是个新手,所以我可能需要询问如何找到某些信息。

答案1

我没有解决方案,但我已经两次遇到同样的问题,journalctl 中出现同样的错误消息。即使重新启动 gdm 也无济于事,我需要重新启动。

两次我都感觉 Firefox 是罪魁祸首;第二次我确实尝试进行拖放操作,但我不记得第一次发生了什么。

  • Firefox 83.0
  • Ubuntu 20.10
  • Linux rg 5.8.0-33-generic #36-Ubuntu SMP 星期三 12 月 9 日 09:14:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
十二月 12 17:06:18 rg gnome-shell[2704]:clutter_actor_allocate:断言‘!isnan(real_allocation.x1)&&!isnan(real_allocation.x2)&&!isnan(real_allocation.y1)&&!isnan(real_allocation.y2)’失败
十二月 12 17:06:18 rg gnome-shell[2704]:无法更新演员 StWidget 所在的舞台视图,因为它需要分配。
十二月 12 17:06:18 rg gnome-shell[2704]:无法更新演员 ClutterClone 所在的舞台视图,因为它需要分配。
十二月 12 17:06:19 rg gnome-shell[2704]:类型“gfloat”的值“inf”对于类型“gfloat”的属性“x”无效或超出范围
十二月 12 17:06:19 rg gnome-shell[2704]:类型“gfloat”的值“inf”对于类型“gfloat”的属性“y”无效或超出范围
十二月 12 17:06:19 rg gnome-shell[2704]:类型“gdouble”的值“-nan”对于类型“gdouble”的属性“scale-x”无效或超出范围
十二月 12 17:06:19 rg gnome-shell[2704]:类型为“gdouble”的值“-nan”对于类型为“gdouble”的属性“scale-y”无效或超出范围
十二月 12 17:06:19 rg gnome-shell[2704]:JS 错误:错误:参数 x:值超出 gfloat 的范围
                                      _onAnimationComplete@resource:///org/gnome/shell/ui/dnd.js:742:27
                                      onComplete@resource:///org/gnome/shell/ui/dnd.js:720:22
                                      _makeEaseCallback/<@resource:///org/gnome/shell/ui/environment.js:84:13
                                      _easeActor/<@resource:///org/gnome/shell/ui/environment.js:165:64
十二月 12 17:06:20 rg gnome-shell[2704]:clutter_actor_allocate:断言‘!isnan(real_allocation.x1)&&!isnan(real_allocation.x2)&&!isnan(real_allocation.y1)&&!isnan(real_allocation.y2)’失败
十二月 12 17:06:20 rg gnome-shell[2704]:无法更新演员 StWidget 所在的舞台视图,因为它需要分配。
十二月 12 17:06:20 rg gnome-shell[2704]:无法更新演员 ClutterClone 所在的舞台视图,因为它需要分配。
十二月 12 17:06:24 rg gnome-shell[2704]:clutter_actor_allocate:断言‘!isnan(real_allocation.x1)&&!isnan(real_allocation.x2)&&!isnan(real_allocation.y1)&&!isnan(real_allocation.y2)’失败

相关内容