You are not logged in.
Pages: 1
Topic closed
I thought I installed all my drivers properly, as per the wiki, but when I finally got android studio working (that was a hassle!) I get a popup window saying:
Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
emulator: WARNING: VM heap size set below hardware specified minimum of 228MB
X Error of failed request: BadValue (integer parameter out of range for operation)
emulator: WARNING: Setting VM heap size to 384MB
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34
QObject::~QObject: Timers cannot be stopped from another thread
I tried the common solution of copying the required .so file from /usr/lib/dri, but noticed that the only .so file there was dummy_drv_video.so. I feel like this is an issue with driver installation, but I don't know how to diagnose and resolve such an issue.
Any advice?
Offline
i have the same issue but no direct solution. you could however turn of the hardware acceleration for the graphics, but this results to a significant decrease in performance.
i'll use my device now until it gets resolved.
-- read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code [jwr] --
Last edited by lordnaikon (2016-06-01 09:07:10)
Offline
Ok looks like in the recent android studio update, google used a libstdc++ incompatible with the intel driver installed on the system.
[dustin@dustin-linux:tools]$ LIBGL_DEBUG=verbose ./emulator
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so
libGL: dlopen /usr/lib/xorg/modules/dri/i965_dri.so failed (/home/dustin/opt/android-studio/sdk/tools/lib64/libstdc++/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/xorg/modules/dri/i965_dri.so))
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/swrast_dri.so
libGL: dlopen /usr/lib/xorg/modules/dri/swrast_dri.so failed (/home/dustin/opt/android-studio/sdk/tools/lib64/libstdc++/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/xorg/modules/dri/swrast_dri.so))
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (use -list-avds to print available ones).
Otherwise, follow the instructions in -help-disk-images to start the emulator
so basically i renamed the "android-studio/sdk/tools/lib64/libstdc++/libstdc++.so.6" file so it has to use the system ones ... that basically does the trick – for me.
Last edited by lordnaikon (2016-06-01 09:39:15)
Offline
what lordnaikon was saying is correct.
the command of
ln -sf /usr/lib/libstdc++.so.6 tools/lib64/libstdc++/libstdc++.so.6
will solve this problem
Offline
You could also start the device with the system libs, but need to do it from the command line.
1. Start your AVD, the error is shown
2. Start terminal, enter /opt/android-sdk/tools/emulator -avd Nexus_5X_API_23_x86 -use-system-libs
3. Start your AVD again, it connects now
Offline
Thx for solutions
Offline
If your problem is solved, please mark your thread as [SOLVED]
Offline
The proposed solution solved my problem too. It would be great if the OP or someone else changes the title to [SOLVED].
Offline
its working..!! thnx
Offline
what lordnaikon was saying is correct.
the command of
ln -sf /usr/lib/libstdc++.so.6 tools/lib64/libstdc++/libstdc++.so.6
will solve this problem
It works for me, thanks
Offline
The solution still works, however on my system, the path was not under /opt/android-studio.
It was under ~/Android/Sdk instead. So ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6
Offline
The path depends on installation method:
/opt/android_studio with AUR
~/Android/Sdk with upstream zip package
see Note at: https://wiki.archlinux.org/index.php/an … components
Offline
i copy the response from aur repository https://aur.archlinux.org/packages/android-studio/ at the "albfan commented on 2017-02-21 03:38" comment
$ cd $ANDROID_SDK_HOME/tools/lib64/libstdc++/
$ mkdir old
$ mv * old/
$ ln -s /usr/lib/libstdc++.so.6
$ ln -s /usr/lib/libstdc++.so.6.0.22
it works for me ...xD
THANKS TO ALBFAN Solution
Offline
I am using Android Studio 3 and the path is changed. Instead of $ANDROID_SDK_HOME/tools/lib64/libstdc++/ you have to use, $ANDROID_SDK_HOME/emulator/lib64/libstdc++/ .
Or you can simply use
ln -sf /usr/lib/libstdc++.so.6* $ANDROID_SDK_HOME/emulator/lib64/libstdc++/
Offline
Thanks for sharing.
I am going to go ahead and close this old topic now.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
Pages: 1
Topic closed