ubuntu22.04下载QQ音乐闪退问题

前提:

ubutnu系统22.04

cpu:Intel® Core™ i7-14700 × 28

显卡:核显

再官网下载qq音乐deb版本

https://y.qq.com/

sudo dpkg -i qq音乐的deb包

安装后再应用程序里点击qq音乐图标出现闪退,无任何提示。

解决办法:

去终端执行

qqmusic

报错如下:

bash 复制代码
(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:8239) UnhandledPromiseRejectionWarning: undefined
(node:8239) UnhandledPromiseRejectionWarning: undefined
(node:8239) 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:8239) 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:8239) [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:8239) [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:8239) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(node:8239) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(electron) 'setUserAgent function' is deprecated and will be removed. Please use 'userAgent property' instead.
[8239:1106/150901.895848:FATAL:gpu_data_manager_impl_private.cc(1034)] The display compositor is frequently crashing. Goodbye.
追踪或断点陷阱 (核心已转储)

报错原因:我的显卡是核显,而 QQ 音乐 Linux 版是基于 Electron 打包的桌面程序,它默认会开启 Chromium 的 GPU 加速功能。
问题在于:Electron 在某些 Intel 核显 / 无 GPU 环境下,初始化 GPU 渲染时会直接崩溃。

所以解决方法很简单,再qq音乐启动里禁用GPU,改用CPU渲染

直接照抄:

sudo gedit /usr/share/applications/qqmusic.desktop

bash 复制代码
[Desktop Entry]
Name=QQMusic
Exec=/opt/qqmusic/qqmusic --disable-gpu --disable-software-rasterizer --disable-gpu-compositing --use-gl=swiftshader --no-sandbox %U
Terminal=false
Type=Application
Icon=qqmusic
StartupWMClass=qqmusic
Comment=Tencent QQMusic
Categories=AudioVideo;

保存后,在终端执行:sudo update-desktop-database ,更新下桌面缓存

然后再重新点击qq音乐图标就能正常启动了

相关推荐
.小墨迹21 分钟前
apollo学习之借道超车的速度规划
linux·c++·学习·算法·ubuntu
技术路上的探险家1 小时前
Ubuntu下Docker与NVIDIA Container Toolkit完整安装教程(含国内源适配)
linux·ubuntu·docker
无证驾驶梁嗖嗖2 小时前
用Plex打造随身私人影院告别影音杂乱,必须加上cpolar突破地域限制!
ubuntu
Sheep Shaun3 小时前
揭开Linux的隐藏约定:你的第一个文件描述符为什么是3?
linux·服务器·ubuntu·文件系统·缓冲区
生活很暖很治愈3 小时前
Linux——环境变量PATH
linux·ubuntu
予枫的编程笔记4 小时前
【Linux入门篇】Ubuntu和CentOS包管理不一样?apt与yum对比实操,看完再也不混淆
linux·人工智能·ubuntu·centos·linux包管理·linux新手教程·rpm离线安装
匆匆那年9677 小时前
llamafactory推理消除模型的随机性
linux·服务器·学习·ubuntu
wypywyp15 小时前
8. ubuntu 虚拟机 linux 服务器 TCP/IP 概念辨析
linux·服务器·ubuntu
阿蒙Amon15 小时前
TypeScript学习-第10章:模块与命名空间
学习·ubuntu·typescript
No8g攻城狮16 小时前
【Linux】Windows11 安装 WSL2 并运行 Ubuntu 22.04 详细操作步骤
linux·运维·ubuntu