Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

glTexImage2D: got err pre :( 0x506 internal 0x1908 format 0x1908 type 0x1401

When running my emulator with Android Studio I can't see anything on the emulator screen (everything is black). I get the following Event Log:

Emulator:glTexImage2D: got err pre :( 0x506 internal 0x1908 format 0x1908 type 0x1401

I already tried to clean the project and rebuild it but nothing happened. I think it's something related just with the emulator.

Does anyone know what's going on?

like image 770
Simone Porcu Avatar asked May 30 '18 02:05

Simone Porcu


4 Answers

As @SirQuickWay's solution didn't work for me I had to change OpenGL ES Renderer and OpenGL ES API level in the emulator settings to SwiftShader and Renderer Maximum respectively. You can find these settings here:

Emulator bar > ... > Settings > Advanced (tab) like this: Android Emulator OpenGL settings

EDIT: Restart of the emulator is required after applying the settings.

like image 200
MrPeny Avatar answered Oct 04 '22 13:10

MrPeny


Yes, it's all about the emulator.

Go to Tools > AVD manager > (Edit a specific Virtual Device) > Select Cold boot

Then run again your project with that AVD. Close the session and set again Quick boot in Boot option.

like image 33
Simone Porcu Avatar answered Oct 04 '22 13:10

Simone Porcu


My emulator was working well and then it crashed with a black screen. After that it always started with a black screen. So I went to Tools > AVD Manager > Virtual device configuration and clicked on down arrow of the last working device, made a "duplicate" of the device and deleted the original device. The new "duplicate" emulator worked.

like image 33
Subhash P Avatar answered Oct 04 '22 12:10

Subhash P


My solution was to change the Emulator bar > Settings > Advanced > OpenGL ES Render change it to SwiftShader then in the same Window change OpenGL API Level to Renderer Maximum then duplicate the emulator and launch it again.

like image 36
Raed Avatar answered Oct 04 '22 11:10

Raed