This is an addition to my issue #144
I encounterd a really strange behaviour in the detailed_itineraries function, that seems to be somehow connected with the parameters passed for transportation mode and departure_datetime. For some points the function crashes with an error message if the mode parameter contains "TRANSIT". However when changing the departure_datetime e.g. by adding 2400 seconds then the calculation is performed as expected...The same is true when removing "TRANSIT" from the mode parameter (what is not an option of course).
One of the strange things is that the verbose output indicates that r5 deliverd a result for the path - request that resulted in the crash...
OPERATING SYSTEM:
Ubuntu 20.04.1 LTS
RAM: 1 TB
120 cernels
REPRODUCIBLE CODE:
The error can be reproduced by running following code for a network.dat constructed from the files above.
(@ mvpsaraiva I have sent you a private email to your uk email address with a download link to my network.dat in case you are interested in a reproducible example)
#This departure time will cause the error
departure_datetime <- as.POSIXct("20-10-2020 09:00:00",format = "%d-%m-%Y %H:%M:%S",tz = "Europe/Berlin")
#This departure time results in a result as expected
departure_datetime <- as.POSIXct("20-10-2020 09:40:00",format = "%d-%m-%Y %H:%M:%S",tz = "Europe/Berlin")
r5r_core <- setup_r5(data_path = data_path, version = "6.0.1", verbose=FALSE)
detailed_itineraries(r5r_core = r5r_core,ERROR MESSAGE IF THE FUNCTION CRASHES:
...
esource limiting issue and paths may be incorrect.
13:55:10.204 [main] DEBUG com.conveyal.r5.streets.StreetRouter - Using distance limit of 1000 meters
13:55:10.205 [main] DEBUG com.conveyal.r5.streets.StreetRouter - Routing took 1 msec
13:55:10.205 [main] WARN com.conveyal.r5.streets.StreetRouter - Setting a distance limit when distance is not the dominance function, this is a resource limiting issue and paths may be incorrect.
13:55:10.205 [main] DEBUG com.conveyal.r5.streets.StreetRouter - Using distance limit of 1000 meters
13:55:10.205 [main] DEBUG com.conveyal.r5.streets.StreetRouter - Routing took 0 msec
13:55:10.205 [main] INFO c.c.r.p.builder.PointToPointQuery - Returned 10 options
13:55:10.205 [main] INFO c.c.r.p.builder.PointToPointQuery - Took 53 ms
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.lang.NullPointerException
In addition: Warning messages:
1: In assert_points_input(origins, "origins") :
'origins$id' forcefully cast to character.
2: In assert_points_input(destinations, "destinations") :
'destinations$id' forcefully cast to character.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4