Skip to content

crashed on video trim in android 9 device #61

Open
@jigyasatandel

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions