[One (M8) Android Development] qwerty12:
Hi,

The wallpaper picker keeps crashing when I attempt to select one of my own pictures, even on an M8 where the only thing installed is this ROM (/data and /data/media were wiped prior to reinstalling) - I've not connected it to the Internet and nor have I added a Google account yet, so no updates are installed. I'm seeing a lot of "Unfortunately the process android.process.media has stopped" messages.

The M8 has been GPE-converted (both MID and CID set) and, with the exception of the radio.img and radio_config.img, I've flashed the 3.11.1700.5 firmware. Captain Throwback's unofficial TWRP 2.8.5.1 was used to flash the M8-GPE-02-12-2015.zip file to my phone.

The attached log from AROMA shows what I selected during install to get the folllowing:

E/AndroidRuntime( 1093): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 1093): Process: android.process.media, PID: 1093

E/AndroidRuntime( 1093): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 1093):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 1093):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 1093):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 1093):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 1093):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 1093):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityManager( 875): Crashing app skipping ANR: ProcessRecord{8d95955 1093:android.process.media/u0a8} ContentProvider not responding

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@13a4ef94

I/ActivityManager( 875): Process android.process.media (pid 1093) has died

W/ActivityManager( 875): Scheduling restart of crashed service com.android.providers.media/.MtpService in 1000ms

W/ActivityManager( 875): Scheduling restart of crashed service com.android.providers.media/.MediaScannerService in 282248ms

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=3971 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 3971): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 3971): Process: android.process.media, PID: 3971

E/AndroidRuntime( 3971): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 3971):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 3971):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 3971):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 3971):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 3971):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 3971):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@44fb763

I/ActivityManager( 875): Process android.process.media (pid 3971) has died

W/ActivityManager( 875): Service crashed 2 times, stopping: ServiceRecord{13a5ec0c u0 com.android.providers.media/.MtpService}

W/ActivityManager( 875): Service crashed 2 times, stopping: ServiceRecord{10b21de u0 com.android.providers.media/.MediaScannerService}

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=4015 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 4015): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 4015): Process: android.process.media, PID: 4015

E/AndroidRuntime( 4015): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 4015):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 4015):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 4015):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 4015):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 4015):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 4015):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@1f85dc19

I/ActivityManager( 875): Process android.process.media (pid 4015) has died

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=4066 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 4066): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 4066): Process: android.process.media, PID: 4066

E/AndroidRuntime( 4066): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 4066):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 4066):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 4066):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 4066):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 4066):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 4066):	at android.os.HandlerThread.run(HandlerThread.java)

V/DeadZone( 1072): consuming errant click: (199.21037,81.35498)

E/AndroidRuntime( 3440): FATAL EXCEPTION: AsyncTask #2

E/AndroidRuntime( 3440): Process: com.google.android.googlequicksearchbox:wallpaper_chooser, PID: 3440

E/AndroidRuntime( 3440): java.lang.RuntimeException: An error occured while executing doInBackground()

E/AndroidRuntime( 3440):	at android.os.AsyncTask$3.done(AsyncTask.java)

E/AndroidRuntime( 3440):	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)

E/AndroidRuntime( 3440):	at java.util.concurrent.FutureTask.setException(FutureTask.java:222)

E/AndroidRuntime( 3440):	at java.util.concurrent.FutureTask.run(FutureTask.java:242)

E/AndroidRuntime( 3440):	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java)

E/AndroidRuntime( 3440):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

E/AndroidRuntime( 3440):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

E/AndroidRuntime( 3440):	at java.lang.Thread.run(Thread.java:818)

E/AndroidRuntime( 3440): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 3440):	at android.os.Parcel.readException(Parcel.java)

E/AndroidRuntime( 3440):	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java)

E/AndroidRuntime( 3440):	at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java)

E/AndroidRuntime( 3440):	at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java)

E/AndroidRuntime( 3440):	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java)

E/AndroidRuntime( 3440):	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java)

E/AndroidRuntime( 3440):	at android.content.ContentResolver.openInputStream(ContentResolver.java)

E/AndroidRuntime( 3440):	at adx.kp(PG:544)

E/AndroidRuntime( 3440):	at adx.kq(PG:561)

E/AndroidRuntime( 3440):	at adz.a(PG:805)

E/AndroidRuntime( 3440):	at adz.b(PG:81)

E/AndroidRuntime( 3440):	at aec.kB(PG:845)

E/AndroidRuntime( 3440):	at aec.doInBackground(PG:841)

E/AndroidRuntime( 3440):	at android.os.AsyncTask$2.call(AsyncTask.java)

E/AndroidRuntime( 3440):	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

E/AndroidRuntime( 3440):	... 4 more

W/ActivityManager( 875): Force finishing activity com.google.android.googlequicksearchbox/com.google.android.launcher.GelWallpaperPickerActivity

I/WindowState( 875): WIN DEATH: Window{f73fec9 u0 com.google.android.googlequicksearchbox/com.google.android.launcher.GelWallpaperPickerActivity}

I/ActivityManager( 875): Process com.google.android.googlequicksearchbox:wallpaper_chooser (pid 3440) has died

I/ActivityManager( 875): Process android.process.media (pid 4066) has died

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaProvider: pid=4155 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

I/ActivityManager( 875): START u0 {act=android.intent.action.GET_CONTENT typ=image/* cmp=com.android.documentsui/.DocumentsActivity} from uid 10025 on display 0

E/AndroidRuntime( 4155): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 4155): Process: android.process.media, PID: 4155

E/AndroidRuntime( 4155): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 4155):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 4155):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 4155):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 4155):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 4155):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 4155):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityManager( 875): Process android.process.media (pid 4155) has died

W/ActivityManager( 875): Scheduling restart of crashed service com.android.providers.media/.MtpService in 1000ms

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=5481 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 5481): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 5481): Process: android.process.media, PID: 5481

E/AndroidRuntime( 5481): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 5481):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 5481):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 5481):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 5481):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 5481):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 5481):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityManager( 875): Recipient 5481

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@2ea07684

I/ActivityManager( 875): Process android.process.media (pid 5481) has died

W/ActivityManager( 875): Service crashed 2 times, stopping: ServiceRecord{25d11cbb u0 com.android.providers.media/.MtpService}

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=5555 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 5555): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 5555): Process: android.process.media, PID: 5555

E/AndroidRuntime( 5555): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 5555):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 5555):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 5555):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 5555):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 5555):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 5555):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityManager( 875): Killing 2915:com.cyanogenmod.lockclock/u0a62 (adj 15): empty #17

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@2801aa2

I/ActivityManager( 875): Process android.process.media (pid 5555) has died

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=5615 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 5615): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 5615): Process: android.process.media, PID: 5615

E/AndroidRuntime( 5615): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 5615):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 5615):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 5615):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 5615):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 5615):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 5615):	at android.os.HandlerThread.run(HandlerThread.java)

W/InputMethodManagerService( 875): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@2a5fa26d attribute=null, token = android.os.BinderProxy@1a47c6ff

I/ActivityManager( 875): Recipient 5615

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@9e93eee

I/ActivityManager( 875): Process android.process.media (pid 5615) has died

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=5669 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 5669): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 5669): Process: android.process.media, PID: 5669

E/AndroidRuntime( 5669): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 5669):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 5669):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 5669):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 5669):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 5669):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 5669):	at android.os.HandlerThread.run(HandlerThread.java)

W/InputMethodManagerService( 875): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@1eebcdd9 attribute=null, token = android.os.BinderProxy@1a47c6ff

I/ActivityManager( 875): Recipient 5669

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@22fe121c

I/ActivityManager( 875): Process android.process.media (pid 5669) has died

I/ActivityManager( 875): Start proc android.process.media for content provider com.android.providers.media/.MediaDocumentsProvider: pid=5727 uid=10008 gids={50008, 9997, 2001, 3003, 1028, 1015, 1023, 3007, 1024} abi=armeabi-v7a

E/AndroidRuntime( 5727): FATAL EXCEPTION: thumbs thread

E/AndroidRuntime( 5727): Process: android.process.media, PID: 5727

E/AndroidRuntime( 5727): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

E/AndroidRuntime( 5727):	at java.io.File.fixSlashes(File.java:185)

E/AndroidRuntime( 5727):	at java.io.File.<init>(File.java:134)

E/AndroidRuntime( 5727):	at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)

E/AndroidRuntime( 5727):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 5727):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 5727):	at android.os.HandlerThread.run(HandlerThread.java)

I/ActivityManager( 875): Recipient 5727

I/ActivityThread( 3472): Removing dead content provider:android.content.ContentProviderProxy@32ae5bfa

I/ActivityManager( 875): Process android.process.media (pid 5727) has died

From a different install (where I had Xposed and the Sense camera and gallery installed):

E/AndroidRuntime(10749): FATAL EXCEPTION: thumbs thread
E/AndroidRuntime(10749): Process: android.process.media, PID: 10749
E/AndroidRuntime(10749): java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference
E/AndroidRuntime(10749): at java.io.File.fixSlashes(File.java:185)
E/AndroidRuntime(10749): at java.io.File.<init>(File.java:134)
E/AndroidRuntime(10749): at com.android.providers.media.MediaProvider$4.handleMessage(MediaProvider.java:613)
E/AndroidRuntime(10749): at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(10749): at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(10749): at android.os.HandlerThread.run(HandlerThread.java)
V/MediaStore(10749): Create the thumbnail in memory: origId=23656, kind=1, isVideo=false
E/DatabaseUtils(10749): Writing exception to parcel
E/DatabaseUtils(10749): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.lastIndexOf(int)' on a null object reference
E/DatabaseUtils(10749): at android.media.MediaFile.getFileType(MediaFile.java)
E/DatabaseUtils(10749): at android.media.ThumbnailUtils.createImageThumbnail(ThumbnailUtils.java)
E/DatabaseUtils(10749): at android.provider.MediaStore$InternalThumbnails.getThumbnail(MediaStore.java)
E/DatabaseUtils(10749): at android.provider.MediaStore$Images$Thumbnails.getThumbnail(MediaStore.java)
E/DatabaseUtils(10749): at com.android.providers.media.MediaDocumentsProvider.openOrCreateImageThumbnailCleared(MediaDocumentsProvider.java:802)
E/DatabaseUtils(10749): at com.android.providers.media.MediaDocumentsProvider.openDocumentThumbnail(MediaDocumentsProvider.java:458)
E/DatabaseUtils(10749): at android.provider.DocumentsProvider.openTypedAssetFile(DocumentsProvider.java)
E/DatabaseUtils(10749): at android.content.ContentProvider$Transport.openTypedAssetFile(ContentProvider.java)
E/DatabaseUtils(10749): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java)
E/DatabaseUtils(10749): at android.os.Binder.execTransact(Binder.java)
W/Documents( 4685): Failed to load thumbnail for content://com.android.providers.media.documents/document/image%3A23656: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.lastIndexOf(int)' on a null object reference

EDIT: Alright, doing one of these things solved it:

Not installing the Microbes wallpaper

Choosing to keep the GoogleHindiIME, GooglePinyinIME and KoreanIME packages

Using the Google Camera to take a photo