Closed GoogleCodeExporter closed 9 years ago
This patch fixes the problem.
Disconnects the service when the OSM view is detached from window and
automatically
reconnects on a new tile request.
Original comment by viesturz
on 6 Apr 2010 at 12:10
Attachments:
I have tried the patch but it still doesn't works. Now i get the following
error:
I/ActivityManager( 52): Displayed activity com.myapp/.code.ViewRuns: 672 ms
(total 672 ms)
E/OPENSTREETMAP( 211): Unbinding service
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
D/OSM_TILE_PROVIDER_SERVICE( 211): onUnbind
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
D/OSM_TILE_PROVIDER_SERVICE( 211): onDestroy
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
W/ActivityManager( 52): Timeout executing service: ServiceRecord{43873640
com.touristeye/.services.OpenStreetMapTileProviderService}
I/ActivityManager( 52): ANR in process: com.touristeye
I/ActivityManager( 52): Annotation: Executing service
ComponentInfo{com.touristeye/com.touristeye.services.OpenStreetMapTileProviderSe
rvice}
I/ActivityManager( 52): CPU usage:
I/ActivityManager( 52): Load: 1.38 / 0.9 / 0.36
I/ActivityManager( 52): CPU usage from 23746ms to 33ms ago:
I/ActivityManager( 52): com.touristeye: 9% = 8% user + 1% kernel / faults:
682 minor
Thanks
Original comment by gefe...@gmail.com
on 6 Apr 2010 at 1:47
Sorry, my error, accidentally posted error message where debug should have been.
Fixed patch below.
Original comment by viesturz
on 6 Apr 2010 at 3:08
Attachments:
sorry but i still get the same problem
I/ActivityManager( 52): Stopping service:
com.touristeye/.services.OpenStreetMapTileProviderService
and
W/ActivityManager( 52): Timeout executing service: ServiceRecord{43849000
com.touristeye/.services.OpenStreetMapTileProviderService}
After that, the application seems to be not responding.
what can be the problem?
Original comment by gefe...@gmail.com
on 6 Apr 2010 at 7:05
Works fine for me in the demo app. This might be some problem in your app.
Care to share your source?
Original comment by viesturz
on 7 Apr 2010 at 6:30
In order to check if it is my problem i have tried the demo app (Sample
Loader), loading maps from OSMapView
with Itemized Overlay.
But the problem still remains when i go back from OSMApViewWithItemizedOverlay
and i wait for (more or
less) 20 seconds in the list that shows the different examples. After that
time, the application seems to be not
responding and logcat shows the following:
D/OPENSTREETMAP( 234): Unbinding service
D/OSM_TILE_PROVIDER_SERVICE( 243): onUnbind
D/OSM_TILE_PROVIDER_SERVICE( 243): onDestroy
W/ActivityManager( 56): Timeout executing service: ServiceRecord{43d75190
org.andnav.osm/.services.OpenStreetMapTileProviderService}
I/ActivityManager( 56): ANR in process: org.andnav.osm:remote
I/ActivityManager( 56): Annotation: Executing service
ComponentInfo{org.andnav.osm/org.andnav.osm.services.OpenStreetMapTileProviderSe
rvice}
I/ActivityManager( 56): CPU usage:
I/ActivityManager( 56): Load: 2.04 / 1.09 / 0.42
I/ActivityManager( 56): CPU usage from 20703ms to 37ms ago:
I/ActivityManager( 56): dnav.osm:remote: 7% = 3% user + 4% kernel / faults:
3293 minor
I/ActivityManager( 56): system_server: 2% = 1% user + 1% kernel / faults:
214 minor
I/ActivityManager( 56): org.andnav.osm: 0% = 0% user + 0% kernel / faults:
196 minor
I/ActivityManager( 56): m.android.phone: 0% = 0% user + 0% kernel / faults:
27 minor
I/ActivityManager( 56): adbd: 0% = 0% user + 0% kernel
I/ActivityManager( 56): putmethod.latin: 0% = 0% user + 0% kernel / faults:
9 minor
I/ActivityManager( 56): TOTAL: 4% = 2% user + 1% kernel
I/ActivityManager( 56): Removing old ANR trace file from /data/anr/traces.txt
I/Process ( 56): Sending signal. PID: 243 SIG: 3
I/dalvikvm( 243): threadid=7: reacting to signal 3
I/dalvikvm( 243): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 56): Sending signal. PID: 56 SIG: 3
I/dalvikvm( 56): threadid=7: reacting to signal 3
I/dalvikvm( 56): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 56): Sending signal. PID: 234 SIG: 3
Original comment by gefe...@gmail.com
on 7 Apr 2010 at 9:55
Thanks for the info, I will check this.
Original comment by viesturz
on 7 Apr 2010 at 3:38
thanks. when you finish to check it, can you notice me the results in order to
check if i have the right code?
Original comment by gefe...@gmail.com
on 7 Apr 2010 at 6:57
Reproduced the issue.
The problem is that the service fails to stop properly, because it is waiting
for the
remaining images to be downloaded. Probably related to the cloudmade tiles not
being
available.
Will try to fix this.
Original comment by viesturz
on 8 Apr 2010 at 7:06
Fixed the problem.
Unfortunately it becomes difficult to separate this patch form #35. So this
patch
contains both changes.
Let me know if you really want them separated.
Original comment by viesturz
on 8 Apr 2010 at 7:24
Attachments:
great! it works!
Original comment by gefe...@gmail.com
on 8 Apr 2010 at 8:51
How about integrating this in the source?
Original comment by viesturz
on 12 Apr 2010 at 7:30
New, smaller patch against rev #133.
Original comment by viesturz
on 15 Apr 2010 at 10:19
Attachments:
Better patch, only differences here.
Original comment by viesturz
on 15 Apr 2010 at 10:33
Attachments:
what is the difference between patch2 and patch3? thanks
Original comment by gefe...@gmail.com
on 15 Apr 2010 at 2:46
This issue was closed by revision r136.
Original comment by neilboyd
on 15 Apr 2010 at 7:52
Original issue reported on code.google.com by
petersch...@googlemail.com
on 24 Jan 2010 at 2:53