carsh Android 9.0 easyar recording with unity

+1 vote
asked May 28, 2019 by airaroh (420 points)
edited May 29, 2019 by airaroh
samsung galaxy 10 recording crash
error log
 

E/SecCameraCoreManager: checkTemperature (0)
E/AudioFlinger: AudioFlinger_APM : (AudioFlinger::openRecord) persist.app.permission.monitor is true
 JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.NoSuchMethodError: no non-static method "Landroid/opengl/EGLDisplay;.<init>(J)V"
 at boolean cn.easyar.engine.recorder.RecordNative.nativeInit(android.view.Surface, int, int, int) (RecordNative.java:-2)
at void cn.easyar.engine.recorder.RecordNative.<init>(android.view.Surface, int, int, int) (RecordNative.java:18)
at void cn.easyar.engine.recorder.TextureMovieEncoder.<init>(cn.easyar.engine.recorder.AVRecorderConfig) (TextureMovieEncoder.java:190)
at void cn.easyar.engine.recorder.SessionRecorder.prepareRecording() (SessionRecorder.java:114)
at void cn.easyar.engine.recorder.SessionRecorder.prepare() (SessionRecorder.java:419)
at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
   at boolean com.unity3d.player.UnityPlayer.c(com.unity3d.player.UnityPlayer) ((null):-1)
   at boolean com.unity3d.player.UnityPlayer$e$2.queueIdle() ((null):-1)
   at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:395)
   at void android.os.Looper.loop() (Looper.java:181)
   at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)
 
     in call to GetMethodID
     from boolean cn.easyar.engine.recorder.RecordNative.nativeInit(android.view.Surface, int, int, int)
 "UnityMain" prio=5 tid=15 Runnable
   | group="main" sCount=0 dsCount=0 flags=0 obj=0x15640b80 self=0xd4069e00
   | sysTid=11320 nice=0 cgrp=default sched=0/0 handle=0xcf940970
   | state=R schedstat=( 12079783230 107676851 8230 ) utm=970 stm=237 core=7 HZ=100
   | stack=0xcf83d000-0xcf83f000 stackSize=1042KB
   | held mutexes= "mutator lock"(shared held)
   native: #00 pc 002dc55f  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+134)
   native: #01 pc 0037244b  /system/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+210)
   native: #02 pc 0036ebaf  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34)
   native: #03 pc 00234c9b  /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+694)
   native: #04 pc 00234ffb  /system/lib/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+58)
   native: #05 pc 000c4583  /system/lib/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...)+42)
   native: #06 pc 000c3215  /system/lib/libart.so (art::(anonymous namespace)::ScopedCheck::CheckPossibleHeapValue(art::ScopedObjectAccess&, char, art::(anonymous namespace)::JniValueType)+1064)
   native: #07 pc 000c26f5  /system/lib/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*)+624)
   native: #08 pc 000c5c79  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::GetMethodIDInternal(char const*, _JNIEnv*, _jclass*, char const*, char const*, bool)+508)
   native: #09 pc 000b7237  /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::GetMethodID(_JNIEnv*, _jclass*, char const*, char const*)+22)
   native: #10 pc 0010fdeb  /data/app/com.airar.trickeye-v9vFyMBFlhedqzv35eM7rA==/lib/arm/libEasyAR.so (???)
   native: #11 pc 0011039f  /data/app/com.airar.trickeye-v9vFyMBFlhedqzv35eM7rA==/lib/arm/libEasyAR.so (Java_cn_easyar_engine_recorder_RecordNative_nativeInit+58)
   native: #12 pc 00415879  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
   native: #13 pc 00411375  /system/lib/libart.so (art_quick_invoke_stub_internal+68)
   native: #14 pc 003ea479  /system/lib/libart.so (art_quick_invoke_stub+224)
   native: #15 pc 000a1615  /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
   native: #16 pc 001e88c9  /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+236)
   native: #17 pc 001e33b7  /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+814)
   native: #18 pc 003e5f61  /system/lib/libart.so (MterpInvokeDirect+196)
   native: #19 pc 00404214  /system/lib/libart.so (ExecuteMterpImpl+14484)
   native: #20 pc 00180b70  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.airar.trickeye-v9vFyMBFlhedqzv35eM7rA==/base.apk_11289_11289 (deleted) (cn.easyar.engine.recorder.RecordNative.<init>+24)
   native: #21 pc 001c7b33  /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2760711098+378)
   native: #22 pc 001cc219  /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)
   native: #23 pc 001e339f  /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+790)
   native: #24 pc 003e5f61  /system/lib/libart.so (MterpInvokeDirect+196)
   native: #25 pc 00404214  /system/lib/libart.so (ExecuteMterpImpl+14484)
   native: #26 pc 0018181e  /dev/ashmem/dalvik-classes.dex extracted in memory from /data/app/com.airar.trickeye-v9vFyMBFlhedqzv35eM7rA==/base.apk_11289_11289 (deleted) (cn.easyar.engine.recorder.TextureMovieEncoder.<init>+194)
   native: #27 pc 001c7b33  /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2760711098+378)
   native: #28 pc 001cc219  /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)

plz help !

1 Answer

+1 vote
answered May 30, 2019 by airaroh (420 points)
JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.NoSuchMethodError: no non-static method "Landroid/opengl/EGLDisplay;.<init>(J)V"
 at boolean cn.easyar.engine.recorder.RecordNative.nativeInit(android.view.Surface, int, int, int) (RecordNative.java:-2)
at void cn.easyar.engine.recorder.RecordNative.<init>(android.view.Surface, int, int, int) (RecordNative.java:18)
at void cn.easyar.engine.recorder.TextureMovieEncoder.<init>(cn.easyar.engine.recorder.AVRecorderConfig) (TextureMovieEncoder.java:190)
at void cn.easyar.engine.recorder.SessionRecorder.prepareRecording() (SessionRecorder.java:114)
at void cn.easyar.engine.recorder.SessionRecorder.prepare() (SessionRecorder.java:419)
at boolean com.unity3d.player.UnityPlayer.nativeRender() ((null):-2)
   at boolean com.unity3d.player.UnityPlayer.c(com.unity3d.player.UnityPlayer) ((null):-1)
   at boolean com.unity3d.player.UnityPlayer$e$2.queueIdle() ((null):-1)
   at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:395)
   at void android.os.Looper.loop() (Looper.java:181)
   at void com.unity3d.player.UnityPlayer$e.run() ((null):-1)

-----------------------------------------------\

i think

function RecordNative.nativeInit  error

function RecordNative.nativeInit is a native function.

Perhaps you can find inside

libEasyAR.so

please! help us!
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...