Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Does the tool it support providers which are not in the list? #49

Open
amenk opened this issue Aug 30, 2019 · 8 comments
Open

Does the tool it support providers which are not in the list? #49

amenk opened this issue Aug 30, 2019 · 8 comments

Comments

@amenk
Copy link

amenk commented Aug 30, 2019

I try to load data for an Ethiopian Transport network, but it crashes:

Reading the file: agency.txt Size: -1
Reading the file: stops.txt Size: -1
Reading the file: routes.txt Size: -1
Reading the file: trips.txt Size: -1
Reading the file: stop_times.txt Size: -1
Reading the file: shapes.txt Size: -1
Reading the file: calendar.txt Size: -1
Files have been written
Agency Name: Anbessa City Bus Service Enterprise
java.lang.ArrayIndexOutOfBoundsException: 3 [Ljava.lang.StackTraceElement;@5afc0401
Done...!!

I tried the normal release and this one:

https://github.com/reubot/gtfs-osm-sync/releases/tag/2017-changes

Is that a bug or do I somehow have to add the Network?

@barbeau
Copy link
Member

barbeau commented Aug 30, 2019

Looks like maybe it's having problems reading the Ethiopian Transport GTFS zip file?

@amenk
Copy link
Author

amenk commented Aug 30, 2019

But which kind of?

@barbeau
Copy link
Member

barbeau commented Aug 30, 2019

@amenk Sorry, I don't understand. Could you be more specific about the exact steps you're performing, what you expect to see, and what you actually see?

@amenk
Copy link
Author

amenk commented Aug 30, 2019

I Ioad the file and then the window just closes. It does not even seem to download data from OSM for syncing.

@barbeau
Copy link
Member

barbeau commented Aug 30, 2019

Can you post the GTFS file you're using?

@amenk
Copy link
Author

amenk commented Aug 30, 2019

I have to check, if I am allowed to. Thank you so far.

@doronbehar
Copy link

doronbehar commented Sep 12, 2021

I also have a similar issue with the Israel's GTFS file. It's available here:

ftp://gtfs.mot.gov.il/israel-public-transportation.zip

I get with it the error:

java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 7 [Ljava.lang.StackTraceElement;@19eccbf

And afterwards it exits. It seems that the problem is that the GTFS zip file holds a combination of the data of all 32 agencies. Here's the layout of the zip file:

agency.txt
calendar.txt
fare_attributes.txt
fare_rules.txt
routes.txt
shapes.txt
stops.txt
stop_times.txt
translations.txt
trips.txt

@doronbehar
Copy link

For reference, I think my issue is this:

//TODO handle multiple agencies
public String readAgency(String agency_fName){

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants