[G 2014 Q&A, Help & Troubleshooting] sheepgoesbaaa:
Music Player Crashes (08/03 build)

What is your--

Phone model (XT1063/XT1064/XT1068/XT1069): Not sure, Moto G 2014 Global GSM

CM version: getprop output:

[ro.build.characteristics]: [default]
[ro.build.date.utc]: [1425844814]
[ro.build.date]: [dom 8 mar 2015, 21.00.14, CET]
[ro.build.description]: [titan_retuglb-user 5.0.1 LXB22.46-25 24 release-keys]
[ro.build.display.id]: [cm_titan-userdebug 5.0.2 LRX22G a98e0b8825 test-keys]
[ro.build.fingerprint]: [motorola/titan_retuglb/titan_umts:5.0.1/LXB22.46-25/24:user/release-keys]
[ro.build.host]: [luca020400-arch]
[ro.build.id]: [LRX22G]
[ro.build.product]: [titan_umts]
[ro.build.selinux]: [1]
[ro.build.tags]: [test-keys]
[ro.build.type]: [userdebug]
[ro.build.user]: [luca]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [a98e0b8825]
[ro.build.version.release]: [5.0.2]

CM Download url: Can't post links

Gapps version: 5.2.13

Did you--

wipe: Yes, before installing previous version of this ROM (24/02/2015). Flashed updated version over this one

restore with titanium backup: no

reboot after having the issue: yes, no change

Are you using--

a task killer: No

a non-stock kernel: No

CMSettings/Performance settings (other than stock): No

Dual SIM: No

other modifications: No

Provide any additional info

The music player crashes when I try to play anything. Consistent and reproducible.

Relevant logcat:

I/ActivityManager( 860): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=6342 uid=10009 gids={50009, 9997, 2001, 3003, 1028, 1015, 3007, 1023, 1024} abi=armeabi-v7a
E/SQLiteLog( 6342): (283) recovered 22 frames from WAL file /data/user/0/com.android.providers.media/databases/external.db-wal
E/DatabaseUtils( 6342): Writing exception to parcel
E/DatabaseUtils( 6342): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/DatabaseUtils( 6342):	at java.io.File.fixSlashes(File.java:185)
E/DatabaseUtils( 6342):	at java.io.File.<init>(File.java:134)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.queryForDataFile(MediaProvider.java:4630)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFileAndEnforcePathPermissionsHelper(MediaProvider.java:4650)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFile(MediaProvider.java:4573)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openAssetFile(ContentProvider.java:1340)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1520)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1586)
E/DatabaseUtils( 6342):	at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:397)
E/DatabaseUtils( 6342):	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:312)
E/DatabaseUtils( 6342):	at android.os.Binder.execTransact(Binder.java:446)
I/art ( 6342): Explicit concurrent mark sweep GC freed 20616(1250KB) AllocSpace objects, 2(32KB) LOS objects, 39% free, 7MB/12MB, paused 986us total 66.237ms
E/SQLiteLog( 6342): (283) recovered 14 frames from WAL file /data/user/0/com.android.providers.media/databases/internal.db-wal
E/DatabaseUtils( 6342): Writing exception to parcel
E/DatabaseUtils( 6342): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/DatabaseUtils( 6342):	at java.io.File.fixSlashes(File.java:185)
E/DatabaseUtils( 6342):	at java.io.File.<init>(File.java:134)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.queryForDataFile(MediaProvider.java:4630)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFileAndEnforcePathPermissionsHelper(MediaProvider.java:4650)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFile(MediaProvider.java:4573)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openAssetFile(ContentProvider.java:1340)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1520)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1586)
E/DatabaseUtils( 6342):	at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:397)
E/DatabaseUtils( 6342):	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:312)
E/DatabaseUtils( 6342):	at android.os.Binder.execTransact(Binder.java:446)
D/MtpService( 6342): updating state; isCurrentUser=true, mMtpLocked=false
D/MtpService( 6342): addStorageLocked 65537 /storage/emulated/0
D/MtpService( 6342): addStorageLocked 131073 /storage/sdcard1
D/MtpService( 6342): updating state; isCurrentUser=true, mMtpLocked=false
D/MtpService( 6342): starting MTP server in MTP mode
D/MtpService( 6342): addStorageLocked 65537 /storage/emulated/0
D/MtpService( 6342): addStorageLocked 131073 /storage/sdcard1
I/ActivityManager( 860): Start proc com.cyanogenmod.eleven:main for service com.cyanogenmod.eleven/.MusicPlaybackService: pid=7893 uid=10031 gids={50031, 9997, 1028, 1015, 3003} abi=armeabi-v7a
V/RenderScript_jni( 7893): RS native mode
V/RenderScript( 7893): 0xb020e200 Launching thread(s), CPUs 4
E/MediaPlayer-JNI( 7893): QCMediaPlayer mediaplayer NOT present
E/DatabaseUtils( 6342): Writing exception to parcel
E/DatabaseUtils( 6342): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/DatabaseUtils( 6342):	at java.io.File.fixSlashes(File.java:185)
E/DatabaseUtils( 6342):	at java.io.File.<init>(File.java:134)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.queryForDataFile(MediaProvider.java:4630)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFileAndEnforcePathPermissionsHelper(MediaProvider.java:4650)
E/DatabaseUtils( 6342):	at com.android.providers.media.MediaProvider.openFile(MediaProvider.java:4573)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openAssetFile(ContentProvider.java:1340)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1520)
E/DatabaseUtils( 6342):	at android.content.ContentProvider.openTypedAssetFile(ContentProvider.java:1586)
E/DatabaseUtils( 6342):	at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java:397)
E/DatabaseUtils( 6342):	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:312)
E/DatabaseUtils( 6342):	at android.os.Binder.execTransact(Binder.java:446)
D/AndroidRuntime( 7893): Shutting down VM
E/AndroidRuntime( 7893): FATAL EXCEPTION: main
E/AndroidRuntime( 7893): Process: com.cyanogenmod.eleven:main, PID: 7893
E/AndroidRuntime( 7893): java.lang.RuntimeException: Unable to create service com.cyanogenmod.eleven.MusicPlaybackService: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/AndroidRuntime( 7893):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2772)
E/AndroidRuntime( 7893):	at android.app.ActivityThread.access$1900(ActivityThread.java:147)
E/AndroidRuntime( 7893):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1379)
E/AndroidRuntime( 7893):	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 7893):	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 7893):	at android.app.ActivityThread.main(ActivityThread.java:5256)
E/AndroidRuntime( 7893):	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7893):	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 7893):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
E/AndroidRuntime( 7893):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
E/AndroidRuntime( 7893): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/AndroidRuntime( 7893):	at android.os.Parcel.readException(Parcel.java:1546)
E/AndroidRuntime( 7893):	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
E/AndroidRuntime( 7893):	at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:148)
E/AndroidRuntime( 7893):	at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:689)
E/AndroidRuntime( 7893):	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1080)
E/AndroidRuntime( 7893):	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:921)
E/AndroidRuntime( 7893):	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:848)
E/AndroidRuntime( 7893):	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:981)
E/AndroidRuntime( 7893):	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:955)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService$MultiPlayer.setDataSourceImpl(MusicPlaybackService.java:3127)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService$MultiPlayer.setDataSource(MusicPlaybackService.java:3071)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService.openFile(MusicPlaybackService.java:1759)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService.openCurrentAndMaybeNext(MusicPlaybackService.java:1189)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService.openCurrentAndNext(MusicPlaybackService.java:1166)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService.reloadQueue(MusicPlaybackService.java:1646)
E/AndroidRuntime( 7893):	at com.cyanogenmod.eleven.MusicPlaybackService.onCreate(MusicPlaybackService.java:681)
E/AndroidRuntime( 7893):	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2762)
E/AndroidRuntime( 7893):	... 9 more
I/ActivityManager( 860): Crashing app skipping ANR: ProcessRecord{14dc75e9 7893:com.cyanogenmod.eleven:main/u0a31} Executing service com.cyanogenmod.eleven/.MusicPlaybackService