android 应用异常可以引起android系统崩溃重启

AmlogicPlayerRender( 3633): ~AmlogicPlayerRender

01-01 08:17:33.736 V/AmlogicPlayerDataSouceProtocol( 3633): L59

01-01 08:17:33.736 V/AmlogicPlayer( 3633): set_cpu_freq_scaling_based_auido failed

01-01 08:17:33.738 I/chatty  ( 3636): uid=0(root) /system/bin/systemcontrol expire 1 line

01-01 08:17:33.767 W/System.err( 5643): java.io.IOException: setDataSource failed.

01-01 08:17:33.801 W/System.err( 5643):  at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1104)

01-01 08:17:33.801 W/System.err( 5643):  at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1046)

01-01 08:17:33.801 W/System.err( 5643):  at com.example.screensaverdemo.Screensaver.prepareNexttPlayer(Screensaver.java:232)

01-01 08:17:33.801 W/System.err( 5643):  at com.example.screensaverdemo.Screensaver.onVideoPlayCompleted(Screensaver.java:320)

01-01 08:17:33.801 W/System.err( 5643):  at com.example.screensaverdemo.Screensaver.access$1(Screensaver.java:311)

01-01 08:17:33.801 W/System.err( 5643):  at com.example.screensaverdemo.Screensaver$3.onCompletion(Screensaver.java:222)

01-01 08:17:33.801 W/System.err( 5643):  at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2835)

01-01 08:17:33.801 W/System.err( 5643):  at android.os.Handler.dispatchMessage(Handler.java:102)

01-01 08:17:33.801 W/System.err( 5643):  at android.os.Looper.loop(Looper.java:148)

01-01 08:17:33.801 W/System.err( 5643):  at android.app.ActivityThread.main(ActivityThread.java:5422)

01-01 08:17:33.801 W/System.err( 5643):  at java.lang.reflect.Method.invoke(Native Method)

01-01 08:17:33.801 W/System.err( 5643):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-01 08:17:33.801 W/System.err( 5643):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

01-01 08:17:33.802 I/MediaPlayerService( 3633): Client(2) destructor pid = 5643

01-01 08:17:33.802 V/AudioSink( 3633): close

01-01 08:17:33.802 V/MediaPlayerService( 3633): disconnect(2) from pid 5643


经过抓日志分析:

): set_cpu_freq_scaling_based_auido failed  播放器音频报错引起

该方法调用 系统 方法:at android.media.MediaPlayer.setDataSource  读取音频文件


最终导致系统内核 异常

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

01-01 08:17:33.801 W/System.err( 5643):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

你可能感兴趣的:(Android开发)