syslog:
gnome-shell[1679]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:#012 refreshPropertyOnProxy@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/util.js:43:38#012 _translateNewSignals/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:212:18#012 _translateNewSignals@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:211:50#012 _onProxySignal/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:56#012 _onProxySignal@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:38
ubuntu22.04 这种警告一般是gnome桌面扩展本身的问题还是添加进去的程序问题?!error没有被catch而产生Unhandled promise rejection。类似.js:228:38中的数字是所提示文件代码的行列定位吗?
Unhandled promise rejection问题从何入手
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 9
- 注册时间: 2023-02-21 9:54
- 系统: linux
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: Unhandled promise rejection问题从何入手
就是ubuntu-appindicators这个扩展的问题。
_onProxySignal@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:38
表示出现在/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js文件的228行38字符,_onProxySignal函数中
_onProxySignal@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:38
表示出现在/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js文件的228行38字符,_onProxySignal函数中
-
- 帖子: 51
- 注册时间: 2023-02-21 9:52
- 系统: linux