I've seen crashes like this (did not take snapshots of the traces to
compare) as well. If I remember correctly, the built-in Map app can be
crashed like that, too. Just as your trace shows, this occurs mostly
in animateTo(). I suspected this had to do with memory availability
(or lack thereof) when new tiles are loaded, so I spent a few days on
optimizing memory usage on my end. I found the problem tapered off
considerably after that campaign. When testing, I have to try pretty
hard now to trigger this (on a standard G1 or emulator session).


On May 2, 7:20 am, chris <christ.pe...@gmail.com> wrote:
> Hi ,
>
> I have from time to time some crashes on the google code for drawing
> tiles on a mapActivity.
>
> 05-02 16:03:00.510: WARN/dalvikvm(6278): threadid=23: thread exiting
> with uncaught exception (group=0x4000fe70)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278): Uncaught handler:
> thread Thread-28 exiting due to uncaught exception
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):
> java.lang.NullPointerException
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.google.googlenav.map.Map.drawTile(Unknown Source)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.google.googlenav.map.Map.drawMapBackground(Unknown Source)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.google.googlenav.map.Map.preLoad(Unknown Source)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.google.android.maps.MapController.animateTo(MapController.java:
> 234)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.google.android.maps.MapController.animateTo(MapController.java:
> 203)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> com.piggyback.foxydroid.MainActivity$1.run(MainActivity.java:164)
> 05-02 16:03:00.540: ERROR/AndroidRuntime(6278):     at
> java.lang.Thread.run(Thread.java:1058)
>
> and this in /data/anr/traces.txt
> "Thread-28" prio=5 tid=23 NATIVE
>   | group="main" sCount=1 dsCount=0 s=0 obj=0x43590018
>   | sysTid=6314 nice=0 sched=0/0 handle=1750032
>   at android.os.BinderProxy.transact(Native Method)
>   at android.app.ActivityManagerProxy.handleApplicationError
> (ActivityManagerNative.java:2103)
>   at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:302)
>   at com.android.internal.os.RuntimeInit
> $UncaughtHandler.uncaughtException(RuntimeInit.java:75)
>   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
>   at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
>
> Any idea what could cause such crashes and how to avoid/prevent them
> to crash my application ?
>
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to