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

Unhandled Exception when create thumbnail. #8

Closed
parth22 opened this issue Dec 12, 2019 · 15 comments
Closed

Unhandled Exception when create thumbnail. #8

parth22 opened this issue Dec 12, 2019 · 15 comments

Comments

@parth22
Copy link

parth22 commented Dec 12, 2019

i'm using
video_thumbnail: ^0.1.7

E/flutter (15359): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method data on channel video_thumbnail)
E/flutter (15359): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)
E/flutter (15359): <asynchronous suspension>
E/flutter (15359): #1      VideoThumbnail.thumbnailData (package:video_thumbnail/video_thumbnail.dart:63:27)
@anilslabs
Copy link

Getting the same issue while building a release build but working fine with debug build.

@justsoft
Copy link
Owner

Try to force the video_thumbnail version back to 0.1.6?

video_thumbnail: 0.1.6

@anilslabs
Copy link

Still not working. After downgrading version this is affecting my App performance also.

@harshapulikollu
Copy link

Facing the same issue, even downgraded the plugin version and tried. But resulted same error.
IDE- VS code 1.41.0
Flutter - master 1.13.3-pre.23
Dart - 2.8.0-dev.0.0

@justsoft
Copy link
Owner

I don't have an Android TV to test. Is it the API level too low?

@harshapulikollu
Copy link

But I'm facing this issue when I try to run the debug version of my app in android device, not on Android TV.

@justsoft
Copy link
Owner

The plugin works fine for me. Please try the example App, if it works then make a change for what you do in your App.

@justsoft
Copy link
Owner

Please try to play this video on your device, if it wouldn't be able to play, pretty high chance to get failure for generating the thumbnail.

@biklas7
Copy link

biklas7 commented Apr 13, 2020

This is still happening on version 0.2.1

@justsoft
Copy link
Owner

justsoft commented Apr 15, 2020

@biklas7 Try to play the video in the device's browser and other media player to make sure your device has a proper decoder.

@biklas7
Copy link

biklas7 commented Apr 15, 2020

@justsoft It's really weird. I'm working on an app that shows a big list of media thumbnails, and sometimes the app throws this error for a specific media URL, especially when I scroll very fast, and sometimes it works.

@vikalpnagar
Copy link

I am also facing this issue on version 0.2.1

@vikalpnagar
Copy link

Try to force the video_thumbnail version back to 0.1.6?

video_thumbnail: 0.1.6

Finally, downgrading worked.

@justsoft
Copy link
Owner

justsoft commented May 6, 2020

@vikalpnagar @biklas7 Before the downgrade, which platform had the issue, iOS or Android?
Did you URL encoded the URL?
Is the problematic URL playable by device's browser?
The plugin spawned a thread to generate the thumbnail instead of the main UI thread since version 0.1.7. Creating too many threads may cause the problem. Try to use a queue to control thumbnail generation.

@redvg
Copy link

redvg commented Jun 4, 2020

downgrading to 0.1.6 removed the original issue, but gave another one
4

#23 #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants