I am developing an Android app that works with Android Bluetooth LE. I was testing mostly on the newer devices with API 27 and above. The connection worked just fine. I was able to scan and connect to advertising devices.
Recently, I got a chance to test on Android 6.0 and Android 6.0.1 and things went south. I got
the runtime exception with BluetoothGattCharacteristic and I am unsure why its not able to amrshal the value just for Android 6.0 and 6.0.1
I am handling some BLE notifications with a BroadcastReceiver which I am registering and unregistering at the right lifecycle callbacks.
mNotificationReceiver = new NotificationReceiver(mContext);
mNotificationReceiver.subscribeForBleManagerNotifications(mBleScannerCallback);
mNotificationReceiver.subscribeForPeripheralNotifications(mPeripheralCallback);
mNotificationReceiver.subscribeForGattNotifications(mGattCallback);
mNotificationReceiver.subscribeForErrorNotifications(mErrorCallback);
Here is the crash log.
--------- beginning of crash
04-14 09:56:56.209 16432-16432/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mattel.mcpp.unity, PID: 16432
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2019.2.9f1
Device model : LGE Nexus 5
Device fingerprint: google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys
Caused by: java.lang.RuntimeException: Parcel: unable to marshal value android.bluetooth.BluetoothGattCharacteristic#c829775
at android.os.Parcel.writeValue(Parcel.java:1418)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:686)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1330)
at android.os.Bundle.writeToParcel(Bundle.java:1079)
at android.os.Parcel.writeBundle(Parcel.java:711)
at android.content.Intent.writeToParcel(Intent.java:7793)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:3044)
at android.app.ContextImpl.sendBroadcast(ContextImpl.java:767)
at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:396)
at com.mcpp.mattel.blekit.notification.Notifier$1.run(Notifier.java:141)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-14 09:56:56.211 780-1356/? W/ActivityManager: Force finishing activity com.mattel.mcpp.unity/.UnityPlayerActivity
04-14 09:56:56.234 15784-15826/? W/bt_l2cap: l2cble_set_fixed_channel_tx_data_length, request not supported
04-14 09:56:56.234 15784-15814/? D/BtGatt.GattService: onConfigureMTU() address=03:CC:8F:0F:B3:82, status=0, mtu=247
04-14 09:56:56.235 16432-16442/? D/BluetoothGatt: onConfigureMTU() - Device=03:CC:8F:0F:B3:82 mtu=247 status=0
04-14 09:56:56.353 780-879/? I/OpenGLRenderer: Initialized EGL, version 1.4
04-14 09:56:56.425 780-789/? I/art: Background partial concurrent mark sweep GC freed 35527(2MB) AllocSpace objects, 18(648KB) LOS objects, 33% free, 31MB/47MB, paused 2.107ms total 189.524ms
04-14 09:56:56.444 780-1410/? D/NetlinkSocketObserver: NeighborEvent{elapsedMs=1770229, 192.168.1.1, [3C37868CF82F], RTM_NEWNEIGH, NUD_REACHABLE}
04-14 09:56:56.747 780-793/? W/ActivityManager: Activity pause timeout for ActivityRecord{a047d29 u0 com.mattel.mcpp.unity/.UnityPlayerActivity t116 f}
04-14 09:56:59.128 1575-17219/? W/IcingInternalCorpora: getNumBytesRead when not calculated.
04-14 09:56:59.173 16432-16432/? I/Process: Sending signal. PID: 16432 SIG: 9
04-14 09:56:59.176 1366-1375/? I/art: Background partial concurrent mark sweep GC freed 81016(5MB) AllocSpace objects, 54(1252KB) LOS objects, 39% free, 24MB/40MB, paused 1.778ms total 103.500ms
04-14 09:56:59.199 1575-2165/? I/Icing: Usage reports 0 indexed 0 rejected 0 imm upload false
04-14 09:56:59.205 202-809/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
04-14 09:56:59.210 2855-2855/? W/Binder_B: type=1400 audit(0.0:550): avc: denied { ioctl } for path="socket:[116533]" dev="sockfs" ino=116533 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
04-14 09:56:59.210 2855-2855/? W/Binder_B: type=1400 audit(0.0:551): avc: denied { ioctl } for path="socket:[116533]" dev="sockfs" ino=116533 ioctlcmd=7704 scontext=u:r:system_server:s0 tcontext=u:r:system_server:s0 tclass=unix_stream_socket permissive=0
04-14 09:56:59.247 780-874/? W/InputDispatcher: channel 'cdef40d com.mattel.mcpp.unity/com.mattel.mcpp.unity.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
04-14 09:56:59.247 780-874/? E/InputDispatcher: channel 'cdef40d com.mattel.mcpp.unity/com.mattel.mcpp.unity.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
04-14 09:56:59.251 780-3556/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=35, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ], android.os.BinderProxy#b9acccf)
04-14 09:56:59.251 780-1778/? I/WindowState: WIN DEATH: Window{cdef40d u0 com.mattel.mcpp.unity/com.mattel.mcpp.unity.UnityPlayerActivity}
04-14 09:56:59.251 780-1778/? W/InputDispatcher: Attempted to unregister already unregistered input channel 'cdef40d com.mattel.mcpp.unity/com.mattel.mcpp.unity.UnityPlayerActivity (server)'
04-14 09:56:59.251 780-1778/? W/WindowManager: Force-removing child win Window{26a765c u0 SurfaceView} from container Window{cdef40d u0 com.mattel.mcpp.unity/com.mattel.mcpp.unity.UnityPlayerActivity}
04-14 09:56:59.251 15784-15800/? D/BtGatt.GattService: Binder is dead - unregistering client (5)!
04-14 09:56:59.252 780-891/? D/ConnectivityService: releasing NetworkRequest NetworkRequest [ id=35, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
04-14 09:56:59.253 780-891/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=35, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
04-14 09:56:59.255 15784-15816/? D/BtGatt.AdvertiseManager: message : 1
04-14 09:56:59.255 15784-15816/? D/BtGatt.AdvertiseManager: stop advertise for client 5
04-14 09:56:59.257 15784-15816/? D/BtGatt.GattService: onAdvertiseInstanceDisabled() - clientIf=5, status=0
04-14 09:56:59.257 15784-15816/? D/BtGatt.GattService: Client app is not null!
04-14 09:56:59.258 15784-15816/? D/BtGatt.AdvertiseManager: failed onAdvertiseInstanceDisabled
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.bluetooth.IBluetoothGattCallback$Stub$Proxy.onMultiAdvertiseCallback(IBluetoothGattCallback.java:882)
at com.android.bluetooth.gatt.GattService.onAdvertiseInstanceDisabled(GattService.java:1298)
at com.android.bluetooth.gatt.AdvertiseManager$AdvertiseNative.stopAdvertising(AdvertiseManager.java:318)
at com.android.bluetooth.gatt.AdvertiseManager$ClientHandler.handleStopAdvertising(AdvertiseManager.java:212)
at com.android.bluetooth.gatt.AdvertiseManager$ClientHandler.handleMessage(AdvertiseManager.java:175)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
04-14 09:56:59.258 15784-15816/? D/BtGatt.AdvertiseManager: app died - unregistering client : 5
04-14 09:56:59.259 15784-15816/? D/BtGatt.GattService: unregisterClient() - clientIf=5
04-14 09:56:59.260 15784-15826/? W/bt_btif: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0016
04-14 09:56:59.260 15784-15826/? W/bt_btif: bta_gattc_conn_cback() - cif=4 connected=0 conn_id=4 reason=0x0016
04-14 09:56:59.260 15784-15826/? W/bt_btif: bta_gattc_conn_cback() - cif=5 connected=0 conn_id=5 reason=0x0016
04-14 09:56:59.266 780-790/? W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#92228e6 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8743)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8734)
at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1209)
at android.os.BinderProxy.sendDeathNotice(Binder.java:558)
04-14 09:56:59.266 780-790/? I/WindowState: WIN DEATH: null
Please let me know if you have any possible idea or if you have faced this issue before. Your help is much appreciated. Thank you.
The older versions of Android is not able to marshal BluetoothGattCharacteristic even though it implements Parcelable. I was wrapping it in intent bundle with putExtra(). To support older versions (in my case Android 6.0), we need to pass string value of UUIDs if we are using intent bundles to pass around UUID for scan filters.
Example, intent.putExtra(BleUtils.CHARACTERISTIC, characteristic.getUuid().toString());
I am a little new to Android Studio and hybrid application building suing cordova.
I am trying to build a Salesforce hybrid app in Android Studio.
The project gets cleaned and builds successfully without any errors.
But, while installing the APK to emulator it gives an error that
Session 'android': Error Launching activity
In the Emulator it says:
Unfortunately, app has stopped
My stack trace is as below:
09-20 01:44:34.430 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:44:43.439 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Queue length for executor GrecoExecutor with 1 threads is now 8. Perhaps some tasks are too long, or the pool is too small.
09-20 01:45:17.627 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:46:01.058 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:46:29.330 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:46:47.516 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:46:47.846 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Queue length for executor GrecoExecutor with 1 threads is now 8. Perhaps some tasks are too long, or the pool is too small.
09-20 01:46:48.319 8337-9489/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.speech.audio.u#336e7b1
09-20 01:46:48.323 8337-8500/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 786434]: Error reading from input stream.
09-20 01:46:48.324 8337-8500/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, ignoring error from engine(3): com.google.android.apps.gsa.shared.speech.a.h: Error reading from input stream.
09-20 01:46:48.325 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Task c[startRecognition] took 318737ms, which is over the 300000ms threshold
09-20 01:46:48.406 8337-9490/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Hotword detection finished
09-20 01:46:48.408 8337-8500/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error at processing input stream
09-20 01:46:48.422 8337-8504/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Stopping hotword detection.
09-20 01:46:48.422 8337-8500/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.a.g: Error at processing input stream
at com.google.android.search.core.hotword.l.bsw(HotwordRecognitionRunner.java:166)
at com.google.android.search.core.hotword.l$1.run(HotwordRecognitionRunner.java:138)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
at com.google.android.apps.gsa.shared.util.c.a.l$1.run(GsaThreadFactory.java:99)
Caused by: com.google.android.apps.gsa.shared.api.io.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.aHz(Tee.java:474)
at com.google.android.apps.gsa.speech.audio.Tee.k(Tee.java:301)
at com.google.android.apps.gsa.speech.audio.ad.read(Tee.java:503)
at java.io.InputStream.read(InputStream.java:162)
at com.google.android.apps.gsa.speech.audio.z.run(MultipleReaderAudioSource.java:206)
09-20 01:46:48.545 8337-8337/com.google.android.googlequicksearchbox:search I/HotwordWorker: #onError(false)
09-20 01:46:53.715 8337-9505/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.speech.audio.u#eae2893
09-20 01:46:53.718 7462-7783/? E/audio_hw_generic: Error opening input stream format 1, channel_mask 0010, sample_rate 16000
09-20 01:46:53.726 7462-9507/? I/AudioFlinger: AudioFlinger's thread 0xf39c0000 ready to run
09-20 01:46:53.783 8337-9505/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.speech.audio.u#eae2893
09-20 01:46:53.788 8337-9508/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Starting hotword detection.
09-20 01:46:53.791 8337-8337/com.google.android.googlequicksearchbox:search I/HotwordWorker: onReady
09-20 01:47:11.373 7724-7740/system_process E/BluetoothAdapter: Bluetooth binder is null
--------- beginning of system
09-20 01:47:11.377 7724-7740/system_process E/KernelCpuSpeedReader: Failed to read cpu-freq
java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.android.internal.os.KernelCpuSpeedReader.readDelta(KernelCpuSpeedReader.java:49)
at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8002)
at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.android.internal.os.KernelCpuSpeedReader.readDelta(KernelCpuSpeedReader.java:49)
at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8002)
at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-20 01:47:11.378 7724-7740/system_process E/KernelUidCpuTimeReader: Failed to read uid_cputime
java.io.FileNotFoundException: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.android.internal.os.KernelUidCpuTimeReader.readDelta(KernelUidCpuTimeReader.java:71)
at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8031)
at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileReader.<init>(FileReader.java:66)
at com.android.internal.os.KernelUidCpuTimeReader.readDelta(KernelUidCpuTimeReader.java:71)
at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8031)
at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
at com.android.server.am.BatteryStatsService$BatteryStatsHandler.handleMessage(BatteryStatsService.java:125)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-20 01:47:11.378 7724-7740/system_process E/KernelWakelockReader: neither /proc/wakelocks nor /d/wakeup_sources exists
09-20 01:47:11.380 7724-7740/system_process W/BatteryStatsImpl: Couldn't get kernel wake lock stats
09-20 01:47:11.786 8511-9509/com.google.android.gms D/DropBoxEntryAddedChimeraService: User is not opted-in to Usage & Diagnostics or Lockbox.
09-20 01:47:16.711 8138-8148/com.google.process.gapps W/art: Suspending all threads took: 63.308ms
09-20 01:47:25.361 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:47:43.857 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:47:57.846 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:47:58.515 7724-7738/system_process I/ProcessStatsService: Prepared write state in 1ms
09-20 01:47:58.516 7724-7738/system_process I/ProcessStatsService: Prepared write state in 1ms
09-20 01:49:22.116 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:49:22.434 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Queue length for executor GrecoExecutor with 1 threads is now 8. Perhaps some tasks are too long, or the pool is too small.
09-20 01:49:40.171 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Queue length for executor GrecoExecutor with 1 threads is now 8. Perhaps some tasks are too long, or the pool is too small.
09-20 01:49:41.652 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:50:32.159 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:50:39.881 8337-9508/com.google.android.googlequicksearchbox:search W/art: Long monitor contention event with owner method=int com.google.android.apps.gsa.speech.audio.Tee.k(byte[], int, int) from Tee.java:240 waiters=3 for 153ms
09-20 01:50:41.561 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:51:02.907 7724-7737/system_process I/UsageStatsService: User[0] Flushing usage stats to disk
09-20 01:51:07.672 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:51:07.775 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Queue length for executor GrecoExecutor with 1 threads is now 8. Perhaps some tasks are too long, or the pool is too small.
09-20 01:52:19.800 7462-9507/? W/AudioFlinger: RecordThread: buffer overflow
09-20 01:52:59.098 8511-9511/com.google.android.gms I/EventLogChimeraService: Aggregate from 1474314776671 (log), 1474314776671 (data)
09-20 01:52:59.662 7724-7760/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras)} from uid 1000 on display 0
[ 09-20 01:52:59.723 7724: 7760 D/ ]
HostConnection::get() New Host Connection established 0x7fe99733e500, tid 7760
09-20 01:52:59.802 1187-1187/? E/EGL_emulation: tid 1187: eglCreateSyncKHR(1370): error 0x3004 (EGL_BAD_ATTRIBUTE)
09-20 01:52:59.880 7462-7780/? D/AudioFlinger: mixer(0xf44c0000) throttle end: throttle time(11)
09-20 01:53:00.121 7724-7743/system_process W/art: Long monitor contention event with owner method=android.graphics.Bitmap com.android.server.wm.WindowManagerService.screenshotApplicationsInner(android.os.IBinder, int, int, int, boolean) from WindowManagerService.java:6223 waiters=0 for 440ms
09-20 01:53:00.181 7724-7760/system_process D/gralloc_ranchu: gralloc_unregister_buffer: exiting HostConnection (is buffer-handling thread)
09-20 01:53:00.197 8337-8500/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.speech.audio.u#eae2893
09-20 01:53:00.218 7724-7991/system_process W/art: Long monitor contention event with owner method=int com.android.server.am.ActivityStackSupervisor.startActivityMayWait(android.app.IApplicationThread, int, java.lang.String, android.content.Intent, java.lang.String, android.service.voice.IVoiceInteractionSession, com.android.internal.app.IVoiceInteractor, android.os.IBinder, java.lang.String, int, int, android.app.ProfilerInfo, android.app.IActivityManager$WaitResult, android.content.res.Configuration, android.os.Bundle, boolean, int, android.app.IActivityContainer, com.android.server.am.TaskRecord) from ActivityStackSupervisor.java:946 waiters=0 for 537ms
09-20 01:53:00.218 7724-7851/system_process W/art: Long monitor contention event with owner method=int com.android.server.am.ActivityStackSupervisor.startActivityMayWait(android.app.IApplicationThread, int, java.lang.String, android.content.Intent, java.lang.String, android.service.voice.IVoiceInteractionSession, com.android.internal.app.IVoiceInteractor, android.os.IBinder, java.lang.String, int, int, android.app.ProfilerInfo, android.app.IActivityManager$WaitResult, android.content.res.Configuration, android.os.Bundle, boolean, int, android.app.IActivityContainer, com.android.server.am.TaskRecord) from ActivityStackSupervisor.java:946 waiters=1 for 446ms
09-20 01:53:00.252 8337-8337/com.google.android.googlequicksearchbox:search W/VelvetPresenter: Still observing while not the active client
09-20 01:53:00.265 8337-8337/com.google.android.googlequicksearchbox:search W/VelvetPresenter: Still observing while not the active client
09-20 01:53:00.274 8337-9508/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Hotword detection finished
09-20 01:53:00.276 8337-8504/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Stopping hotword detection.
09-20 01:53:00.306 8337-9329/com.google.android.googlequicksearchbox:search W/TRThreadPoolExecutor: Task c[startRecognition] took 366597ms, which is over the 300000ms threshold
09-20 01:53:00.494 7724-7734/system_process I/art: Background partial concurrent mark sweep GC freed 20628(1791KB) AllocSpace objects, 13(320KB) LOS objects, 31% free, 8MB/12MB, paused 915us total 350.246ms
09-20 01:53:00.542 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background sticky concurrent mark sweep GC freed 27734(1016KB) AllocSpace objects, 1(16KB) LOS objects, 9% free, 10MB/11MB, paused 1.383ms total 225.598ms
09-20 01:53:00.577 8094-8094/com.google.android.googlequicksearchbox I/GEL: handleIntent(Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10600000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras) })
09-20 01:53:00.701 8337-9517/com.google.android.googlequicksearchbox:search W/art: Verification of void com.google.android.apps.gsa.extradex.bloblobber.k.save() took 107.172ms
09-20 01:53:00.899 8511-9514/com.google.android.gms D/DropBoxEntryAddedChimeraService: User is not opted-in to Usage & Diagnostics or Lockbox.
09-20 01:53:01.047 8337-9517/com.google.android.googlequicksearchbox:search W/art: Verification of boolean com.google.android.apps.gsa.extradex.bloblobber.m.a(java.io.File, android.content.Context) took 136.969ms
09-20 01:53:01.327 8337-9517/com.google.android.googlequicksearchbox:search W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
09-20 01:53:01.701 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background sticky concurrent mark sweep GC freed 4689(892KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 11MB/11MB, paused 3.743ms total 355.853ms
09-20 01:53:01.939 8337-9388/com.google.android.googlequicksearchbox:search E/Surface: getSlotFromBufferLocked: unknown buffer: 0xe06f61a0
09-20 01:53:01.991 8094-8094/com.google.android.googlequicksearchbox I/Choreographer: Skipped 63 frames! The application may be doing too much work on its main thread.
09-20 01:53:02.122 7820-7833/com.android.systemui I/art: Background partial concurrent mark sweep GC freed 50589(1951KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 5MB/9MB, paused 821us total 322.859ms
09-20 01:53:02.158 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background partial concurrent mark sweep GC freed 4540(265KB) AllocSpace objects, 6(2MB) LOS objects, 30% free, 9MB/13MB, paused 5.075ms total 287.771ms
09-20 01:53:02.186 8337-9521/com.google.android.googlequicksearchbox:search I/HotwordRecognitionRnr: Starting hotword detection.
09-20 01:53:02.190 8337-9522/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.speech.audio.u#5e96f99
09-20 01:53:02.296 8094-8353/com.google.android.googlequicksearchbox W/OpenGLRenderer: Incorrectly called buildLayer on View: em, destroying layer...
09-20 01:53:02.309 7462-7976/? E/audio_hw_generic: Error opening input stream format 1, channel_mask 0010, sample_rate 16000
09-20 01:53:02.402 7462-9524/? I/AudioFlinger: AudioFlinger's thread 0xf39c0000 ready to run
09-20 01:53:02.442 8337-9522/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.speech.audio.u#5e96f99
09-20 01:53:02.536 1187-1187/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
09-20 01:53:02.563 8337-8337/com.google.android.googlequicksearchbox:search I/HotwordWorker: onReady
09-20 01:53:02.699 8337-9517/com.google.android.googlequicksearchbox:search W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
09-20 01:53:02.700 8337-9517/com.google.android.googlequicksearchbox:search W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
09-20 01:53:03.297 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background sticky concurrent mark sweep GC freed 20524(1572KB) AllocSpace objects, 0(0B) LOS objects, 8% free, 11MB/13MB, paused 5.204ms total 170.783ms
09-20 01:53:03.326 8337-9517/com.google.android.googlequicksearchbox:search W/linker: /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk: unused DT entry: type 0x7ffffffd arg 0xa0a
09-20 01:53:03.811 8337-9517/com.google.android.googlequicksearchbox:search W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
09-20 01:53:03.813 8337-9517/com.google.android.googlequicksearchbox:search W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
09-20 01:53:04.023 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background sticky concurrent mark sweep GC freed 2343(173KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 13MB/13MB, paused 14.298ms total 92.333ms
09-20 01:53:04.154 8337-8347/com.google.android.googlequicksearchbox:search I/art: Background partial concurrent mark sweep GC freed 9385(661KB) AllocSpace objects, 1(68KB) LOS objects, 22% free, 13MB/17MB, paused 2.174ms total 103.590ms
09-20 01:53:04.283 8337-9517/com.google.android.googlequicksearchbox:search W/linker: /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk: unused DT entry: type 0x1d arg 0x91
09-20 01:53:04.283 8337-9517/com.google.android.googlequicksearchbox:search W/linker: /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk: unused DT entry: type 0x7ffffffd arg 0x174
09-20 01:53:04.292 8337-9517/com.google.android.googlequicksearchbox:search V/JNIHelp: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 255 native methods...
09-20 01:53:05.042 8337-9517/com.google.android.googlequicksearchbox:search I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
09-20 01:53:06.078 8511-9539/com.google.android.gms D/DropBoxEntryAddedChimeraService: User is not opted-in to Usage & Diagnostics or Lockbox.
09-20 01:53:06.442 7724-7739/system_process W/art: Long monitor contention event with owner method=android.content.ComponentName com.android.server.am.ActivityManagerService.startService(android.app.IApplicationThread, android.content.Intent, java.lang.String, java.lang.String, int) from ActivityManagerService.java:15676 waiters=0 for 120ms
How can I solve this?
I also encountered the error message
Error code: 393238 | Buffer overflow, no available space.
For me, the reason was that I was targeting Android 24. Android 24 has a change that results in a FileUreExposedException being thrown when using a file:// URI instead of a content:// URI. For more details, see:
https://developer.android.com/reference/android/os/FileUriExposedException.html
Unfortunately, the emulator swallowed this exception so it was a bit difficult to detect; it showed only the "Buffer overflow, no available space." message.
A simple workaround is to target Android 23.
Better solutions are described here:
android.os.FileUriExposedException: file:///storage/emulated/0/test.txt exposed beyond app through Intent.getData()
In my code from where I call webview activity I added the following statement:
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setDomStorageEnabled(true);
Still it doesn't work for me on Android 5.1.1
My log cat displaying me this:
09-02 14:22:05.258 19661-19661/com.example.obs I/Timeline: Timeline: Activity_launch_request id:com.example.obs time:12875631 beginning of system
09-02 14:22:05.311 19661-19675/com.example.obs W/art: Suspending all threads took: 13.479ms 09-02 14:22:05.396 19661-19661/com.example.obs I/WebViewFactory: Loading com.google.android.webview version 51.0.2704.81 (code 270408150)
09-02 14:22:05.409 19661-19661/com.example.obs I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 5781-5782)
09-02 14:22:05.409 19661-19661/com.example.obs I/cr_LibraryLoader: Expected native library version number "51.0.2704.81", actual native library version number "51.0.2704.81"
09-02 14:22:05.416 19661-19661/com.example.obs V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {21b37efb}
09-02 14:22:05.416 19661-19661/com.example.obs I/cr_LibraryLoader: Expected native library version number "51.0.2704.81", actual native library version number "51.0.2704.81"
09-02 14:22:05.416 19661-19661/com.example.obs I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
09-02 14:22:05.438 19661-19661/com.example.obs I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
09-02 14:22:05.488 19661-20394/com.example.obs W/cr_media: Requires BLUETOOTH permission
09-02 14:22:05.503 19661-19661/com.example.obs I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
09-02 14:22:05.503 19661-19661/com.example.obs I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$WebResourceErrorImpl>
09-02 14:22:05.528 19661-20396/com.example.obs D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
09-02 14:22:05.547 19661-19661/com.example.obs I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
09-02 14:22:05.547 19661-19661/com.example.obs I/art: Rejecting re-init on previously-failed class java.lang.Class<org.chromium.content.browser.FloatingWebActionModeCallback>
09-02 14:22:05.561 19661-19661/com.example.obs D/cr_Ime: [InputMethodManagerWrapper.java:30] Constructor
09-02 14:22:05.569 19661-19661/com.example.obs W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
09-02 14:22:05.570 19661-19661/com.example.obs D/cr_Ime: [InputMethodManagerWrapper.java:59] isActive: false
09-02 14:22:05.611 19661-19661/com.example.obs I/cr_Ime: ImeThread is not enabled.
09-02 14:22:05.637 19661-20403/com.example.obs E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-02 14:22:05.656 19661-20403/com.example.obs W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
09-02 14:22:05.663 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/qcelp
09-02 14:22:05.664 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/evrc
09-02 14:22:05.669 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/mpeg2
09-02 14:22:05.670 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/mpeg2
09-02 14:22:05.675 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/x-ms-wmv
09-02 14:22:05.677 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/divx
09-02 14:22:05.680 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/divx311
09-02 14:22:05.680 19661-20403/com.example.obs W/Utils: could not parse size range '64x64-1920X1088'
09-02 14:22:05.683 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/divx4
09-02 14:22:05.688 19661-20403/com.example.obs W/Utils: could not parse size range '64x64-1920X1080'
09-02 14:22:05.691 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/mp4v-esdp
09-02 14:22:05.704 19661-20403/com.example.obs I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
09-02 14:22:05.708 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/ac3
09-02 14:22:05.710 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/x-ape
09-02 14:22:05.711 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/ffmpeg
09-02 14:22:05.712 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/vnd.dts
09-02 14:22:05.714 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/mpeg-L2
09-02 14:22:05.716 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/vnd.rn-realaudio
09-02 14:22:05.717 19661-20403/com.example.obs W/AudioCapabilities: Unsupported mime audio/x-ms-wma
09-02 14:22:05.718 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/divx
09-02 14:22:05.720 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/x-flv
09-02 14:22:05.722 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/mpeg2
09-02 14:22:05.726 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/vnd.rn-realvideo
09-02 14:22:05.728 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/vc1
09-02 14:22:05.730 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/ffmpeg
09-02 14:22:05.732 19661-20403/com.example.obs W/VideoCapabilities: Unsupported mime video/x-ms-wmv
09-02 14:22:05.736 19661-20396/com.example.obs D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
09-02 14:22:05.863 19661-19795/com.example.obs V/RenderScript: Application requested CPU execution
09-02 14:22:05.866 19661-19795/com.example.obs V/RenderScript: 0x5586157780 Launching thread(s), CPUs 8
09-02 14:22:05.889 19661-19661/com.example.obs W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 19661
09-02 14:22:05.890 19661-19661/com.example.obs D/cr_Ime: [InputMethodManagerWrapper.java:59] isActive: false
09-02 14:22:05.894 19661-19661/com.example.obs I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#4a1d642 time:12876268
a lot of trouble come up this evening when I tried testing my app with genymotion on older Android-APIs.. (Gapps / Play Services installed by drag- & dropping the zip into the emulators window)
Here are some errors:
Reason: Executing service
com.pepperonas.libredrive/com.google.android.gms.analytics.AnalyticsService
Load: 0.24 / 0.1 / 0.04
CPU usage from 5073ms to 0ms ago:
0.1% 470/system_server: 0.1% user + 0% kernel / faults: 10 minor
0% 569/com.android.systemui: 0% user + 0% kernel
0% 1534/com.google.android.apps.maps: 0% user + 0% kernel
0.1% TOTAL: 0% user + 0.1% kernel
CPU usage from 104ms to 606ms later:
1.8% 665/com.android.phone: 0% user + 1.8% kernel / faults: 2 minor
0% TOTAL: 0% user + 0% kernel 06-23 02:08:29.707 470-486/system_process D/﹕ HostConnection::get() New Host Connection
established 0xb8a13a80, tid 486 06-23 02:08:32.107
470-481/system_process D/Sensors﹕ Client connection accepted (43)
06-23 02:08:33.067 470-520/system_process E/Genymotion﹕ Could not
open '/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:33.567 470-661/system_process W/ThrottleService﹕ unable to
find stats for iface rmnet0 06-23 02:08:38.068
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:43.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:48.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:53.068 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:08:58.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:03.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:04.780 989-2234/com.google.android.gms
I/GoogleURLConnFactory﹕ Using platform SSLCertificateSocketFactory
06-23 02:09:04.780 470-560/system_process D/SyncManager﹕ failed
sync operation martinpaush#gmail.com u0 (com.google), subscribedfeeds,
LOCAL, earliestRunTime 89277, SyncResult: stats [ numIoExceptions: 1]
06-23 02:09:06.895 989-994/com.google.android.gms D/dalvikvm﹕
GC_CONCURRENT freed 517K, 5% free 10637K/11180K, paused 1ms+1ms, total
6ms 06-23 02:09:06.899 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] getTokenFromCache: [account: ,
callingPkg: com.google.android.gms, service:
oauth2:https://www.googleapis.com/auth/ads_measurement] 06-23
02:09:06.899 770-1365/com.google.process.gapps I/Auth.Core﹕
[TokenCache] Missing snowballing token: no granted scopes set. 06-23
02:09:06.899 770-1365/com.google.process.gapps I/GLSUser﹕
[GLSUser] getTokenFromGoogle [account: , callingPkg:
com.google.android.gms, service:
oauth2:https://www.googleapis.com/auth/ads_measurement 06-23
02:09:06.939 770-779/com.google.process.gapps D/dalvikvm﹕
GC_CONCURRENT freed 357K, 4% free 9747K/10132K, paused 2ms+0ms, total
5ms 06-23 02:09:07.003 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] getAuthtoken(,
oauth2:https://www.googleapis.com/auth/ads_measurement) -> status:
null) 06-23 02:09:07.003 770-1365/com.google.process.gapps
I/GLSUser﹕ [GLSUser] Extracting token using key: Auth 06-23
02:09:07.019 770-1365/com.google.process.gapps W/GLSUser﹕
[GLSUser] Permission for com.google.android.gms to access
oauth2:https://www.googleapis.com/auth/ads_measurement will be managed
locally. 06-23 02:09:07.027 989-2235/com.google.android.gms
D/dalvikvm﹕ DexOpt: --- BEGIN 'ads-1840532237.jar' (bootstrap=0) ---
06-23 02:09:07.039 2237-2237/? D/dalvikvm﹕ DexOpt: load 0ms,
verify+opt 1ms, 182196 bytes 06-23 02:09:07.039
989-2235/com.google.android.gms D/dalvikvm﹕ DexOpt: --- END
'ads-1840532237.jar' (success) --- 06-23 02:09:07.039
989-2235/com.google.android.gms D/dalvikvm﹕ DEX prep
'/data/data/com.google.android.gms/cache/ads-1840532237.jar': unzip in
0ms, rewrite 9ms 06-23 02:09:07.387
989-994/com.google.android.gms D/dalvikvm﹕ GC_CONCURRENT freed 581K,
6% free 10643K/11268K, paused 1ms+0ms, total 4ms 06-23 02:09:08.067
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:13.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:17.443 470-486/system_process W/ActivityManager﹕ Force
finishing activity com.pepperonas.libredrive/.activities.MainActivity
06-23 02:09:17.463 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 44149 to 23219 06-23 02:09:17.483
470-486/system_process D/dalvikvm﹕ GC_FOR_ALLOC freed 1337K, 20% free
14363K/17784K, paused 9ms, total 10ms 06-23 02:09:17.483
385-391/? W/genymotion_audio﹕ out_write() limiting sleep time 55759 to
23219 06-23 02:09:17.487 470-486/system_process
I/ActivityManager﹕ Killing ProcessRecord{536d67c8
2151:com.pepperonas.libredrive/u0a10071}: user's request 06-23
02:09:17.487 470-483/system_process I/ActivityManager﹕ Process
com.pepperonas.libredrive (pid 2151) has died. 06-23 02:09:17.487
470-483/system_process W/ActivityManager﹕ Scheduling restart of
crashed service
com.pepperonas.libredrive/com.google.android.gms.analytics.AnalyticsService
in 136866ms 06-23 02:09:17.499 470-547/system_process I/qtaguid﹕
Failed write_ctrl(s 0 10071) res=-1 errno=1 06-23 02:09:17.499
470-547/system_process W/NetworkManagementSocketTagger﹕
setKernelCountSet(10071, 0) failed with errno -1 06-23 02:09:17.503
385-391/? W/genymotion_audio﹕ out_write() limiting sleep time 67369 to
23219 06-23 02:09:17.527 681-681/com.android.launcher
W/EGL_genymotion﹕ eglSurfaceAttrib not implemented 06-23 02:09:17.527
470-470/system_process W/InputMethodManagerService﹕ Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy#536cc358
attribute=null, token = android.os.BinderProxy#536c06a4 06-23
02:09:17.555 385-391/? W/genymotion_audio﹕ out_write() limiting
sleep time 68979 to 23219 06-23 02:09:17.579 385-391/?
W/genymotion_audio﹕ out_write() limiting sleep time 60589 to 23219
06-23 02:09:17.599 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 52199 to 23219 06-23 02:09:17.619 385-391/?
W/genymotion_audio﹕ out_write() limiting sleep time 33809 to 23219
06-23 02:09:17.647 385-391/? W/genymotion_audio﹕ out_write()
limiting sleep time 25419 to 23219 06-23 02:09:18.067
470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:23.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present' 06-23
02:09:28.067 470-520/system_process E/Genymotion﹕ Could not open
'/sys/class/power_supply/genymotion_fake_path/present'
more...
06-23 02:08:09.147 2168-2194/com.google.android.gm E/Gmail﹕ Error
finding the version of the Email provider.....
android.content.pm.PackageManager$NameNotFoundException: com.google.android.email
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80)
at com.google.android.gm.EmailMigrationService.a(SourceFile:1279)
at com.google.android.gm.EmailMigrationService.onHandleIntent(SourceFile:219)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
and another error:
06-23 02:08:09.123 2168-2168/com.google.android.gm E/dalvikvm﹕
Could not find class 'android.app.AppOpsManager', referenced from
method com.google.android.gms.common.e.a
I've never seen these errors before.
The same "setup" was running a few hours before totally perfect (the issues came up when I started the updated emulator). Does anybody know how to fix this? I restarted my computer, adb and VirtualBox, but it didn't changed anything.
I'm very sure that the apk is fine and the Maps-Api / AdMob / Analytics is referenced correctly, the same app runs on my real device (HTC m8) without any issues.
now I got managed the issue. After I flashed gapps-jb-20130301-signed.zip the emulator executes the app without any errors.
This solutions assumes you use:
Genymotion 2.5
Virtual device running API17 (JellyBean)
Hope it helps others.
Regards
I have an Android app that uses the MediaPlayer component to play movies.
It works fine with all the Android devices, except on the Kindle Fire HD (and probably other Amazon devices as well as I haven't had the chance to test on others).
On the Kindle logcat prints the following output:
09-02 09:37:46.971 23979-23979/it.hearst.elledecortest I/VideoControllerView: VideoControllerView
09-02 09:37:46.971 23979-23979/it.hearst.elledecortest I/VideoControllerView: VideoControllerView
09-02 09:37:46.986 23979-23979/it.hearst.elledecortest D/MovieViewController: onViewAttachedToWindow
09-02 09:37:47.010 108-108/? E/ASFDummyExtractor: isASFParserAvailable
09-02 09:37:47.010 108-108/? W/ASFDummyExtractor: ASF parser is not available
09-02 09:37:47.010 108-108/? I/AwesomePlayer: Awsomeplayer is created
09-02 09:37:47.010 108-108/? I/AwesomePlayer: board file present
09-02 09:37:47.010 108-108/? I/AwesomePlayer: cabc present
09-02 09:37:47.010 108-108/? I/AwesomePlayer: setCabc file open !
09-02 09:37:47.010 108-108/? I/AwesomePlayer: setCabc ret = -22
09-02 09:37:47.010 108-108/? I/AwesomePlayer: cabc present
09-02 09:37:47.010 108-108/? I/AwesomePlayer: setCabc file open !
09-02 09:37:47.010 108-108/? I/AwesomePlayer: setCabc ret = -22
09-02 09:37:47.010 108-24246/? I/AwesomePlayer: cabc present
09-02 09:37:47.010 108-24246/? I/AwesomePlayer: setCabc file open !
09-02 09:37:47.010 108-24246/? I/AwesomePlayer: setCabc ret = -22
09-02 09:37:47.010 23979-23989/it.hearst.elledecortest E/MediaPlayer: error (1, -2147483648)
09-02 09:37:47.119 23979-23979/it.hearst.elledecortest E/MediaPlayer: Error (1,-2147483648)
09-02 09:37:47.142 23979-23979/it.hearst.elledecortest E/MediaPlayer: prepareAsync called in state 0
Anyone who has any insights on what could be going on?
Thanks!
error (1, -2147483648) is the general error for MediaPlayer. Oftenly, this error is associated to a non-readable file.
You should try reading this file with a file explorer
Hope it helps