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

# ANR_EXCEPTION com.luck.picture.lib.utils.MediaUtils.getVideoSize(MediaUtils.java:219) #2415

Closed
blankjava opened this issue Jul 4, 2022 · 1 comment

Comments

@blankjava
Copy link

Current use version?

当前使用的版本是多少?

io.github.lucksiege:pictureselector:v3.10.3
io.github.lucksiege:ucrop:v3.10.2
io.github.lucksiege:compress:v3.10.3

Will this problem occur in demo?

Demo能否复现这问题?

Demo也是必现,demo版本demo_2022-06-26_060020_v3.10.3.apk

Describe the problem or provide an error log?

描述问题或提供错误log?

复现步骤:点击demo中的+号,预览视频,关闭视频,再预览其他视频,反复几次,会出现ANR。

1
android.os.BinderProxy.transactNative(Native Method)
2
android.os.BinderProxy.transact(BinderProxy.java:532)
3
android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:703)
4
android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1698)
5
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1514)
6
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1431)
7
android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:173)
8
com.luck.picture.lib.utils.MediaUtils.getVideoSize(MediaUtils.java:219)
9
com.luck.picture.lib.PictureSelectorPreviewFragment.getRealSizeFromMedia(PictureSelectorPreviewFragment.java:1467)
10
com.luck.picture.lib.PictureSelectorPreviewFragment.startZoomEffect(PictureSelectorPreviewFragment.java:1155)
11
com.luck.picture.lib.PictureSelectorPreviewFragment.initViewPagerData(PictureSelectorPreviewFragment.java:1138)
12
com.luck.picture.lib.PictureSelectorPreviewFragment.onViewCreated(PictureSelectorPreviewFragment.java:261)
13
androidx.fragment.app.Fragment.performViewCreated(Fragment.java:2987)
14
androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:546)
15
androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
16
androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
17
androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
18
androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
19
androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
20
android.os.Handler.handleCallback(Handler.java:900)
21
android.os.Handler.dispatchMessage(Handler.java:103)
22
android.os.Looper.loop(Looper.java:219)
23
android.app.ActivityThread.main(ActivityThread.java:8393)
24
java.lang.reflect.Method.invoke(Native Method)
25
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
26
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
@LuckSiege
Copy link
Owner

试试

v.3.10.5

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

2 participants