消费者关闭输入通道或发生错误。事件= 0x8中

时间:2012-07-26 11:13:31

标签: android

我正在研究android youtube应用程序。我们可以完美地获取数据和所有其他内容。通过使用openyoutubeplayer播放YouTube视频。我们正在通过videoid在openyoutubeplayer中播放视频。在视频正在播放时,我们在一段时间之后用“消费者关闭输入通道或发生错误。事件= 0x8”[随机] 。请参阅以下日志。

I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
I/NuCachedSource2( 1146): Keep alive
E/InputDispatcher( 1153): channel '4080cb58 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Consumer closed input channel or an error occurred.  events=0x8
E/InputDispatcher( 1153): channel '4080cb58 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed!
W/IMediaDeathNotifier( 2431): media server died
W/MediaMetadataRetriever( 1243): MediaMetadataRetriever server died!
E/MediaPlayer( 2431): error (100, 0)
I/ServiceManager( 1077): service 'media.audio_flinger' died
I/ServiceManager( 1077): service 'media.player' died
I/ServiceManager( 1077): service 'media.camera' died
I/ServiceManager( 1077): service 'media.audio_policy' died
W/AudioSystem( 2431): AudioFlinger server died!
W/AudioSystem( 1153): AudioFlinger server died!
I/WindowManager( 1153): WINDOW DIED Window{4080cb58 com.android.launcher/com.android.launcher2.Launcher paused=false}
W/AudioSystem( 1153): AudioPolicyService server died!
I/ActivityManager( 1153): Process com.android.launcher (pid 1592) has died.
E/MediaPlayer( 2431): Error (100,0)
D/VideoView( 2431): Error: 100,0
W/WindowManager( 1153): Failed looking up window
W/WindowManager( 1153): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4080c968 does not exist
W/WindowManager( 1153):         at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8181)
W/WindowManager( 1153):         at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8172)
W/WindowManager( 1153):         at com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7031)
W/WindowManager( 1153):         at android.os.BinderProxy.sendDeathNotice(Binder.java:381)
W/WindowManager( 1153):         at dalvik.system.NativeStart.run(Native Method)
I/WindowManager( 1153): WIN DEATH: null
I/        ( 2857): ServiceManager: 0xad50
I/CameraService( 2857): CameraService started (pid=2857)
D/AudioHardwareALSA( 2857): openOutputStream called for devices: 0x00000002
I/ALSAModule( 2857): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
I/AudioFlinger( 2857): AudioFlinger's thread 0x16c00 ready to run
D/ALSAModule( 2857): route called for devices 00000002 in mode 0...
E/AudioService( 1153): Media server died.
E/AudioService( 1153): Media server started.
W/AudioPolicyManagerBase( 2857): setPhoneState() setting same state 0

播放视频时,日志会显示“保持活动”消息。当视频停止时,它显示上面的日志。

我不确切知道发生了什么以及如何解决这个问题。请告诉我你是否有任何想法。谢谢提前

2 个答案:

答案 0 :(得分:1)

Keep Alive是Youtube的服务器与您的客户之间的“ping”消息... 如果客户端或服务器没有收到保持活动状态,则会丢失连接,中断客户端或服务器...

“E / InputDispatcher(1153):channel'4080cb58 com.android.launcher / com.android.launcher2.Launcher(server)'〜消费者关闭输入通道或发生错误.events = 0x8” 在这里你失去了与服务器的连接,但如果没有代码,我真的不知道更多^^

“W / WindowManager(1153):java.lang.IllegalArgumentException:请求的窗口android.os.BinderProxy@4080c968不存在” 在这里你打电话给一个不在这里的窗户?我认为你的应用程序在这里崩溃了...寻求它;)

答案 1 :(得分:-2)

请使用android:configChanges="orientation"中的AndroidManifest.xml作为启动屏幕的活动。

我得到了相同的异常,但这与相机有关,但通常由于方向改变而导致,方向更改未通知活动因此导致崩溃。