Ira*_*ras 9 vlc segmentation-fault crash 20.04
每次我尝试打开任何视频文件时,我的 VLC 播放器都会崩溃。删除/清除 vlc 并重新安装它不会改变任何内容。
我最近将发行版从 19.10 升级到 20.04。我以前从未在任何其他操作系统上遇到过这个问题。我还尝试从头开始重新安装整个操作系统(因为我还有其他一些小问题)。然后 VLC 在全新安装上运行良好,但在某些时候它再次开始崩溃,现在又一次总是崩溃。
当我尝试打开文件时,从终端运行 vlc 会给出以下输出。
[00005586d4e98290] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005586d4f6d1c0] main audio output error: too low audio sample frequency (0)
[00007fa264ccaa20] main decoder error: failed to create audio output
[00005586d4f6d1c0] vlcpulse audio output error: digital pass-through stream connection failure: Not supported
[00005586d4f6d1c0] main audio output error: module not functional
[00007fa264ccaa20] main decoder error: failed to create audio output
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)
这是关于gnome-logs中显示的日志:
vlc[602364]: segfault at 24 ip 00007fe5731011d4 sp 00007fe546ff6c50 error 6 in iris_dri.so[7fe5726d0000+d48000]
Run Code Online (Sandbox Code Playgroud)
Par*_*avi 13
有一个关于这里的错误报告。事实上,VLC 不是罪魁祸首。英特尔驱动程序iris_dri中有一个错误,它是英特尔 IRIS 显卡的 linux直接渲染基础设施驱动程序。
每当程序试图绕过 X 服务器并直接在底层 GPU 上使用 OpenGL 进行渲染时,它必须间接使用该驱动程序。当有人发出 OpenGL 调用时,一个错误会导致分段错误。
正如错误报告中所建议的,您必须改用英特尔驱动程序i965。为此,您必须定义环境变量
env MESA_LOADER_DRIVER_OVERRIDE=i965
Run Code Online (Sandbox Code Playgroud)
所以,如果你想在终端打开VLC,你必须该行添加到您的~/.bashrc文件,或者,如果你想从应用程序菜单或通过点击媒体文件打开它,你必须篡改开头的行Exec=中.desktop的文件/usr/share/applications/vlc.desktop:
Exec=env MESA_LOADER_DRIVER_OVERRIDE=i965 /usr/bin/vlc --started-from-file %U
Run Code Online (Sandbox Code Playgroud)
如果您想为所有应用程序全局设置它,请将此行添加到文件中/etc/environment:
MESA_LOADER_DRIVER_OVERRIDE=i965
Run Code Online (Sandbox Code Playgroud)
对于像我这样对 Parsa Mousavi 的答案没有运气的人来说,仍然有一种可能性:删除该~/.config/vlc/文件夹,然后像往常一样重新尝试使用 VLC。至少这对我有用!
| 归档时间: |
|
| 查看次数: |
5954 次 |
| 最近记录: |