titansgroup / k4l-video-trimmer

A library with UI and mechanisms to trim local videos on Android applications.
MIT License
784 stars 224 forks source link

Fatal Exception: java.lang.IllegalArgumentException #38

Open saeedmozaffari opened 6 years ago

saeedmozaffari commented 6 years ago

following error happend for my users, i can't reproduce this error, but crashlytics result is


Fatal Exception: java.lang.IllegalArgumentException Raw Text
--
  | android.media.MediaMetadataRetriever.setDataSource (MediaMetadataRetriever.java:75)
  | android.media.MediaMetadataRetriever.setDataSource (MediaMetadataRetriever.java:161)
  | life.knowledge4.videotrimmer.view.TimeLineView$1.execute (TimeLineView.java:83)
  | life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run (BackgroundExecutor.java:210)
  | java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:428)
  | java.lang.Thread.run (Thread.java:761)
SarthakM9 commented 6 years ago

getting same issue.

mohamedrashik commented 6 years ago

Fatal Exception: java.lang.IllegalArgumentException at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:81) at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:175) at life.knowledge4.videotrimmer.view.TimeLineView$1.execute(TimeLineView.java:87) at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762)

**

**

lovishsindhwani commented 6 years ago

I am facing same issue. Is there any any workaround?

7994 commented 6 years ago
[FATAL EXCEPTION: pool-7-thread-1
              java.lang.IllegalArgumentException
              at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:73)
              at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:165)
              at com.trimmer.view.TimeLineView$1.execute(TimeLineView.java:69)
              at com.trimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:201)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
              at java.util.concurrent.FutureTask.run(FutureTask.java:237)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
              at java.lang.Thread.run(Thread.java:818)](url)

Getting same issue but in motoG

yashshreeWindows commented 5 years ago

Getting same issue !! Please help.

heinzan commented 5 years ago

same issue in huawei please help

HashemDeveloper commented 5 years ago

Doesn't Work no matter what!

Surabhi3 commented 5 years ago

is this issue solved by anyone?

bipinvaylu commented 5 years ago

I am also getting the same issue on Redmi 4 device only as per crashlytics. Please find the following details:

# OS Version: 7.1.2
# Device: Redmi 4
# RAM Free: 39%
# Disk Free: 26.1%

Please share your suggestion if anyone able to fix it.

alirezanazari commented 4 years ago

It happen when file doesn't exist or has some problem we can get error on OnTrimVideoListener.onError but because when view creating crash happened you can create and add view at RunTime with try/catch or edit and comment this line temporary.

https://github.com/titansgroup/k4l-video-trimmer/blob/29601369245a34af57fe9f14b51475c46d31fb5b/k4l-video-trimmer/src/main/java/life/knowledge4/videotrimmer/view/TimeLineView.java#L114