【求官方解答】WebGL在android设备上崩溃【有崩溃日志】
发布于 7 年前 作者 xiongxiuying 6129 次浏览 来自 问答

在ios设备和开发者工具上正常,但是在所有android设备上均会闪退

08-01 19:26:27.151 12248-12521/? A/MicroMsg_Crash: Process:            com.tencent.mm:appbrand0

    Crash Thread:       12521(total:136)

    Date/Time:          2108-08-01 +8.00 19:26:27.090

    Live Time:          10s

    Device:             NEM-TL00H android-23

    Exception info:     

    Siginfo:            errno:0, pid:8, uid:0, process:UNKNOWN

08-01 19:26:27.151 12248-12521/? I/crash: after unwind signal thread

08-01 19:26:27.151 12248-12521/? A/MicroMsg_Crash: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

    Build fingerprint: HONOR/NEM-TL00H/HNNEM-H:6.0/HONORNEM-TL00H/C00B203:user/release-keys

    pid: 12248, tid: 12521  >>> com.tencent.mm:appbrand0 <<<

    signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000008

08-01 19:26:27.273 12248-12521/? I/crash: after dump thread backtrace

08-01 19:26:27.273 12248-12521/? A/MicroMsg_Crash:   #00  pc 0xef230  /data/data/com.tencent.mm/tinker/patch-9e1ea20f/lib/lib/armeabi/libmagicbrush.so (V8ObjHolder::getObj()+11)

      #01  pc 0xc5175  /data/data/com.tencent.mm/tinker/patch-9e1ea20f/lib/lib/armeabi/libmagicbrush.so (EJBindingCanvasContextWebGL::getParameter(v8::Local<v8::Value>)+876)

      #02  pc 0xd51ab  /data/data/com.tencent.mm/tinker/patch-9e1ea20f/lib/lib/armeabi/libmagicbrush.so (v8pp::detail::function_traits<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Value>)>::return_type v8pp::detail::call_from_v8_impl<EJBindingCanvasContextWebGL, v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Value>), v8pp::detail::call_from_v8_traits<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::+38)

      #03  pc 0xd5131  /data/data/com.tencent.mm/tinker/patch-9e1ea20f/lib/lib/armeabi/libmagicbrush.so (std::__ndk1::enable_if<std::is_member_function_pointer<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Value>)>::value, v8pp::detail::funct

    on_traits<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Value>)>::return_type>::type v8pp::detail::invoke<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Valu+48)

      #04  pc 0xd5045  /data/data/com.tencent.mm/tinker/patch-9e1ea20f/lib/lib/armeabi/libmagicbrush.so (void v8pp::detail::forward_function<v8::Local<v8::Value> (EJBindingCanvasContextWebGL::*)(v8::Local<v8::Value>), false>(v8::FunctionCallbackInfo<v8::Value> const&)+48)

      #05  pc 0x6612af  /data/app/com.tencent.mm-2/lib/arm/libmmv8.so (v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))+122)

      #06  pc 0x6a411f  /data/app/com.tencent.mm-2/lib/arm/libmmv8.so (???)

      #07  pc 0x6a4431  /data/app/com.tencent.mm-2/lib/arm/libmmv8.so (???)

      #08  pc 0x6a45dd  /data/app/com.tencent.mm-2/lib/arm/libmmv8.so (v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*)+48)

      #09  pc 0x98  <unknown> (???)

08-01 19:26:27.273 12248-12521/? I/crash: after dump stack

以上是崩溃日志,麻烦有官方人员能确认下这个异常吗?

2 回复

我找到了问题,是关于android平台下对WebGL的扩展OES_vertex_array_object支持有问题

this.nativeVaoExtension = gl.getExtension(‘OES_vertex_array_object’) || gl.getExtension(‘MOZ_OES_vertex_array_object’) || gl.getExtension(‘WEBKIT_OES_vertex_array_object’);

通过以上代码检查到android平台不支持vao。

请问这个是bug还是android下不会支持vao?

谢谢。

回到顶部