-
Notifications
You must be signed in to change notification settings - Fork 31
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
travel_time_matrix error: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException. GTFS or r5r issue? #398
Comments
Thanks @hugocbustamante for opening this issue. I was able to reproduce the error. The code works fine when calcuating a travel time matrix for When you say you were able to calcuate a travel time matrix for |
Hi @rafapereirabr, thanks for your quick reply. Yes, I was able to calculate it with the exact same GTFS data. |
Hmm. That's strange. We'll have to look into this, but we need someone who knows Java because the source of the problem would probably be in the Java side of |
Unfortunately not, @rafapereirabr :( |
I have the same issue but with GTFS-data from Sweden. |
Have you tried diagonosing the quality of your GTFS feeds ? If not, I would strongly recommend to do so using the {gtfstools} package. You can install the dev version directly from Github while we're working to put it back on CRAN |
I have a similar issue with data from Norway. I have tried validating the GTFS and find several errors. Do you have any tips on how to fix GTFS feeds? |
I found a solution that works! On the website busmaps.com, there are GTFS files that have been improved in terms of codes and structure. When I used their GTFS file for Sweden, the program ran successfully, with the exception that I needed to change route_type 1501 to 3. Unfortunately, I don't know exactly what it is in their file that makes it work. I tried to compare it with my original file (which originally comes from the same source), but I can't quite figure out what the difference is. If anyone can help identify the exact problem, I'd be very grateful. Anyway, busmaps.com's GTFS files work as a solution, and I'm very thankful that they provide them openly. However, I'd still like to understand what the underlying problem is. |
Hi all. There could be different things happening here.
A temporary fix, and which allows you to test if this possible cause is plausible, is to use the previous version of {r5r}. The code below install the previous version of r5r
If all you could, please try running your analyses with the previous version of r5r and let us know if it works. |
Thanks a lot for your tips. I tried the third alternative, installing the previous version of r5r, and it works. I was able to calculate transit trips with the same gtfs file. |
Brief description of the problem:
Hello there! I've tried to calculate travel time matrix for Transit mode using GTFS data of The Netherlands and I get the following error:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException
In addition: Warning messages:
1: In assign_points_input(origins, "origins") :
'origins$id' forcefully cast to character.
2: In assign_points_input(destinations, "destinations") :
'destinations$id' forcefully cast to character.
I've read other similar issues here and they seem to mostly relate to GTFS problems. However, I was able to calculate the travel time matrix with r5r version "1.1.0" and java jdk-11. Thus, I'm wondering if my problem is really in the GTFS side. I tried multiple GTFS files from NL but none of them seem to work with the latest r5r version.
Data files:
The files I used are too large to attach, but you can find them in:
Thanks in advance for the help.
Reproducible example here
Situation report here
The text was updated successfully, but these errors were encountered: