You are not logged in.

#1 2016-03-06 12:47:03

manabreak
Member
Registered: 2016-03-06
Posts: 2

Android AVD emulator - libGL errors (using Radeon R280)

Hi all, I'm trying to launch an Android emulator, but I get a bunch of GL-related errors. The output from the AVD is this:

Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
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:  156 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  55
  Current serial number in output stream:  54
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
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:  156 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  55
  Current serial number in output stream:  54
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  156 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40
QObject::~QObject: Timers cannot be stopped from another thread

What's going on in here? How do I fix this?

Last edited by manabreak (2016-03-06 13:55:09)

Offline

#2 2016-03-06 13:12:46

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

Re: Android AVD emulator - libGL errors (using Radeon R280)

Please use code tags when pasting terminal output.

What is AVD? Where did you get it from? Is it a 32-bit binary? If so, have you enabled multilib on your system (if you're on 64-bit) and installed the 32-bit libraries for your system?


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

#3 2016-03-06 13:54:31

manabreak
Member
Registered: 2016-03-06
Posts: 2

Re: Android AVD emulator - libGL errors (using Radeon R280)

WorMzy wrote:

Please use code tags when pasting terminal output.

What is AVD? Where did you get it from? Is it a 32-bit binary? If so, have you enabled multilib on your system (if you're on 64-bit) and installed the 32-bit libraries for your system?

AVD stands for Android Virtual Device. They come along with Android development tools via Android SDK manager.

Offline

#4 2016-04-08 10:19:57

exoticorn
Member
Registered: 2016-04-08
Posts: 1

Re: Android AVD emulator - libGL errors (using Radeon R280)

The problem here is basically the same as for steam. (See https://wiki.archlinux.org/index.php/St … me_issues)

In short: The Android SDK ships it's own copy of libstdc++.so.6 in Sdk/tools/lib64/libstdc++. I got the emulator to run by deleting/renaming the libstdc++ folder. The other solutions from the Steam wiki page might work as well.
If you are not comfortable messing with the SDK's libstdc++ your last option is to configure the AVD to use software GLES 2.0, which will give you a working, if somewhat slow, emulator.

Offline

#5 2016-05-10 07:45:44

v0!d
Member
Registered: 2016-04-20
Posts: 2

Re: Android AVD emulator - libGL errors (using Radeon R280)

Renaming worked.

Thanks!

Offline

Board footer

Powered by FluxBB