[ 已解决 ]libGL error: failed to load driver: swrast

问题解决:

运行dota2出现的
好吧,之前在12.3也遇到过,模糊记得是装一个什么包
但是包名实在是想不起了
我来问问有没有人知道呢?

an@linux-A:~> glxinfo | head -n 10
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: ATI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 


linux-A:~ # modinfo amd
filename:       /lib/modules/3.11.6-4-desktop/kernel/drivers/net/phy/amd.ko
license:        GPL
author:         Heiko Schocher <hs@denx.de>
description:    AMD PHY driver
srcversion:     F033FABCD3CBE377853BF57
alias:          mdio:0000000000100010010101100001????
depends:        libphy
intree:         Y
vermagic:       3.11.6-4-desktop SMP preempt mod_unload modversions 

完整启动日志:

Running Steam on   64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
unlinked 0 orphaned pipes
removing stale semaphore last operated on by process 3711 with name 0eBlobRegistryMutex_D9B7F910C75A371542E6EB5C55B0D2ED
removing stale semaphore last operated on by process 3711 with name 0eBlobRegistrySignal_D9B7F910C75A371542E6EB5C55B0D2ED
removing stale semaphore last operated on by process 3711 with name 0emSteamEngineInstance
removing stale semaphore last operated on by process 3711 with name 0eSteamEngineLock

(steam:4327): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“oxygen-gtk”,

(steam:4327): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“oxygen-gtk”,
Installing breakpad exception handler for appid(steam)/version(1383158641_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
[1123/112546:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.

For more information visit https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457.
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
PulseAudio connect failed (used only for Mic Volume Control) with error: 拒绝访问
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Generating new string page texture 2: 48x256, total string texture memory is 49.15 KB
Generating new string page texture 3: 256x256, total string texture memory is 311.30 KB
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
local (potentially out of sync) copy of roaming config loaded - 348 bytes.

** (steam:4327): WARNING **: replace_settings: error updating connection /org/freedesktop/NetworkManager/Settings/0 settings: (1) type
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Adding license for package 0
Adding license for package 25507
Adding license for package 34953
Adding license for package 35058
roaming config store loaded successfully - 348 bytes.
migrating temporary roaming config store
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
ExecCommandLine: "/home/an/.local/share/Steam/ubuntu12_32/steam steam://rungameid/570"
ExecSteamURL: "steam://rungameid/570"
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
System startup time: 12.43 seconds
Running Steam on   64-bit
STEAM_RUNTIME has been set by the user to: /home/an/.local/share/Steam/ubuntu12_32/steam-runtime
ExecCommandLine: "/home/an/.steam/root/ubuntu12_32/steam steam://open/driverhelperready"
ExecSteamURL: "steam://open/driverhelperready"
Generating new string page texture 65: 128x256, total string texture memory is 442.37 KB
Installing breakpad exception handler for appid(steam)/version(1383158641_client)
Game update: AppID 570 "Dota 2", ProcID 4439, IP 0.0.0.0:0

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

(steam:4327): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
PROBLEM: You appear to have OpenGL 1.4.0, but we need at least 2.0.0!
Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.
Steam: An X Error occurred
X Error of failed request:  GLXBadContextState
Major opcode of failed request:  155 (GLX)
Minor opcode of failed request:  145
Serial number of failed request:  11487
xerror_handler: X failed, continuing
[xcb] Too much data requested from _XRead
[xcb] This is most likely caused by a broken X extension library
[xcb] Aborting, sorry about that.
steam: ../../src/xcb_io.c:735: _XRead: Assertion `!xcb_xlib_too_much_data_requested' failed.
[2013-11-23 11:25:44] Startup - updater built Oct 30 2013 11:07:41
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2013-11-23 11:25:44] Checking for update on startup
[2013-11-23 11:25:44] Checking for available updates...
[2013-11-23 11:25:45] Download skipped: /client/steam_client_ubuntu12 version 1383158641, installed version 1383158641
[2013-11-23 11:25:45] Nothing to do
[2013-11-23 11:25:45] Verifying installation...
[2013-11-23 11:25:45] Performing checksum verification of executable files
[2013-11-23 11:25:46] Verification complete
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20131123112544_1.dmp
/home/an/.local/share/Steam/steam.sh: 行 722:  4327 已放弃               $STEAM_DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported, or your OpenGL driver needs to be updated.

问 google。消息本身已经没法再简单地已经告诉你跟 libGL 和 swrast 有关了,还搜不到那只能说你命里没有 dota 2。

来自 Galaxy Note 2 上的 Tapatalk 4

好吧,我一直在找之前解决了的那个文章。。一直没找到。。

没记错应该是 Mesa-32bit。

这个确实是装了的

linux-A:~ # rpm -qa | grep Mesa-32bit
Mesa-32bit-9.2.2-61.6.1.x86_64
linux-A:~ # rpm -qa | grep Mesa
Mesa-libGL1-32bit-9.2.2-61.6.1.x86_64
Mesa-libGL1-9.2.2-61.6.1.x86_64
DirectFB-Mesa-1.6.3-4.1.3.x86_64
Mesa-libglapi0-9.2.2-61.6.1.x86_64
Mesa-libGLESv2-2-9.2.2-61.6.1.x86_64
Mesa-libEGL1-9.2.2-61.6.1.x86_64
Mesa-demo-x-8.1.0-4.1.2.x86_64
Mesa-libglapi0-32bit-9.2.2-61.6.1.x86_64
Mesa-32bit-9.2.2-61.6.1.x86_64
Mesa-9.2.2-61.6.1.x86_64
Mesa-libEGL1-32bit-9.2.2-61.6.1.x86_64

是否是需要做个软链接来着?

linux-A:~ # ldconfig -p | grep libGL.so
        libGL.so.1 (libc6,x86-64) => /usr/lib64/libGL.so.1
        libGL.so.1 (libc6) => /usr/lib/libGL.so.1
        libGL.so (libc6,x86-64) => /usr/lib64/libGL.so
        libGL.so (libc6) => /usr/lib/libGL.so

那你就自己找吧。/usr/lib/dri/swrast_dri.so 是 Mesa-32bit 软件包里的。你要装了这个 driver 是存在的。

/usr/lib/dri/swrast_dri.so 这个是有的,我总感觉差个包还是软链接,我好好想想 好好想想

linux-A:~ # ls /usr/lib/dri/
fglrx_dri.so  nouveau_dri.so        r300_dri.so    radeonsi_dri.so
i915_dri.so   nouveau_vieux_dri.so  r600_dri.so    swrast_dri.so
i965_dri.so   r200_dri.so           radeon_dri.so  vmwgfx_dri.so

找着原因了,驱动版本的问题,升级到 AMD 最新的驱动 AMD Catalyst™ 13.11 LINUX Beta V9.4 Driver 问题解决

同时我也想起了 12.3 装的那个包是 fglrx

附问题解决的链接:http://forums.opensuse.org/english/get-technical-help-here/hardware/492181-amd-catalyst-fglrx-13-11-beta-6-beta-1-opensuse-13-1-a-2.html