Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Network/Core fixes #63

Merged
merged 6 commits into from
Jan 28, 2021
Merged

[Android] Network/Core fixes #63

merged 6 commits into from
Jan 28, 2021

Conversation

ShootingKing-AM
Copy link
Member

@ShootingKing-AM ShootingKing-AM commented Jan 28, 2021

  1. [Android] Fix ifaddrs returning empty linkedlist or Crash Android client crashes: StackCorrpution arround getifaddrs() and pthread_mutex_lock called on a destroyed mutex libGVR #43
    Using Android internal core ifaddrs to be safe. ifaddrs.h is nativly available from SDK_VER >= 24 but PVR_MIN_SDK_VER min is 21.

  2. [Android] Fix NullPointerException Attempt to invoke virtual method WindowsInsetsController [Issue] NullPointerException: Attempt to invoke virtual method WindowsInsetsController #60

  3. [Android] Fix OpenGLSL Error: #version must be on the first line [Issue] OpenGLSL Error: #version must be on the first line #61

  4. [Android] Updating ndk to r22 to Fix ndkTranslation crashes like, (updated appveyor.yml)
    Crash stacktrace:

pid: 10065, tid: 10136, name: GLThread 235  >>> viritualisres.phonevr <<<
uid: 10155
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
    eax 00257100  ebx da946db4  ecx 00000008  edx 00000002
    edi ac68dbb0  esi 00000080
    ebp ac68d948  esp ac68d910  eip da7e04fb

backtrace:
      #00 pc 000de4fb  /system/lib/libndk_translation.so (ndk_translation::InsnInterpreter::FaultyStore(ndk_translation::DecoderReg, ndk_translation::DecoderReg)+395) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #01 pc 000e1dc6  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::ArmInterpreter::GenFaultyStore(int, int)+54) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #02 pc 000f6a68  /system/lib/libndk_translation.so (ndk_translation::SemanticsDecoder::STR_immediate(ndk_translation::STR_immediate_Args const&)+744) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #03 pc 0012cf9b  /system/lib/libndk_translation.so (ndk_translation::ArmDecoder::TranslateThumbInsn(unsigned short const*)+5995) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #04 pc 000e1700  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::DecodeInsn(unsigned int, ndk_translation::(anonymous namespace)::ArmInterpreter*, ndk_translation::ProcessState*, ndk_translation::ArmDecoder*)+128) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #05 pc 000e1934  /system/lib/libndk_translation.so (ndk_translation::InterpretTrace(ndk_translation::ProcessState*)+340) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #06 pc 000d1b32  /system/lib/libndk_translation.so (ndk_translation_HandleNotTranslated+194) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #07 pc 000cfffa  /system/lib/libndk_translation.so (ndk_translation::ExecuteGuest(ndk_translation::ProcessState*, unsigned int)+266) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #08 pc 000d0274  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestCall(unsigned int, int, int, unsigned int*)+260) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #09 pc 000d0399  /system/lib/libndk_translation.so (ndk_translation::GuestCall::RunResInt32(unsigned int)+41) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #10 pc 000cda44  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestThread(void*)+164) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #11 pc 000e42c4  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 57f4eb5e1df9fa8bd21032ad6be9823f)
      #12 pc 000785f7  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 57f4eb5e1df9fa8bd21032ad6be9823f)
  1. Log OpenGL-ES Description in pvrlog.txt, and

  2. Added missing network logging

  3. Update build.gradle and compatibility APIs

Using Android internal core ifaddrs to be safe. ifaddrs.h is nativly available from SDK_VER >= 24 but PVR_MIN_SDK_VER min is 21.
Fix NullPointerException: Attempt to invoke virtual method WindowsInsetsController
1. Log Opengl Description, and
2. FIx GLSL #version should be on first line of shader code.
Crash stacktrace:
```ml
pid: 10065, tid: 10136, name: GLThread 235  >>> viritualisres.phonevr <<<
uid: 10155
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
Cause: null pointer dereference
    eax 00257100  ebx da946db4  ecx 00000008  edx 00000002
    edi ac68dbb0  esi 00000080
    ebp ac68d948  esp ac68d910  eip da7e04fb

backtrace:
      #00 pc 000de4fb  /system/lib/libndk_translation.so (ndk_translation::InsnInterpreter::FaultyStore(ndk_translation::DecoderReg, ndk_translation::DecoderReg)+395) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #1 pc 000e1dc6  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::ArmInterpreter::GenFaultyStore(int, int)+54) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #2 pc 000f6a68  /system/lib/libndk_translation.so (ndk_translation::SemanticsDecoder::STR_immediate(ndk_translation::STR_immediate_Args const&)+744) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #3 pc 0012cf9b  /system/lib/libndk_translation.so (ndk_translation::ArmDecoder::TranslateThumbInsn(unsigned short const*)+5995) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #4 pc 000e1700  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::DecodeInsn(unsigned int, ndk_translation::(anonymous namespace)::ArmInterpreter*, ndk_translation::ProcessState*, ndk_translation::ArmDecoder*)+128) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #5 pc 000e1934  /system/lib/libndk_translation.so (ndk_translation::InterpretTrace(ndk_translation::ProcessState*)+340) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #6 pc 000d1b32  /system/lib/libndk_translation.so (ndk_translation_HandleNotTranslated+194) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #7 pc 000cfffa  /system/lib/libndk_translation.so (ndk_translation::ExecuteGuest(ndk_translation::ProcessState*, unsigned int)+266) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #8 pc 000d0274  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestCall(unsigned int, int, int, unsigned int*)+260) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #9 pc 000d0399  /system/lib/libndk_translation.so (ndk_translation::GuestCall::RunResInt32(unsigned int)+41) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #10 pc 000cda44  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::RunGuestThread(void*)+164) (BuildId: 1962273ccbeb69757878abf4e17d95aa)
      #11 pc 000e42c4  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 57f4eb5e1df9fa8bd21032ad6be9823f)
      #12 pc 000785f7  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 57f4eb5e1df9fa8bd21032ad6be9823f)
```

Updating ndk to r22 fixes this crash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature improvement or request fix Code fixes
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant