错误如下:
./qqmusic-1.1.5.AppImage
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
(node:11578) UnhandledPromiseRejectionWarning: undefined
(node:11578) UnhandledPromiseRejectionWarning: undefined
(node:11578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11578) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11578) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:11578) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
login refresh fail
(node:11578) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:11578) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(electron) 'setUserAgent function' is deprecated and will be removed. Please use 'userAgent property' instead.
[11578:0320/100901.906890:FATAL:gpu_data_manager_impl_private.cc(1034)] The display compositor is frequently crashing. Goodbye.
[1] 11578 trace trap (core dumped) ./qqmusic-1.1.5.AppImage
启动的时候加入 --no-sandbox
即可,但是每次都用命令行启动比较麻烦
这里添加一个desktop文件到/usr/share/applications
[Desktop Entry]
Name=QQMusic
Exec=/usr/bin/qqmusic-1.1.5.AppImage --no-sandbox
Terminal=false
Type=Application
Icon=/usr/share/icons/Adwaita/512x512/mimetypes/audio-x-generic.png
Categories=Network;
Comment=QQMusic
标签:qq,node,rejection,handled,linux,electron,promise,11578,报错
From: https://www.cnblogs.com/feipeng8848/p/17235403.html