-
Notifications
You must be signed in to change notification settings - Fork 45
App crashes once the video is about to start #4
Comments
@Y-ndm which version are you using currently ? |
Before 0.6.0 and now 0.6.1 and still the same issue. |
Try adding compileOptions in your app level build.gradle file. |
It crashes.
|
Have you added this snippet in your app level build.gradle file inside android{ } ? |
@sarbagyastha Yes, I did. Wondering if I'm doing something wrong.
|
compileOptions should be wrapped in another android{} |
I've tried yours but it still crashes.
|
Hmmm...it looks like failure to init
|
Same here.. i think it's a ExoPlayer problem.. but i can't seem to know what it is. |
I've tried this method and it has worked. |
P.s i've noticed that there's no pause method or state to pause the video from a button.. am i missing something ?? if not It would be very helpful to add a pause/play state to make it even easier and greater to use. |
Glad it worked @Y-ndm . The purpose of the plugin is to fulfill the necessity of inline Youtube Player with high quality playback support, which it does mostly i guess. It's a generic approach. You could always customize the controller on your own if you require those functionality. Anyway, thank you for your feedback. Cheers ! 😁 |
sir google sign in not work ..........this issu...........
plz help me |
Did you ever find a solution to this problem. I've run into it... |
Hey everyone.
My issue is that once the video is about to start only the thumbnail shows up and then the app crashes.
I am using android emulator for testing with sdk 28 installed and in gradel min sdk 26 and targeted sdk 27.
here's the callback that i get.
`Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
D/EGL_emulation(17127): eglMakeCurrent: 0xebe27580: ver 2 0 (tinfo 0xf1f50e60)
I/flutter (17127): Youtube Video Id: 54fea7wuV6s
D/ (17127): HostConnection::get() New Host Connection established 0xec117600, tid 17153
D/EGL_emulation(17127): eglMakeCurrent: 0xebe276a0: ver 2 0 (tinfo 0xec103350)
I/flutter (17127): Youtube Video Id: 54fea7wuV6s
I/System.out(17127): Keeping screen on
E/flutter (17127): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.BootstrapMethodError: Exception from call site #68 bootstrap method
E/flutter (17127): at com.google.android.exoplayer2.util.SlidingPercentile.(SlidingPercentile.java:38)
E/flutter (17127): at com.google.android.exoplayer2.upstream.DefaultBandwidthMeter.(DefaultBandwidthMeter.java:263)
E/flutter (17127): at com.google.android.exoplayer2.upstream.DefaultBandwidthMeter.(DefaultBandwidthMeter.java:40)
E/flutter (17127): at com.google.android.exoplayer2.upstream.DefaultBandwidthMeter$Builder.build(DefaultBandwidthMeter.java:195)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.getDefaultBandwidthMeter(ExoPlayerFactory.java:455)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.newSimpleInstance(ExoPlayerFactory.java:358)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.newSimpleInstance(ExoPlayerFactory.java:320)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.newSimpleInstance(ExoPlayerFactory.java:214)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.newSimpleInstance(ExoPlayerFactory.java:180)
E/flutter (17127): at com.google.android.exoplayer2.ExoPlayerFactory.newSimpleInstance(ExoPlayerFactory.java:151)
E/flutter (17127): at np.com.sarbagyastha.youtubeplayer.YoutubePlayerPlugin$YoutubePlayer.(YoutubePlayerPlugin.java:109)
E/flutter (17127): at np.com.sarbagyastha.youtubeplayer.YoutubePlayerPlugin.onMethodCall(YoutubePlayerPlugin.java:380)
E/flutter (17127): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
E/flutter (17127): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/flutter (17127): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (17127): at android.os.MessageQueue.next(MessageQueue.java:326)
E/flutter (17127): at android.os.Looper.loop(Looper.java:160)
E/flutter (17127): at android.app.ActivityThread.main(ActivityThread.java:6669)
E/flutter (17127): at java.lang.reflect.Method.invoke(Native Method)
E/flutter (17127): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/flutter (17127): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter (17127): Caused by: java.lang.ClassCastException: Bootstrap method returned null
E/flutter (17127): ... 21 more
E/flutter (17127):
F/flutter (17127): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env).
F/libc (17127): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 17127 (.example.ytdemo), pid 17127 (.example.ytdemo)
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.075/5124027:user/release-keys'
Revision: '0'
ABI: 'x86'
pid: 17127, tid: 17127, name: .example.ytdemo >>> com.example.ytdemo <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(77)] Check failed: CheckException(env).
'
eax 00000000 ebx 000042e7 ecx 000042e7 edx 00000006
edi 000042e7 esi 00000070
ebp fffb4e28 esp fffb4dc8 eip f6a0eb39
backtrace:
#00 pc 00000b39 [vdso:f6a0e000] (__kernel_vsyscall+9)
#1 pc 0001fdf8 /system/lib/libc.so (syscall+40)
#2 pc 00022ed3 /system/lib/libc.so (abort+115)
#3 pc 0065a862 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#4 pc 0064c8e0 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#5 pc 0064b773 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#6 pc 006955e5 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#7 pc 0065c737 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#8 pc 0065c682 /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#9 pc 0065e9ee /data/app/com.example.ytdemo-0JbwjXIe9OnMcdYqxwlNBA==/lib/x86/libflutter.so (offset 0x5b9000)
#10 pc 00012a77 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
#11 pc 00013896 /system/lib/libutils.so (android::Looper::pollInner(int)+998)
#12 pc 0001340b /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+43)
#13 pc 000e414b /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+59)
#14 pc 003ddb28 /system/framework/x86/boot-framework.oat (offset 0x3ca000) (android.media.MediaExtractor.seekTo [DEDUPED]+136)
#15 pc 000011e6 /dev/ashmem/dalvik-jit-code-cache (deleted) (android.os.MessageQueue.next+230)
#16 pc 005f0b82 /system/lib/libart.so (art_quick_invoke_stub+338)
#17 pc 000a30ce /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+222)
#18 pc 0029bca2 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+338)
#19 pc 00293e48 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1048)
#20 pc 005bc493 /system/lib/libart.so (MterpInvokeVirtual+691)
#21 pc 005e2d21 /system/lib/libart.so (ExecuteMterpImpl+14241)
#22 pc 00aea944 /system/framework/boot-framework.vdex (android.os.Looper.loop+128)
#23 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
#24 pc 0026c79c /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+220)
#25 pc 00293e2b /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1019)
#26 pc 005bdc5f /system/lib/libart.so (MterpInvokeStatic+207)
#27 pc 005e2ea1 /system/lib/libart.so (ExecuteMterpImpl+14625)
#28 pc 00384ca2 /system/framework/boot-framework.vdex (android.app.ActivityThread.main+214)
#29 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
#30 pc 0026c68e /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126)
#31 pc 005a953d /system/lib/libart.so (artQuickToInterpreterBridge+1277)
#32 pc 005f6c6d /system/lib/libart.so (art_quick_to_interpreter_bridge+77)
#33 pc 005f0d52 /system/lib/libart.so (art_quick_invoke_static_stub+418)
#34 pc 000a30df /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+239)
#35 pc 004d3349 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+89)
#36 pc 004d502e /system/lib/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned int)+1422)
#37 pc 00449783 /system/lib/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+83)
#38 pc 0011d778 /system/framework/x86/boot.oat (offset 0x114000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+168)
#39 pc 005f0b82 /system/lib/libart.so (art_quick_invoke_stub+338)
#40 pc 000a30ce /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+222)
#41 pc 0029bca2 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+338)
#42 pc 00293e48 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1048)
#43 pc 005bc493 /system/lib/libart.so (MterpInvokeVirtual+691)
#44 pc 005e2d21 /system/lib/libart.so (ExecuteMterpImpl+14241)
#45 pc 00c0b7d2 /system/framework/boot-framework.vdex (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
#46 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
#47 pc 0026c68e /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126)
#48 pc 005a953d /system/lib/libart.so (artQuickToInterpreterBridge+1277)
#49 pc 005f6c6d /system/lib/libart.so (art_quick_to_interpreter_bridge+77)
#50 pc 00badc3c /system/framework/x86/boot-framework.oat (offset 0x3ca000) (com.android.internal.os.ZygoteInit.main+3100)
#51 pc 005f0d52 /system/lib/libart.so (art_quick_invoke_static_stub+418)
#52 pc 000a30df /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+239)
#53 pc 004d3349 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+89)
#54 pc 004d2fcd /system/lib/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, char*)+429)
#55 pc 003a784d /system/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+925)
#56 pc 000d9273 /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, char*, art::Primitive::Type, art::InvokeType)+2867)
#57 pc 000c6d29 /system/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+73)
#58 pc 0007097e /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+62)
#59 pc 00073e78 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+744)
#60 pc 00001bb2 /system/bin/app_process32 (main+1506)
#61 pc 000c0f54 /system/lib/libc.so (__libc_init+100)
Lost connection to device.
Exited (sigterm)
`
Can anyone please help with this issue.
Thank you.
The text was updated successfully, but these errors were encountered: