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-当视频播放时有时候会出现 #3534

Open
tigerface opened this issue Sep 1, 2017 · 2 comments
Open

ANR-当视频播放时有时候会出现 #3534

tigerface opened this issue Sep 1, 2017 · 2 comments

Comments

@tigerface
Copy link

tigerface commented Sep 1, 2017

机型华为荣耀9

#00 pc 00020588 /system/lib/libc.so (__ioctl+8)

#1 pc 0002d33f /system/lib/libc.so (ioctl+14)
#2 pc 0001d471 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140)
#3 pc 0001d95b /system/lib/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+42)
#4 pc 0001db63 /system/lib/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+118)
#5 pc 000197d5 /system/lib/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+30)
#6 pc 0005680f /system/lib/libmedia.so
#7 pc 00052fb3 /system/lib/libmedia.so (android::MediaPlayer::setVideoSurfaceTexture(android::spandroid::IGraphicBufferProducer const&)+26)
#8 pc 00019c41 /system/lib/libmedia_jni.so
10 #9 pc 0001d30c /system/lib/libdvm.so (dvmPlatformInvoke+112)
11 #10 pc 0004d8db /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
12 #11 pc 00026720 /system/lib/libdvm.so
13 #12 pc 0002d790 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
14 #13 pc 0002adf4 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
15 #14 pc 00060059 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
16 #15 pc 0006809b /system/lib/libdvm.so
17 #16 pc 00026720 /system/lib/libdvm.so
18 #17 pc 0002d790 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
19 #18 pc 0002adf4 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
20 #19 pc 0005fd75 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
21 #20 pc 000494c3 /system/lib/libdvm.so
22 #21 pc 0004e91b /system/lib/libandroid_runtime.so
23 #22 pc 0004f647 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*, bool)+358)
24 #23 pc 000010c3 /system/bin/app_process
25 #24 pc 0000e3af /system/lib/libc.so (__libc_init+50)
26 #25 pc 00000dac /system/bin/app_process
27 java:
28 android.media.MediaPlayer._setVideoSurface(Native Method)
29 android.media.MediaPlayer.setDisplay(MediaPlayer.java:688)
30 tv.danmaku.ijk.media.player.AndroidMediaPlayer.setDisplay(AndroidMediaPlayer.java:71)
31 com.yilan.tech.player.widget.IjkVideoView.releaseWithoutStop(IjkVideoView.java:692)
32 com.yilan.tech.player.widget.IjkVideoView$9.onSurfaceDestroyed(IjkVideoView.java:686)
33 com.yilan.tech.player.widget.SurfaceRenderView$SurfaceCallback.surfaceDestroyed(SurfaceRenderView.java:248)
34 android.view.SurfaceView.updateWindow(SurfaceView.java:557)
35 android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:232)
36 android.view.View.dispatchWindowVisibilityChanged(View.java:8012)
37 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
38 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
39 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
40 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
41 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
42 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
43 android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1077)
44 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1331)
45 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1094)
46 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5708)
47 android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
48 android.view.Choreographer.doCallbacks(Choreographer.java:574)
49 android.view.Choreographer.doFrame(Choreographer.java:544)
50 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
51 android.os.Handler.handleCallback(Handler.java:733)
52 android.os.Handler.dispatchMessage(Handler.java:95)
53 android.os.Looper.loop(Looper.java:136)
54 android.app.ActivityThread.main(ActivityThread.java:5016)
55 java.lang.reflect.Method.invokeNative(Native Method)
56 java.lang.reflect.Method.invoke(Method.java:515)
57 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
58 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
59 dalvik.system.NativeStart.main(Native Method)

@tigerface
Copy link
Author

我描述的不够清晰么,我看之前的回答都是在线程池里调用release,但最终效果也没人知道了。

@pawan52tiwari
Copy link

Any update on this issue?

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