android tesseract ocr - android

I am trying to make android OCR that reads arabic using tesseract and the code in this tutorial http://gaut.am/making-an-ocr-android-app-using-tesseract/ but every time I modify the code and change training data to arabic the app just shuts down without any error message. my logcat as follow
06-25 13:14:02.341: I/DEBUG(31): bef6ceb4 66206e69
06-25 13:14:03.331: I/BootReceiver(61): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
06-25 13:14:03.361: D/Zygote(33): Process 335 terminated by signal (11)
06-25 13:14:03.371: I/ActivityManager(61): Process com.datumdroid.android.ocr.simple (pid 335) has died.
06-25 13:14:03.371: I/WindowManager(61): WIN DEATH: Window{4054f8f8 com.datumdroid.android.ocr.simple/com.datumdroid.android.ocr.simple.SimpleAndroidOCRActivity paused=false}
06-25 13:14:03.441: I/WindowManager(61): Setting rotation to 0, animFlags=1
06-25 13:14:03.641: I/ActivityManager(61): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=34 uiMode=17 seq=6}
06-25 13:14:04.511: W/IInputConnectionWrapper(344): showStatusIcon on inactive InputConnection
06-25 13:14:06.201: D/dalvikvm(61): GC_EXPLICIT freed 418K, 50% free 4160K/8263K, external 3125K/3903K, paused 77ms
06-25 13:18:06.902: D/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol

You do know that you need eng files besides the arab right?
even though you dont need them for anything they need to be present in your training folder

Related

Native crash at /system/lib/libwebviewchromium.so on kitkat android 4.4

I get "Native crash at /system/lib/libwebviewchromium.so" errors many times for android 4.4+. There was no such problem before 4.4.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/ja3gxx/ja3g:4.4.2/KOT49H/I9500XXUFNB4:user/release-keys'
Revision: '10'
pid: 32504, tid: 32595, name: xxx.yyy >>> com.xxx.yyy <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000001
r0 83c80e70 r1 00000000 r2 00000001 r3 00000000
r4 7ea6d230 r5 7a806d20 r6 7ea6d234 r7 00000000
r8 7ea6d264 r9 7ea6d274 sl 00000000 fp 83c80e70
ip 00000001 sp 7a806d00 lr 75e63a97 pc 75e63a9c cpsr 68030030
d0 3f8000003f800000 d1 3e80000000000001
d2 42a20000430c8000 d3 0000005142a30000
d4 0000008cfffffffb d5 0000005142a20000
d6 0000000700000000 d7 000000013f800000
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 4016800000000000 d17 0000000000000000
d18 402e000000000000 d19 0000000000000000
d20 3fd8000000000000 d21 0000000000000000
d22 0000000000000000 d23 0000000000000000
d24 402e000000000000 d25 0000000000000000
d26 3fd8000000000000 d27 0000000000000000
d28 4016800000000000 d29 0000000000000000
d30 09800261096d825c d31 09a4c26a09924265
scr 88000010
backtrace:
#00 pc 00b53a9c /system/lib/libwebviewchromium.so
#01 pc 001dbc1b /system/lib/libwebviewchromium.so
#02 pc 001dbe67 /system/lib/libwebviewchromium.so
#03 pc 001da09f /system/lib/libwebviewchromium.so
#04 pc 0000d280 /system/lib/libc.so (__thread_entry+72)
#05 pc 0000d418 /system/lib/libc.so (pthread_create+240)
code around pc:
75e63a7c f7fd4628 a807ff92 ff8ff7fd 0008f104
75e63a8c db9ef691 f6854630 9806dca4 68024639
75e63a9c 47986813 f6714630 9806d843 aa092101
75e63aac 46497241 46289009 ff54f7ff 46289a08
75e63abc a020f8cd f7fd9207 9b07ff70 f104bb23
75e63acc a9060060 fd34f7fe f7fda807 a806ff66
75e63adc da61f671 f855e789 93093b04 1e50695a
75e63aec b9186158 a9094640 fcf4f7ff 68819807
75e63afc d1f0428d f691e7e3 a805db63 db92f649
75e63b0c f691e004 e770db23 e7ef685d e8bdb00b
75e63b1c b5708ff0 4604b09e 460da810 d801f67f
75e63b2c f67ea817 2300dffe a8104629 93099308
75e63b3c f7ff930a 1d20fc83 f6709003 6e25dff1
75e63b4c f855e01f aa063b04 a910a80c f7ff9306
75e63b5c 9e0cff01 900c2000 9607a80c ff1df7fd
75e63b6c 2a009a07 809df040 f7fda807 e008ff16
code around lr:
75e63a74 462b4649 fefaf7fe f7fd4628 a807ff92
75e63a84 ff8ff7fd 0008f104 db9ef691 f6854630
75e63a94 9806dca4 68024639 47986813 f6714630
75e63aa4 9806d843 aa092101 46497241 46289009
75e63ab4 ff54f7ff 46289a08 a020f8cd f7fd9207
75e63ac4 9b07ff70 f104bb23 a9060060 fd34f7fe
75e63ad4 f7fda807 a806ff66 da61f671 f855e789
75e63ae4 93093b04 1e50695a b9186158 a9094640
75e63af4 fcf4f7ff 68819807 d1f0428d f691e7e3
75e63b04 a805db63 db92f649 f691e004 e770db23
75e63b14 e7ef685d e8bdb00b b5708ff0 4604b09e
75e63b24 460da810 d801f67f f67ea817 2300dffe
75e63b34 a8104629 93099308 f7ff930a 1d20fc83
75e63b44 f6709003 6e25dff1 f855e01f aa063b04
75e63b54 a910a80c f7ff9306 9e0cff01 900c2000
75e63b64 9607a80c ff1df7fd 2a009a07 809df040
I could only created the situation on genymotion emulator(Samsung Galaxy S4) when I tried to play mp4 video:
06-25 08:31:19.647: I/chromium(2652): [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported
06-25 08:31:19.715: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.751: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.779: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.803: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.827: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.851: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.871: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.919: E/chromium(2652): [ERROR:gles2_cmd_decoder_autogen.h(69)] [GroupMarkerNotSet(crbug.com/242999)!:C0EBA4B9]GL ERROR :GL_INVALID_ENUM : glBindTexture: target was GL_TEXTURE_EXTERNAL_OES
06-25 08:31:19.919: E/chromium(2652): [ERROR:gles2_cmd_decoder_autogen.h(3142)] [GroupMarkerNotSet(crbug.com/242999)!:C0EBA4B9]GL ERROR :GL_INVALID_ENUM : glProduceTextureCHROMIUM: target was GL_TEXTURE_EXTERNAL_OES
06-25 08:31:19.919: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:19.991: I/qtaguid(191): Tagging socket 37 with tag 3f500000000(1013) for uid 10059 failed errno=-13
06-25 08:31:20.167: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.247: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.323: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.371: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.435: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.491: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:20.895: V/FFmpegExtractor(191): SniffFFMPEG
06-25 08:31:20.895: I/FFmpegExtractor(191): android-source:0xb8b91830
06-25 08:31:20.895: D/FFMPEG(191): android source begin open
06-25 08:31:20.895: D/FFMPEG(191): android open, url: android-source:0xb8b91830
06-25 08:31:20.895: D/FFMPEG(191): ffmpeg open android data source success, source ptr: 0xb8b91830
06-25 08:31:20.895: D/FFMPEG(191): android source open success
06-25 08:31:21.563: I/NuCachedSource2(191): new range: offset= 3406048
06-25 08:31:21.567: I/qtaguid(191): Tagging socket 39 with tag 3f500000000(1013) for uid 10059 failed errno=-13
06-25 08:31:21.579: I/qtaguid(191): Untagging socket 37 failed errno=-13
06-25 08:31:24.979: I/NuCachedSource2(191): ERROR_END_OF_STREAM
06-25 08:31:25.031: I/NuCachedSource2(191): new range: offset= 0
06-25 08:31:25.079: I/ChromiumHTTPDataSource(191): Reconnecting...
06-25 08:31:25.231: I/NuCachedSource2(191): retrying a previously failed read succeeded.
06-25 08:31:25.271: I/FFMPEG(191): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'android-source:0xb8b91830':
06-25 08:31:25.275: I/FFMPEG(191): Metadata:
06-25 08:31:25.275: I/FFMPEG(191): major_brand : mp42
06-25 08:31:25.275: I/FFMPEG(191): minor_version : 1
06-25 08:31:25.275: I/FFMPEG(191): compatible_brands: mp42avc1
06-25 08:31:25.275: I/FFMPEG(191): creation_time : 2014-06-24 11:20:49
06-25 08:31:25.275: I/FFMPEG(191): Duration: 00:01:14.48, start: 0.000000, bitrate: 397 kb/s
06-25 08:31:25.275: I/FFMPEG(191): Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 640x360, 334 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc (default)
06-25 08:31:25.275: I/FFMPEG(191): Metadata:
06-25 08:31:25.275: I/FFMPEG(191): creation_time : 2014-06-24 11:20:50
06-25 08:31:25.275: I/FFMPEG(191): handler_name : Apple Video Media Handler
06-25 08:31:25.275: I/FFMPEG(191): Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 59 kb/s (default)
06-25 08:31:25.275: I/FFMPEG(191): Metadata:
06-25 08:31:25.275: I/FFMPEG(191): creation_time : 2014-06-24 11:20:50
06-25 08:31:25.275: I/FFMPEG(191): handler_name : Apple Sound Media Handler
06-25 08:31:25.275: I/FFmpegExtractor(191): FFmpegExtrator, url: android-source:0xb8b91830, format_name: mov,mp4,m4a,3gp,3g2,mj2, format_long_name: QuickTime / MOV
06-25 08:31:25.275: I/FFmpegExtractor(191): list the formats suppoted by ffmpeg:
06-25 08:31:25.275: I/FFmpegExtractor(191): ========================================
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[00]: mpeg
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[01]: mpegts
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[02]: mov,mp4,m4a,3gp,3g2,mj2
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[03]: matroska,webm
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[04]: asf
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[05]: rm
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[06]: flv
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[07]: swf
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[08]: avi
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[09]: ape
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[10]: dts
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[11]: flac
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[12]: ac3
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[13]: wav
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[14]: ogg
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[15]: vc1
06-25 08:31:25.275: V/FFmpegExtractor(191): format_names[16]: hevc
06-25 08:31:25.275: I/FFmpegExtractor(191): ========================================
06-25 08:31:25.275: V/FFmpegExtractor(191): major_brand tag is:mp42
06-25 08:31:25.275: D/FFmpegExtractor(191): suppoted codec(h264) by official Stagefright
06-25 08:31:25.275: D/FFmpegExtractor(191): suppoted codec(aac) by official Stagefright
06-25 08:31:25.275: D/FFMPEG(191): android source close
06-25 08:31:25.275: I/FFmpegExtractor(191): sniff through BetterSniffFFMPEG success
06-25 08:31:25.275: D/FFmpegExtractor(191): ffmpeg detected media content as 'video/mp4' with confidence 0.08
06-25 08:31:25.275: I/FFmpegExtractor(191): support container: video/mp4, but it is caching data source, Don't use ffmpegextractor
06-25 08:31:26.211: I/NuCachedSource2(191): new range: offset= 3406048
06-25 08:31:26.211: I/qtaguid(191): Tagging socket 37 with tag 3f500000000(1013) for uid 10059 failed errno=-13
06-25 08:31:26.227: I/qtaguid(191): Untagging socket 39 failed errno=-13
06-25 08:31:26.951: I/NuCachedSource2(191): ERROR_END_OF_STREAM
06-25 08:31:26.987: I/MediaFocusControl(577): AudioFocus requestAudioFocus() from android.media.AudioManager#52b19560com.android.org.chromium.media.MediaPlayerListener#52824660
06-25 08:31:26.987: D/MediaPlayer(2652): Couldn't open file on client side, trying server side
06-25 08:31:26.991: I/AwesomePlayer(191): setDataSource_l(URL suppressed)
06-25 08:31:27.039: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:27.107: E/eglCodecCommon(2652): **** ERROR unknown type 0x0 (glSizeof,73)
06-25 08:31:27.191: A/libc(2652): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 2652 (isefe.gazeteler)
06-25 08:31:27.295: I/DEBUG(106): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-25 08:31:27.295: I/DEBUG(106): Build fingerprint: 'generic/vbox86p/vbox86p:4.4.2/KOT49H/eng.buildbot.20140524.041238:userdebug/test-keys'
06-25 08:31:27.295: I/DEBUG(106): Revision: '0'
06-25 08:31:27.295: I/DEBUG(106): pid: 2652, tid: 2652, name: isefe.gazeteler >>> com.barisefe.gazeteler <<<
06-25 08:31:27.295: I/DEBUG(106): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
06-25 08:31:27.519: I/DEBUG(106): backtrace:
06-25 08:31:27.519: I/DEBUG(106): #00 pc 011cc329 /system/lib/libwebviewchromium.so (cc::GLRenderer::DrawStreamVideoQuad(cc::DirectRenderer::DrawingFrame const*, cc::StreamVideoDrawQuad const*)+111)
06-25 08:31:27.519: I/DEBUG(106): stack:
06-25 08:31:27.519: I/DEBUG(106): bf8bfd18 00000438
06-25 08:31:27.519: I/DEBUG(106): bf8bfd1c 0000025e
06-25 08:31:27.519: I/DEBUG(106): bf8bfd20 43858000
06-25 08:31:27.519: I/DEBUG(106): bf8bfd24 b97ba3b0 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd28 b97ba3c0 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd2c 984aa285 /system/lib/libwebviewchromium.so (cc::GLRenderer::SetBlendEnabled(bool)+47)
06-25 08:31:27.519: I/DEBUG(106): bf8bfd30 b970d8a8 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd34 00000be2
06-25 08:31:27.519: I/DEBUG(106): bf8bfd38 984ac03d /system/lib/libwebviewchromium.so (cc::GLRenderer::GetVideoStreamTextureProgram(cc::TexCoordPrecision)+9)
06-25 08:31:27.519: I/DEBUG(106): bf8bfd3c 98d9eeb8 /system/lib/libwebviewchromium.so
06-25 08:31:27.519: I/DEBUG(106): bf8bfd40 b934d998 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd44 b97ba398 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd48 00000001
06-25 08:31:27.519: I/DEBUG(106): bf8bfd4c 984ac325 /system/lib/libwebviewchromium.so (cc::GLRenderer::DrawStreamVideoQuad(cc::DirectRenderer::DrawingFrame const*, cc::StreamVideoDrawQuad const*)+107)
06-25 08:31:27.519: I/DEBUG(106): bf8bfd50 b934d998 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd54 00000001
06-25 08:31:27.519: I/DEBUG(106): #00 bf8bfd58 000000ca
06-25 08:31:27.519: I/DEBUG(106): bf8bfd5c bf8bfd80 [stack]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd60 3f800000
06-25 08:31:27.519: I/DEBUG(106): bf8bfd64 00000002
06-25 08:31:27.519: I/DEBUG(106): bf8bfd68 bf8bfd90 [stack]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd6c b934d998 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd70 00000000
06-25 08:31:27.519: I/DEBUG(106): bf8bfd74 0000010b
06-25 08:31:27.519: I/DEBUG(106): bf8bfd78 00000438
06-25 08:31:27.519: I/DEBUG(106): bf8bfd7c 984b4008 /system/lib/libwebviewchromium.so (cc::GLRenderer::DoDrawQuad(cc::DirectRenderer::DrawingFrame*, cc::DrawQuad const*)+286)
06-25 08:31:27.519: I/DEBUG(106): bf8bfd80 00000168
06-25 08:31:27.519: I/DEBUG(106): bf8bfd84 000000ca
06-25 08:31:27.519: I/DEBUG(106): bf8bfd88 44870000
06-25 08:31:27.519: I/DEBUG(106): bf8bfd8c 44178000
06-25 08:31:27.519: I/DEBUG(106): bf8bfd90 b934d998 [heap]
06-25 08:31:27.519: I/DEBUG(106): bf8bfd94 bf8bfea8 [stack]
06-25 08:31:27.675: I/BootReceiver(577): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
06-25 08:31:27.695: D/dalvikvm(577): GC_FOR_ALLOC freed 1712K, 21% free 14837K/18732K, paused 20ms, total 20ms
06-25 08:31:27.703: W/ActivityManager(577): Force finishing activity com.barisefe.gazeteler/.NewsBrowserActivity
06-25 08:31:27.723: W/MediaFocusControl(577): AudioFocus audio focus client died
06-25 08:31:27.723: I/MediaFocusControl(577): AudioFocus removeFocusStackEntry(): removing entry for android.os.BinderProxy#529ab19c
06-25 08:31:27.723: I/ActivityManager(577): Process com.barisefe.gazeteler (pid 2652) has died.
06-25 08:31:27.727: I/AwesomePlayer(191): Prepare cancelled while waiting for initial cache fill.
06-25 08:31:27.727: W/MediaPlayerService(191): native_window_api_disconnect returned an error: Broken pipe (-32)
06-25 08:31:27.727: W/InputDispatcher(577): channel '52a12384 com.barisefe.gazeteler/com.barisefe.gazeteler.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
06-25 08:31:27.727: E/InputDispatcher(577): channel '52a12384 com.barisefe.gazeteler/com.barisefe.gazeteler.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
06-25 08:31:27.731: W/InputDispatcher(577): Attempted to unregister already unregistered input channel '52a12384 com.barisefe.gazeteler/com.barisefe.gazeteler.MainActivity (server)'
06-25 08:31:27.731: I/WindowState(577): WIN DEATH: Window{52a12384 u0 com.barisefe.gazeteler/com.barisefe.gazeteler.MainActivity}
06-25 08:31:27.735: I/WindowState(577): WIN DEATH: Window{5295de8c u0 com.barisefe.gazeteler/com.barisefe.gazeteler.NewsBrowserActivity}
06-25 08:31:27.743: D/dalvikvm(2749): Late-enabling CheckJNI
06-25 08:31:27.755: I/ActivityManager(577): Start proc com.barisefe.gazeteler for activity com.barisefe.gazeteler/.MainActivity: pid=2749 uid=10059 gids={50059, 3003}
06-25 08:31:27.827: I/qtaguid(191): Untagging socket 37 failed errno=-13
06-25 08:31:27.843: D/dalvikvm(2749): GC_CONCURRENT freed 58K, 4% free 3497K/3636K, paused 2ms+0ms, total 12ms
06-25 08:31:27.879: D/dalvikvm(2749): GC_FOR_ALLOC freed 9K, 4% free 3676K/3796K, paused 3ms, total 3ms
06-25 08:31:27.887: I/dalvikvm-heap(2749): Grow heap (frag case) to 8.660MB for 5241612-byte allocation
06-25 08:31:27.895: D/dalvikvm(2749): GC_FOR_ALLOC freed <1K, 2% free 8795K/8916K, paused 9ms, total 10ms
06-25 08:31:27.899: D/dalvikvm(2749): GC_CONCURRENT freed 0K, 2% free 8795K/8916K, paused 2ms+1ms, total 4ms
06-25 08:31:27.967: W/GooglePlayServicesUtil(2749): Google Play services is missing.
06-25 08:31:27.975: D/dalvikvm(2749): DexOpt: --- BEGIN 'ads695412881.jar' (bootstrap=0) ---
06-25 08:31:27.975: D/Zygote(190): Process 2652 terminated by signal (11)
06-25 08:31:27.979: W/linker(2763): libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
06-25 08:31:27.995: D/dalvikvm(2763): DexOpt: load 2ms, verify+opt 1ms, 158252 bytes
06-25 08:31:28.003: D/dalvikvm(2749): DexOpt: --- END 'ads695412881.jar' (success) ---
06-25 08:31:28.003: D/dalvikvm(2749): DEX prep '/data/data/com.barisefe.gazeteler/cache/ads695412881.jar': unzip in 0ms, rewrite 26ms
06-25 08:31:28.007: I/Ads(2749): Use AdRequest.Builder.addTestDevice("82E22535BB949544CBEEF894029F0CE9") to get test ads on this device.
06-25 08:31:28.011: I/Ads(2749): Starting ad request.
06-25 08:31:28.015: V/WebViewChromium(2749): Binding Chromium to the background looper Looper (main, tid 1) {52828044}
06-25 08:31:28.015: I/chromium(2749): [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
06-25 08:31:28.019: I/BrowserProcessMain(2749): Initializing chromium process, renderers=0
06-25 08:31:28.031: D/libEGL(2749): loaded /system/lib/egl/libEGL_genymotion.so
06-25 08:31:28.031: D/(2749): HostConnection::get() New Host Connection established 0xb9301bc0, tid 2749
06-25 08:31:28.031: W/chromium(2749): [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
06-25 08:31:28.047: D/libEGL(2749): loaded /system/lib/egl/libGLESv1_CM_genymotion.so
06-25 08:31:28.047: D/libEGL(2749): loaded /system/lib/egl/libGLESv2_genymotion.so
06-25 08:31:28.099: D/dalvikvm(2749): GC_FOR_ALLOC freed 229K, 4% free 9191K/9500K, paused 5ms, total 5ms
06-25 08:31:28.103: I/dalvikvm-heap(2749): Grow heap (frag case) to 11.466MB for 2536932-byte allocation
06-25 08:31:28.107: D/dalvikvm(2749): GC_CONCURRENT freed <1K, 3% free 11668K/11980K, paused 5ms+0ms, total 7ms
06-25 08:31:28.263: W/EGL_genymotion(2749): eglSurfaceAttrib not implemented
06-25 08:31:28.267: E/OpenGLRenderer(2749): Getting MAX_TEXTURE_SIZE from GradienCache
06-25 08:31:28.267: E/OpenGLRenderer(2749): MAX_TEXTURE_SIZE: 8192
06-25 08:31:28.271: E/OpenGLRenderer(2749): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
06-25 08:31:28.271: E/OpenGLRenderer(2749): MAX_TEXTURE_SIZE: 8192
06-25 08:31:28.271: D/OpenGLRenderer(2749): Enabling debug mode 0
06-25 08:31:32.755: I/Choreographer(2749): Skipped 267 frames! The application may be doing too much work on its main thread.
06-25 08:31:32.791: W/WindowManager(577): Rebuild removed 3 windows but added 2
06-25 08:31:32.791: W/WindowManager(577): java.lang.RuntimeException: here
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.rebuildAppWindowListLocked(WindowManagerService.java:8011)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.rebuildAppWindowListLocked(WindowManagerService.java:7947)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.handleAnimatingStoppedAndTransitionLocked(WindowManagerService.java:8691)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:9205)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop(WindowManagerService.java:8163)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:8105)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService.access$300(WindowManagerService.java:157)
06-25 08:31:32.791: W/WindowManager(577): at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:7139)
06-25 08:31:32.791: W/WindowManager(577): at android.os.Handler.dispatchMessage(Handler.java:102)
06-25 08:31:32.791: W/WindowManager(577): at android.os.Looper.loop(Looper.java:136)
06-25 08:31:32.791: W/WindowManager(577): at android.os.HandlerThread.run(HandlerThread.java:61)
06-25 08:31:32.791: W/WindowManager(577): This window was lost: Window{5295de8c u0 com.barisefe.gazeteler/com.barisefe.gazeteler.NewsBrowserActivity}
06-25 08:31:32.791: W/WindowManager(577): mDisplayId=0 mSession=Session{52b692b4 2652:u0a10059} mClient=android.os.BinderProxy#529978b4
06-25 08:31:32.791: W/WindowManager(577): mOwnerUid=10059 mShowToOwnerOnly=true package=com.barisefe.gazeteler appop=NONE
06-25 08:31:32.791: W/WindowManager(577): mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#10 ty=1 fl=#1810180 pfl=0x8 wanim=0x10302a1}
06-25 08:31:32.791: W/WindowManager(577): Requested w=1080 h=1776 mLayoutSeq=520
06-25 08:31:32.791: W/WindowManager(577): mBaseLayer=21000 mSubLayer=0 mAnimLayer=21005+0=21005 mLastLayer=21015
06-25 08:31:32.791: W/WindowManager(577): mToken=AppWindowToken{5299aeb4 token=Token{5292a720 ActivityRecord{5298fec8 u0 com.barisefe.gazeteler/.NewsBrowserActivity t7}}}
06-25 08:31:32.791: W/WindowManager(577): mRootToken=AppWindowToken{5299aeb4 token=Token{5292a720 ActivityRecord{5298fec8 u0 com.barisefe.gazeteler/.NewsBrowserActivity t7}}}
06-25 08:31:32.791: W/WindowManager(577): mAppToken=AppWindowToken{5299aeb4 token=Token{5292a720 ActivityRecord{5298fec8 u0 com.barisefe.gazeteler/.NewsBrowserActivity t7}}}
06-25 08:31:32.791: W/WindowManager(577): mViewVisibility=0x0 mHaveFrame=true mObscured=false
06-25 08:31:32.791: W/WindowManager(577): mSeq=0 mSystemUiVisibility=0x0
06-25 08:31:32.791: W/WindowManager(577): mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
06-25 08:31:32.791: W/WindowManager(577): mConfiguration={1.0 ?mcc?mnc en_US ldltr sw360dp w360dp h567dp 480dpi nrml port finger qwerty/v/v dpad/v s.5}
06-25 08:31:32.791: W/WindowManager(577): mHasSurface=true mShownFrame=[0.0,0.0][1080.0,1776.0] isReadyForDisplay()=false
06-25 08:31:32.791: W/WindowManager(577): mFrame=[0,0][1080,1776] last=[0,0][1080,1776]
06-25 08:31:32.791: W/WindowManager(577): mSystemDecorRect=[0,75][1080,1776] last=[0,75][1080,1776]
06-25 08:31:32.791: W/WindowManager(577): Frames: containing=[0,0][1080,1776] parent=[0,0][1080,1776]
06-25 08:31:32.791: W/WindowManager(577): display=[0,0][1080,1776] overscan=[0,0][1080,1920]
06-25 08:31:32.791: W/WindowManager(577): content=[0,75][1080,1776] visible=[0,75][1080,1776]
06-25 08:31:32.791: W/WindowManager(577): decor=[0,75][1080,1776]
06-25 08:31:32.791: W/WindowManager(577): Cur insets: overscan=[0,0][0,0] content=[0,75][0,0] visible=[0,75][0,0]
06-25 08:31:32.791: W/WindowManager(577): Lst insets: overscan=[0,0][0,0] content=[0,75][0,0] visible=[0,75][0,0]
06-25 08:31:32.791: W/WindowManager(577): WindowStateAnimator{52b684d0 com.xxx.yyy/com.xxx.yyy.HedeBrowserActivity}:
06-25 08:31:32.791: W/WindowManager(577): mSurface=Surface(name=com.xxx.yyy/com.xxx.yyy.HedeBrowserActivity)
06-25 08:31:32.791: W/WindowManager(577): mDrawState=HAS_DRAWN mLastHidden=true
06-25 08:31:32.791: W/WindowManager(577): Surface: shown=false layer=21015 alpha=1.0 rect=(0.0,0.0) 1080.0 x 1776.0
06-25 08:31:32.791: W/WindowManager(577): mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0
06-25 08:31:32.791: W/WindowManager(577): mExiting=false mRemoveOnExit=false mDestroying=true mRemoved=false
06-25 08:31:32.791: W/WindowManager(577): Current app token list:
06-25 08:31:32.791: V/WindowManager(577): Display 0
06-25 08:31:32.791: V/WindowManager(577): #1: Token{52a0cb88 ActivityRecord{52a0cad8 u0 com.xxx.yyy/.MainActivity t7}}
06-25 08:31:32.791: V/WindowManager(577): #0: Token{529b44ec ActivityRecord{52991f2c u0 com.android.launcher/com.android.launcher2.Launcher t1}}
06-25 08:31:32.791: W/WindowManager(577): Final window list:
06-25 08:31:32.791: V/WindowManager(577): #0: Window{529c3590 u0 SearchPanel}
06-25 08:31:32.791: V/WindowManager(577): #1: Window{52990efc u0 NavigationBar}
06-25 08:31:32.791: V/WindowManager(577): #2: Window{52980744 u0 StatusBar}
06-25 08:31:32.791: V/WindowManager(577): #3: Window{529cf5d8 u0 Keyguard}
06-25 08:31:32.791: V/WindowManager(577): #4: Window{5290d2a8 u0 KeyguardScrim}
06-25 08:31:32.791: V/WindowManager(577): #5: Window{5296d0cc u0 Application Error: com.xxx.yyy}
06-25 08:31:32.791: V/WindowManager(577): #6: Window{529a7b38 u0 com.xxx.yyy/com.xxx.yyy.MainActivity}
06-25 08:31:32.791: V/WindowManager(577): #7: Window{52964704 u0 com.android.launcher/com.android.launcher2.Launcher}
06-25 08:31:32.791: V/WindowManager(577): #8: Window{52919a38 u0 com.android.systemui.ImageWallpaper}
06-25 08:31:32.803: I/ActivityManager(577): Displayed com.xxx.yyy/.MainActivity: +5s72ms
06-25 08:31:32.939: I/chromium(2749): [INFO:simple_index_file.cc(397)] Simple Cache Index is being restored from disk.
06-25 08:31:32.943: I/Ads(2749): JS: Document was loaded from Application Cache with manifest http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache (http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html:0)
06-25 08:31:32.943: I/chromium(2749): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.appcache", source: http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
06-25 08:31:32.943: I/Ads(2749): JS: Application Cache Checking event (http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html:0)
06-25 08:31:32.943: I/chromium(2749): [INFO:CONSOLE(0)] "Application Cache Checking event", source: http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
06-25 08:31:33.143: I/Ads(2749): JS: Application Cache NoUpdate event (http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html:0)
06-25 08:31:33.143: I/chromium(2749): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: http://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40.html (0)
06-25 08:31:33.199: W/ContextImpl(2749): Implicit intents with startService are not safe: Intent { act=com.google.android.gms.analytics.service.START (has extras) } android.content.ContextWrapper.bindService:517 com.google.analytics.tracking.android.AnalyticsGmsCoreClient.connect:82 com.google.analytics.tracking.android.GAServiceProxy.connectToService:330
06-25 08:31:33.199: W/GAV3(2749): Thread[GAThread,5,main]: Service unavailable (code=1), will retry.
06-25 08:31:33.199: I/GAV3(2749): Thread[GAThread,5,main]: No campaign data found.
06-25 08:31:33.199: W/ActivityManager(577): Unable to start service Intent { act=com.google.android.gms.analytics.service.START (has extras) } U=0: not found
06-25 08:31:35.007: W/InputMethodManagerService(577): Got RemoteException sending setActive(false) notification to pid 2652 uid 10059
06-25 08:31:35.011: W/Binder(763): Caught a RuntimeException from the binder stub implementation.
06-25 08:31:35.011: W/Binder(763): java.lang.NullPointerException
06-25 08:31:35.011: W/Binder(763): at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
06-25 08:31:35.011: W/Binder(763): at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
06-25 08:31:35.011: W/Binder(763): at android.os.Binder.execTransact(Binder.java:404)
06-25 08:31:35.011: W/Binder(763): at dalvik.system.NativeStart.run(Native Method)
I couldn't control the html coming from url so I need a solution that works on application site.
Thanks.
I'm experiencing a very similar issue with my app on Android 4.4.2.
I found this thread on Chromium support forum that identifies the issue I think is 100% relevant to me, and may be relevant to you.
https://code.google.com/p/chromium/issues/detail?id=334992
334992 - WebView on Nexus 10 with stock KitKat 4.4.2 crashes when scrolling up or down
Basically, when attempting to scroll (up-down, or left-right) on long content that has not fully loaded, you can reliably make the webview control crash.
It only happens on some devices (like it happens on Galaxy S5 for me, but not Galaxy Mega), but always seems to affect Android 4.4.2.
Check out that Chromium thread, and I hope that helps.
There's a chromium bug link on this line:
06-25 08:31:19.919: E/chromium(2652): [ERROR:gles2_cmd_decoder_autogen.h(69)] [GroupMarkerNotSet(crbug.com/242999)!:C0EBA4B9]GL ERROR :GL_INVALID_ENUM : glBindTexture: target was GL_TEXTURE_EXTERNAL_OES
which is pointing to : https://code.google.com/p/chromium/issues/detail?id=242999
Most probably, the GLES implementation on genymotion is missing OES_EGL_image_external*
*http://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt
This could be caused from a graphic memory bug, so you can try to disable some CSS using any -CSS webkit-transform like " -webkit-transform: rotate(0deg) scaleX(1) scaleY(1); ". (I saw this same bug on iOS if you load too many data in GPU memory).

Foursquare API: Android key hash does not match the allowed key hashes specified in the app's settings

I'm trying to create Android application based on Fousquare API. I need to connect to foursquare account. I generated keys as told in instructions: github - foursquare-android-oauth But result is "Connecting failed". Client id and client secret are in app's settings. What's wrong?
Logcat:
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.foursquare.android.sample/.MainActivity } from pid 1507
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
W/dalvikvm( 1507): disableGcForExternalAlloc: true
W/dalvikvm( 1507): disableGcForExternalAlloc: false
D/SensorService( 1355): enable: get sensor name = BMA150 3-axis Accelerometer
D/Sensors ( 1355): Enable akm: en = 1
D/SensorService( 1355): SensorDevice::activate--: handle = 0x0, enabled = 0x1
D/SensorService( 1355): enable: sensor->activate return value = 0x0
D/SensorService( 1355): enable: calling mActiveSensors.add(handle, rec) = (0x0, 0x991fc8)
D/SensorService( 1355): enable: mActiveConnections.indexOf(connection) = 0x0
D/SensorService( 1355): pid=1355, uid=1000
D/AK8975 ( 1260): Compass Start
V/WindowManager( 1355): Starting animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{408c6f78 token=HistoryRecord{409ded10 com.htc.launcher/.Launcher}} # 27969582
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27969582
D/AK8975 ( 1260): Ignore M_Sensor: (y, p, r) = ( 139, 0, 3), Status = 0
D/ATRecorder(19226): com.htc.autotest.dlib.RecordEngine in loader dalvik.system.DexClassLoader#4053d0e0
D/WindowManagerImpl(19226): addView, new view, mViews[0]: com.android.internal.policy.impl.PhoneWindow$DecorView#40538ca8
D/WindowManagerImpl( 1355): finishRemoveViewLocked, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40d5af98
I/ActivityManager( 1355): Displayed com.foursquare.android.sample/.MainActivity: +210ms
V/ActivityManager( 1355): Checking to restart com.foursquare.android.sample.MainActivity: changed=0x0, handles=0x0
V/ActivityManager( 1355): oldConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
V/ActivityManager( 1355): newConfig={ scale=1.0 imsi=250/1 loc=ru_RU touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=61 skin=default fontsize=3}
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/brightness string=0,len=1
V/NotificationService( 1355): Charging...
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/green/off_timer string=0 0,len=3
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/brightness string=1,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/blink string=0,len=1
D/lights ( 1355): [LedInfo] write attr ok name=/sys/class/leds/amber/off_timer string=0 0,len=3
V/NotificationService( 1355): Turn off Charm Ind LED
W/InputManagerService( 1355): [unbindCurrentClientLocked] Disable input method client.
W/InputManagerService( 1355): [startInputLocked] Enable input method client.
D/BatteryService( 1355): SendIntentforPowersaver
D/BatteryService( 1355): Current powersaver status == NORMAL_STATUS
D/WifiService( 1355): [smart wifi] mSmartWiFiStatus: 0 mBatteryLevel: 88 mWifiConnected: true
D/WifiService( 1355): [smart wifi] ACTION_BATTERY_CHANGED pluggedType: 2
D/StatusBarPolicy( 1507): plugged = true, health = 2, level = 88, mPluggedBatteryLevel = 87, mLowBatteryWarningLevel2 = 25, mshowLowChargingWarning2 = true
E/MyHTC ( 1643): [ImmediateModeProxyMgr] Failed to connect; wait some amount of time before trying again.
W/System.err( 1643): java.net.SocketTimeoutException: Connection timed out
W/System.err( 1643): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)
W/System.err( 1643): at dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:207)
W/System.err( 1643): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:440)
W/System.err( 1643): at java.net.Socket.connect(Socket.java:1013)
W/System.err( 1643): at com.htc.handsetlib.proxy.ImmediateModeProxy.connect(ImmediateModeProxy.java:195)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr._connectToImcOrStatusServer(ImmediateModeProxyMgr.java:134)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeProxyMgr.onIntent(ImmediateModeProxyMgr.java:198)
W/System.err( 1643): at com.htc.cs.service.ImmediateModeService$PushHandler.handleMessage(ImmediateModeService.java:708)
W/System.err( 1643): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 1643): at android.os.Looper.loop(Looper.java:150)
W/System.err( 1643): at android.os.HandlerThread.run(HandlerThread.java:60)
D/MyHTC ( 1643): [ImmediateModeProxyMgr] _connectToImcOrStatusServer(): Fail IMC reconnect time = 172000
D/View (19226): onTouchEvent: viewFlags: 0x18004001
D/View (19226): onTouchEvent: isFocusable: true, isFocusableInTouchMode: false, isFocused: false; focusTaken: false
I/ActivityManager( 1355): Starting activity: Intent { act=android.intent.action.VIEW dat=foursquareauth://authorize?client_id=AP5RF0GZVCLPHHQ5HLHD5KQSYG03XIQUTKV1LXFCEQHPYMKS&v=20130509&androidKeyHash=60%3AA4%3AD9%3A06%3A0E%3AD2%3A27%3A56%3A00%3A57%3AF6%3A5D%3AE0%3AB7%3A65%3A39%3AC2%3AA9%3A64%3A34 cmp=com.joelapenna.foursquared/.OauthWebViewActivity } from pid 19226
E/ResourceType( 1355): Style contains key with bad entry: 0x01010397
E/ResourceType( 1355): Style contains key with bad entry: 0x0101039c
D/WindowManagerImpl( 1355): addView, new view, mViews[1]: com.android.internal.policy.impl.PhoneWindow$DecorView#40dce998
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/ActivityManager( 1355): Start proc com.joelapenna.foursquared for activity com.joelapenna.foursquared/.OauthWebViewActivity: pid=19512 uid=10077 gids={3003, 1015}
V/WindowManager( 1355): Starting animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971452
V/WindowManager( 1355): Starting animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971452
V/WindowManager( 1355): Finished animation in AppWindowToken{40e6f250 token=HistoryRecord{40a891d0 com.foursquare.android.sample/.MainActivity}} # 27971464
V/WindowManager( 1355): Finished animation in AppWindowToken{40d58910 token=HistoryRecord{40b2cf48 com.joelapenna.foursquared/.OauthWebViewActivity}} # 27971464
D/dalvikvm(19512): GC_CONCURRENT freed 139K, 44% free 3202K/5639K, external 0K/0K, paused 3ms+2ms
D/dalvikvm(19512): GC_CONCURRENT freed 96K, 41% free 3529K/5959K, external 0K/0K, paused 2ms+2ms
I/dalvikvm(19512): Could not find method android.os.StrictMode$ThreadPolicy$Builder.detectCustomSlowCalls, referenced from method com.joelapenna.foursquared.Foursquared.d
W/dalvikvm(19512): VFY: unable to resolve virtual method 1630: Landroid/os/StrictMode$ThreadPolicy$Builder;.detectCustomSlowCalls ()Landroid/os/StrictMode$ThreadPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0011
D/dalvikvm(19512): VFY: dead code 0x0014-003f in Lcom/joelapenna/foursquared/Foursquared;.d ()V
I/ActivityThread(19512): Pub com.joelapenna.foursquared: com.joelapenna.foursquared.providers.GlobalSearchProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.db.ConversationsContentProvider: com.joelapenna.foursquared.db.ConversationsContentProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider: com.joelapenna.foursquared.providers.VenueQuerySuggestionsProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.AppSearchSuggestionProvider: com.joelapenna.foursquared.providers.AppSearchSuggestionProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.foursquarebridgeprovider: com.joelapenna.foursquared.providers.FoursquareBridgeProvider
I/ActivityThread(19512): Pub com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider: com.joelapenna.foursquared.providers.FriendsSearchSuggestionProvider
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/keystore( 1257): uid: 1000 action: e -> 7 state: 3 -> 3 retry: 4
I/dalvikvm(19512): Could not find method android.os.StrictMode$VmPolicy$Builder.detectLeakedClosableObjects, referenced from method com.foursquare.core.h.z.a
W/dalvikvm(19512): VFY: unable to resolve virtual method 1638: Landroid/os/StrictMode$VmPolicy$Builder;.detectLeakedClosableObjects ()Landroid/os/StrictMode$VmPolicy$Builder;
D/dalvikvm(19512): VFY: replacing opcode 0x6e at 0x0025
D/dalvikvm(19512): VFY: dead code 0x0028-0038 in Lcom/foursquare/core/h/z;.a ()V
follow this link:
https://developer.foursquare.com/overview/auth
it's much more informative and explains the process great.
by the way it would be greate if you could paste the exact error and give some more information about what you did....theres not enough info to help you.
Maybe you didn't set the INTERNET PERMISSION in the Android manifest:
<manifest xlmns:android...>
...
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
</manifest>

Application dies with "Low Memory: No more background processes."

In my application i try launching the browser with the following url:
https://maps.google.com/maps?saddr=indiranagar bangalore&daddr=mgroad bangalore
The browser launches and when the map loads my application gets killed with the following logcat message:
I/ActivityManager( 61): Starting: Intent { act=android.intent.action.VIEW dat=
http://View cmp=com.android.browser/.BrowserActivity (has extras) } from pid 355
I/ActivityManager( 61): Starting: Intent { act=android.intent.action.VIEW dat=
https://maps.google.com/maps?saddr=indiranagar bangalore&daddr=mgroad bangalore
cmp=com.android.browser/.BrowserActivity } from pid 355
D/PhoneWindow( 355): couldn't save which view has focus because the focused vie
w android.widget.EditText#40587640 has no id.
I/ActivityManager( 61): Displayed com.android.browser/.BrowserActivity: +760ms
W/IInputConnectionWrapper( 355): showStatusIcon on inactive InputConnection
I/dalvikvm( 373): Jit: resizing JitTable from 1024 to 2048
I/System.out( 355): Logout Counter:30
D/dalvikvm( 373): GC_CONCURRENT freed 369K, 50% free 3921K/7751K, external 2234
K/2645K, paused 5ms+18ms
D/dalvikvm( 355): GC_EXPLICIT freed 866K, 50% free 3666K/7239K, external 2693K/
3310K, paused 1640ms
D/dalvikvm( 373): GC_CONCURRENT freed 1400K, 54% free 3641K/7751K, external 226
6K/2645K, paused 6ms+26ms
W/browser ( 373): We should not show context menu when nothing is touched
W/browser ( 373): We should not show context menu when nothing is touched
W/browser ( 373): We should not show context menu when nothing is touched
**I/ActivityManager( 61): Process com.aavarp.mobile (pid 355) has died.
I/ActivityManager( 61): Low Memory: No more background processes.**
I/WindowManager( 61): WIN DEATH: Window{408793c0 com.aavarp.mobile/com.aavarp.
mobile.core.ui.ApplicationsActivity paused=false}
E/InputDispatcher( 61): channel '4070e4f8 com.aavarp.mobile/com.aavarp.mobile.
dashboard.ui.components.GraphActivity (server)' ~ Consumer closed input channel
or an error occurred. events=0x8
E/InputDispatcher( 61): channel '4070e4f8 com.aavarp.mobile/com.aavarp.mobile.
dashboard.ui.components.GraphActivity (server)' ~ Channel is unrecoverably broke
n and will be disposed!
I/WindowManager( 61): WIN DEATH: Window{4070e4f8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.GraphActivity paused=false}
I/WindowManager( 61): WIN DEATH: Window{406836a8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.NotificationList paused=false}
I/WindowManager( 61): WIN DEATH: Window{406825a8 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.TableListActivity paused=false}
I/WindowManager( 61): WIN DEATH: Window{4083df30 com.aavarp.mobile/com.aavarp.
mobile.dashboard.ui.components.DetailsActivity paused=false}
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=171, events=0x8
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=175, events=0x8
E/InputDispatcher( 61): Received spurious receive callback for unknown input c
hannel. fd=181, events=0x8
D/dalvikvm( 61): GC_CONCURRENT freed 1735K, 52% free 4435K/9159K, external 529
2K/6609K, paused 8ms+16ms
D/skia ( 129): purging 38K from font cache [5 entries]
D/dalvikvm( 129): GC_EXPLICIT freed 84K, 52% free 2801K/5767K, external 2117K/2
643K, paused 73ms
Again i tried launching the browser from my application with www.google.com and performed a search and browsed through various pages and navigated back to my application without any issues. I am not sure if am missing some message on the logcat. I use Android 2.3 OS.Could someone kindly help me resolve this issue please. Thanks in advance.
why do you want to load the maps in webview..? you load the map in a map activity or
use Intents List: Invoking Google Applications on Android Devices
String uri = "http://maps.google.com/maps?saddr=" + "9982878"+","+"76285774"+"&daddr="+"9992084"+","+"76286455";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
Note: for displaying route you should use map activity canvas

Facebook dialog fails and stops the activity

I'm using the Facebook SDK on Android to post an update to the user's feed. I was able to get it to work when I did not have the Facebook client installed. Now, even after removing the Facebook app, when I try to authorize or open the feed dialog the activity is abrupty killed.
I don't get any message telling me that the app has crashed or anything. It's just destroyed. The only message is Mono telling me that the thread 0x0 has been prematurely finalized, which is odd. Also, there's this odd "Not supported in this case." message from webcore.
I'm using the NativeActivity class. I don't use it directly but I extend it in my activity. Here's the logcat from around where things go wrong:
I/PixelWorldEngine( 6796): Authorizing for Facebook...
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webview.db, mode: delete, disk free size: 35 M, handle: 0x801450
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, flag = 6, cannot stat file, error message: No such file or directory
D/Database( 6796): dbopen(): path = /data/data/com.ri.BubblingUpLite/databases/webviewCache.db, mode: delete, disk free size: 35 M, handle: 0x7ff128
D/skia ( 6796): htcFlashPlugin::htcFlashPlugin
W/webcore ( 6796): Not supported in this case.
I/PixelWorld-glue( 6796): WindowFocusChanged: 0x333288 -- 0
D/SensorService( 120): disable: connection.get() = 0x9f5c20
D/SensorService( 120): disable: get sensor name = BMA150 3-axis Accelerometer
D/SensorService( 120): SensorDevice::activate: handle = 0x0, enabled = 0x0
D/Sensors ( 120): Enable akm: en = 0
D/SensorService( 120): noteStopSensor: uid = 0x274d, handle = 0x0
D/SensorService( 120): pid=6796, uid=10061
D/SensorService( 120): Active sensors:
D/SensorService( 120): CM3602 Light sensor (handle=0x00000004, connections=1)
W/webcore ( 6796): Not supported in this case.
W/mono ( 6796): Thread 0x0 may have been prematurely finalized
D/SensorGUI( 120): ~SensorChannel: mSendFd = 255, mReceiveFd = -1
D/AudioPolicyService( 72): stopOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
D/AudioPolicyService( 72): releaseOutput() tid 2223
I/ActivityManager( 120): Process com.ri.BubblingUpLite (pid 6796) has died.
I/WindowManager( 120): WIN DEATH: Window{407e9548 com.ri.BubblingUpLite/com.ri.PixelWorldEngine.GameActivity paused=false}
I think it's an Android bug which seems to manifest on HTC devices.
See http://code.google.com/p/android/issues/detail?id=33612

Activity restarts on Force Close

I have an Application with a single root Activity. I've recently had it brought to my attention that any kind of Force Close on my Activity results in it restarting and I have no idea why this might happen. If I force an uncaught exception or use the 'long back press to force close' option, they both result in the same.
My only guess would have been some form of quirk relating to retained references to some part of the Activity, only I don't have any outside of some WeakReference entries at the Application level.
Relevant logcat entries:
05-25 08:25:49.137: INFO/ActivityManager(18449): Displayed uk.co.randomicon.rstb/.TreeBuilderActivity: +8s82ms
05-25 08:25:54.222: DEBUG/dalvikvm(18546): GC_EXPLICIT freed 12K, 57% free 3640K/8327K, external 8323K/10136K, paused 72ms
05-25 08:25:55.373: WARN/InputManagerService(18449): Got RemoteException sending setActive(false) notification to pid 19122 uid 10069
05-25 08:25:59.217: DEBUG/dalvikvm(18646): GC_EXPLICIT freed 128K, 48% free 2980K/5703K, external 0K/0K, paused 67ms
05-25 08:26:00.238: DEBUG/dalvikvm(18991): GC_CONCURRENT freed 343K, 51% free 2794K/5639K, external 303K/532K, paused 3ms+3ms
05-25 08:26:02.950: INFO/Process(18449): Sending signal. PID: 19554 SIG: 9
05-25 08:26:02.980: INFO/ActivityManager(18449): Process uk.co.randomicon.rstb (pid 19554) has died.
05-25 08:26:02.990: ERROR/InputDispatcher(18449): channel '40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
05-25 08:26:02.990: ERROR/InputDispatcher(18449): channel '40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-25 08:26:02.990: INFO/WindowManager(18449): WINDOW DIED Window{40a16ec8 uk.co.randomicon.rstb/uk.co.randomicon.rstb.TreeBuilderActivity paused=false}
05-25 08:26:03.010: WARN/WindowManager(18449): Failed looking up window
05-25 08:26:03.010: WARN/WindowManager(18449): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy#40c774e0 does not exist
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8177)
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8168)
05-25 08:26:03.010: WARN/WindowManager(18449): at com.android.server.WindowManagerService$WindowState$DeathRecipient.binderDied(WindowManagerService.java:7026)
05-25 08:26:03.010: WARN/WindowManager(18449): at android.os.BinderProxy.sendDeathNotice(Binder.java:385)
05-25 08:26:03.010: WARN/WindowManager(18449): at dalvik.system.NativeStart.run(Native Method)
05-25 08:26:03.010: INFO/WindowManager(18449): WIN DEATH: null
05-25 08:26:03.020: INFO/ActivityManager(18449): Start proc uk.co.randomicon.rstb for activity uk.co.randomicon.rstb/.TreeBuilderActivity: pid=19565 uid=10069 gids={1015}
Any ideas where to even begin poking would be gratefully received!
EDIT: This was caused by me setting android:stateNotNeeded="true" in my Manifest. While I don't need the state, this caused Android to decide it was best to relaunch my app on the assumption the user would want that.
Here is some useful info:
As far as when an activity is restarted -- if the process running the
foreground activity goes away, the system will throw away that activity if
it does not have a valid saved state for it (typically meaning it is paused
and has given the system the result of onSaveInstanceState from before the
pause). Once it has decided whether or not to throw away that activity, it
will resume whatever activity is now at the top of the stack. If this is
one of your activities -- either because you have another behind the one
that crashed, or the one that crashed was somehow it the settled pause state
-- then it will start your process again to show that top activity.
This may be caused by calling a system API that is not available on your target device. I ran into a similar issue then trying to call ActivityManager.MemoryInfo.totalMem on a 4.0.x device. I didn't get any compile errors as I was targeting 4.2.2 and ActivityManager.MemoryInfo.totalMem was added in API16 (4.1)
if app has android:persistent="true" in manifest, it will restart when killed.

Categories

Resources