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

[MissingPluginException] error occurs with some specific video files #96

Closed
XeroDays opened this issue Feb 18, 2022 · 21 comments
Closed

Comments

@XeroDays
Copy link

XeroDays commented Feb 18, 2022

I've been using this plugin for a while and I noticed that it gives error with some specific files, for instances I have uploaded a file to the server so that you can download it and check it. How ever it works fine with other normal files.
I haven't tested it will [urlPath] but you can download the demo files from this link : demoFile

Issues with other developers:
There is also an Stack overflow question asked by other community member : [Govaadiyo]

Error with demoFile on Flutter 2.10:
image

@XeroDays
Copy link
Author

Error Update:

I have tested it will UrlPath. It is working fine with that.
But the same file gives current error when downloaded to phone and selected via the file picker.

How to re-create the issue:

Steps:

  1. Download the file into your phone : DemoFile
  2. Select file via FilePicker
  3. Get Path of the file and try to compress it.

@Tom3652
Copy link

Tom3652 commented Feb 28, 2022

Having the same issue, doesn't happen with every video fortunately.
A MissingPluginException is a weird error though, usually it's when hot reloading and adding a new plugin...

@shrijanRegmi
Copy link

Getting same error MissingPluginException(No implementation found for method file on channel plugins.justsoft.xyz/video_thumbnail)

@TaoLeopard
Copy link

We run into the same issue, but it only happen on new Android phones. My old Android 10 phone is OK.

@jongkb
Copy link

jongkb commented Mar 25, 2022

Running into the same issue for some videos on my Android 10 phone.

@justsoft
Copy link
Owner

Please try the new 0.5.0 version, Thanks.

@wuchuixu
Copy link

Please try the new 0.5.0 version, Thanks.

nice!!!

@Tom3652
Copy link

Tom3652 commented Apr 14, 2022

I have updated to 0.5.0 but got today again this error :

W/System.err(23115): java.io.FileNotFoundException: /storage/emulated/0/Movies/myapptest-video_89b59ef0-8f36-11ec-a771-6705f080d536.png: open failed: EPERM (Operation not permitted)
W/System.err(23115): 	at libcore.io.IoBridge.open(IoBridge.java:492)
W/System.err(23115): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
W/System.err(23115): 	at java.io.FileOutputStream.<init>(FileOutputStream.java:125)
W/System.err(23115): 	at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin.buildThumbnailFile(VideoThumbnailPlugin.java:166)
W/System.err(23115): 	at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin.access$000(VideoThumbnailPlugin.java:32)
W/System.err(23115): 	at xyz.justsoft.video_thumbnail.VideoThumbnailPlugin$1.run(VideoThumbnailPlugin.java:79)
W/System.err(23115): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(23115): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(23115): 	at java.lang.Thread.run(Thread.java:923)
W/System.err(23115): Caused by: android.system.ErrnoException: open failed: EPERM (Operation not permitted)
W/System.err(23115): 	at libcore.io.Linux.open(Native Method)
W/System.err(23115): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
W/System.err(23115): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:254)
W/System.err(23115): 	at libcore.io.ForwardingOs.open(ForwardingOs.java:166)
W/System.err(23115): 	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7637)
W/System.err(23115): 	at libcore.io.IoBridge.open(IoBridge.java:478)
W/System.err(23115): 	... 8 more
I/flutter (23115): MissingPluginException(No implementation found for method file on channel plugins.justsoft.xyz/video_thumbnail)
I/flutter (23115): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
I/flutter (23115): <asynchronous suspension>
I/flutter (23115): #1      VideoThumbnail.thumbnailFile (package:video_thumbnail/video_thumbnail.dart:48:12)
I/flutter (23115): <asynchronous suspension>

@abellee
Copy link

abellee commented May 2, 2022

@Tom3652 me too!

@justsoft
Copy link
Owner

justsoft commented May 2, 2022

Looks like there is a permission error, please try:

  1. Make sure the thumbnailData works
  2. Try to write the thumbnail file into the tmp folder
  3. Make sure the App has permission to write on the destination folder

@abellee
Copy link

abellee commented May 4, 2022

@justsoft I have not got this error so far, and after I relaunched the app, this error was disappeared, but I don't know why.

@XeroDays
Copy link
Author

XeroDays commented May 9, 2022

@justsoft can you re-open this issue? as most of the people are having the same issue.

@ArlysthonFeitosa
Copy link

PROBLEM SOLVED:

my path wasnt with the .png extension and were throwing the MissingPluginException

you have to add the thumbnail extension (png, jpg...) to the path

@Lankesh007
Copy link

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnai

getting same error

@Lankesh007
Copy link

anybody knows the perfect reason
or any solutions

@tomekit
Copy link

tomekit commented Jan 29, 2023

Still present in 0.5.3. It does the job for us, but we're also getting frequent: No implementation found for method data on channel plugins.justsoft.xyz/video_thumbnail, for certain types of data... and we mute this error, but I believe that library should rather throw some sort of InvalidFormatException instead of failing with: "No implementation found" error which unnecessarily draws the attention.

@creativekdev
Copy link

creativekdev commented Aug 29, 2023

I have got the same error.
image

@hungvalen
Copy link

I have got the same error. image

same issue

@heitor598
Copy link

heitor598 commented Mar 13, 2024

Same problem, has anyone managed to solve this problem for thumbnailData? only happens on android 7.1.2

@XeroDays
Copy link
Author

@heitor598 Yeah i have resolved it, somehow by putting the file extension at the end.. please check if your file names are missing extensions.. somehow they are also causing this issue.

@heitor598
Copy link

@XeroDays All files have an extension at the end

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