rohitrng / open-gpstracker

Automatically exported from code.google.com/p/open-gpstracker
0 stars 0 forks source link

FC on viewing MediaRich track where not all media has a waypoint #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
java.lang.NullPointerException:
  at nl.sogeti.android.gpstracker.viewer.SegmentOverlay.isOnScreen(SegmentOverlay.java:807)
  at nl.sogeti.android.gpstracker.viewer.SegmentOverlay.drawMedia(SegmentOverlay.java:485)
  at nl.sogeti.android.gpstracker.viewer.SegmentOverlay.draw(SegmentOverlay.java:211)
  at com.google.android.maps.Overlay.draw(Overlay.java:179)
  at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:45)
  at com.google.android.maps.MapView.onDraw(MapView.java:494)
  at android.view.View.draw(View.java:6535)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
  at android.view.View.draw(View.java:6538)
  at android.widget.FrameLayout.draw(FrameLayout.java:352)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
  at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
  at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
  at android.view.View.draw(View.java:6538)
  at android.widget.FrameLayout.draw(FrameLayout.java:352)
  at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1830)
  at android.view.ViewRoot.draw(ViewRoot.java:1349)
  at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
  at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4363)
  at java.lang.reflect.Method.invokeNative(Method.java:-2)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  at dalvik.system.NativeStart.main(NativeStart.java:-2)

Original issue reported on code.google.com by rcgr...@gmail.com on 13 Jun 2010 at 9:25

GoogleCodeExporter commented 9 years ago
I am seeing the exact same NPE and stacktrace after logging, using the 
GPSLoggerService as a remote service from my application (MobiTracer). After 
this the FC will happen all the time and the only way out is to reinstall OGT. 
Yes, my app inserts waypoint names, so possibly without a waypoint available. 
Maybe a first quick fix is to catch the NPE and chug along or have some way to 
delete the failing track. At least I am happy you already found the issue since 
I thought it was specific to my use of OGT (through Remote aidl Service and 
Content Observers from my app and internally starting the LoggerMap Activity 
for track control/export).

Original comment by jus...@gmail.com on 21 Jul 2010 at 3:01

GoogleCodeExporter commented 9 years ago
Ok, see you fixed it in r588. Will install svn-version for now.

Original comment by jus...@gmail.com on 21 Jul 2010 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by rcgr...@gmail.com on 21 Jul 2010 at 7:02