-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specific user note leading to hang on downloading cache data #15687
Comments
Additional info:
|
Question to @moving-bits , @Lineflyer : given a ticket number (e.g. 539239) and access to support system: what is the quickest way to open the ticket? (I didn't find a "quick search by ticket id" in the system...) |
There's a general purpose sesrchbox above the ticket list, just drop the ticket number there. |
I analyzed this. This is not an endless loop but processing time is really really really long....
So we have two problems here:
|
Why does c:geo even try to interpret strings as coordinates that do not contain [N|S] and [E|W]? |
That would surely solve the problem for all practical purposes I can think of. The problem would still appear if someone posts a same-length user note where all numbers are predicted with N and E alternatively. But that's unlikely I guess. Why we parse pairs of decimals as coordinates? I don't know. I have the feeling it "was always like this". I have no opinion whether removing this would be ok or not. |
Was facing a few days ago a similar issue, where cgeo took my note and added some strange waypoints basing on the note content which contained some decimal numbers as well. So I suggest to remove this behavior or add another identifier like # or / before a group of decimals which should be interpreted as coords |
PR #15744 provides a quickfix for release for this by simply limiting the maximum number of parsed coordinates in any user note to 20. A deeper solution for this issue should be done in master because it might produce unwanted side effects. The culprit is the "summing up" of created waypoint's user notes (which contain again all coordinates), the long parsing time in method I suggest the following measurements:
|
I second @eddiemuc's proposal - although I would even go a step further and limit coordinate parsing to strings which must contain |
User report on support (ticket 539239):
A cache with a specific user note text leads to c:geo hanging on downloading this cache (both initial download or update).
Reproducible for me with current release 2024.04.25
User note consists of app. 50+ tuplets of numbers (eg: 1,2 7,10 20,15 ...) - probably our "coordinates from user note" algo hitting a infinite loop here?
The text was updated successfully, but these errors were encountered: