View Issue Details

IDProjectCategoryView StatusLast Update
0013705MMAPlaybackpublic2016-12-21 09:46
Reportermarek Assigned To 
PriorityimmediateSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0 
Target Version1.3.0Fixed in Version1.3.0 
Summary0013705: Android UI crashes on playback
DescriptionPlayback of any media causes Android UI thread crash. I can reproduce it with Samsung Galaxy Note 2 with CM 12.1.

MMA doesn't crash. There is NPE on PlaybackState

Additional Information
FATAL EXCEPTION: main
Process: com.android.systemui, PID: 21104
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.media.session.PlaybackState.getState()' on a null object reference
    at com.android.systemui.statusbar.policy.MediaMonitor$CallbackInfo$1.onPlaybackStateChanged(MediaMonitor.java:104)
    at android.media.session.MediaController$MessageHandler.handleMessage(MediaController.java:1080)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5294)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
TagsNo tags attached.
Attached Files
playback_crash.txt (4,845 bytes)   
12-01 07:30:01.709 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: albumArtDataDb: null
12-01 07:30:01.709 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: mData: 841F-120F:Music/OST-Raftaci/11-OST-Smarter.mp3
12-01 07:30:01.709 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: classType: AUDIO_TRACK
12-01 07:30:01.714 11583-11583/com.ventismedia.android.mediamonkey V/LocalTrack: dataDocument 841F-120F:Music/OST-Raftaci/11-OST-Smarter.mp3
12-01 07:30:01.714 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: mDataUri: file:///storage/sdcard1/Music/OST-Raftaci/11-OST-Smarter.mp3
12-01 07:30:01.729 11583-11583/com.ventismedia.android.mediamonkey V/MediaSessionUtils: bitmap is ready
12-01 07:30:01.729 11583-11583/com.ventismedia.android.mediamonkey V/RemoteSession: setMetadata
12-01 07:30:01.779 11583-11598/com.ventismedia.android.mediamonkey W/art: Suspending all threads took: 5.266ms
12-01 07:30:01.784 11583-11583/com.ventismedia.android.mediamonkey I/RemoteSession: registerCallback
12-01 07:30:01.794 3757-3843/com.android.bluetooth V/Avrcp: old Metadata = Metadata[artist=OST trackTitle=Smarter albumTitle=Raftaci genre=null tracknum=0]
12-01 07:30:01.794 3757-3843/com.android.bluetooth V/Avrcp: new MetaData Metadata[artist=OST trackTitle=Smarter albumTitle=Raftaci genre=null tracknum=0]
12-01 07:30:01.799 11583-11583/com.ventismedia.android.mediamonkey D/SessionHeadlinesCache: registerListener
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey V/SessionHeadlinesCache: onCacheChanged
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey V/TrackCache: getAllTracks startIndex:0 getEndIndex:0
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey V/TrackCache: getTrackFromIndex(0) track: (1)0.Smarter-OST (Raftaci):AudioTrack
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey V/TrackCache: add track (0)(1)0.Smarter-OST (Raftaci):AudioTrack
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey E/MediaSessionUtils: bitmap is null
12-01 07:30:01.804 11583-11583/com.ventismedia.android.mediamonkey V/SessionHeadlinesCache: queue 1
12-01 07:30:01.809 11583-11583/com.ventismedia.android.mediamonkey V/MediaMonkeyStoreProvider: Query: /readonly/query;Projection:null;Selection:SELECT * FROM tracklistheadlines WHERE headline_type=?;Args:[0]
12-01 07:30:01.809 21104-21104/com.android.systemui D/AndroidRuntime: Shutting down VM
12-01 07:30:01.809 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: albumArtDataDb: null
12-01 07:30:01.809 21104-21104/com.android.systemui E/AndroidRuntime: FATAL EXCEPTION: main
                                                                      Process: com.android.systemui, PID: 21104
                                                                      java.lang.NullPointerException: Attempt to invoke virtual method 'int android.media.session.PlaybackState.getState()' on a null object reference
                                                                          at com.android.systemui.statusbar.policy.MediaMonitor$CallbackInfo$1.onPlaybackStateChanged(MediaMonitor.java:104)
                                                                          at android.media.session.MediaController$MessageHandler.handleMessage(MediaController.java:1080)
                                                                          at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                          at android.os.Looper.loop(Looper.java:135)
                                                                          at android.app.ActivityThread.main(ActivityThread.java:5294)
                                                                          at java.lang.reflect.Method.invoke(Native Method)
                                                                          at java.lang.reflect.Method.invoke(Method.java:372)
                                                                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
12-01 07:30:01.809 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: mData: 841F-120F:Music/OST-Raftaci/11-OST-Smarter.mp3
12-01 07:30:01.814 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: classType: AUDIO_TRACK
12-01 07:30:01.814 11583-11583/com.ventismedia.android.mediamonkey V/LocalTrack: dataDocument 841F-120F:Music/OST-Raftaci/11-OST-Smarter.mp3
12-01 07:30:01.814 11583-11583/com.ventismedia.android.mediamonkey V/AudioTrack: mDataUri: file:///storage/sdcard1/Music/OST-Raftaci/11-OST-Smarter.mp3
playback_crash.txt (4,845 bytes)   
Fixed in build655

Activities

marek

2016-12-02 14:23

developer   ~0046370

Fixed in build 655

peke

2016-12-21 09:46

developer   ~0046681

Verified 657
Nexux 7 (2012) CM13