question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Routes window has incorrect routes

See original GitHub issue

I noticed today some odd routes when trying to find a good hi sec trading hub. For instance, Pathfinder seems to think Uzistoon is connected to both Jita and Rens. Here is a copy and paste of both these routes (sorry for the messy html, just copy+pasted from browser):

Route to Jita: <td><i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J132106 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J145322 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J123546 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J155340 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J144621 [-1.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="1V-LI2 [-0.4] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="Q-K2T7 [-0.5] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="XV-MWG [-0.4] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SG-75T [-0.3] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="N3-JBX [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="9PX2-F [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="ARG-3R [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="VOL-MI [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="8G-MQV [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="CL-85V [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="K-QWHE [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="RMOC-W [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="HEMIN [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="UTOPIA [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="DORIL [-0.0] "></i> <i class="fa fa-square pf-system-security-0-3" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SENDAYA [0.3] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="ONSOOH [0.4] "></i> <i class="fa fa-square pf-system-security-0-5" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="CHIDAH [0.5] "></i> <i class="fa fa-square pf-system-security-0-5" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SHENELA [0.5] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="DOOZ [0.4] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="UZISTOON [0.4] "></i> <i class="fa fa-square pf-system-security-0-9" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="JITA [0.9] "></i></td>

Route to Rens: <td><i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J132106 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J145322 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J123546 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J155340 [-1.0] "></i> <i class="fa fa-dot-circle-o pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="J144621 [-1.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="1V-LI2 [-0.4] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="Q-K2T7 [-0.5] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="XV-MWG [-0.4] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SG-75T [-0.3] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="N3-JBX [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="9PX2-F [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="ARG-3R [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="VOL-MI [-0.1] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="8G-MQV [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="CL-85V [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="K-QWHE [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="RMOC-W [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="HEMIN [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="UTOPIA [-0.0] "></i> <i class="fa fa-square pf-system-security-0-0" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="DORIL [-0.0] "></i> <i class="fa fa-square pf-system-security-0-3" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SENDAYA [0.3] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="ONSOOH [0.4] "></i> <i class="fa fa-square pf-system-security-0-5" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="CHIDAH [0.5] "></i> <i class="fa fa-square pf-system-security-0-5" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="SHENELA [0.5] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="DOOZ [0.4] "></i> <i class="fa fa-square pf-system-security-0-4" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="UZISTOON [0.4] "></i> <i class="fa fa-square pf-system-security-0-9" data-toggle="tooltip" data-placement="bottom" data-container="body" title="" data-original-title="RENS [0.9] "></i></td>

Let me know if you need any additional information, thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MorpheusXAUTcommented, Feb 15, 2017

My local pathfinder instance produces the correct path between 1V-LI2 and Jita, however the one between 1V-LI2 and Rens is slightly different, although of the same length as the result produced by e.g. dotlan or other route planning tools.

I thus assume both paths produced by my pathfinder instance should be correct. I’ve begun digging into the route generation of pathfinder and the tables used by it a bit… @ArtificialQualia Could it be you’re using an older/outdated EVE SDE for your CCP database?

As a test, could you run this query against the pathfinder database:

SELECT * FROM system_neighbour WHERE systemName LIKE 'Uzistoon';

The expected result would be a row with a jumpNodes value of Dooz:Bayuka:Sari. I guess your table will probably return something else, probably including Jita and Rens.

As a second test, could you run this query against the CCP database:

SELECT
  systems.solarSystemName
FROM
  mapSolarSystemJumps jumps INNER JOIN
  mapSolarSystems systems ON
  systems.solarSystemID = jumps.toSolarSystemID
WHERE
  jumps.fromSolarSystemID = 30000040;

The expected result would be three rows with values Dooz, Bayuka, Sari. Note that 30000040 is the solarSystemID of Uzistoon as retrieved from the mapSolarSystems table via:

SELECT systems.solarSystemID FROM mapSolarSystems systems WHERE systems.solarSystemName LIKE 'Uzistoon';

My assumption would be that your pathfinder and/or CCP database queries will return a different result, thus leading to pathfinder’s confusion in route generation. If the results are indeed different, you could try re-importing the latest EVE SDE (e.g. provided by Steve Ronuken here) and then re-running the system neighbour generation in pathfinder’s setup page. That should hopefully fix the issue.

Should the result be indeed the same as above, there’s something actually wrong in pathfinder’s code 😄

0reactions
exodus4dcommented, Feb 17, 2017

@MorpheusXAUT Thanks for the research!

@ArtificialQualia Is it possible that you did a manual search? - By using the dialog? If you have added multiple maps to it, it might be possible that there was any other connection in one of those maps that changed/shortened the route. The “refresh” icon remembers your setting when you click it. (at least until you changed your current active system).

The algorithm it selfe is called “Dijkstra algorithm”. I made some changes to it to work with Pathfinder´s data. It is not the same algorithm CCP used thats for sure, but it is basicalls doing the same. If there are multiple possible routes with the same length, the result might vary.

My implementation: https://github.com/exodus4d/pathfinder/blob/master/app/main/controller/api/route.php#L322

I guess we can close this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why was Windows picking the wrong route when attempting to ...
I have a vague feeling that routes for local interfaces aren't added to the table until they're needed, perhaps that might explain why...
Read more >
Additional gateways appear in persistent routes
This article provides a solution to an issue where additional default gateways appear in persistent routes when you use Load Balancing and ...
Read more >
Why does this ROUTE ADD command fail? - Super User
The problem is that this command fails with the following error: The route addition failed: The parameter is incorrect. It doesn't say which ......
Read more >
Route - Angular
A configuration object that defines a single route. A set of routes are collected in a Routes array to define a Router configuration....
Read more >
Routing Policy Configuration
Route Redistribution is similar to route maps for an export policy. Gaia Portal, ... In the Add IPv4/IPv6 Route window that opens, set...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found