SurfaceView正在触发NDK崩溃信号11(SIGSEGV),代码1(SEGV_MAPERR)

时间:2019-08-08 12:44:25

标签: android android-ndk surfaceview segmentation-fault

我不知道问题的重现方式,因为它来自本机库,并且仅适用于实时用户。但是我怀疑它是从SurfaceView中获取的,就像它的后堆栈所示。

设备详细信息:

Oppo realme 3Pro(RMX1851),Android 9

  

错误

信号11(SIGSEGV),代码1(SEGV_MAPERR)android :: SurfaceComposerClient :: Transaction :: getLayerState(android :: sp const&)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.test.surfaceview <<<

backtrace:
  #00  pc 00000000000979c4  /system/lib64/libgui.so (android::SurfaceComposerClient::Transaction::getLayerState(android::sp<android::SurfaceControl> const&)+416)
  #01  pc 0000000000098030  /system/lib64/libgui.so (android::SurfaceComposerClient::Transaction::deferTransactionUntil(android::sp<android::SurfaceControl> const&, android::sp<android::Surface> const&, unsigned long)+48)
  #02  pc 000000000010b1e8  /system/lib64/libandroid_runtime.so (android::nativeDeferTransactionUntilSurface(_JNIEnv*, _jclass*, long, long, long, long)+100)
  #03  pc 0000000000416300  /system/framework/arm64/boot-framework.oat (android.view.SurfaceControl.nativeDeferTransactionUntilSurface+176)
  #04  pc 0000000000ba05c8  /system/framework/arm64/boot-framework.oat (android.view.SurfaceControl$Transaction.deferTransactionUntilSurface+136)
  #05  pc 0000000000d42a54  /system/framework/arm64/boot-framework.oat (android.view.SurfaceView.applySurfaceTransforms+132)
  #06  pc 0000000000d46ba0  /system/framework/arm64/boot-framework.oat (android.view.SurfaceView.updateSurfacePosition_renderWorker+752)
  #07  pc 000000000055ab88  /system/lib64/libart.so (art_quick_invoke_stub+584)
  #08  pc 00000000000d02c8  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
  #09  pc 000000000045f1f8  /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #10  pc 000000000046058c  /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+440)
  #11  pc 0000000000340fec  /system/lib64/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+656)
  #12  pc 00000000000c78e4  /system/lib64/libandroid_runtime.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+116)
  #13  pc 0000000000105abc  /system/lib64/libandroid_runtime.so (_ZZN7androidL46android_view_RenderNode_requestPositionUpdatesEP7_JNIEnvP8_jobjectlS3_EN26SurfaceViewPositionUpdater21doUpdatePositionAsyncEliiii+204)
  #14  pc 00000000002cef8c  /system/lib64/libhwui.so

我试图在很多情况下进行复制,但是我没有运气。

让我知道是否需要其他信息。

如果有关于如何解决或解决此问题的说明,那就太好了。

0 个答案:

没有答案