Ticket #17 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Sometimes the track fails to be saved correctly

Reported by: saua Assigned to: saua
Priority: major Milestone:
Component: MIDlet Version: 0.3.0
Keywords: Cc:

Description (Last modified by saua)

Sometimes the track beeing recorded fails to be saved. The recording works fine and when bbTracker is exited or the tracks screen is opened it just isn't there.

There might be a problem with an exception beeing swallowed without beeing displayed.

It often happens when there are already several big tracks saved and the new track is big as well, maybe the device doesn't allow more storage space.

If that's the case then I should probably export the track to the device storage/SDCard.

Change History

08/10/07 06:20:39 changed by tonyr@alum.mit.edu

Joachim, Yes, I was about to report this bug. I started to notice it with 0.3.0. The past couple of days I have done long bike rides (>1000 points) and loved looking at the graphs, but then was very frustrated that I was not able to save them. One other possibility is that I locked the keyboard both times during the ride, but left bbTracker running in the foreground.

P.S. I love the graphs! Excellent work!

Tony Rodriguez

08/13/07 22:10:23 changed by saua

  • status changed from new to assigned.
  • description changed.

I'm now pretty sure that the problems is caused by a full record store.

The MIDP specification already mentions that Record Store space might be quite limited and http://na.blackberry.com/eng/developers/resources/journals/may_2004/storing_data_persistently.jsp#two_ways mentions a 64kb limit per recordstore. That would fit quite good with tracks > 1000 Trackpoints not beeing stored sucessfully (or even smaller tracks, if other big tracks where already stored).

I pondered exporting a track, when it couldn't be successfully stored, but the only real fix is to store the tracks (at least optionally) in the file system in addition to or as an alternative to the Record Store.

In the long run I will probably get rid of the TrackStore? that uses the RecordStore?.

08/15/07 23:02:08 changed by saua

  • status changed from assigned to closed.
  • resolution set to fixed.
  • description changed.

I've implemented a FileTrackStore? that saves the tracks to the track directory as selected on the options screen. This should prevent further situations where the track could not be saved due to limited space in the record store.