legendaryfox/bamft — Issue #16: Hubway Button crashes after displaying correct name on ScheduleProfileActivity
Author: legendaryfox
Created: 2012-02-23 15:35:58+00:00
State: open

I'm not sure if this is relevant, or if it's related to the new UI changes.

Basically, pressing the Hubway button (the third one), the console will correctly display the nearest hubway station, but then will crash. Trace is as follows:

```
2277 NearestHubway D Harvard Stadium
2277 NearestHubway D North Station
2277 MapQuery D http://maps.google.com/maps?saddr=22.3324657,114.2394478&daddr=42.368511,-71.124906&dirflg=w&output=kml
2277 MapQuery D http://maps.google.com/maps?saddr=42.368511,-71.124906&daddr=42.366231,-71.060868&dirflg=b&output=kml
2277 MapQuery D http://maps.google.com/maps?saddr=42.366231,-71.060868&daddr=42.37468239,-71.054578603&dirflg=w&output=kml
2277 dalvikvm D GC_CONCURRENT freed 1216K, 52% free 3358K/6983K, external 1846K/2349K, paused 2ms+3ms
2277 Cursor D
2277 Cursor D Database path: /data/data/com.ksj.bamft/databases/bamftRecords
2277 Cursor D
2277 Cursor D Table name : landmarks
2277 Cursor D
2277 Cursor D SQL : SQLiteQuery: SELECT id, name, xcoord, ycoord FROM landmarks WHERE id=?
2277 dalvikvm I Uncaught exception thrown by finalizer (will be discarded):
2277 dalvikvm I Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@406794c8 on landmarks that has not be
en deactivated or closed
2277 dalvikvm I	at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:620)
2277 dalvikvm I	at dalvik.system.NativeStart.run(Native Method)
2277 Cursor D
2277 Cursor D Database path: /data/data/com.ksj.bamft/databases/bamftRecords
2277 Cursor D
2277 Cursor D Table name : trucks
2277 Cursor D
2277 Cursor D SQL : SQLiteQuery: SELECT id, name, cuisine, description, email, menu, twitter, facebook, website, yelp FROM trucks WH
ERE id=?
2277 dalvikvm I Uncaught exception thrown by finalizer (will be discarded):
2277 dalvikvm I Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor@40676a60 on trucks that has not been
deactivated or closed
2277 dalvikvm I	at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:620)
2277 dalvikvm I	at dalvik.system.NativeStart.run(Native Method)
2277 System.err W org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0: no element found
2277 System.err W	at org.apache.harmony.xml.ExpatParser.finish(ExpatParser.java:550)
2277 System.err W	at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:480)
2277 System.err W	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:318)
2277 System.err W	at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:275)
2277 System.err W	at com.ksj.bamft.maps.MapHelpers.getDirections(MapHelpers.java:160)
2277 System.err W	at com.ksj.bamft.activity.ScheduleProfileActivity$5.onClick(ScheduleProfileActivity.java:317)
2277 System.err W	at android.view.View.performClick(View.java:2538)
2277 System.err W	at android.view.View$PerformClick.run(View.java:9152)
2277 System.err W	at android.os.Handler.handleCallback(Handler.java:587)
2277 System.err W	at android.os.Handler.dispatchMessage(Handler.java:92)
2277 System.err W	at android.os.Looper.loop(Looper.java:130)
2277 System.err W	at android.app.ActivityThread.main(ActivityThread.java:3688)
2277 System.err W	at java.lang.reflect.Method.invokeNative(Native Method)
2277 System.err W	at java.lang.reflect.Method.invoke(Method.java:507)
2277 System.err W	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
2277 System.err W	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
2277 System.err W	at dalvik.system.NativeStart.main(Native Method)
2277 AndroidRuntime D Shutting down VM
2277 dalvikvm W threadid=1: thread exiting with uncaught exception (group=0x40015578)
2277 AndroidRuntime E FATAL EXCEPTION: main
2277 AndroidRuntime E java.util.NoSuchElementException
2277 AndroidRuntime E	at java.util.LinkedList.removeLastImpl(LinkedList.java:714)
2277 AndroidRuntime E	at java.util.LinkedList.removeLast(LinkedList.java:701)
2277 AndroidRuntime E	at com.ksj.bamft.activity.ScheduleProfileActivity$5.onClick(ScheduleProfileActivity.java:329)
2277 AndroidRuntime E	at android.view.View.performClick(View.java:2538)
2277 AndroidRuntime E	at android.view.View$PerformClick.run(View.java:9152)
2277 AndroidRuntime E	at android.os.Handler.handleCallback(Handler.java:587)
2277 AndroidRuntime E	at android.os.Handler.dispatchMessage(Handler.java:92)
2277 AndroidRuntime E	at android.os.Looper.loop(Looper.java:130)
2277 AndroidRuntime E	at android.app.ActivityThread.main(ActivityThread.java:3688)
2277 AndroidRuntime E	at java.lang.reflect.Method.invokeNative(Native Method)
2277 AndroidRuntime E	at java.lang.reflect.Method.invoke(Method.java:507)
2277 AndroidRuntime E	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
2277 AndroidRuntime E	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
2277 AndroidRuntime E	at dalvik.system.NativeStart.main(Native Method)
114 E Dumpstate > /data/log/dumpstate_app_error
```