Debugging for unfortunately, the process Android.process.media have stopped

Source: Internet
Author: User

When USB was plugged into the phone, there was a Dialog Window coming out,

Here is the debugging infos as below,

130| [Email protected]:/# Logcat | Grep-i Mtpservice
D/mtpservice (2580): Updating state; Iscurrentuser=true, Mmtplocked=false
D/mtpservice (2580): addstoragelocked 65537/storage/emulated/0
E/androidruntime (2580): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2580): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
W/activitymanager (2327): Scheduling restart of crashed service com.android.providers.media/. Mtpservice in 601944ms
I/activitymanager (2327): Start proc Android.process.media for service com.android.providers.media/. mtpservice:pid=2995 uid=10014 gids={50014, 1015, 1023, 1024, 1028, 2001, 3003, 3007}
D/mtpservice (2995): Updating state; Iscurrentuser=true, Mmtplocked=false
D/mtpservice (2995): addstoragelocked 65537/storage/emulated/0
E/androidruntime (2995): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2995): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
W/activitymanager (2327): Timeout executing service:servicerecord{41e695d8 u0 com.android.providers.media/. Mtpservice}
I/activitymanager (2327): Crashing app skipping anr:processrecord{41dac510 2995:android.process.media/u0a10014} Executing service com.android.providers.media/. Mtpservice
W/activitymanager (2327): Service crashed 2 times, Stopping:servicerecord{41e695d8 u0 com.android.providers.media/. Mtpservice}




^c
130| [Email protected]:/#
130| [Email protected]:/#
130| [Email protected]:/# Logcat | grep androidruntime
D/androidruntime (2580): Shutting down VM
E/androidruntime (2580): FATAL exception:main
E/androidruntime (2580): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2580): at Android.app.ActivityThread.handleCreateService (activitythread.java:2587)
E/androidruntime (2580): at android.app.activitythread.access$1600 (activitythread.java:141)
E/androidruntime (2580): at Android.app.activitythread$h.handlemessage (activitythread.java:1338)
E/androidruntime (2580): at Android.os.Handler.dispatchMessage (handler.java:99)
E/androidruntime (2580): at Android.os.Looper.loop (looper.java:137)
E/androidruntime (2580): at Android.app.ActivityThread.main (activitythread.java:5103)
E/androidruntime (2580): at Java.lang.reflect.Method.invokeNative (Native Method)
E/androidruntime (2580): at Java.lang.reflect.Method.invoke (method.java:525)
E/androidruntime (2580): at Com.android.internal.os.zygoteinit$methodandargscaller.run (ZygoteInit.java:737)
E/androidruntime (2580): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:553)
E/androidruntime (2580): at Dalvik.system.NativeStart.main (Native Method)
E/androidruntime (2580): caused by:java.lang.IllegalArgumentException
E/androidruntime (2580): at Android.os.Parcel.readException (parcel.java:1435)
E/androidruntime (2580): at Android.os.Parcel.readException (parcel.java:1385)
E/androidruntime (2580): at Android.os.storage.imountservice$stub$proxy.getvolumestate (IMountService.java:241)
E/androidruntime (2580): at Android.os.storage.StorageManager.getVolumeState (storagemanager.java:558)
E/androidruntime (2580): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
E/androidruntime (2580): at Android.app.ActivityThread.handleCreateService (activitythread.java:2577)
E/androidruntime (2580): ... Ten more
D/androidruntime (2995): Shutting down VM
E/androidruntime (2995): FATAL exception:main
E/androidruntime (2995): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2995): at Android.app.ActivityThread.handleCreateService (activitythread.java:2587)
E/androidruntime (2995): at android.app.activitythread.access$1600 (activitythread.java:141)
E/androidruntime (2995): at Android.app.activitythread$h.handlemessage (activitythread.java:1338)
E/androidruntime (2995): at Android.os.Handler.dispatchMessage (handler.java:99)
E/androidruntime (2995): at Android.os.Looper.loop (looper.java:137)
E/androidruntime (2995): at Android.app.ActivityThread.main (activitythread.java:5103)
E/androidruntime (2995): at Java.lang.reflect.Method.invokeNative (Native Method)
E/androidruntime (2995): at Java.lang.reflect.Method.invoke (method.java:525)
E/androidruntime (2995): at Com.android.internal.os.zygoteinit$methodandargscaller.run (ZygoteInit.java:737)
E/androidruntime (2995): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:553)
E/androidruntime (2995): at Dalvik.system.NativeStart.main (Native Method)
E/androidruntime (2995): caused by:java.lang.IllegalArgumentException
E/androidruntime (2995): at Android.os.Parcel.readException (parcel.java:1435)
E/androidruntime (2995): at Android.os.Parcel.readException (parcel.java:1385)
E/androidruntime (2995): at Android.os.storage.imountservice$stub$proxy.getvolumestate (IMountService.java:241)
E/androidruntime (2995): at Android.os.storage.StorageManager.getVolumeState (storagemanager.java:558)
E/androidruntime (2995): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
E/androidruntime (2995): at Android.app.ActivityThread.handleCreateService (activitythread.java:2577)
E/androidruntime (2995): ... Ten more


^c
130| [Email protected]:/# Logcat | Grep-i MTP
D/mountservice (2327): Got storage path:null description:internal storage primary:true removable:false emulated:true mtpreserve:100 Allowmassstorage:false maxfilesize:0
D/mountservice (2327): addvolumelocked () storagevolume [mstorageid=65537 mpath=/storage/emulated/0 mDescriptionId= 17040655 mprimary=true mremovable=false memulated=true mmtpreservespace=100 mallowmassstorage=false mMaxFileSize=0 MOWNER=USERHANDLE{0}]
D/mountservice (2327): Got storage path:/MNT/EXTSD DESCRIPTION:SD card primary:false removable:true emulated:false MT preserve:0 Allowmassstorage:false maxfilesize:0
D/mountservice (2327): addvolumelocked () storagevolume [mstorageid=0 mpath=/mnt/extsd mdescriptionid=17040656 Mprimary=false mremovable=true memulated=false mmtpreservespace=0 mallowmassstorage=false mMaxFileSize=0 mOwner=null ]
D/mountservice (2327): Got storage path:/mnt/udisk description:usb storage Primary:false removable:true emulated:fals E mtpreserve:0 allowmassstorage:false maxfilesize:0
D/mountservice (2327): addvolumelocked () storagevolume [mstorageid=0 mpath=/mnt/udisk mdescriptionid=17040657 Mprimary=false mremovable=true memulated=false mmtpreservespace=0 mallowmassstorage=false mMaxFileSize=0 mOwner=null ]
I/activitymanager (2327): Start proc Android.process.media for broadcast com.android.providers.media/. mtpreceiver:pid=2580 uid=10014 gids={50014, 1015, 1023, 1024, 1028, 2001, 3003, 3007}
D/mtpservice (2580): Updating state; Iscurrentuser=true, Mmtplocked=false
D/mtpservice (2580): addstoragelocked 65537/storage/emulated/0
E/androidruntime (2580): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2580): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
W/broadcastqueue (2327): Receiver during timeout:resolveinfo{41d07b70 com.android.providers.media.MtpReceiver p=0 o=0 m=0x108000}
I/activitymanager (2327): Crashing app skipping Anr:processrecord{41cbd0c8 2580:android.process.media/u0a10014} Broadcast of Intent {act=android.intent.action.boot_completed flg=0x10 cmp=com.android.providers.media/. Mtpreceiver (has extras)}
W/activitymanager (2327): Scheduling restart of crashed service com.android.providers.media/. Mtpservice in 601944ms
I/activitymanager (2327): Start proc Android.process.media for service com.android.providers.media/. mtpservice:pid=2995 uid=10014 gids={50014, 1015, 1023, 1024, 1028, 2001, 3003, 3007}
D/mtpservice (2995): Updating state; Iscurrentuser=true, Mmtplocked=false
D/mtpservice (2995): addstoragelocked 65537/storage/emulated/0
E/androidruntime (2995): java.lang.RuntimeException:Unable to create service Com.android.providers.media.MtpService: Java.lang.IllegalArgumentException
E/androidruntime (2995): at Com.android.providers.media.MtpService.onCreate (mtpservice.java:134)
W/activitymanager (2327): Timeout executing service:servicerecord{41e695d8 u0 com.android.providers.media/. Mtpservice}
I/activitymanager (2327): Crashing app skipping anr:processrecord{41dac510 2995:android.process.media/u0a10014} Executing service com.android.providers.media/. Mtpservice
W/activitymanager (2327): Service crashed 2 times, Stopping:servicerecord{41e695d8 u0 com.android.providers.media/. Mtpservice}
^c
130| [Email protected]:/# Logcat | Grep-i Mtpdatabase
^c
130| [Email protected]:/# Logcat | Grep-i getvolumestate
W/mountservice (2327): Getvolumestate (/MNT/EXTSD): Unknown volume
E/androidruntime (2580): at Android.os.storage.imountservice$stub$proxy.getvolumestate (IMountService.java:241)
E/androidruntime (2580): at Android.os.storage.StorageManager.getVolumeState (storagemanager.java:558)
W/mountservice (2327): Getvolumestate (/MNT/EXTSD): Unknown volume
E/androidruntime (2995): at Android.os.storage.imountservice$stub$proxy.getvolumestate (IMountService.java:241)
E/androidruntime (2995): at Android.os.storage.StorageManager.getVolumeState (storagemanager.java:558)

For this kind of errors, where comes the solution on my side,

In Fstab.freescale,

/DEVICES/PLATFORM/SDHCI-ESDHC-IMX.0/MMC_HOST/MMC0 /mnt/extsd vfat defaults voldmanaged=sdcard:auto
/devices/platform/fsl-ehci.0 /mnt/udisk vfat defaults voldmanaged=sdcard:auto

In ueventd.freescale.rc,

/sys/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc0/mmc0:000* boot_bus_config 0660 Root root
/sys/devices/platform/sdhci-esdhc-imx.0/mmc_host/mmc0/mmc0:000* boot_config 0660 Root root
/sys/devices/platform/sdhci-esdhc-imx.2/mmc_host/mmc2/mmc2:000* boot_bus_config 0660 Root root
/sys/devices/platform/sdhci-esdhc-imx.2/mmc_host/mmc2/mmc2:000* boot_config 0660 Root root

Debugging for unfortunately, the process Android.process.media have stopped

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.