开发者社区> 问答> 正文

必须重启系统才能恢复声音 400 请求报错 

Audio放音时出错,系统发生小概率性的无声,不能恢复,必须重启系统才能恢复声音 我最近在调试android Audio的时候,出现了一个小概率性的问题。一开始系统在播放音乐时很正常,但是过了一段时间之后,就会小概率的出现整个系统无声的情况,什么声音也没有,必须要重启系统才能恢复。这个问题已经困扰我好久了,哪位之前遇到过这种情况的,希望可以点拨一下,感激不尽!
以下时出错的log:
10-11 10:55:13.370 E/AudioFlinger(   84): no more track names available 10-11 10:55:13.370 E/AudioTrack(  283): AudioFlinger could not create track, status: -12 10-11 10:55:13.370 E/SoundPool(  283): Error creating AudioTrack 10-11 10:55:13.420 V/AwesomePlayer(   84): AwesomePlayer running on behalf of uid 10000 10-11 10:55:13.450 V/AwesomePlayer(   84): track of type 'audio/vorbis' does not publish bitrate 10-11 10:55:13.450 V/AwesomePlayer(   84): mBitrate = -1 bits/sec 10-11 10:55:13.450 I/OMXMaster(   84): name = (OMX.google.vorbis.decoder) 10-11 10:55:13.460 D/Ringtone( 1252): Successfully created local player 10-11 10:55:13.470 E/AudioFlinger(   84): no more track names available 10-11 10:55:13.470 E/AudioTrack(   84): AudioFlinger could not create track, status: -12 10-11 10:55:13.470 E/AudioSink(   84): Unable to create audio track 10-11 10:55:13.470 E/MediaPlayer( 1252): error (-19, 0) 10-11 10:55:13.480 E/MediaPlayer( 1252): Error (-19,0) 10-11 10:55:13.480 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c5d4a0 name=0x1cuser=00001000, server=00000000 10-11 10:55:13.590 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c7f820 name=0x1duser=00001000, server=00000000 10-11 10:55:14.320 E/AudioFlinger(   84): no more track names available 10-11 10:55:14.320 E/AudioTrack(  283): AudioFlinger could not create track, status: -12 10-11 10:55:14.320 E/SoundPool(  283): Error creating AudioTrack 10-11 10:55:14.380 V/AwesomePlayer(   84): AwesomePlayer running on behalf of uid 10000 10-11 10:55:14.410 V/AwesomePlayer(   84): track of type 'audio/vorbis' does not publish bitrate 10-11 10:55:14.410 V/AwesomePlayer(   84): mBitrate = -1 bits/sec 10-11 10:55:14.410 I/OMXMaster(   84): name = (OMX.google.vorbis.decoder) 10-11 10:55:14.420 D/Ringtone( 1252): Successfully created local player 10-11 10:55:14.430 E/AudioFlinger(   84): no more track names available 10-11 10:55:14.430 E/AudioTrack(   84): AudioFlinger could not create track, status: -12 10-11 10:55:14.430 E/AudioSink(   84): Unable to create audio track 10-11 10:55:14.430 E/MediaPlayer( 1252): error (-19, 0) 10-11 10:55:14.430 E/MediaPlayer( 1252): Error (-19,0) 10-11 10:55:14.990 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c71220 name=0x1fuser=00001000, server=00000000 10-11 10:55:15.310 V/BaseView( 1189): [GsensorTest] onOrientationChanged, rotation changed to 3 10-11 10:55:15.310 V/BaseView( 1189): [GsensorTest] onOrientationChanged, rotation changed to 3 10-11 10:55:15.520 V/BaseView( 1189): [GsensorTest] onOrientationChanged, rotation changed to 0 10-11 10:55:15.520 V/BaseView( 1189): [GsensorTest] onOrientationChanged, rotation changed to 0 10-11 10:55:15.550 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:15.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:16.590 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c7f820 name=0x1duser=00001000, server=00000000 10-11 10:55:17.880 E/AudioFlinger(   84): no more track names available 10-11 10:55:17.880 E/AudioTrack(  283): AudioFlinger could not create track, status: -12 10-11 10:55:17.880 E/SoundPool(  283): Error creating AudioTrack 10-11 10:55:17.890 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21020 10-11 10:55:17.990 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c71220 name=0x1fuser=00001000, server=00000000 10-11 10:55:18.000 W/InputMethodManagerService(  283): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@2c86c6e0 attribute=null 10-11 10:55:18.550 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:18.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:19.980 I/klilog  (  283): back key action:true 10-11 10:55:19.980 I/klilog  (  283): interceptBackKeyDown handled:false 10-11 10:55:20.220 I/klilog  (  283): back key action:false 10-11 10:55:20.220 I/klilog  (  283): interceptBackKeyUp canceled:false, mBackKeyHandled:false 10-11 10:55:20.230 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21015 10-11 10:55:20.330 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cbd7000 10-11 10:55:20.330 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:20.420 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cc10000 10-11 10:55:20.420 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:20.990 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c71220 name=0x1fuser=00001000, server=00000000 10-11 10:55:21.500 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2c9f3000 10-11 10:55:21.500 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:21.550 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:21.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:21.670 D/dalvikvm(  408): GC_FOR_ALLOC freed 260K, 12% free 7001K/7879K, paused 60ms, total 71ms 10-11 10:55:23.990 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c71220 name=0x1fuser=00001000, server=00000000 10-11 10:55:24.200 I/dalvikvm(  408): Jit: resizing JitTable from 2048 to 4096 10-11 10:55:24.550 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:24.570 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:26.990 W/AudioTrack(  283): obtainBuffer timed out (is the CPU pegged?) 0x55c71220 name=0x1fuser=00001000, server=00000000 10-11 10:55:27.400 E/AudioFlinger(   84): no more track names available 10-11 10:55:27.400 E/AudioTrack(  283): AudioFlinger could not create track, status: -12 10-11 10:55:27.400 E/SoundPool(  283): Error creating AudioTrack 10-11 10:55:27.400 I/ActivityManager(  283): START {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras) u=0} from pid 408 10-11 10:55:27.410 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21010 10-11 10:55:27.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:27.570 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:27.820 D/dalvikvm(  408): GC_CONCURRENT freed 514K, 13% free 6902K/7879K, paused 14ms+27ms, total 156ms 10-11 10:55:27.870 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cc49000 10-11 10:55:27.880 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:27.900 I/ActivityManager(  283): Displayed com.android.settings/.SubSettings: +464ms 10-11 10:55:28.210 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2ccbb000 10-11 10:55:28.210 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:28.300 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2c9f3000 10-11 10:55:28.300 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:29.560 I/klilog  (  283): back key action:true 10-11 10:55:29.560 I/klilog  (  283): interceptBackKeyDown handled:false 10-11 10:55:29.850 I/klilog  (  283): back key action:false 10-11 10:55:29.850 I/klilog  (  283): interceptBackKeyUp canceled:false, mBackKeyHandled:false 10-11 10:55:29.860 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21015 10-11 10:55:29.970 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cbd7000 10-11 10:55:29.970 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:30.050 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cc10000 10-11 10:55:30.050 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:30.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:30.570 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:30.930 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2c9f3000 10-11 10:55:30.930 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:33.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:33.570 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:35.180 D/dalvikvm(  408): GC_FOR_ALLOC freed 116K, 10% free 7131K/7879K, paused 53ms, total 62ms 10-11 10:55:36.050 I/klilog  (  283): back key action:true 10-11 10:55:36.050 I/klilog  (  283): interceptBackKeyDown handled:false 10-11 10:55:36.290 I/klilog  (  283): back key action:false 10-11 10:55:36.290 I/klilog  (  283): interceptBackKeyUp canceled:false, mBackKeyHandled:false 10-11 10:55:36.300 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21010 10-11 10:55:36.350 D/launcher(  487): onStart 10-11 10:55:36.440 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2cc49000 10-11 10:55:36.440 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:36.560 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:36.570 W/AudioTrack( 1189): obtainBuffer timed out (is the CPU pegged?) 0x55c44d80 name=0x8user=00000800, server=00000000 10-11 10:55:36.580 W/HWC-JZX2D(   81): h_offset: -16 exceed the boundary!!!!!!!!! 10-11 10:55:36.610 W/HWC-JZX2D(   81): h_offset: -11 exceed the boundary!!!!!!!!! 10-11 10:55:36.630 W/HWC-JZX2D(   81): h_offset: -8 exceed the boundary!!!!!!!!! 10-11 10:55:36.640 W/HWC-JZX2D(   81): h_offset: -6 exceed the boundary!!!!!!!!! 10-11 10:55:36.660 W/HWC-JZX2D(   81): h_offset: -4 exceed the boundary!!!!!!!!! 10-11 10:55:36.680 W/HWC-JZX2D(   81): h_offset: -3 exceed the boundary!!!!!!!!! 10-11 10:55:36.690 W/HWC-JZX2D(   81): h_offset: -2 exceed the boundary!!!!!!!!! 10-11 10:55:36.710 W/HWC-JZX2D(   81): h_offset: -1 exceed the boundary!!!!!!!!! 10-11 10:55:37.520 D/gralloc (   81): ++++++++++++++++++++++++++++base: 2c9f3000 10-11 10:55:37.520 E/gralloc (   81): ***********************    width = 240,height = 240,format = 00000001,stride = 240 10-11 10:55:37.550 E/AudioFlinger(   84): no more track names available 10-11 10:55:37.550 E/AudioTrack(  283): AudioFlinger could not create track, status: -12 10-11 10:55:37.550 E/SoundPool(  283): Error creating AudioTrack 10-11 10:55:37.550 I/ActivityManager(  283): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.calculator2/.Calculator u=0} from pid 487 10-11 10:55:37.570 D/launcher(  487): onPause 10-11 10:55:37.570 W/WindowManager(  283): Failure taking screenshot for (123x123) to layer 21005

展开
收起
kun坤 2020-05-29 22:54:32 829 0
1 条回答
写回答
取消 提交回答
  • 问一下:解决了吗?######媒体资源没有释放 E AudioMixer: AudioMixer::getTrackName out of available tracks  检查下代码 临时的播放资源需要及时释放

    2020-05-29 22:54:41
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
微信SQLite数据库损坏恢复实践 立即下载
手机京东Crash自动分析处理系统 立即下载
低代码开发师(初级)实战教程 立即下载