... the user friendly GPS tool


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter and Mac OS X
(02.11.2010, 23:15)hvdwolf Wrote: Right-clicking works on both Linux and Mac. The problem with mac though is that due to the 3 callbacks also three equal points get inserted at once.

Please send me the log file. I thought, this has been fixed.

(02.11.2010, 23:15)hvdwolf Wrote: The speed problem on Mac is gone. Saving and opening files now works fine. files are written OK as well,

I'm glad to hear that.

(02.11.2010, 23:15)hvdwolf Wrote: So far I'm really impressed with what you've done in a short time. Thank you.

Wouldn't be possible without your help and responsiveness. Thank you!
--
Christian
Reply
Please find attached the mac log renamed as .txt. Including triple point registrations and removal of one or two points.


Attached Files
.txt   RouteConverter.txt (Size: 70.78 KB / Downloads: 766)
Reply
(03.11.2010, 17:22)hvdwolf Wrote: Please find attached the mac log renamed as .txt. Including triple point registrations and removal of one or two points.

Argh, I've removed all of the logging stuff that could have helped me investigating this further.

Please download the latest prerelease and try again. It should contains log lines with something like

processing callback

and

inserting position

(The inserts were the problem, right?)
--
Christian
Reply
(03.11.2010, 19:01)routeconverter Wrote: Please download the latest prerelease and try again. It should contains log lines with something like

processing callback

and

inserting position
Yes, it does.

(03.11.2010, 19:01)routeconverter Wrote: (The inserts were the problem, right?)
Yes, they are, but these are visible. So, just to be sure I did some more map actions.
- First a center map
- Then a Zoom map
- Then 3 (times 3) inserts.

Something else with the 3 inserts. 3 points are inserted and the middle one has the focus in the right tab. When I insert a second point (times 3), I get the order (a,b,c for the 3 points):
1a, 1b, 2a,2b,2c,1c
It means that I have to move in the position list form the second point b to the third point c, before adding another position.
But this shouldn't be a problem anymore when the triple insert is fixed.

See attached log.zip


Attached Files
.zip   log.zip (Size: 3.39 KB / Downloads: 627)
Reply
(03.11.2010, 19:01)routeconverter Wrote: But this shouldn't be a problem anymore when the triple insert is fixed.

This is weird... RouteConverter gets a lot of insert-position requests from the web browser:

Quote:Nov 3, 2010 9:40:33 PM slash.navigation.converter.gui.mapview.BaseMapView processCallbacks
INFO: processing callback GET /insert-position/48.76886223397753/2.41424560546875 HTTP/1.1
Nov 3, 2010 9:40:33 PM slash.navigation.converter.gui.mapview.BaseMapView processCallback
INFO: inserting position GET /insert-position/48.76886223397753/2.41424560546875 HTTP/1.1
Nov 3, 2010 9:40:33 PM slash.navigation.converter.gui.mapview.BaseMapView processCallbacks
INFO: processing callback GET /insert-position/48.76886223397753/2.41424560546875 HTTP/1.1
Nov 3, 2010 9:40:33 PM slash.navigation.converter.gui.mapview.BaseMapView processCallback
INFO: inserting position GET /insert-position/48.76886223397753/2.41424560546875 HTTP/1.1
Nov 3, 2010 9:40:33 PM slash.navigation.converter.gui.mapview.BaseMapView processCallbacks
INFO: processing callback GET /insert-position/48.76886223397753/2.41424560546875 HTTP/1.1

It seems this JavaScript from contextmenucontrol.js produces them:

GEvent.addDomListener(entry, "click", function () {
if (arg == "insert") {
me.insertPosition_();

ContextMenuControl.prototype.insertPosition_ = function () {
var me = this;
var point = me.clickedPoint_;
callJava("insert-position/" + point.lat() + "/" + point.lng());
};

I don't see a bug there... you? Are you able to debug this?
--
Christian
Reply
(05.11.2010, 11:36)routeconverter Wrote: It seems this JavaScript from contextmenucontrol.js produces them:

GEvent.addDomListener(entry, "click", function () {
if (arg == "insert") {
me.insertPosition_();

ContextMenuControl.prototype.insertPosition_ = function () {
var me = this;
var point = me.clickedPoint_;
callJava("insert-position/" + point.lat() + "/" + point.lng());
};

I don't see a bug there... you? Are you able to debug this?
I don't see a bug either, but it's not the insert only. I also did a right-click "zoom in" and a right-click "center". These are also executed 3 times.
Could it be that it's not the contextmenucontrol.js as such but that "something" offers the action 3 times to this contextmenucontrol.js?

I don't know if I can debug this but I'll see what I can do.
Reply
(05.11.2010, 20:32)hvdwolf Wrote: I don't see a bug either, but it's not the insert only. I also did a right-click "zoom in" and a right-click "center". These are also executed 3 times.
Could it be that it's not the contextmenucontrol.js as such but that "something" offers the action 3 times to this contextmenucontrol.js?

You're right. _Every_ AJAX request is processed three times. I've extended the debug output logging (again). Please try the latest prerelease, probably there's some hint, where this effect is coming from.
--
Christian
Reply
I did:
- 3 times a zoom action
- 1 Center map action
- 2 inserts

See attached log.


Attached Files
.zip   log.zip (Size: 2.6 KB / Downloads: 649)
Reply
(06.11.2010, 17:54)hvdwolf Wrote: I did:
- 3 times a zoom action
- 1 Center map action
- 2 inserts

Strange. Every AJAX request 3 times. Please try the latest prerelease. It debugs the JavaScript part into the map:

   

How does that look like on your machine?
--
Christian
Reply
I did the tests. See attached log.zip containing a screen capture and a log file.


Attached Files
.zip   log.zip (Size: 38.72 KB / Downloads: 635)
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)