You are not logged in.

#1 2016-05-30 18:14:01

LabdaABeta676
Member
From: Ottawa, Ontario
Registered: 2016-05-22
Posts: 5
Website

Issue with Android Studio virtual devices not finding i965_dri.so

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

#2 2016-06-01 09:01:45

lordnaikon
Member
Registered: 2014-09-30
Posts: 34

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#3 2016-06-01 09:36:05

lordnaikon
Member
Registered: 2014-09-30
Posts: 34

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#4 2016-08-07 20:27:34

bzhao
Member
Registered: 2015-10-31
Posts: 11

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#5 2016-08-21 20:12:28

sandstorm
Member
From: Zurich [CH] & Mannheim [DE]
Registered: 2005-08-13
Posts: 169

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#6 2016-08-27 15:32:51

loredin
Member
Registered: 2016-02-11
Posts: 2

Re: Issue with Android Studio virtual devices not finding i965_dri.so

Thx for solutions

Offline

#7 2016-08-28 05:36:49

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: Issue with Android Studio virtual devices not finding i965_dri.so

If your problem is solved, please mark your thread as [SOLVED]

Offline

#8 2016-10-08 09:01:40

mehdi
Member
Registered: 2016-10-05
Posts: 13

Re: Issue with Android Studio virtual devices not finding i965_dri.so

The proposed solution solved my problem too. It would be great if the OP or someone else changes the title to [SOLVED].

Offline

#9 2016-10-18 08:57:07

Gigabyte
Member
Registered: 2016-10-18
Posts: 1

Re: Issue with Android Studio virtual devices not finding i965_dri.so

its working..!! thnx

Offline

#10 2016-11-28 19:30:36

six2dez
Member
Registered: 2016-11-28
Posts: 1

Re: Issue with Android Studio virtual devices not finding i965_dri.so

bzhao wrote:

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

#11 2016-12-08 00:55:28

pontifechs
Member
Registered: 2016-12-08
Posts: 1

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#12 2016-12-16 07:43:39

konradx
Member
Registered: 2015-02-13
Posts: 2

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#13 2017-03-19 06:26:02

kitus
Member
Registered: 2017-03-11
Posts: 4

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#14 2017-11-07 10:15:04

733amir
Member
Registered: 2017-11-07
Posts: 1

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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

#15 2017-11-07 12:23:06

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: Issue with Android Studio virtual devices not finding i965_dri.so

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.

Offline

Board footer

Powered by FluxBB