mrmaffen / vlc-android-sdk

VLC Android SDK pushed to Maven Central. Primarily used in project tomahawk-android.
792 stars 244 forks source link

Cannot play video - app crash on setVideoURI #129

Open LSDsl opened 6 years ago

LSDsl commented 6 years ago

App always crash (try different devices) when try set setVideoURI Use 'de.mrmaffen:libvlc-android:2.1.12@aar'

E/art: 0xb72ff8a8 SpaceTypeMallocSpace begin=0x12c00000,end=0x12f91000,limit=0x22c00000,size=3MB,capacity=96MB,non_growth_limit_capacity=256MB,name="main rosalloc space"]
       0xb7275138 allocspace main rosalloc space live-bitmap 3[begin=0x12c00000,end=0x22c00000]
       0xb7164278 allocspace main rosalloc space mark-bitmap 3[begin=0x12c00000,end=0x22c00000]
       0xb71612e0 SpaceTypeImageSpace begin=0x70359000,end=0x70d1d4c0,size=9MB,name="/data/dalvik-cache/arm/system@framework@boot.art"]
       0xb7161060 imagespace /data/dalvik-cache/arm/system@framework@boot.art live-bitmap 0[begin=0x70359000,end=0x70d1d500]
       0xb7161060 imagespace /data/dalvik-cache/arm/system@framework@boot.art live-bitmap 0[begin=0x70359000,end=0x70d1d500]
       0xb71c7f50 SpaceTypeZygoteSpace begin=0x73f81000,end=0x74158000,size=1884KB,name="Zygote space"]
       0xb71628d8 allocspace zygote / non moving space live-bitmap 0[begin=0x73f81000,end=0x74158000]
       0xb7160f30 allocspace zygote / non moving space mark-bitmap 0[begin=0x73f81000,end=0x74158000]
       0xb72b71c0 SpaceTypeMallocSpace begin=0x74158000,end=0x741f4000,limit=0x77f81000,size=624KB,capacity=62MB,non_growth_limit_capacity=62MB,name="non moving space"]
       0xb717b3d8 allocspace non moving space live-bitmap 4[begin=0x74158000,end=0x77f81000]
       0xb726c278 allocspace non moving space mark-bitmap 4[begin=0x74158000,end=0x77f81000]
       0xb7165c20 large object space:GcRetentionPolicyAlwaysCollect
A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: field operation on invalid stack indirect reference table or invalid reference: 0x0
       art/runtime/check_jni.cc:65]     in call to GetLongField
       art/runtime/check_jni.cc:65]     from void org.videolan.libvlc.Media.nativeNewFromLocation(org.videolan.libvlc.LibVLC, java.lang.String)
       art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
       art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x73f81000 self=0xb7167ed0
       art/runtime/check_jni.cc:65]   | sysTid=17223 nice=0 cgrp=default sched=0/0 handle=0xb6f96bec
       art/runtime/check_jni.cc:65]   | state=R schedstat=( 1188928472 848041959 3931 ) utm=92 stm=26 core=0 HZ=100
       art/runtime/check_jni.cc:65]   | stack=0xbe047000-0xbe049000 stackSize=8MB
       art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
       art/runtime/check_jni.cc:65]   native: #00 pc 0000484c  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
       art/runtime/check_jni.cc:65]   native: #01 pc 00003031  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
       art/runtime/check_jni.cc:65]   native: #02 pc 00243b8b  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*, BacktraceMap*)+70)
       art/runtime/check_jni.cc:65]   native: #03 pc 002282af  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, BacktraceMap*) const+154)
       art/runtime/check_jni.cc:65]   native: #04 pc 000b00dd  /system/lib/libart.so (art::JniAbort(char const*, char const*)+584)
       art/runtime/check_jni.cc:65]   native: #05 pc 000b0825  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
       art/runtime/check_jni.cc:65]   native: #06 pc 000b2765  /system/lib/libart.so (art::ScopedCheck::CheckInstanceFieldID(_jobject*, _jfieldID*)+260)
       art/runtime/check_jni.cc:65]   native: #07 pc 000b75a3  /system/lib/libart.so (art::CheckJNI::GetLongField(_JNIEnv*, _jobject*, _jfieldID*)+50)
       art/runtime/check_jni.cc:65]   native: #08 pc 0000855b  /data/app/testapp-1/lib/arm/libvlcjni.so (VLCJniObject_newFromJavaLibVlc+30)
       art/runtime/check_jni.cc:65]   native: #09 pc 0000887b  /data/app/testapp-1/lib/arm/libvlcjni.so (Java_org_videolan_libvlc_Media_nativeNewFromLocation+42)
       art/runtime/check_jni.cc:65]   native: #10 pc 0042c54f  /data/dalvik-cache/arm/data@app@testapp-1@base.apk@classes.dex (Java_org_videolan_libvlc_Media_nativeNewFromLocation__Lorg_videolan_libvlc_LibVLC_2Ljava_lang_String_2+122)
       art/runtime/check_jni.cc:65]   at org.videolan.libvlc.Media.nativeNewFromLocation(Native method)
       art/runtime/check_jni.cc:65]   at org.videolan.libvlc.Media.<init>(Media.java:441)
       art/runtime/check_jni.cc:65]   at org.videolan.libvlc.media.VideoView.setVideoURI(VideoView.java:95)