opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.17k stars 1.02k forks source link

An uncaught error occurred inside OTP: null (addEdge) #3848

Closed mpaine-act closed 2 years ago

mpaine-act commented 2 years ago

Expected behavior

Newly compiled otp-2.1.0-SNAPSHOT-shaded.jar should load graph.obj that it just created

Observed behavior

16:58:39.396 ERROR (OTPMain.java:59) An uncaught error occurred inside OTP: null java.lang.NullPointerException: null at org.opentripplanner.routing.graph.Vertex.addEdge(Vertex.java:93) at org.opentripplanner.routing.graph.Vertex.addIncoming(Vertex.java:149) at org.opentripplanner.routing.graph.SerializedGraphObject.reconstructEdgeLists(SerializedGraphObject.java:124) at org.opentripplanner.routing.graph.SerializedGraphObject.load(SerializedGraphObject.java:235) at org.opentripplanner.routing.graph.SerializedGraphObject.load(SerializedGraphObject.java:95) at org.opentripplanner.standalone.OTPMain.startOTPServer(OTPMain.java:122) at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:52)

Version of OTP used (exact commit hash or JAR name)

dev-2.x branch (otp-2.1.0-SNAPSHOT-shaded.jar)

Data sets in use (links to GTFS and OSM PBF files)

GTFS: 32 zip files from 511.org: 3D_gtfs.zip, AC_gtfs.zip, AM_gtfs.zip, BA_gtfs.zip, CC_gtfs.zip, CE_gtfs.zip, CM_gtfs.zip, CT_gtfs.zip, DE_gtfs.zip, EM_gtfs.zip, FS_gtfs.zip, GF_gtfs.zip, GG_gtfs.zip, MA_gtfs.zip, PE_gtfs.zip, RV_gtfs.zip, SA_gtfs.zip, SB_gtfs.zip, SC_gtfs.zip, SF_gtfs.zip, SI_gtfs.zip, SM_gtfs.zip, SO_gtfs.zip, SR_gtfs.zip, SS_gtfs.zip, ST_gtfs.zip, TD_gtfs.zip, UC_gtfs.zip, VC_gtfs.zip, VN_gtfs.zip, WC_gtfs.zip, WH_gtfs.zip

OSM: https://download.geofabrik.de/north-america/us/california/norcal-latest.osm.pbf

Command line used to start OTP

java -Xmx8G -jar O:\target\otp-2.1.0-SNAPSHOT-shaded.jar --load C:\Users\user1\otp\graphs\bayarea --visualize --port 8000 --securePort 8001

Router config and graph build config JSON

16:58:23.046 INFO (OtpStartupInfo.java:45) OTP STARTING UP (version: 2.1.0-SNAPSHOT, ser.ver.id: 16, commit: c8a3fd5a14b0c957cd99671f09532aeb91319eee, branch: dev-2.x) 16:58:23.056 INFO (OtpStartupInfo.java:49)


/ \ _ | | () _ | | | _ _ _ | | | | ' \ / \ '_ | || '| | ' | |) | |/ ` | ' | ' \ / \ '| | || | |) | _/ | | | || | | | |) | /| | (| | | | | | | | / | \/| ./ _|| ||||| |_| ./|| ||_,|| ||| ||_|| || |_| Version: 2.1.0-SNAPSHOT Ser.ver.id: 16 Commit: c8a3fd5a14b0c957cd99671f09532aeb91319eee Branch: dev-2.x Build: 2022-01-31T12:47:21-0800 Dirty: Local modification exist!

16:58:23.056 INFO (OTPMain.java:105) Searching for configuration and input files in C:\Users\user1\otp\graphs\bayarea 16:58:23.248 INFO (ConfigLoader.java:179) Load JSON configuration file 'C:\Users\user1\otp\graphs\bayarea\otp-config.json' 16:58:23.268 INFO (ConfigLoader.java:180) Summarizing 'C:\Users\user1\otp\graphs\bayarea\otp-config.json': { "otpFeatures" : { "APIBikeRental" : false, "FlexRouting" : false } } 16:58:23.277 INFO (ConfigLoader.java:179) Load JSON configuration file 'C:\Users\user1\otp\graphs\bayarea\build-config.json' 16:58:23.287 INFO (ConfigLoader.java:180) Summarizing 'C:\Users\user1\otp\graphs\bayarea\build-config.json': { "areaVisibility" : false, "banDiscouragedBiking" : false, "banDiscouragedWalking" : false, "dataImportReport" : false, "distanceBetweenElevationSamples" : 10, "elevationUnitMultiplier" : 1.0, "embedRouterConfig" : false, "extraEdgesStopPlatformLink" : false, "fares" : null, "fetchElevationUS" : false, "islandWithoutStopsMaxSize" : 40, "islandWithStopsMaxSize" : 5, "matchBusRoutesToStreets" : false, "maxDataImportIssuesPerFile" : 1000, "maxInterlineDistance" : 200, "maxTransferDistance" : 2000, "multiThreadElevationCalculations" : false, "osmNaming" : null, "osmWayPropertySet" : "default", "parentStopLinking" : true, "platformEntriesLinking" : true, "readCachedElevations" : true, "staticBikeParkAndRide" : false, "staticBikeRental" : false, "staticParkAndRide" : true, "stationTransfers" : false, "storage" : null, "streets" : true, "subwayAccessTime" : 2.0, "transit" : true, "useTransfersTxt" : true, "writeCachedElevations" : false } 16:58:23.333 WARN (NodeAdapter.java:394) Unexpected config parameter: 'fetchElevationUS:false' in 'build-config.json'. Is the spelling correct? 16:58:23.333 WARN (NodeAdapter.java:394) Unexpected config parameter: 'maxTransferDistance:2000' in 'build-config.json'. Is the spelling correct? 16:58:23.333 WARN (NodeAdapter.java:394) Unexpected config parameter: 'staticBikeRental:false' in 'build-config.json'. Is the spelling correct? 16:58:23.333 WARN (NodeAdapter.java:394) Unexpected config parameter: 'useTransfersTxt:true' in 'build-config.json'. Is the spelling correct? 16:58:23.333 INFO (ConfigLoader.java:179) Load JSON configuration file 'C:\Users\user1\otp\graphs\bayarea\router-config.json' 16:58:23.333 INFO (ConfigLoader.java:180) Summarizing 'C:\Users\user1\otp\graphs\bayarea\router-config.json': { "routingDefaults" : { "numItineraries" : 6, "walkSpeed" : 1.2, "stairsReluctance" : 4.0, "carDropoffTime" : 240 } } 16:58:23.387 INFO (OTPFeature.java:91) Features turned on: APIServerInfo APIGraphInspectorTile APIUpdaterStatus OptimizeTransfers ParallelRouting TransferConstraints 16:58:23.387 INFO (OTPFeature.java:92) Features turned off: APIBikeRental ActuatorAPI FlexRouting FloatingBike GoogleCloudStorage ReportApi SandboxAPITransmodelApi SandboxAPILegacyGraphQLApi SandboxAPIMapboxVectorTilesApi SandboxExampleAPIGraphStatistics SandboxAPIParkAndRideApi TransferAnalyzer DataOverlay 16:58:23.415 INFO (GraphBuilderDataSources.java:126) Data source location(s): C:\Users\user1\otp\graphs\bayarea 16:58:23.415 INFO (GraphBuilderDataSources.java:131) Existing files expected to be read or written: 16:58:23.415 INFO (GraphBuilderDataSources.java:134) - ?? build-config.json C:\Users\user1\otp\graphs\bayarea 2021-04-27 10:06:36 1 kb 16:58:23.415 INFO (GraphBuilderDataSources.java:134) - ?? otp-config.json C:\Users\user1\otp\graphs\bayarea 2020-09-25 16:02:24 99 bytes 16:58:23.415 INFO (GraphBuilderDataSources.java:134) - ?? router-config.json C:\Users\user1\otp\graphs\bayarea 2021-07-09 13:12:22 159 bytes 16:58:23.431 INFO (GraphBuilderDataSources.java:134) - ? graph.obj C:\Users\user1\otp\graphs\bayarea 2022-01-31 15:11:19 478.9 MB 16:58:23.431 INFO (GraphBuilderDataSources.java:139) Files excluded due to command line switches or unknown type: 16:58:23.431 INFO (GraphBuilderDataSources.java:142) - ? norcal-latest.osm.pbf C:\Users\user1\otp\graphs\bayarea 2022-01-28 15:19:53 511.4 MB 16:58:23.431 INFO (SerializedGraphObject.java:223) Reading graph from 'C:\Users\user1\otp\graphs\bayarea\graph.obj' WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.esotericsoftware.kryo.util.UnsafeUtil (file:/O:/target/otp-2.1.0-SNAPSHOT-shaded.jar) to constructor java.nio.DirectByteBuffer(long,int,java.lang.Object) WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.util.UnsafeUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 16:58:39.396 ERROR (OTPMain.java:59) An uncaught error occurred inside OTP: null java.lang.NullPointerException: null at org.opentripplanner.routing.graph.Vertex.addEdge(Vertex.java:93) at org.opentripplanner.routing.graph.Vertex.addIncoming(Vertex.java:149) at org.opentripplanner.routing.graph.SerializedGraphObject.reconstructEdgeLists(SerializedGraphObject.java:124) at org.opentripplanner.routing.graph.SerializedGraphObject.load(SerializedGraphObject.java:235) at org.opentripplanner.routing.graph.SerializedGraphObject.load(SerializedGraphObject.java:95) at org.opentripplanner.standalone.OTPMain.startOTPServer(OTPMain.java:122) at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:52) 16:58:39.418 INFO (OtpStartupInfo.java:47) OTP SHUTTING DOWN (version: 2.1.0-SNAPSHOT, ser.ver.id: 16, commit: c8a3fd5a14b0c957cd99671f09532aeb91319eee, branch: dev-2.x)

leonardehrenfried commented 2 years ago

This is a duplicate of #3847

hannesj commented 2 years ago

Fixed by #3850

mpaine-act commented 2 years ago

Thank you