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

crashed on video trim in android 9 device #61

Open
jigyasatandel opened this issue Feb 1, 2022 · 0 comments
Open

crashed on video trim in android 9 device #61

jigyasatandel opened this issue Feb 1, 2022 · 0 comments

Comments

@jigyasatandel
Copy link

library is crashed when trying to trim video

logs
2022-02-01 15:50:44.900 5123-5123/com.leoffer E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.leoffer, PID: 5123
java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.otaliastudios.transcoder.source.DataSource.isInitialized()' on a null object reference
at com.otaliastudios.transcoder.source.DataSourceWrapper.isInitialized(DataSourceWrapper.java:99)
at com.otaliastudios.transcoder.source.ClipDataSource.getSourceDurationUs(ClipDataSource.java:22)
at com.otaliastudios.transcoder.source.ClipDataSource.(ClipDataSource.java:18)
at com.luck.picture.lib.instagram.process.TrimContainer.cropVideo(TrimContainer.java:318)
at com.luck.picture.lib.instagram.process.PageTrim.trimVideo(PageTrim.java:81)
at com.luck.picture.lib.instagram.process.InstagramMediaSingleVideoContainer.onProcess(InstagramMediaSingleVideoContainer.java:325)
at com.luck.picture.lib.instagram.process.InstagramMediaProcessActivity$2.onRightViewClick(InstagramMediaProcessActivity.java:166)
at com.luck.picture.lib.instagram.process.InstagramTitleBar.lambda$new$2$InstagramTitleBar(InstagramTitleBar.java:88)
at com.luck.picture.lib.instagram.process.InstagramTitleBar$$ExternalSyntheticLambda2.onClick(Unknown Source:2)
at android.view.View.performClick(View.java:6259)
at android.view.View$PerformClick.run(View.java:24732)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6694)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)

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

1 participant