当前位置: 首页>>技术问答>>正文


OpenGL GLX上下文不使用直接渲染,这可能会导致性能问题。 (蒸汽)AMD DRIVER

, , , , ,

问题描述

当我在终端中启动蒸汽时,我收到以下错误消息


charlie@SteamMPL:~$ steam
rm: no se puede borrar «/home/charlie/.steam/steam»: Es un directorio
rm: no se puede borrar «/home/charlie/.steam/bin»: Es un directorio
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
[2014-08-03 11:50:13] Startup - updater built Jul 15 2014 18:14:26
Installing breakpad exception handler for appid(steam)/version(1405474565_client)
libGL error: failed to load driver: swrast
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1405474565_client)
[2014-08-03 11:50:14] Checking for update on startup
[2014-08-03 11:50:14] Buscando actualizaciones disponibles...
Installing breakpad exception handler for appid(steam)/version(1405474565_client)
[2014-08-03 11:50:14] Download skipped: /client/steam_client_ubuntu12 version 1405474565, installed version 1405474565
[2014-08-03 11:50:14] Nothing to do
[2014-08-03 11:50:14] Verificando instalación...
[2014-08-03 11:50:14] Performing checksum verification of executable files
[2014-08-03 11:50:15] Verification complete
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
Installing breakpad exception handler for appid(steam)/version(1405474565_client)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[0803/115015:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
libGL error: failed to load driver: swrast
Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.

硬件信息:

  • CPU:AMD Athlon x4 760k

  • GPU:AMD Radeon R7 250 1 GB GDDR5(驱动程序:Catalyst 14.4)

  • RAM:8 GB DDR3 1600

我该怎么做才能绕过这个问题?

最佳解决方案

Steam附带了它自己的gcc库,这些库已经过时,并且不适用于具有较新库的发行版。有关详细信息,请查看:https://wiki.archlinux.org/index.php/steam#Steam_runtime_issues

要在Ubuntu 14.04上解决您的问题,请关闭Steam并运行:

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1

在14.10,路径发生了变化,命令类似:

rm ~/.steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
rm ~/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6
rm ~/.steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1

要么

rm ~/.steam/bin32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
rm ~/.steam/bin32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6
rm ~/.steam/bin32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
rm ~/.steam/bin32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.steam/bin32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1

次佳解决方案

我做了以下

$ tar cjvf ~/.steam/gcc_libs_backup.tar.bz2 $(find ~/.steam | grep -e libstdc++ -e libgcc_s) && rm $(find ~/.steam | grep -e libstdc++ -e libgcc_s)

然后一切正常。如果有必要,您将在~/.steam/gcc_libs_backup.tar.bz2中备份库

第三种解决方案

同样的错误发生在我身上,问题在于amd驱动程序。尝试执行以下操作:卸载蒸汽卸载amd驱动程序安装蒸汽启动蒸汽设置一切安装amd驱动程序希望它有所帮助

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/3002.html,未经允许,请勿转载。