Indoor Atlas: Cant get Android SDK example to run - android

I just downloaded the Indoor Atlas SDK and attempted to run. There were various small errors that I managed to fix but now stuck. The app installs (via emulator and on a Galaxy tab) but both giving me the same error:
E/AndroidRuntime﹕ FATAL EXCEPTION: IdaSensorReadingManager
Process: xxxx.indooratlas, PID: 1632
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.Sensor.getType()' on a null object reference
at com.indooratlas._internal.ai.a(Unknown Source)
at com.indooratlas._internal.ai.b(Unknown Source)
at com.indooratlas._internal.ai$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Is this standard Android error or Indoor Atlas specific?
SDK version: indooratlas-android-sdk-release-1.3.1-108
Tested on Android 4.4 and 5.0
03-16 16:21:17.971 11646-11646/com.example.indooratlas E/SELinux﹕ [DEBUG] seapp_context_lookup: seinfoCategory = default
03-16 16:21:17.971 11646-11646/com.example.indooratlas D/dalvikvm﹕ Late-enabling CheckJNI
03-16 16:21:17.971 11646-11646/com.example.indooratlas D/dalvikvm﹕ Try to disable coredump for pid 11646
03-16 16:21:17.971 11646-11646/com.example.indooratlas D/dalvikvm﹕ Process 11646 nice name: com.example.indooratlas
03-16 16:21:17.971 11646-11646/com.example.indooratlas D/dalvikvm﹕ Extra Options: not specified
03-16 16:21:18.101 11646-11646/com.example.indooratlas D/dalvikvm﹕ GC_FOR_ALLOC freed 913K, 28% free 4868K/6704K, paused 3ms, total 3ms
03-16 16:21:18.111 11646-11646/com.example.indooratlas D/dalvikvm﹕ GC_FOR_ALLOC freed 824K, 29% free 4907K/6816K, paused 2ms, total 3ms
03-16 16:21:18.111 11646-11646/com.example.indooratlas D/dalvikvm﹕ GC_FOR_ALLOC freed 874K, 29% free 4913K/6848K, paused 3ms, total 3ms
03-16 16:21:18.231 11646-11646/com.example.indooratlas D/dalvikvm﹕ GC_FOR_ALLOC freed 675K, 27% free 5051K/6848K, paused 4ms, total 4ms
03-16 16:21:18.261 11646-11646/com.example.indooratlas D/AbsListView﹕ Get MotionRecognitionManager
03-16 16:21:18.291 11646-11646/com.example.indooratlas D/MainActivity﹕ Connecting with IndoorAtlas, apiKey: my-api-ley
03-16 16:21:18.321 11646-11646/com.example.indooratlas I/dalvikvm﹕ Failed resolving Lcom/indooratlas/_internal/bg$b; interface 150 'Landroid/net/ConnectivityManager$OnNetworkActiveListener;'
03-16 16:21:18.321 11646-11646/com.example.indooratlas W/dalvikvm﹕ Link of class 'Lcom/indooratlas/_internal/bg$b;' failed
03-16 16:21:18.321 11646-11646/com.example.indooratlas E/dalvikvm﹕ Could not find class 'com.indooratlas._internal.bg$b', referenced from method com.indooratlas._internal.bg.b
03-16 16:21:18.321 11646-11646/com.example.indooratlas W/dalvikvm﹕ VFY: unable to resolve new-instance 1515 (Lcom/indooratlas/_internal/bg$b;) in Lcom/indooratlas/_internal/bg;
03-16 16:21:18.321 11646-11646/com.example.indooratlas D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x000c
03-16 16:21:18.321 11646-11646/com.example.indooratlas I/dalvikvm﹕ Failed resolving Lcom/indooratlas/_internal/bg$b; interface 150 'Landroid/net/ConnectivityManager$OnNetworkActiveListener;'
03-16 16:21:18.321 11646-11646/com.example.indooratlas W/dalvikvm﹕ Link of class 'Lcom/indooratlas/_internal/bg$b;' failed
03-16 16:21:18.321 11646-11646/com.example.indooratlas D/dalvikvm﹕ DexOpt: unable to opt direct call 0x2fe9 at 0x0e in Lcom/indooratlas/_internal/bg;.b
03-16 16:21:18.421 11646-11662/com.example.indooratlas D/dalvikvm﹕ Trying to load lib /data/data/com.example.indooratlas/files/assetlib.so 0x438b36a0
03-16 16:21:18.471 11646-11662/com.example.indooratlas D/houdini﹕ [11662] Loading library(version: 4.0.8.45720 RELEASE)... successfully.
03-16 16:21:18.521 11646-11662/com.example.indooratlas D/dalvikvm﹕ Added shared lib /data/data/com.example.indooratlas/files/assetlib.so 0x438b36a0
03-16 16:21:18.561 11646-11646/com.example.indooratlas D/MainActivity﹕ IndoorAtlas instance created
03-16 16:21:18.571 11646-11662/com.example.indooratlas I/SensorManagerA﹕ getReportingMode :: sensor.mType = 1
03-16 16:21:18.581 11646-11662/com.example.indooratlas D/SensorManager﹕ registerListener :: 1, K2DH Acceleration Sensor, 33333, 0,
03-16 16:21:18.581 11646-11662/com.example.indooratlas W/dalvikvm﹕ threadid=11: thread exiting with uncaught exception (group=0x433111a0)
03-16 16:21:18.581 11646-11662/com.example.indooratlas E/AndroidRuntime﹕ FATAL EXCEPTION: IdaSensorReadingManager
Process: com.example.indooratlas, PID: 11646
java.lang.NullPointerException
at com.indooratlas._internal.ai.a(Unknown Source)
at com.indooratlas._internal.ai.b(Unknown Source)
at com.indooratlas._internal.ai$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.os.HandlerThread.run(HandlerThread.java:61)
03-16 16:21:18.911 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 66
03-16 16:21:18.921 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 70
03-16 16:21:18.921 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 71
03-16 16:21:18.931 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 71
03-16 16:21:18.931 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 71
03-16 16:21:18.931 11646-11646/com.example.indooratlas E/IMGSRV﹕ :0: PVRDRMOpen: TP3, ret = 73
03-16 16:21:18.961 11646-11646/com.example.indooratlas D/OpenGLRenderer﹕ Enabling debug mode 0
03-16 16:21:22.171 11646-11646/com.example.indooratlas D/AbsListView﹕ onDetachedFromWindow
Thanks

You currently (with version 1.3.1) cannot run IndoorAtlas's Android SDK using an emulator. IndoorAtlas's technology is mostly based on magnetic positioning (i.e. using magnetic field sensor and fusing other sensors too). You might be able to run the SDK but unless you manage to simulate those sensors in your emulator, you would not get too far as you would not get any locations. See key features of IndoorAtlas's service: https://www.indooratlas.com/features. There are some projects for simulating sensors, such as this: https://code.google.com/p/android-sensor-emulation/ - but I'd recommend using a real device if possible. Note that in order to do a full positioning test, you also need to create a magnetic map of your location (unless there is an already mapped public location nearby), see developer website on instructions how to get it done: https://developer.indooratlas.com/dashboard (Collect Data).

IndoorAtlas for Android is NOT run on emulator.
And it need at least Android Gingerbread version.
The device also need Gyroscope and Magnetometer.
Check it out firstly.

Related

Hybrid app crashing in Android studio with error: Session 'android': Error Launching activity

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()

Cordova 6.0.0 Unfortunaly, HelloWorld has stopped

I try to use cordova in windows for create a simple android app. I create the first project using command cordova create hello com.example.hello HelloWorld
I add the Android platform, I try to build and build success, but when I emulate the app don't start and receive the error on screen:
Unfortunaly, HelloWorld has stopped.
logcat:
03-16 16:44:19.073 2442-2442/com.example.hello W/System﹕ ClassLoader referenced unknown path: /data/app/com.example.hello-1/lib/x86
03-16 16:44:19.266 2442-2442/com.example.hello I/WebViewFactory﹕ Loading com.android.webview version 44.0.2403.119 (code 246011910)
03-16 16:44:19.310 2442-2442/com.example.hello W/System﹕ ClassLoader referenced unknown path: /system/app/webview/lib/x86
03-16 16:44:19.377 2442-2442/com.example.hello I/LibraryLoader﹕ Time to load native libraries: 62 ms (timestamps 9389-9451)
03-16 16:44:19.377 2442-2442/com.example.hello I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
03-16 16:44:19.392 2442-2442/com.example.hello I/LibraryLoader﹕ Expected native library version number "",actual native library version number ""
03-16 16:44:19.392 2442-2442/com.example.hello I/chromium﹕ [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
03-16 16:44:19.483 2442-2442/com.example.hello I/BrowserStartupController﹕ Initializing chromium process, singleProcess=true
03-16 16:44:19.484 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:19.486 2442-2442/com.example.hello E/SysUtils﹕ ApplicationContext is null in ApplicationStatus
03-16 16:44:19.568 2442-2442/com.example.hello W/chromium﹕ [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
03-16 16:44:19.571 2442-2442/com.example.hello E/libEGL﹕ validate_display:255 error 3008 (EGL_BAD_DISPLAY)
03-16 16:44:19.571 2442-2442/com.example.hello E/libEGL﹕ validate_display:255 error 3008 (EGL_BAD_DISPLAY)
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
03-16 16:44:19.571 2442-2442/com.example.hello E/chromium﹕ [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
03-16 16:44:19.628 2442-2468/com.example.hello W/AudioManagerAndroid﹕ Requires BLUETOOTH permission
03-16 16:44:19.667 2442-2442/com.example.hello E/DataReductionProxySettingListener﹕ No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
03-16 16:44:19.757 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:19.762 2442-2442/com.example.hello W/AwContents﹕ onDetachedFromWindow called when already detached. Ignoring
03-16 16:44:20.182 2442-2442/com.example.hello D/SystemWebViewEngine﹕ CordovaWebView is running on device made by: unknown
03-16 16:44:20.188 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.188 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.246 2442-2452/com.example.hello I/art﹕ Background sticky concurrent mark sweep GC freed 7609(505KB) AllocSpace objects, 3(60KB) LOS objects, 64% free, 861KB/2MB, paused 1.373ms total 448.240ms
03-16 16:44:20.310 2442-2466/com.example.hello W/chromium﹕ [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
03-16 16:44:20.368 2442-2442/com.example.hello D/gralloc_goldfish﹕ Emulator without host-side GPU emulation detected.
03-16 16:44:20.376 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.410 2442-2442/com.example.hello W/art﹕ Attempt to remove non-JNI local reference, dumping thread
03-16 16:44:20.586 2442-2452/com.example.hello I/art﹕ Background partial concurrent mark sweep GC freed 1447(97KB) AllocSpace objects, 2(2MB) LOS objects, 35% free, 926KB/1438KB, paused 2.668ms total 209.255ms
03-16 16:44:20.587 2442-2480/com.example.hello A/chromium﹕ [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
03-16 16:44:20.587 2442-2480/com.example.hello A/libc﹕ Fatal signal 6 (SIGABRT), code -6 in tid 2480 (GpuThread)
This is almost exactly the same error as Error in Android Programming while connecting to Phonegap. It seems to be related to this bug from ionic.
According to them, "switching from Snapshot to Host GPU solved this problem."
This makes sense as three of the last errors are related to opengl.
Note to various moderators: I tried to close one as a duplicate of the other, but that can't be done because there's no answer. Tried looking on meta for 'duplicate unanswered' but they simply say not to do it. I figure I'll post a possible answer and if either one is accepted, I'll close the other as a dup.

Login failed in Spotify Android SDK tutorial

I'm trying to complete the beginner's tutorial for android sdk. I've made all the passage and no build errors occours, however launching the app, when I try to authenticate with facebook, in the logcat, I found "login failed"
06-21 18:34:39.282 14033-14033/com.example.lucabrognara.spotify_prova D/MainActivity﹕ Login failed
Here the complete log
06-21 18:34:34.642 14033-14033/? D/dalvikvm﹕ Late-enabling CheckJNI
06-21 18:34:34.877 14033-14033/com.example.lucabrognara.spotify_prova D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so
06-21 18:34:34.897 14033-14033/com.example.lucabrognara.spotify_prova D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so
06-21 18:34:34.902 14033-14033/com.example.lucabrognara.spotify_prova D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so
06-21 18:34:34.907 14033-14033/com.example.lucabrognara.spotify_prova D/﹕ Device driver API match
Device driver API version: 10
User space API version: 10
06-21 18:34:34.907 14033-14033/com.example.lucabrognara.spotify_prova D/﹕ mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Thu Oct 25 08:43:05 KST 2012
06-21 18:34:34.932 14033-14033/com.example.lucabrognara.spotify_prova D/OpenGLRenderer﹕ Enabling debug mode 0
06-21 18:34:35.032 14033-14033/com.example.lucabrognara.spotify_prova I/webclipboard﹕ clipservice: android.sec.clipboard.ClipboardExManager#41b7b0d0
06-21 18:34:35.112 14033-14034/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ GC_CONCURRENT freed 158K, 13% free 9649K/11079K, paused 14ms+12ms, total 45ms
06-21 18:34:35.117 14033-14033/com.example.lucabrognara.spotify_prova D/WebView﹕ loadUrlImpl: called
06-21 18:34:35.137 14033-14050/com.example.lucabrognara.spotify_prova V/webkit﹕ BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {41b75b88}
06-21 18:34:35.182 14033-14033/com.example.lucabrognara.spotify_prova D/WebView﹕ onSizeChanged - w:442 h:724
06-21 18:34:35.187 14033-14050/com.example.lucabrognara.spotify_prova D/webcore﹕ CORE loadUrl: called
06-21 18:34:35.187 14033-14050/com.example.lucabrognara.spotify_prova D/webkit﹕ Firewall not null
06-21 18:34:35.192 14033-14050/com.example.lucabrognara.spotify_prova D/webkit﹕ euler: isUrlBlocked = false
06-21 18:34:35.332 14033-14033/com.example.lucabrognara.spotify_prova W/ResourceType﹕ Failure getting entry for 0x010802c0 (t=7 e=704) in package 0 (error -75)
06-21 18:34:35.382 14033-14034/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ GC_CONCURRENT freed 109K, 13% free 9945K/11335K, paused 13ms+3ms, total 44ms
06-21 18:34:38.377 14033-14033/com.example.lucabrognara.spotify_prova D/WebCore﹕ uiOverrideUrlLoading: shouldOverrideUrlLoading() returnstrue
06-21 18:34:38.377 14033-14050/com.example.lucabrognara.spotify_prova I/GATE﹕ <GATE-M>DEV_ACTION_COMPLETED</GATE-M>
06-21 18:34:38.432 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
06-21 18:34:38.432 14033-14033/com.example.lucabrognara.spotify_prova W/dalvikvm﹕ VFY: unable to resolve static field 78 (SUPPORTED_ABIS) in Landroid/os/Build;
06-21 18:34:38.432 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x000d
06-21 18:34:38.432 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
06-21 18:34:38.432 14033-14033/com.example.lucabrognara.spotify_prova I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x004e at 0x17 in Lcom/spotify/sdk/android/player/Config;.createOsVersionString
06-21 18:34:38.442 14033-14033/com.example.lucabrognara.spotify_prova W/ApplicationContext﹕ Unable to create external files directory
06-21 18:34:38.452 14033-14033/com.example.lucabrognara.spotify_prova I/dalvikvm﹕ Could not find method android.media.AudioTrack.setVolume, referenced from method com.spotify.sdk.android.player.AudioTrackController.createAudioTrack
06-21 18:34:38.452 14033-14033/com.example.lucabrognara.spotify_prova W/dalvikvm﹕ VFY: unable to resolve virtual method 694: Landroid/media/AudioTrack;.setVolume (F)I
06-21 18:34:38.452 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x004c
06-21 18:34:38.457 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Trying to load lib /data/data/com.example.lucabrognara.spotify_prova/lib/libgnustl_shared.so 0x41b2f108
06-21 18:34:38.457 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Added shared lib /data/data/com.example.lucabrognara.spotify_prova/lib/libgnustl_shared.so 0x41b2f108
06-21 18:34:38.457 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ No JNI_OnLoad found in /data/data/com.example.lucabrognara.spotify_prova/lib/libgnustl_shared.so 0x41b2f108, skipping init
06-21 18:34:38.457 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Trying to load lib /data/data/com.example.lucabrognara.spotify_prova/lib/libspotify_embedded_shared.so 0x41b2f108
06-21 18:34:38.462 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Added shared lib /data/data/com.example.lucabrognara.spotify_prova/lib/libspotify_embedded_shared.so 0x41b2f108
06-21 18:34:38.462 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ No JNI_OnLoad found in /data/data/com.example.lucabrognara.spotify_prova/lib/libspotify_embedded_shared.so 0x41b2f108, skipping init
06-21 18:34:38.462 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Trying to load lib /data/data/com.example.lucabrognara.spotify_prova/lib/libspotify_sdk.so 0x41b2f108
06-21 18:34:38.462 14033-14033/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ Added shared lib /data/data/com.example.lucabrognara.spotify_prova/lib/libspotify_sdk.so 0x41b2f108
06-21 18:34:38.507 14033-14033/com.example.lucabrognara.spotify_prova E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-21 18:34:38.507 14033-14033/com.example.lucabrognara.spotify_prova E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-21 18:34:38.527 14033-14120/com.example.lucabrognara.spotify_prova D/SpotifySDK﹕ Use diskcache: true
06-21 18:34:38.527 14033-14120/com.example.lucabrognara.spotify_prova E/SpotifySDK﹕ Cache path '' is not writeable
06-21 18:34:38.532 14033-14120/com.example.lucabrognara.spotify_prova I/SpotifySDK﹕ Got notification: Became active playing device
06-21 18:34:38.532 14033-14033/com.example.lucabrognara.spotify_prova D/MainActivity﹕ Playback event received: BECAME_ACTIVE
06-21 18:34:38.532 14033-14120/com.example.lucabrognara.spotify_prova I/SpotifySDK﹕ playbackCallbackOnSeek (to 0ms)
06-21 18:34:39.282 14033-14033/com.example.lucabrognara.spotify_prova D/MainActivity﹕ Login failed
06-21 18:35:17.487 14033-14034/com.example.lucabrognara.spotify_prova D/dalvikvm﹕ GC_CONCURRENT freed 207K, 13% free 10160K/11655K, paused 8ms+12ms, total 92ms
06-21 18:35:17.492 14033-14033/com.example.lucabrognara.spotify_prova D/webviewglue﹕ nativeDestroy view: 0x4db6e608
Any idea to fix this issue? I've already try to delete the app from my facebook account but nothig, always "Login failed"
Update 1
I've print the message of the exception lauch the onLoginFailed method:
06-21 18:53:59.362 28201-28201/com.example.lucabrognara.spotify_prova D/MainActivity﹕ Login failed: The operation requires a Spotify Premium account
I'm not sure why for login I need a premium account...
Update 2
I've explicitally asked for a test account and the answer, I guess, close this question:
Q: "There's a way to use a test account? I'm developing an android app and i need spotify authentication"
A: "#lucabro no, I'm afraid you need to have a Spotify Premium account to be able to use this SDK"
Spotify doesn't seem to allow free users, not sure though
EDIT: Yeah they do need a premium account as of now, as you found out.
https://github.com/spotify/android-sdk/issues/49
Spotify API access has different scopes to gather information , and one or more of them , need premium account. I think you should be trying to access the scope " streaming ," which is premium .
Check your line :
builder.setScopes (new String [ ] { "scopeexample1", "scopeexample2" } ) ;

Android emulator can't install apps

I'm trying to install and run the default 'hello world' app on the emulator, but whenever I try to run it I get this error on install:
[2014-07-07 16:07:07 - Test] Android Launch!
[2014-07-07 16:07:07 - Test] adb is running normally.
[2014-07-07 16:07:07 - Test] Performing com.example.test.MainActivity activity launch
[2014-07-07 16:07:18 - Test] Uploading Test.apk onto device 'emulator-5554'
[2014-07-07 16:07:27 - Test] Installing Test.apk...
[2014-07-07 16:08:22 - Test] Installation error: Unknown failure
[2014-07-07 16:08:22 - Test] Please check logcat output for more details.
[2014-07-07 16:08:24 - Test] Launch canceled!
This is the logcat output when that happens:
?:??: W/?(?): --------- beginning of main
07-07 19:36:52.410: E/logwrapper(40): executing /system/bin/e2fsck failed: No such file or directory
07-07 19:36:52.540: E/logwrapper(43): executing /system/bin/e2fsck failed: No such file or directory
07-07 19:36:54.420: I/lowmemorykiller(45): Using in-kernel low memory killer interface
07-07 19:36:55.370: I/qemu-props(48): connected to 'boot-properties' qemud service.
07-07 19:36:55.410: I/qemu-props(48): receiving..
07-07 19:36:55.410: I/qemu-props(48): received: dalvik.vm.heapsize=48m
07-07 19:36:55.710: I/qemu-props(48): receiving..
07-07 19:36:55.710: I/qemu-props(48): received: ro.config.low_ram=true
07-07 19:36:56.070: I/qemu-props(48): receiving..
07-07 19:36:56.070: I/qemu-props(48): received: qemu.sf.lcd_density=160
07-07 19:36:56.320: I/qemu-props(48): receiving..
07-07 19:36:56.370: I/qemu-props(48): received: qemu.hw.mainkeys=0
07-07 19:36:56.620: I/qemu-props(48): receiving..
07-07 19:36:56.620: I/qemu-props(48): received: qemu.sf.fake_camera=none
07-07 19:36:56.770: I/qemu-props(48): receiving..
07-07 19:36:56.770: I/qemu-props(48): exiting (5 properties set).
07-07 19:36:56.940: I/installd(54): installd firing up
07-07 19:36:57.260: I/DEBUG(50): debuggerd: Jun 23 2014 23:40:35
07-07 19:36:57.260: I/DEBUG(50): --------- beginning of system
07-07 19:36:58.370: I/Vold(47): Vold 2.1 (the revenge) firing up
07-07 19:36:58.530: D/Vold(47): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
07-07 19:36:59.600: I/Netd(49): Netd 1.0 starting
07-07 19:36:59.800: W/InterfaceController(49): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
07-07 19:37:04.160: D/Vold(47): Volume sdcard state changing 0 (No-Media) -> 1 (Idle-Unmounted)
07-07 19:37:07.800: I/SurfaceFlinger(51): SurfaceFlinger is starting
07-07 19:37:07.800: I/SurfaceFlinger(51): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
07-07 19:37:07.820: D/libEGL(51): Emulator without GPU support detected. Fallback to software renderer.
07-07 19:37:08.700: D/libEGL(51): loaded /system/lib/egl/libGLES_android.so
07-07 19:37:09.900: D/gralloc_goldfish(51): Emulator without GPU emulation detected.
07-07 19:37:09.990: I/gralloc(51): using (fd=14)
07-07 19:37:09.990: I/gralloc(51): id =
07-07 19:37:09.990: I/gralloc(51): xres = 320 px
07-07 19:37:09.990: I/gralloc(51): yres = 480 px
07-07 19:37:09.990: I/gralloc(51): xres_virtual = 320 px
07-07 19:37:09.990: I/gralloc(51): yres_virtual = 960 px
07-07 19:37:09.990: I/gralloc(51): bpp = 16
07-07 19:37:09.990: I/gralloc(51): r = 11:5
07-07 19:37:09.990: I/gralloc(51): g = 5:6
07-07 19:37:09.990: I/gralloc(51): b = 0:5
07-07 19:37:10.030: I/gralloc(51): width = 49 mm (165.877548 dpi)
07-07 19:37:10.030: I/gralloc(51): height = 74 mm (164.756760 dpi)
07-07 19:37:10.030: I/gralloc(51): refresh rate = 651.04 Hz
07-07 19:37:10.110: E/SurfaceFlinger(51): hwcomposer module not found
07-07 19:37:10.110: W/SurfaceFlinger(51): getting VSYNC period from fb HAL: 1536001
07-07 19:37:10.190: W/SurfaceFlinger(51): no suitable EGLConfig found, trying a simpler query
07-07 19:37:10.190: W/SurfaceFlinger(51): EGL_SLOW_CONFIG selected!
07-07 19:37:10.190: I/SurfaceFlinger(51): EGL information:
07-07 19:37:10.190: I/SurfaceFlinger(51): vendor : Android
07-07 19:37:10.190: I/SurfaceFlinger(51): version : 1.4 Android META-EGL
07-07 19:37:10.190: I/SurfaceFlinger(51): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
07-07 19:37:10.230: I/SurfaceFlinger(51): Client API: OpenGL_ES
07-07 19:37:10.230: I/SurfaceFlinger(51): EGLSurface: 5-6-5-0, config=0x0
07-07 19:37:10.270: W/SurfaceFlinger(51): no suitable EGLConfig found, trying a simpler query
07-07 19:37:10.270: W/SurfaceFlinger(51): EGL_SLOW_CONFIG selected!
07-07 19:37:10.270: I/SurfaceFlinger(51): EGL information:
07-07 19:37:10.270: I/SurfaceFlinger(51): vendor : Android
07-07 19:37:10.270: I/SurfaceFlinger(51): version : 1.4 Android META-EGL
07-07 19:37:10.270: I/SurfaceFlinger(51): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
07-07 19:37:10.270: I/SurfaceFlinger(51): Client API: OpenGL_ES
07-07 19:37:10.270: I/SurfaceFlinger(51): EGLSurface: 5-6-5-0, config=0x0
07-07 19:37:10.400: I/SurfaceFlinger(51): OpenGL ES informations:
07-07 19:37:10.400: I/SurfaceFlinger(51): vendor : Android
07-07 19:37:10.400: I/SurfaceFlinger(51): renderer : Android PixelFlinger 1.4
07-07 19:37:10.400: I/SurfaceFlinger(51): version : OpenGL ES-CM 1.0
07-07 19:37:10.400: I/SurfaceFlinger(51): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix GL_OES_EGL_image GL_OES_EGL_sync GL_OES_compressed_ETC1_RGB8_texture GL_ARB_texture_compression GL_ARB_texture_non_power_of_two GL_ANDROID_user_clip_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
07-07 19:37:10.450: I/SurfaceFlinger(51): GL_MAX_TEXTURE_SIZE = 4096
07-07 19:37:10.450: I/SurfaceFlinger(51): GL_MAX_VIEWPORT_DIMS = 4096
07-07 19:37:10.590: W/SurfaceFlinger(51): no suitable EGLConfig found, trying a simpler query
07-07 19:37:10.590: W/SurfaceFlinger(51): EGL_SLOW_CONFIG selected!
07-07 19:37:10.590: I/SurfaceFlinger(51): EGL information:
07-07 19:37:10.590: I/SurfaceFlinger(51): vendor : Android
07-07 19:37:10.590: I/SurfaceFlinger(51): version : 1.4 Android META-EGL
07-07 19:37:10.590: I/SurfaceFlinger(51): extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_image_base EGL_KHR_fence_sync EGL_ANDROID_image_native_buffer
07-07 19:37:10.590: I/SurfaceFlinger(51): Client API: OpenGL_ES
07-07 19:37:10.590: I/SurfaceFlinger(51): EGLSurface: 5-6-5-0, config=0x0
07-07 19:37:11.200: D/SurfaceFlinger(51): Screen acquired, type=0 flinger=0xb835f448
07-07 19:37:18.810: E/SurfaceFlinger(51): ro.sf.lcd_density must be defined as a build property
07-07 19:37:19.660: D/libEGL(92): Emulator without GPU support detected. Fallback to software renderer.
07-07 19:37:19.870: D/libEGL(92): loaded /system/lib/egl/libGLES_android.so
07-07 19:37:21.180: D/gralloc_goldfish(92): Emulator without GPU emulation detected.
07-07 19:37:29.930: I/ARMAssembler(92): generated scanline__00000077:03010102_00000A01_00000000 [ 9 ipp] (30 ins) at [0xb60191f0:0xb6019268] in 20000000 ns
07-07 19:37:30.000: I/ARMAssembler(92): generated scanline__00000077:03545402_00000A01_00000000 [ 31 ipp] (52 ins) at [0xb6019270:0xb6019340] in 10000000 ns
07-07 19:37:34.070: D/AndroidRuntime(52): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
07-07 19:37:35.580: D/AndroidRuntime(52): CheckJNI is ON
07-07 19:37:37.770: I/mediaserver(53): ServiceManager: 0xb722a460
07-07 19:37:37.830: I/AudioFlinger(53): Using default 3000 mSec as standby time.
07-07 19:37:38.700: I/CameraService(53): CameraService started (pid=53)
07-07 19:37:40.190: D/EmulatedCamera_QemuClient(53): Emulated camera list:
07-07 19:37:40.300: I/CameraService(53): Loaded "Emulated Camera Module" camera module
07-07 19:37:41.260: I/AudioPolicyManagerBase(53): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
07-07 19:37:41.470: I/AudioFlinger(53): loadHwModule() Loaded primary audio interface from Default audio HW HAL (audio) handle 1
07-07 19:37:41.560: I/AudioFlinger(53): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
07-07 19:37:42.610: I/AudioMixer(53): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
07-07 19:37:42.620: I/AudioFlinger(53): Using module 1 has the primary audio interface
07-07 19:37:42.630: I/AudioFlinger(53): AudioFlinger's thread 0xb5f93008 ready to run
07-07 19:37:42.870: W/AudioFlinger(53): Thread AudioOut_2 cannot connect to the power manager service
07-07 19:37:43.020: W/AudioFlinger(53): Thread AudioOut_2 cannot connect to the power manager service
07-07 19:37:43.070: W/AudioFlinger(53): Thread AudioOut_2 cannot connect to the power manager service
07-07 19:37:43.100: E/AudioFlinger(53): no wake lock to update!
07-07 19:37:43.150: E/AudioFlinger(53): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.r_submix (No such file or directory)
07-07 19:37:43.170: I/AudioFlinger(53): loadHwModule() error -2 loading module r_submix
07-07 19:37:43.170: W/AudioPolicyManagerBase(53): could not open HW module r_submix
07-07 19:37:43.170: I/AudioPolicyService(53): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
07-07 19:37:47.380: D/dalvikvm(52): Trying to load lib libjavacore.so 0x0
07-07 19:37:47.680: D/dalvikvm(52): Added shared lib libjavacore.so 0x0
07-07 19:37:48.600: D/dalvikvm(52): Trying to load lib libnativehelper.so 0x0
07-07 19:37:48.620: D/dalvikvm(52): Added shared lib libnativehelper.so 0x0
07-07 19:37:48.620: D/dalvikvm(52): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
07-07 19:38:00.920: D/dalvikvm(52): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
07-07 19:38:21.340: E/memtrack(52): Couldn't load memtrack module (No such file or directory)
07-07 19:38:21.350: E/android.os.Debug(52): failed to load memtrack module: -2
07-07 19:38:28.650: I/SamplingProfilerIntegration(52): Profiling disabled.
07-07 19:38:29.360: I/Zygote(52): Preloading classes...
07-07 19:38:29.420: D/dalvikvm(52): WAIT_FOR_CONCURRENT_GC blocked 1ms
07-07 19:38:29.550: D/dalvikvm(52): GC_EXPLICIT freed 40K, 8% free 527K/568K, paused 34ms+18ms, total 121ms
07-07 19:38:30.810: D/dalvikvm(52): WAIT_FOR_CONCURRENT_GC blocked 13ms
07-07 19:38:30.910: D/dalvikvm(52): GC_EXPLICIT freed 2K, 4% free 601K/620K, paused 6ms+6ms, total 90ms
07-07 19:38:37.190: D/dalvikvm(52): GC_EXPLICIT freed 13K, 3% free 645K/664K, paused 26ms+3ms, total 145ms
07-07 19:38:39.870: D/dalvikvm(52): GC_EXPLICIT freed 13K, 3% free 702K/720K, paused 24ms+23ms, total 120ms
07-07 19:38:43.280: D/dalvikvm(52): WAIT_FOR_CONCURRENT_GC blocked 21ms
07-07 19:38:43.460: D/dalvikvm(52): GC_EXPLICIT freed 31K, 5% free 726K/760K, paused 6ms+24ms, total 172ms
07-07 19:38:52.880: D/dalvikvm(52): GC_EXPLICIT freed 9K, 2% free 777K/788K, paused 25ms+4ms, total 149ms
07-07 19:39:04.060: E/logwrapper(278): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.220: E/logwrapper(279): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.300: E/logwrapper(280): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.390: E/logwrapper(281): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.460: E/logwrapper(282): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.560: E/logwrapper(283): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.780: E/logwrapper(284): executing /system/bin/ip failed: No such file or directory
07-07 19:39:04.830: D/dalvikvm(52): GC_EXPLICIT freed 29K, 4% free 803K/836K, paused 5ms+4ms, total 294ms
07-07 19:39:11.210: D/TextLayoutCache(52): Using debug level = 0 - Debug Enabled = 0
07-07 19:39:14.760: I/dalvikvm(52): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
07-07 19:39:14.850: D/MtpDeviceJNI(52): register_android_mtp_MtpDevice
07-07 19:39:14.950: I/dalvikvm(52): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
07-07 19:39:15.020: I/dalvikvm(52): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
07-07 19:39:15.290: D/dalvikvm(52): GC_EXPLICIT freed 9K, 2% free 851K/864K, paused 26ms+26ms, total 166ms
07-07 19:39:17.940: D/dalvikvm(52): WAIT_FOR_CONCURRENT_GC blocked 1ms
07-07 19:39:18.140: D/dalvikvm(52): GC_EXPLICIT freed 31K, 4% free 875K/908K, paused 8ms+53ms, total 196ms
07-07 19:39:19.070: D/dalvikvm(52): GC_EXPLICIT freed 12K, 2% free 935K/952K, paused 26ms+5ms, total 210ms
07-07 19:39:21.160: E/EmojiFactory_jni(52): Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found
07-07 19:39:22.980: D/dalvikvm(52): GC_EXPLICIT freed 29K, 4% free 961K/992K, paused 28ms+5ms, total 194ms
07-07 19:39:28.740: D/dalvikvm(52): GC_EXPLICIT freed 30K, 4% free 984K/1020K, paused 26ms+27ms, total 212ms
07-07 19:39:36.370: D/dalvikvm(52): GC_EXPLICIT freed 27K, 3% free 1011K/1040K, paused 26ms+28ms, total 245ms
07-07 19:39:38.520: D/dalvikvm(52): GC_EXPLICIT freed 21K, 3% free 1046K/1072K, paused 17ms+5ms, total 219ms
07-07 19:39:39.320: D/dalvikvm(52): GC_EXPLICIT freed 15K, 2% free 1091K/1112K, paused 27ms+29ms, total 233ms
07-07 19:39:40.280: D/MDnsDS(49): MDnsSdListener::Hander starting up
07-07 19:39:40.300: D/MDnsDS(49): MDnsSdListener starting to monitor
07-07 19:39:40.300: D/MDnsDS(49): Going to poll with pollCount 1
07-07 19:39:40.940: D/dalvikvm(52): GC_EXPLICIT freed 79K, 7% free 1123K/1208K, paused 17ms+17ms, total 161ms
07-07 19:39:42.170: D/dalvikvm(52): WAIT_FOR_CONCURRENT_GC blocked 1ms
07-07 19:39:42.370: D/dalvikvm(52): GC_EXPLICIT freed 11K, 4% free 1169K/1208K, paused 19ms+37ms, total 183ms
07-07 19:39:43.240: D/dalvikvm(52): GC_EXPLICIT freed 44K, 4% free 1184K/1232K, paused 33ms+16ms, total 175ms
07-07 19:39:44.110: D/dalvikvm(52): GC_EXPLICIT freed 53K, 6% free 1196K/1264K, paused 19ms+20ms, total 163ms
07-07 19:39:53.340: I/System(52): Loaded time zone names for "" in 8193ms (7622ms in ICU)
07-07 19:39:57.610: I/System(52): Loaded time zone names for "en_US" in 4247ms (3773ms in ICU)
07-07 19:39:57.850: D/dalvikvm(52): GC_EXPLICIT freed 253K, 17% free 1357K/1616K, paused 26ms+19ms, total 235ms
07-07 19:40:00.590: D/dalvikvm(52): GC_FOR_ALLOC freed 238K, 13% free 1631K/1872K, paused 212ms, total 216ms
07-07 19:40:03.490: D/dalvikvm(52): GC_EXPLICIT freed 232K, 12% free 1781K/2020K, paused 21ms+18ms, total 254ms
07-07 19:40:05.910: I/Zygote(52): ...preloaded 1481 classes in 96543ms.
07-07 19:40:17.670: D/dalvikvm(52): GC_EXPLICIT freed 18K, 11% free 1800K/2020K, paused 20ms+20ms, total 246ms
07-07 19:40:17.710: I/Zygote(52): Preloading resources...
I've tried making new AVDs and cleaning my project, but it doesn't seem to help. Does anyone know what causes this/how to fix it?
edit: When I try making an AVD with the GPU box checked I get an infinite loop of this:
07-07 22:26:45.960: E/EGL_emulation(90): Failed to establish connection with the host
07-07 22:26:45.960: E/(90): Failed to connect to host (QemuPipeStream)!!!
You need to create a new virtual device and set the GPU emulation mark to true in Hardware properties.
I think you have to edit the AVD skin to use “skin with dynamic hardware controls”

Logcat not updating for only some code

I am trying to create an app and got stuck at a place. To debug, I have added Log.d messages.
However, I am not getting the log outputs for a certain part of the code. I am getting the log outputs for other parts.
This is weird but is there any solution for it?
PS: There are no filtering enabled, the device is correctly pointed.
08-16 00:09:16.102: W/SoundPool(87): sample 0 not READY
08-16 00:09:16.132: D/PhoneStatusBar(139): disable: < expand icons alerts ticker system_info BACK HOME recent* CLOCK >
08-16 00:09:16.542: I/ARMAssembler(35): generated scanline__00000077:03515104_00009002_00000000 [127 ipp] (149 ins) at [0x4119e818:0x4119ea6c] in 2714369 ns
08-16 00:09:16.662: D/PhoneStatusBar(139): disable: < expand icons alerts ticker system_info back* home* recent clock* >
08-16 00:09:16.752: I/ARMAssembler(35): generated scanline__00000077:03515104_00009001_00000000 [131 ipp] (153 ins) at [0x4119ea70:0x4119ecd4] in 856742 ns
/**********************************
/**Log msgs shd have started here
/**********************************/
08-16 00:09:40.572: W/ThrottleService(87): unable to find stats for iface rmnet0
08-16 00:09:59.873: D/dalvikvm(524): GC_CONCURRENT freed 1913K, 24% free 10314K/13447K, paused 29ms+4ms
08-16 00:10:00.323: D/dalvikvm(524): GC_CONCURRENT freed 246K, 22% free 10504K/13447K, paused 51ms+11ms
08-16 00:10:01.943: D/dalvikvm(524): GC_CONCURRENT freed 617K, 23% free 10395K/13447K, paused 12ms+5ms
08-16 00:10:02.253: D/dalvikvm(524): GC_CONCURRENT freed 255K, 21% free 10649K/13447K, paused 12ms+6ms
08-16 00:10:02.483: D/dalvikvm(524): GC_CONCURRENT freed 261K, 20% free 10873K/13447K, paused 12ms+6ms
08-16 00:10:02.633: D/dalvikvm(524): GC_FOR_ALLOC freed <1K, 17% free 11247K/13447K, paused 61ms
08-16 00:10:20.513: D/dalvikvm(524): GC_CONCURRENT freed 1633K, 24% free 10332K/13447K, paused 12ms+6ms
08-16 00:10:20.793: D/dalvikvm(524): GC_CONCURRENT freed 220K, 22% free 10548K/13447K, paused 11ms+7ms
08-16 00:10:47.174: D/InputEventConsistencyVerifier(524): KeyEvent: ACTION_UP but key was not down.
08-16 00:10:47.174: D/InputEventConsistencyVerifier(524): in Handler (android.view.ViewRootImpl) {4138f060}
08-16 00:10:47.174: D/InputEventConsistencyVerifier(524): 0: sent at 193445000000, KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x8, repeatCount=0, eventTime=193445, downTime=193341, deviceId=0, source=0x301 }
08-16 00:10:50.823: D/dalvikvm(524): GC_CONCURRENT freed 404K, 21% free 10636K/13447K, paused 6ms+22ms
08-16 00:10:51.433: W/WindowManager(87): Failure taking screenshot for (180x300) to layer 21020
08-16 00:10:51.832: W/NetworkManagementSocketTagger(87): setKernelCountSet(10013, 1) failed with errno -2
08-16 00:10:52.332: I/Process(87): Sending signal. PID: 184 SIG: 3
08-16 00:10:52.342: I/dalvikvm(184): threadid=3: reacting to signal 3
08-16 00:10:52.393: W/InputManagerService(87): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#415ebf40 (uid=10040 pid=524)
08-16 00:10:52.482: I/dalvikvm(184): Wrote stack traces to '/data/anr/traces.txt'
08-16 00:10:52.752: I/ARMAssembler(35): generated scanline__00000077:03515104_00009004_00000000 [122 ipp] (142 ins) at [0x4119ecd8:0x4119ef10] in 968806 ns
08-16 00:10:52.902: I/dalvikvm(87): Jit: resizing JitTable from 4096 to 8192
08-16 00:10:53.312: W/NetworkManagementSocketTagger(87): setKernelCountSet(10040, 0) failed with errno -2
08-16 00:10:53.442: D/dalvikvm(524): GC_EXPLICIT freed 1214K, 29% free 9573K/13447K, paused 4ms+7ms
Sometimes the current logcat has this error. Did you update the android sdk Tools and android sdk platform-tools ? If this error continue after updated, you can use the logcat deprecated or try to restart your IDE.

Categories

Resources