android excessive global references - android

I'm occassionally tripping the jni global reference limit for the android emulator. I'm trying to store around 2000 words along with definitions in my application and it's failing at either of two spots: if I use DOM to parse the xml file with all those references it fails when DOM pulls the tree into memory. If I use SAX it fails when I get to around the 2000th element.
Does anyone have a link to how I can disable the check (I understand it doesn't exist on the actual machines and I am trying to persist 2000 small objects in memory)? If not, is there a good way to debug this? The objects that are building up are strings:
09-20 16:24:00.278: WARN/dalvikvm(625): 1879 of Ljava/lang/String; 28B (1877 unique)
I tried starting the avd with -nojni and using adb to set dalvik.vm.checkjni
C:\android-sdk-windows\tools>adb shell getprop dalvik.vm.checkjni
false
Although logcat shows "CheckJNI is Off", it stills dies a the globalref 2001 limit.
Also, after the parsing section, the memory winds up getting returned as I see:
09-20 16:31:23.238: DEBUG/dalvikvm(654): GC_EXPLICIT freed 1157 objects / 48208 bytes in 147ms
09-20 16:31:23.258: DEBUG/dalvikvm(654): GREF has decreased to 1799
09-20 16:31:23.278: DEBUG/dalvikvm(654): GREF has decreased to 1699
09-20 16:31:23.287: DEBUG/dalvikvm(654): GREF has decreased to 1599
09-20 16:31:23.309: DEBUG/dalvikvm(654): GREF has decreased to 1499
09-20 16:31:23.328: DEBUG/dalvikvm(654): GREF has decreased to 1399
09-20 16:31:23.338: DEBUG/dalvikvm(654): GREF has decreased to 1299
09-20 16:31:23.367: DEBUG/dalvikvm(654): GREF has decreased to 1199
09-20 16:31:23.367: DEBUG/dalvikvm(654): GREF has decreased to 1099
09-20 16:31:23.398: DEBUG/dalvikvm(654): GREF has decreased to 999
09-20 16:31:23.398: DEBUG/dalvikvm(654): GREF has decreased to 899
09-20 16:31:23.408: DEBUG/dalvikvm(654): GREF has decreased to 799
09-20 16:31:23.418: DEBUG/dalvikvm(654): GREF has decreased to 699
09-20 16:31:23.418: DEBUG/dalvikvm(654): GREF has decreased to 599
09-20 16:31:23.437: DEBUG/dalvikvm(654): GREF has decreased to 499
09-20 16:31:23.447: DEBUG/dalvikvm(654): GREF has decreased to 399
09-20 16:31:23.447: DEBUG/dalvikvm(654): GREF has decreased to 299
09-20 16:31:23.469: DEBUG/dalvikvm(654): GREF has decreased to 199
So I don't think it's my hashmap holding the word objects that is actually the problem. The only idea I have left is to cut the xml file into multiples, but that seems like a might inelegant solution.
Thanks a lot!

this is a bug in our expat-based XML parsers (both SAX and pull): http://code.google.com/p/android/issues/detail?id=12595

Although slightly slower than sax, excessive global references seem to disappear when using the XML Pull Parser.

Related

Android Things - Raspberry Pi Fails to Connect to Wifi

There are a few questions out there that have similar issues but none of the solutions help. I'm trying to connect an Android Things Raspberry Pi to Wifi. My 2.4 GHz wifi ssid is 'cake' and I even removed the passphrase to see if that would help. Here is what comes out in the logcat:
09-20 01:37:00.340 1233 1233 D WifiSetupService: onStartCommand(Intent { act=WifiSetupService.Connect cmp=com.google.wifisetup/.WifiSetupService (has extras) })
09-20 01:37:00.341 1233 1233 I WifiConfigurator: Connecting to network with SSID "cake"
09-20 01:37:00.345 1233 1251 W WifiManager: com.google.wifisetup attempted call to setWifiApEnabled: enabled = false
09-20 01:37:00.346 311 546 D WifiService: setWifiEnabled: true pid=1233, uid=1000, package=com.google.wifisetup
09-20 01:37:00.349 1233 1233 V WifiWatcher: Network state changed to DISCONNECTED
09-20 01:37:01.258 1233 1251 D WifiConfigurator: Adding new network
09-20 01:37:01.873 311 380 E WifiConfigManager: Cannot find network with networkId -1 or configKey "cake"NONE
09-20 01:37:01.874 311 380 E WifiConfigManager: Cannot find network with configKey "cake"NONE
09-20 01:37:02.648 311 323 D WificondControl: Scan result ready event
09-20 01:37:03.423 311 380 D WifiConfigStore: Writing to stores completed in 1304 ms.
09-20 01:37:03.430 311 380 D WifiStateMachine: connectToUserSelectNetwork netId 0, uid 1000, forceReconnect = false
09-20 01:37:04.261 311 380 D WifiConfigStore: Writing to stores completed in 823 ms.
09-20 01:37:34.306 1233 1251 E WifiConfigurator: Wifi failed to connect in 30000 ms
09-20 01:39:49.672 1233 1233 D WifiSetupService: onStartCommand(Intent { act=WifiSetupService.Connect cmp=com.google.wifisetup/.WifiSetupService (has extras) })
09-20 01:39:49.673 1233 1233 I WifiConfigurator: Connecting to network with SSID "cake"
09-20 01:39:49.675 1233 1279 W WifiManager: com.google.wifisetup attempted call to setWifiApEnabled: enabled = false
09-20 01:39:49.676 311 322 D WifiService: setWifiEnabled: true pid=1233, uid=1000, package=com.google.wifisetup
09-20 01:39:49.681 1233 1279 D WifiConfigurator: Updating existing network 0
09-20 01:39:49.906 311 380 D WifiConfigStore: Writing to stores completed in 219 ms.
09-20 01:39:49.909 311 380 D WifiStateMachine: connectToUserSelectNetwork netId 0, uid 1000, forceReconnect = false
09-20 01:39:49.945 311 380 D WifiConfigStore: Writing to stores completed in 32 ms.
09-20 01:39:50.195 311 920 D WificondControl: Scan result ready event
09-20 01:40:19.980 1233 1279 E WifiConfigurator: Wifi failed to connect in 30000 ms
Here is what I'm typing in the adb shell
rpi3:/ $ am startservice -n com.google.wifisetup/.WifiSetupService -a WifiSetupService.Connect -e ssid cake
I had also some issues setting up the Wifi.
Blundell's answer to my question solved the issues
Network: Wi-Fi cannot connect to the internet if Ethernet is also
connected to a network without internet access.
https://developer.android.com/things/preview/releases.html
I had to remove the Ethernet cable from the Pi-3 and then it connected to my WiFi
If you have no application installed on the Pi you can observce your connectivity state by attaching an external display using the HDMI port (a monitor would do the job).
You should see a screen like this:

GC_MINOR(Nursery full) Xamarin app crashes

I am new to mobile development and I am trying to make an Xamarin Android app using MVVM framework but I am stuck and getting the following error. I keep getting GC_Minor(Nursary full) entry in my output window and and after a while the it freezes and crashes the application.
Can somebody point me into the right direction on how should I solve this problem? Thank You!!!
Stack
09-20 00:27:30.681 I/art (10052): Explicit concurrent mark sweep GC freed 1775(108KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 18MB/30MB, paused 1.686ms total 49.312ms
09-20 00:27:30.681 D/Mono (10052): GC_TAR_BRIDGE bridges 17 objects 839 opaque 893 colors 17 colors-bridged 17 colors-visible 17 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.15ms tarjan 1.27ms scc-setup 0.13ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.08ms
09-20 00:27:30.681 D/Mono (10052): GC_BRIDGE: Complete, was running for 51.29ms
09-20 00:27:30.681 D/Mono (10052): GC_MINOR: (Nursery full) time 9.80ms, stw 11.54ms promoted 106K major size: 7600K in use: 6910K los size: 2048K in use: 956K
09-20 00:27:32.626 D/Mono (10052): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 17 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.15ms tarjan 1.27ms scc-setup 0.13ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.01ms
09-20 00:27:32.626 D/Mono (10052): GC_BRIDGE: Complete, was running for 0.19ms
09-20 00:27:32.626 D/Mono (10052): GC_MINOR: (Nursery full) time 7.97ms, stw 10.12ms promoted 99K major size: 7712K in use: 7010K los size: 2048K in use: 956K
09-20 00:27:34.511 D/Mono (10052): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 17 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.15ms tarjan 1.27ms scc-setup 0.13ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.01ms
09-20 00:27:34.511 D/Mono (10052): GC_BRIDGE: Complete, was running for 0.20ms
09-20 00:27:34.511 D/Mono (10052): GC_MINOR: (Nursery full) time 7.81ms, stw 9.15ms promoted 99K major size: 7808K in use: 7110K los size: 2048K in use: 956K
09-20 00:27:36.426 D/Mono (10052): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 17 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.15ms tarjan 1.27ms scc-setup 0.13ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.01ms
09-20 00:27:36.426 D/Mono (10052): GC_BRIDGE: Complete, was running for 0.19ms
09-20 00:27:36.426 D/Mono (10052): GC_MINOR: (Nursery full) time 7.62ms, stw 8.94ms promoted 99K major size: 7920K in use: 7210K los size: 2048K in use: 956K
An unhandled exception occured.
Update
09-19 07:26:01.242 E/mono (14051):
09-19 07:26:01.242 E/mono (14051): Unhandled Exception:
09-19 07:26:01.242 E/mono (14051): System.ArgumentNullException: Value cannot be null.
09-19 07:26:01.242 E/mono (14051): Parameter name: s
09-19 07:26:01.242 E/mono-rt (14051): [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
09-19 07:26:01.242 E/mono-rt (14051): Parameter name: s
referenceTable GDEF length=814 1
referenceTable GSUB length=11364 1
referenceTable GPOS length=47302 1
referenceTable head length=54 1
referenceTable GDEF length=808 1
referenceTable GSUB length=11364 1
referenceTable GPOS length=49128 1
referenceTable head length=54 1
referenceTable GDEF length=808 1
referenceTable GSUB length=11364 1
referenceTable GPOS length=49206 1
referenceTable head length=54 1
referenceTable GDEF length=814 1
referenceTable GSUB length=11364 1
referenceTable GPOS length=47476 1
referenceTable head length=54 1
So after the GC_Minor warnings I get this unhandled exception. I updated xamarin a week ago to lastest version, does this have to do anything with the error I'm getting?

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

Fatal Signal 11 when loading MapFragment from Google Play Services

I'm using Google Play Service's map fragment in my application. On a page on its own the fragment works just fine. However, when used in another page where the fragment replaces another fragment with an ImageView in it (loaded via Picasso), the app and my phone crash with an obscure exception:
10-24 16:07:15.097 D/REQUEST ( 7454): Connection opened to:https://clients4.google.com/glm/mmap/api
10-24 16:07:15.097 D/REQUEST ( 7454): Open Connection
10-24 16:07:15.167 W/ResourceType( 7454): CREATING STRING CACHE OF 44 bytes
10-24 16:07:15.187 D/USER_EVENTS( 7454): Event: type=78, status: MD, data: T
10-24 16:07:15.197 D/dalvikvm( 7454): GC_CONCURRENT freed 2154K, 4% free 60989K/63412K, paused 4ms+2ms, total 41ms
10-24 16:07:15.197 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 22ms
10-24 16:07:15.197 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 14ms
10-24 16:07:15.197 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 15ms
10-24 16:07:15.197 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 15ms
10-24 16:07:15.197 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 15ms
10-24 16:07:15.207 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 16ms
10-24 16:07:15.207 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 16ms
10-24 16:07:15.207 D/dalvikvm( 7454): WAIT_FOR_CONCURRENT_GC blocked 16ms
10-24 16:07:15.227 D/USER_EVENTS( 7454): Event: type=113, status: mc, data:
10-24 16:07:15.247 D/REQUEST ( 7454): Add Data Request: 147
10-24 16:07:15.287 D/USER_EVENTS( 7454): Event: type=58, status: gl, data: |r=8|g=8|b=8|a=0|d=24|s=8|v=Qualcomm|i=OpenGL ES-CM 1.1|c=Adreno (TM) 330|e=t|
10-24 16:07:15.407 E/mono-rt ( 7454):
10-24 16:07:15.407 E/mono-rt ( 7454): =================================================================
10-24 16:07:15.407 E/mono-rt ( 7454): Got a SIGSEGV while executing native code. This usually indicates
10-24 16:07:15.407 E/mono-rt ( 7454): a fatal error in the mono runtime or one of the native libraries
10-24 16:07:15.407 E/mono-rt ( 7454): used by your application.
10-24 16:07:15.407 E/mono-rt ( 7454): =================================================================
10-24 16:07:15.407 E/mono-rt ( 7454):
10-24 16:07:15.407 F/libc ( 7454): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 8262 (DataRequestDisp)
10-24 16:07:15.457 W/ ( 7454): Thread 0x80484638 may have been prematurely finalized
This happens exactly at the time Google Maps is trying to load the data.
As I mentioned, the MapFragment replaces another Fragment that contains an ImageView whose content is loaded via Picasso. If I remove the ImageView the crash doesn't occur. Any ideas? Completely stumped.
So, after lots of head scratching I found what was causing the problem.
I was using this Xamarin Picasso binding: https://github.com/jacksierkstra/Picasso
Unfortunately this hadn't been updated in a while and contained a reference to an old version of Square's ok-Http library.
This version of Ok-HTTP seemed to change the global SSL context, thereby causing Google's MapFragment to break when requesting data via HTTPS. I found about the issue here: https://github.com/square/okhttp/issues/184
Thankfully, this has since been fixed so I created my own Xamarin.Picasso Binding and all is now going swimmingly.
This answer helped me start looking in the right direction:
AbstractGoogleClient: Fatal signal 11 (SIGSEGV)
What a headache of a bug... It took me some time to figure it out, thank you for your post! I tried your library but it fails to bind. I did find a pretty simple workaround. Add this line of code at the beginning of your application and it should do the trick!
URL.setURLStreamHandlerFactory(new OkHttpClient());

Android Application crashing on Lg G2 but not on other phones [duplicate]

This question already has answers here:
Android - Signal 11, RS CPP error: Blur radius out of 0-25 pixel bound
(3 answers)
Closed 4 years ago.
So, I have an aplication that executes asynk task and on post execute it generates a listview.
After the json is recieved the app crashes on a LG G2 but not on other phones.
My Log cat is giving this report:
10-09 13:45:47.066: E/Entity Response :(16241): [{"id":"440","name":"Amici's East Coast Pizzeria","address":"226 Redwood Shores Pkwy, Redwood City, CA","lat":"37.5205","lng":"-122.252","promotype":"0.10","tipo":"Cabeleireiros","foto":"http:\/\/s1.postimg.org\/526tyzobj\/image.jpg","distance":"62.03","ranking":"6.202501588797353"},{"id":"446","name":"Applewood Pizza 2 Go","address":"1001 El Camino Real, Menlo Park, CA","lat":"37.453","lng":"-122.182","promotype":"0.50","tipo":"Cabeleireiros","foto":"http:\/\/s27.postimg.org\/yth8q6mb7\/image.jpg","distance":"52.89","ranking":"26.442939242734457"},{"id":"453","name":"Giorgio's","address":"1445 Foxworthy Ave, San Jose, CA","lat":"37.2746","lng":"-121.893","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s10.postimg.org\/lk0r9tbsp\/a_A.jpg","distance":"31.97","ranking":"31.973513511004338"},{"id":"447","name":"Pizza Antica","address":"334 Santana Row # 1065, San Jose, CA","lat":"37.3218","lng":"-121.948","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s11.postimg.org\/gt2rkwr8j\/image.jpg","distance":"36.08","ranking":"36.07806101584471"},{"id":"452","name":"Tony & Alba's Pizza & Pasta","address":"3137 Stevens Creek Blvd, San Jose, CA","lat":"37.3233","lng":"-121.952","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s11.postimg.org\/gt2rkwr8j\/image.jpg","distance":"36.20","ranking":"36.199980176527895"},{"id":"449","name":"House of Pizza","address":"527 S Almaden Ave, San Jose, CA","lat":"37.3264","lng":"-121.888","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s29.postimg.org\/9yarz4nmv\/image.jpg","distance":"37.63","ranking":"37.62658687732519"},{"id":"450","name":"Amici's East Coast Pizzeria","address":"225 W Santa Clara St, San Jose, CA","lat":"37.3347","lng":"-121.894","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s1.postimg.org\/526tyzobj\/image.jpg","distance":"38.38","ranking":"38.38406330985574"},{"id":"309","name":"Round Table Pizza: Sunnyvale-Mary-Central Expy","address":"415 N Mary Ave, Sunnyvale, CA","lat":"37.39","lng":"-122.042","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s1.postimg.org\/526tyzobj\/image.jpg","distance":"43.53","ranking":"43.52522799537428"},{"id":"303","name":"Frankie Johnnie & Luigo Too","address":"939 W El Camino Real, Mountain View, CA","lat":"37.3863","lng":"-122.086","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s29.postimg.org\/9yarz4nmv\/image.jpg","distance":"43.62","ranking":"43.62472294523851"},{"id":"305","name":"Kapp's Pizza Bar & Grill","address":"191 Castro St, Mountain View, CA","lat":"37.3939","lng":"-122.079","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s27.postimg.org\/yth8q6mb7\/image.jpg","distance":"44.36","ranking":"44.3553242060947"},{"id":"306","name":"Round Table Pizza: Mountain View","address":"570 N Shoreline Blvd, Mountain View, CA","lat":"37.4027","lng":"-122.079","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s11.postimg.org\/gt2rkwr8j\/image.jpg","distance":"45.32","ranking":"45.32142235623846"},{"id":"308","name":"Oregano's Wood-Fired Pizza","address":"4546 El Camino Real, Los Altos, CA","lat":"37.4017","lng":"-122.115","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s29.postimg.org\/9yarz4nmv\/image.jpg","distance":"45.81","ranking":"45.8134266627868"},{"id":"443","name":"Pizz'a Chicago","address":"4115 El Camino Real, Palo Alto, CA","lat":"37.4141","lng":"-122.126","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s10.postimg.org\/lk0r9tbsp\/a_A.jpg","distance":"47.38","ranking":"47.37868781103179"},{"id":"444","name":"California Pizza Kitchen","address":"531 Cowper St, Palo Alto, CA","lat":"37.4481","lng":"-122.159","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s29.postimg.org\/9yarz4nmv\/image.jpg","distance":"51.78","ranking":"51.77711350584475"},{"id":"441","name":"North Beach Pizza","address":"240 E 3rd Ave, San Mateo, CA","lat":"37.5653","lng":"-122.323","promotype":"1.00","tipo":"Cabeleireiros","foto":"http:\/\/s27.postimg.org\/yth8q6mb7\/image.jpg","distance":"69.05
10-09 13:46:54.676: D/dalvikvm(16241): GC_FOR_ALLOC freed 455K, 32% free 17111K/25000K, paused 15ms, total 15ms
10-09 13:46:54.696: I/dalvikvm-heap(16241): Grow heap (frag case) to 28.377MB for 9849616-byte allocation
10-09 13:46:54.816: V/RenderScript(16241): Application requested CPU execution
10-09 13:46:54.826: V/RenderScript(16241): 0x61248f10 Launching thread(s), CPUs 4
10-09 13:46:54.836: E/rsC++(16241): RS CPP error: Blur radius out of 0-25 pixel bound
10-09 13:46:54.836: E/rsC++(16241): RS CPP error (masked by previous error): Allocation creation failed
10-09 13:46:54.836: E/rsC++(16241): RS CPP error (masked by previous error): Allocation creation failed
10-09 13:46:54.836: A/libc(16241): Fatal signal 11 (SIGSEGV) at 0x00000028 (code=1), thread 16241
(le.dbjsonstring)
10-09 13:51:59.936: D/HyLog(20453): I : /data/font/config/dfactpre.dat, No such file or directory (2)
10-09 13:52:00.046: D/dalvikvm(20453): GC_FOR_ALLOC freed 85K, 16% free 21227K/25000K, paused 12ms, total 12ms
10-09 13:52:00.046: I/dalvikvm-heap(20453): Grow heap (frag case) to 30.101MB for 7441936-byte allocation
10-09 13:52:00.186: D/dalvikvm(20453): GC_FOR_ALLOC freed 1K, 12% free 28494K/32268K, paused 14ms, total 14ms
10-09 13:52:00.206: I/dalvikvm-heap(20453): Grow heap (frag case) to 49.578MB for 20422912-byte allocation
10-09 13:52:00.406: I/Adreno-EGL(20453): <qeglDrvAPI_eglInitialize:385>: EGL 1.4 QUALCOMM build: ()
10-09 13:52:00.406: I/Adreno-EGL(20453): OpenGL ES Shader Compiler Version: E031.24.00.02
10-09 13:52:00.406: I/Adreno-EGL(20453): Build Date: 01/20/14 Mon
10-09 13:52:00.406: I/Adreno-EGL(20453): Local Branch: PMH2-KK_3.5-RB1-AU61-554722-586267-set2
10-09 13:52:00.406: I/Adreno-EGL(20453): Remote Branch:
10-09 13:52:00.406: I/Adreno-EGL(20453): Local Patches:
10-09 13:52:00.406: I/Adreno-EGL(20453): Reconstruct Branch:
10-09 13:52:00.426: D/OpenGLRenderer(20453): Enabling debug mode 0
10-09 13:52:00.666: I/ActivityManager(20453): Timeline: Activity_idle id: android.os.BinderProxy#428d7ac8 time:183390382
What can it be?
Encountered the issue and I found this post. After experimenting sometime, I found out the exact solution of this problem. Though its very late, but i am posting it here for future help of others.
The problem is self-explanatory.
E/rsC++(16241): RS CPP error: Blur radius out of 0-25 pixel bound
Setting a shadowRadius larger than 25px on a View will crash your app with a segmentation fault. This is due to RenderScript, more specifically ScriptIntrinsicBlur.
More from here: https://developer.android.com/reference/android/renderscript/ScriptIntrinsicBlur.html#setRadius(float)
So use shadowRadius value less than 25px and the problem will be resolved.
So, After a while I found that the problem is on the shadow radius of a textview.
After removing that shaddow it runned great. The strange thing is that the app was running on 3 differente phones and one tablet.
Well, I'll continue my journey through android lolol

Categories

Resources