Java 模拟器:glClear:466 GL 错误 0x502
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48061593/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Emulator: glClear:466 GL err 0x502
提问by Galvin Gan
How to solve the Android Studio 3.0.1 Emulator
?
怎么解决Android Studio 3.0.1 Emulator
?
When I start to run the project with virtual device
, the error start showing (Emulator: glClear:466 GL err 0x502)
.
当我开始使用 运行项目时virtual device
,错误开始显示(Emulator: glClear:466 GL err 0x502)
.
The virtual device keep on blinking whenever by clicking it.
单击虚拟设备时,它会一直闪烁。
Thanks in advance...
提前致谢...
回答by Mike
I'm not sure if this counts as an answer or a work around. Yesterday after updating the emulator in Android Studio to version 27.0.2 under SDK Tools I received the exact same error on all of my AVDs. The error appeared on multiple windows laptops I have running Android Studio whenever I started any virtual device in the emulator. The only things I had done to both the laptops in the last day was update Android Studio and I ran a general Windows update.
我不确定这是否算作答案或解决方法。昨天在 SDK 工具下将 Android Studio 中的模拟器更新到版本 27.0.2 后,我在所有 AVD 上都收到了完全相同的错误。每当我在模拟器中启动任何虚拟设备时,该错误都会出现在我运行 Android Studio 的多台 Windows 笔记本电脑上。我在最后一天对两台笔记本电脑所做的唯一事情就是更新 Android Studio 并且我运行了一般的 Windows 更新。
After some testing I found that if I change the configuration on the virtual devices in the emulator under "Emulated Performance - Graphics" so they use Software GLES 1.1 the error goes away. Before that I had the default setting of Automatic. I tested starting up the virtual devices with the Emulated Performance Graphics setting on Hardware GLES 2.0 and the error came back. No hardware or display drivers were changed on either of my laptops so no idea why the error came up all of a sudden after the Emulator update.
经过一些测试,我发现如果我在“模拟性能 - 图形”下更改模拟器中虚拟设备的配置,以便他们使用软件 GLES 1.1,错误就会消失。在此之前,我的默认设置为自动。我在硬件 GLES 2.0 上测试了使用仿真性能图形设置启动虚拟设备,但错误又回来了。我的两台笔记本电脑上都没有更改硬件或显示驱动程序,所以不知道为什么在模拟器更新后突然出现错误。
回答by Sreeraj TR
回答by neeraj bahmania
I faced the same problem after upgrading to Android studio 3.0.1. I was using emulator Nexus_6P_API_23 where screen started flickering after upgrade. To be precise, screen was toggling up-side down and reverse.
升级到 Android studio 3.0.1 后,我遇到了同样的问题。我正在使用模拟器 Nexus_6P_API_23,升级后屏幕开始闪烁。准确地说,屏幕正在上下颠倒和反转。
Following changes solved the problem making two changes in emulator settings:
以下更改解决了在模拟器设置中进行两项更改的问题:
- "Emulated Performance - Graphics" -> Software - GLES 2.0
- Memory RAM increased to 3072 MB
- “模拟性能 - 图形” -> 软件 - GLES 2.0
- 内存 RAM 增加到 3072 MB
回答by Russell Juma
Updated my video card drivers by downloading them directly from Nvidia, solved the issue. Changing Emulated Performance - Graphics" -> Software - GLES 2.0 will causes the virtual device to lag. Hardware acceleration is the way to go.
通过直接从 Nvidia 下载更新我的视频卡驱动程序,解决了问题。更改模拟性能 - 图形” -> 软件 - GLES 2.0 将导致虚拟设备滞后。硬件加速是要走的路。
回答by pharid
Ya I was faced same problem before. Try this
是的,我之前也遇到过同样的问题。尝试这个
Change the Emulated Performance to Software - GLES 2.0
increase the RAM to 3044MB
将模拟性能更改为软件 - GLES 2.0
将内存增加到 3044MB
I hope this will help you.
我希望这能帮到您。
回答by Kkloe
I get this when I have started Firefox and afterwards started the emulator in Adnroid studio, seems that Firefox hogs som resource or that the resource is not sharable. It starts with that the event log spits out:
当我启动 Firefox 并随后在 Adnroid studio 中启动模拟器时,我得到了这个,似乎 Firefox 占用了一些资源或者资源不可共享。它始于事件日志吐出:
07:31 Emulator: libpng warning: iCCP: known incorrect sRGB profile
07:31 模拟器:libpng 警告:iCCP:已知不正确的 sRGB 配置文件
07:31 Emulator: libpng warning: iCCP: known incorrect sRGB profile
07:31 模拟器:libpng 警告:iCCP:已知不正确的 sRGB 配置文件
Usually ends with Emulator: glClear:470 GL err 0x506 and the emulator dies.
通常以 Emulator: glClear:470 GL err 0x506 结束,并且模拟器死机。
My workaround, dont have firefox open when I start the emulator, opening firefox after doesnt now cause this error
我的解决方法,当我启动模拟器时不要打开 Firefox,现在打开 Firefox 后不会导致此错误
Running system, Win10 latest patches as this date and firefox 60.0.2 (64-bit) and android studio 3.1.4
运行系统,Win10最新补丁为当前日期和firefox 60.0.2(64位)和android studio 3.1.4
回答by BenR
I was getting this ambiguous error, specifically when glLinkProgram(programId)
was being called, and none of these solutions resolved the issue. My problem turned out to be that I didn't correctly set up my shader program. I used glCreateShader(GL_VERTEX_SHADER)
for both my vertex and fragment shaders. After I corrected the mistake, the error stopped showing up.
我收到了这个模棱两可的错误,特别glLinkProgram(programId)
是在被调用时,这些解决方案都没有解决这个问题。我的问题原来是我没有正确设置我的着色器程序。我用于glCreateShader(GL_VERTEX_SHADER)
我的顶点和片段着色器。在我纠正错误后,错误不再出现。