dmitry-lt / android-comapping

Automatically exported from code.google.com/p/android-comapping
0 stars 0 forks source link

Application display black screen when try to open map from server. After some time of thinking - it display error message. See log in details #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
07-15 17:28:13.116: ERROR/MCP(708): uri:content://www.comapping.com/maps/47662
07-15 17:28:13.126: INFO/Comapping(708): ComappingMapContentProvider:
received uri: content://www.comapping.com/maps/47662
07-15 17:28:13.186: DEBUG/Comapping(708): ComappingMapContentProvider:
QueryType is MAP
07-15 17:28:13.256: DEBUG/Comapping(708): Communication: getting 47662 comap
07-15 17:28:13.276: DEBUG/Comapping(708): Communication: login required
action with login status: false
07-15 17:28:13.286: INFO/ActivityManager(568): Starting activity: Intent {
action=com.comapping.android.intent.LOGIN flags=0x10000000
comp={com.comapping.android.controller/com.comapping.android.provider.communicat
ion.LoginActivity}
}
07-15 17:28:13.796: WARN/ActivityManager(568): Activity pause timeout for
HistoryRecord{43753db0
{com.comapping.android.controller/com.comapping.android.map.MapActivity}}
07-15 17:28:14.046: DEBUG/Comapping(708): Login: LoginActivity.onCreate()
07-15 17:28:14.466: INFO/Comapping(708): Storage: get [autoLogin] =
ef741a46a82d2bc51cdef872a576c2d0
07-15 17:28:14.486: INFO/Comapping(708): Storage: get [eMail] =
teshca@tepkom.ru
07-15 17:28:14.566: INFO/Comapping(708): Storage: get [autoLogin] =
ef741a46a82d2bc51cdef872a576c2d0
07-15 17:28:15.066: INFO/Comapping(708): Storage: get [eMail] =
teshca@tepkom.ru
07-15 17:28:15.116: INFO/Comapping(708): Storage: get [autoLogin] =
ef741a46a82d2bc51cdef872a576c2d0
07-15 17:28:15.406: INFO/Comapping(708): Storage: [autoLogin] = 
07-15 17:28:15.445: DEBUG/Comapping(708): Communication: request to server
[action=notifier_login, login=teshca@tepkom.ru,
password=ef741a46a82d2bc51cdef872a576c2d0, loginMethod=flashCookie]
07-15 17:28:16.046: DEBUG/InetAddress(708): go.comapping.com: 66.135.55.28
(family 2, proto 6)
07-15 17:28:16.886: DEBUG/dalvikvm(708): GC freed 12767 objects / 616152
bytes in 140ms
07-15 17:28:18.766: INFO/Comapping(708): Communication: New server response
= 5xXxDh3Djo20090715122832
07-15 17:28:18.786: DEBUG/Comapping(708): Communication: New server
checksum = 1603
07-15 17:28:18.856: DEBUG/Comapping(708): Communication: New server
response code = 200
07-15 17:28:18.926: INFO/ActivityManager(568): Displayed activity
com.comapping.android.controller/com.comapping.android.provider.communication.Lo
ginActivity:
5639 ms
07-15 17:28:18.956: INFO/Comapping(708): Communication: teshca@tepkom.ru
logged in!
07-15 17:28:19.096: DEBUG/Comapping(708): Communication: request to server
[action=download, format=comap, clientID=5xXxDh3Djo20090715122832, mapid=47662]
07-15 17:28:19.406: INFO/Comapping(708): Storage: [autoLogin] =
ef741a46a82d2bc51cdef872a576c2d0
07-15 17:28:20.586: INFO/ActivityManager(568): Displayed activity
com.comapping.android.controller/com.comapping.android.map.MapActivity: 7607 ms
07-15 17:28:26.105: DEBUG/dalvikvm(708): GC freed 5084 objects / 391752
bytes in 133ms
07-15 17:28:26.115: INFO/dalvikvm-heap(708): Grow heap (frag case) to
4.927MB for 73740-byte allocation
07-15 17:28:26.245: DEBUG/dalvikvm(708): GC freed 27 objects / 25744 bytes
in 126ms
07-15 17:28:26.715: DEBUG/dalvikvm(708): GC freed 755 objects / 112840
bytes in 125ms
07-15 17:28:26.725: INFO/dalvikvm-heap(708): Grow heap (frag case) to
4.981MB for 147468-byte allocation
07-15 17:28:26.866: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 133ms
07-15 17:28:27.715: DEBUG/dalvikvm(708): GC freed 798 objects / 169576
bytes in 117ms
07-15 17:28:27.736: INFO/dalvikvm-heap(708): Grow heap (frag case) to
5.194MB for 294924-byte allocation
07-15 17:28:27.955: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 225ms
07-15 17:28:29.575: DEBUG/dalvikvm(708): GC freed 1639 objects / 344216
bytes in 118ms
07-15 17:28:29.606: INFO/dalvikvm-heap(708): Grow heap (frag case) to
5.614MB for 589836-byte allocation
07-15 17:28:30.056: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 450ms
07-15 17:28:33.166: DEBUG/dalvikvm(708): GC freed 3108 objects / 683912
bytes in 132ms
07-15 17:28:33.616: INFO/dalvikvm-heap(708): Grow heap (frag case) to
6.458MB for 1179660-byte allocation
07-15 17:28:33.756: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 137ms
07-15 17:28:40.396: DEBUG/dalvikvm(708): GC freed 6415 objects / 1364176
bytes in 136ms
07-15 17:28:40.496: INFO/dalvikvm-heap(708): Grow heap (frag case) to
8.145MB for 2359308-byte allocation
07-15 17:28:40.645: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 137ms
07-15 17:28:52.386: DEBUG/dalvikvm(708): GC freed 11593 objects / 2730432
bytes in 221ms
07-15 17:28:53.996: INFO/dalvikvm-heap(708): Grow heap (frag case) to
9.208MB for 2328986-byte allocation
07-15 17:28:54.176: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 143ms
07-15 17:28:58.885: DEBUG/dalvikvm(708): GC freed 7835 objects / 879680
bytes in 136ms
07-15 17:28:58.935: INFO/dalvikvm-heap(708): Grow heap (frag case) to
10.708MB for 1048588-byte allocation
07-15 17:28:59.075: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 142ms
07-15 17:29:03.515: DEBUG/dalvikvm(708): GC freed 7286 objects / 855144
bytes in 137ms
07-15 17:29:03.906: INFO/dalvikvm-heap(708): Grow heap (frag case) to
12.208MB for 2097164-byte allocation
07-15 17:29:04.065: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 153ms
07-15 17:29:12.106: DEBUG/dalvikvm(708): GC freed 13428 objects / 1657848
bytes in 148ms
07-15 17:29:12.106: INFO/dalvikvm-heap(708): Forcing collection of
SoftReferences for 4194316-byte allocation
07-15 17:29:12.236: DEBUG/dalvikvm(708): GC freed 0 objects / 0 bytes in 123ms
07-15 17:29:12.246: ERROR/dalvikvm-heap(708): Out of memory on a
4194316-byte allocation.
07-15 17:29:12.246: INFO/dalvikvm(708): "Thread-2416" prio=5 tid=23 RUNNABLE
07-15 17:29:12.246: INFO/dalvikvm(708):   | group="main" sCount=0 dsCount=0
s=0 obj=0x43766198
07-15 17:29:12.246: INFO/dalvikvm(708):   | sysTid=3135 nice=0 sched=0/0
handle=2307784
07-15 17:29:12.256: INFO/dalvikvm(708):   at
java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:~99)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:193)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
java.lang.StringBuilder.append(StringBuilder.java:324)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.Log.combine(Log.java:65)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.Log.i(Log.java:37)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.provider.communication.Client.requestToServer(Client.java:
337)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.provider.communication.Client.getComap(Client.java:239)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.provider.communication.CachingClient.getComap(CachingClien
t.java:87)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.provider.contentprovider.ComappingMapContentProvider.getCo
map(ComappingMapContentProvider.java:159)
07-15 17:29:12.266: INFO/dalvikvm(708):   at
com.comapping.android.provider.contentprovider.ComappingMapContentProvider.query
(ComappingMapContentProvider.java:95)
07-15 17:29:12.276: INFO/dalvikvm(708):   at
android.content.ContentProvider$Transport.query(ContentProvider.java:129)
07-15 17:29:12.286: INFO/dalvikvm(708):   at
android.content.ContentResolver.query(ContentResolver.java:149)
07-15 17:29:12.286: INFO/dalvikvm(708):   at
com.comapping.android.provider.contentprovider.MapContentProvider.getComap(MapCo
ntentProvider.java:22)
07-15 17:29:12.286: INFO/dalvikvm(708):   at
com.comapping.android.map.MapActivity.loadMap(MapActivity.java:226)
07-15 17:29:12.286: INFO/dalvikvm(708):   at
com.comapping.android.map.MapActivity$10.run(MapActivity.java:383)
07-15 17:29:12.306: WARN/dalvikvm(708): threadid=23: thread exiting with
uncaught exception (group=0x4000fe70)
07-15 17:29:12.306: ERROR/AndroidRuntime(708): Uncaught handler: thread
Thread-2416 exiting due to uncaught exception
07-15 17:29:12.396: ERROR/AndroidRuntime(708): java.lang.OutOfMemoryError
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:99)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:193)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
java.lang.StringBuilder.append(StringBuilder.java:324)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.Log.combine(Log.java:65)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.Log.i(Log.java:37)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.communication.Client.requestToServer(Client.java:
337)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.communication.Client.getComap(Client.java:239)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.communication.CachingClient.getComap(CachingClien
t.java:87)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.contentprovider.ComappingMapContentProvider.getCo
map(ComappingMapContentProvider.java:159)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.contentprovider.ComappingMapContentProvider.query
(ComappingMapContentProvider.java:95)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
android.content.ContentProvider$Transport.query(ContentProvider.java:129)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
android.content.ContentResolver.query(ContentResolver.java:149)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.provider.contentprovider.MapContentProvider.getComap(MapCo
ntentProvider.java:22)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.map.MapActivity.loadMap(MapActivity.java:226)
07-15 17:29:12.396: ERROR/AndroidRuntime(708):     at
com.comapping.android.map.MapActivity$10.run(MapActivity.java:383)
07-15 17:29:12.486: INFO/Process(568): Sending signal. PID: 708 SIG: 3
07-15 17:29:12.495: INFO/dalvikvm(708): threadid=7: reacting to signal 3
07-15 17:29:12.696: INFO/dalvikvm(708): Wrote stack trace to
'/data/anr/traces.txt'

Original issue reported on code.google.com by Nickolay...@gmail.com on 15 Jul 2009 at 5:33

GoogleCodeExporter commented 9 years ago
Is it happens on every map or on particular map? And what is the size of the 
map?

Original comment by passiche...@gmail.com on 16 Jul 2009 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes. It's a specific map. It's size is 1.11 MB
Even thought the size is big I dont think the application should behave in that 
way.
If we can't support maps of that size - we should tell user about that and 
don't try
to parse it. So we can download it, check the size, and display error message 
to user.

Original comment by Nickolay...@gmail.com on 16 Jul 2009 at 8:13

GoogleCodeExporter commented 9 years ago
Sure. It just can show me where is the problem.

Original comment by passiche...@gmail.com on 16 Jul 2009 at 8:20

GoogleCodeExporter commented 9 years ago
Also it will be good if we can mark such a map in a metamap as TOO BIG.
For example write "The map can't be synchronized because it's too big" instead 
of
"Not synchronized", and also display actual size

Original comment by Nickolay...@gmail.com on 16 Jul 2009 at 8:21

GoogleCodeExporter commented 9 years ago
It is necessary to download such a big maps only to tell user about "we can't 
support maps of that size"?  Can we understand that map is bigger then we can 
parse 
without downloading?

Original comment by dmitriy....@gmail.com on 16 Jul 2009 at 8:24

GoogleCodeExporter commented 9 years ago
If you'll find the way to get the file size before downloading - then it's good 
idea.
Browsers somehow know the size of they file they are downloading, so maybe we 
also can.
Need more investigation on this.

Original comment by Nickolay...@gmail.com on 16 Jul 2009 at 8:29

GoogleCodeExporter commented 9 years ago
Ok, I'll do some investigation on this. I think that 
connection.getContentLength() 
method is all what we need to understand what the size of file.

Original comment by dmitriy....@gmail.com on 16 Jul 2009 at 9:48

GoogleCodeExporter commented 9 years ago
Also we need an investigation on the size of map we can handle.
Is it 500K, 700K or 1Mb? We need to find the limit.
And make some automatic tests.

Original comment by Nickolay...@gmail.com on 16 Jul 2009 at 9:54

GoogleCodeExporter commented 9 years ago
The .getContentLength() really works as we need! Using it we can get size of 
file 
before downloading.

Original comment by dmitriy....@gmail.com on 16 Jul 2009 at 10:43

GoogleCodeExporter commented 9 years ago

Original comment by dmitriy....@gmail.com on 17 Jul 2009 at 7:25

GoogleCodeExporter commented 9 years ago

Original comment by dmitriy....@gmail.com on 17 Jul 2009 at 8:00

GoogleCodeExporter commented 9 years ago

Original comment by Nickolay...@gmail.com on 17 Jul 2009 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by passiche...@gmail.com on 21 Jul 2009 at 9:37