Closed XeroDays closed 2 years ago
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.
Steps:
FilePicker
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...
Getting same error MissingPluginException(No implementation found for method file on channel plugins.justsoft.xyz/video_thumbnail)
We run into the same issue, but it only happen on new Android phones. My old Android 10 phone is OK.
Running into the same issue for some videos on my Android 10 phone.
Please try the new 0.5.0 version, Thanks.
Please try the new 0.5.0 version, Thanks.
nice!!!
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>
@Tom3652 me too!
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
@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.
@justsoft can you re-open this issue? as most of the people are having the same issue.
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
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
anybody knows the perfect reason or any solutions
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.
I have got the same error.
I have got the same error.
same issue
Same problem, has anyone managed to solve this problem for thumbnailData? only happens on android 7.1.2
@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.
@XeroDays All files have an extension at the end
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](https://user-images.githubusercontent.com/38852291/154746109-ba9675dc-81a7-4061-aaf2-660aa66f0449.png)