Android PhoneGap Eclipse 问题 - eglCodecCommon glUtilsParamSize:未知参数错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22348801/
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
PhoneGap Eclipse Issue - eglCodecCommon glUtilsParamSize: unknow param errors
提问by Amit
I have just started on phonegap and trying to setup first basic minimal project in eclipse. I followed through the phonegap docs at http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html#Android%20Platform%20Guide
我刚刚开始使用 phonegap 并尝试在 eclipse 中设置第一个基本的最小项目。我遵循了http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html#Android%20Platform%20Guide 上的 phonegap 文档
but I am getting continuous errors like these. Any pointer to fix this would be helpful. thx
但我不断收到这样的错误。任何解决此问题的指针都会有所帮助。谢谢
03-12 06:08:05.970: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:05.980: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:06.080: I/chromium(825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
03-12 06:08:06.280: I/chromium(825): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
03-12 06:08:06.660: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.660: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.720: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:06.720: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:06.760: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.760: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.800: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:06.810: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:06.870: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.870: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.890: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:06.890: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:06.930: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.940: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:06.960: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:06.980: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:07.180: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:07.180: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:07.210: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000b44
03-12 06:08:07.240: E/eglCodecCommon(825): glUtilsParamSize: unknow param 0x00000bd0
03-12 06:08:07.320: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
03-12 06:08:07.320: E/eglCodecCommon(825): **** ERROR unknown type 0x0 (glSizeof,72)
回答by theczechsensation
This is caused if you use the "Use host GPU" setting of the emulator and it will disappear after you uncheck this option. If you still need "Use host GPU", you can just filter out the errors by customizing the Logcat Filter. Enter ^(?!eglCodecCommon)
into the "by Log Tag (regex)" field in order to strip out the unwanted lines from the Logcat output.
这是如果您使用模拟器的“使用主机 GPU”设置引起的,取消选中此选项后它将消失。如果您仍然需要“使用主机 GPU”,您可以通过自定义 Logcat 过滤器来过滤掉错误。进入^(?!eglCodecCommon)
“by Log Tag (regex)”字段以从 Logcat 输出中去除不需要的行。
回答by superbAfterSemperPhi
This is an error that you see when your emulator has the "Use host GPU" setting checked. If you uncheck it then the error goes away. Of course, then your emulator is not as responsive anymore.
这是您在模拟器选中“使用主机 GPU”设置时看到的错误。如果您取消选中它,那么错误就会消失。当然,那么你的模拟器就不再那么灵敏了。
回答by SlugFiller
For those who like to work close to the metal, here is a command that will clear out the unwanted soot, without needing any special tools or scripts:
对于那些喜欢在金属附近工作的人,这里有一个命令可以清除不需要的烟灰,而无需任何特殊工具或脚本:
adb logcat "eglCodecCommon:S"
回答by S. Gissel
@theczechsensation's solution is already half way there.
@theczechsensation 的解决方案已经完成了一半。
For those who like to exclude noisy log messages andkeep the log to their app only this is the solution:
对于那些喜欢排除嘈杂的日志消息并将日志保留在他们的应用程序中的人来说,这就是解决方案:
Add your exclusions to Log Taglike this: ^(?!(eglCodecCommon|tagToExclude))
像这样将排除项添加到日志标签:^(?!(eglCodecCommon|tagToExclude))
Add your package name or prefix to Package Name: com.mycompany.
将您的包名称或前缀添加到包名称:com.mycompany。
This way it is possible to filter for as many strings you like andkeep the log to your package.
通过这种方式,可以过滤尽可能多的字符串你喜欢和日志保存到你的包。
回答by Levchik
I Get the same message, when using Intel XHAM emulator (instead of ARM) and have "Use Host GPU" option enabled. I belive when you disable it, it goes away.
当使用 Intel XHAM 模拟器(而不是 ARM)并启用“使用主机 GPU”选项时,我收到相同的消息。我相信当你禁用它时,它就会消失。
回答by superarts.org
It's very annoying. I'm not sure why Google places it there - no one needs these trash from emulator at all; we know what we are doing. I'm using pidcat
and I modified it a bitBUG_LINE = re.compile(r'.*nativeGetEnabledTags.*')
BUG_LINE2 = re.compile(r'.*glUtilsParamSize.*')
BUG_LINE3 = re.compile(r'.*glSizeof.*')
这很烦人。我不知道为什么谷歌把它放在那里——根本没有人需要模拟器中的这些垃圾;我们知道我们在做什么。我正在使用pidcat
,我修改了一下BUG_LINE = re.compile(r'.*nativeGetEnabledTags.*')
BUG_LINE2 = re.compile(r'.*glUtilsParamSize.*')
BUG_LINE3 = re.compile(r'.*glSizeof.*')
andbug_line = BUG_LINE.match(line)
if bug_line is not None:
continue
bug_line2 = BUG_LINE2.match(line)
if bug_line2 is not None:
continue
bug_line3 = BUG_LINE3.match(line)
if bug_line3 is not None:
continue
和bug_line = BUG_LINE.match(line)
if bug_line is not None:
continue
bug_line2 = BUG_LINE2.match(line)
if bug_line2 is not None:
continue
bug_line3 = BUG_LINE3.match(line)
if bug_line3 is not None:
continue
It's an ugly fix and if you're using the real device you may need those OpenGL errors, but you got the idea.
这是一个丑陋的修复,如果您使用的是真实设备,您可能需要那些 OpenGL 错误,但您明白了。