lunedì 17 gennaio 2011

Libpng...

Work is progressing in integrating libpng...

I come out with a better algorythm to draw the cached chunks. Right now it works, but when you zoom out/in to a different "zoom level" it will cause a reload of all the nine chunks, which is SLOW. I want to change so that at any time it load only a few chunks (the visible ones). This will cause more reloads while you pan, but it should be faster on average...

Update: i finished implementing the libpng reader, it works, but maybe some more testing can be useful.

Update: i rewrote the chunk management code in LayerMap, it seems to be faster, i am testing it right now!

domenica 16 gennaio 2011

New week, new news...

Hi all!
Still no news for the bug in Qt...

Anyway, i found out that to keep the screen always on you need the "ReadDeviceData" capability which cannot be acquired for "self signed" applications, so i cannot distribute this function from the web site. I added some #define to let it build only for the next OVI store release.

Update: i clean a bit some libjpeg files, which where unneeded. I am also working on fixing the fact that sometimes a map chunk is not properly displayed, like it is not loaded...

Update2: i am also thinking about adding libpng support... guess what, maybe its faster than libjpeg for chunks?

I am in the process of fixing the Image classes to add PNG support. Libpng does not seems to be that a bad boy, so i decided to waste my time on it. Also in the hope that it will be faster than libjpeg...

Anyway, i am adding a generic Image class with a ImageLoad static method. You call that and you get an Image* back which can be of any ImageJpeg o ImagePng class type...

giovedì 13 gennaio 2011

Found a bug in Qt for Symbian...

hi guys!
Yesterady an user reported a nasty bug... It seems that when i am drawing points and lines close to the limit of the (fairly limited) precision of Symbian's float, Qt get confused and paints lines instead of points and even worse insteads of lines.

So far, the only workaround seems to be: avoid tracks with points too close toghether!
(i will try Qt 4.7.1 later on to check if, maybe, that solves it...)

I opened a bug un Nokia (QTBUG-16632) but still no news from them.

Anyway, there is another bug affecting the current beta4 which is fairly hard to pinpoint... and leads to a crash. I will be checking on that today.

Oh, by the way, i added the "altitude correction" feature yesterday too.

Update: i am working on a strange bug which shows only on Symbian device and which causes BETA4 to crash sometimes when tracking. I had to implement a way to "inject" fake GPS points on the phone.

Meanwhile, i added the "quick autosave" feature. Now if you autosave the live track you will never loose a point.

Update: released 1.3.0 BETA 5 which adds all these new things and fix, i hope, the crash on track bug in BETA4!

A new beta by today...

... since of course beta 3 introduced a new bug: it crashes when starting to record a new track. It does not if you load a live track first, then start recording.

I fixed it today, and also added support for map zooms over 8, up to 256. So now you can actually load maps up to 64k x 64k pixels! (whether this is feasible with current computers its hard to say, since its a over 34GB image...)

Forther work for today, i hope, is adding the vertical correction feature (to add a fixed offset to the reported altitude)... and of course the save tracks as delta.

Stay tuned!

update: beta 4 is out it fixes that bug!

martedì 11 gennaio 2011

Planning for 1.4.0...

Yes, 1.3.0 is not yet out (and BETA 2 has a couple of nasty bugs) but i have added a small roadmap to 1.4.0.

1.4.0 will feature a centralized map storage... So you will "import" your maps into the storage and then you can simply see them on the tracking table when you move on them, without having to manually load them each time. This will improve loading times, make things easier, and open the road to implement "map layers" like OpenStreetMap of GoogleMaps...

Maybe 1.4.0 will also feature some UI changes, i hope so, we will see.

Stay tuned! I plan to release a BETA3 today to fix a couple of stupid bugs in BETA2 which affects track rendering.

Update: i spent some time with valgrind to debug the crashing libjpeg problem... I found a couple of issues in my code: the first was related to the use of new[] paired with delete operator instead of delete[]... The second was more tricky. I was using a QFile object, then passing it over to fdopen() for jpeglib, and i forgot to call fclose on the FILE* data... causing another small memory leak.... Now are fixed, lets see if this solves the crash...

Update: FreeTrack 1.3.0 beta 3 is out. Please go fetch it! It finally fixes the map loading crash bug and also the couple of minor regressions on beta 2!

Progress...

Yesterday i fixed the most serious bug in 1.3.0 BETA1, the autosave not working. I improved a bit how it works, now it will ask, on exit, to save the live track only if the autosave option is not selected.

I fixed some more things, including the speed of drawing thousands of points and the annoying "select button not enabled" in the save track file dialog.

I think i will release a BETA2 later on today.

Stay tuned...

Update: i have improved a lot the drawing speed of huge tracks! Now i store a separate list of QVector<QLineF> and draw it in one go with QPainter::drawLines()... This is MUCH faster than before using a for to paint a serie of drawLine( point, point)...

Update: FreeTrack 1.3.0 BETA 2 is out! Go fetch it from the google code page!

lunedì 10 gennaio 2011

New Year news...

Hi all!
First of all, a good news: FreeTrack has been published on OVI store, finally, just at the beginning of 2011. I would like to find a way to publish statistics, let see what i can do.

These past ten days have been very useful for FreeTrack. I did a lot of on-the-field testing and found out many bugs and improvements that i need to introduce into 1.3.0 to make it a very good next release. This means that its official release date will be pushed further, but also means that current BETA1 is quite good (yes, at least one major bug you must be aware of) if you need huge maps support, or you can stay with 1.2.0 otherwise.

Some things i will work on for 1.3.0:
  • Lat/Lon are inverted in the GPS data dialog (not big deal, its pretty obvious...)
  • Long tracks (>1000points) are VERY slow to draw, this needs to be fixed
  • There must be a vay to compensate for altitude offset (my is always 22 meters below)
  • serious bug: live track is NOT automatically saved... so ALWAYS ALWAYS save your tracks manually before closing FreeTrack 1.3.0 BETA1!
So, stay tuned, in the next days i will work on these issues.