The builder seems to go into a loop and eventually exhaust the heap no
matter how much I give it; the most I tried was 25 GB of heap on an
Amazon EC2 extra-large instance.
Here is the traceback:
2012-01-29 20:25:44,044 INFO [TripEntriesFactory.java:97] : trips to
process: 18
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.onebusaway.quickstart.bootstrap.BootstrapMain$1.run(BootstrapMain.java:199)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.onebusaway.quickstart.bootstrap.BuildBootstrapMain.main(BuildBootstrapMain.java:32)
... 6 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2746)
at java.util.ArrayList.toArray(ArrayList.java:296)
at java.util.ArrayList.<init>(ArrayList.java:151)
at org.onebusaway.transit_data_federation.bundle.tasks.transit_graph.DistanceAlongShapeLibrary.recursivelyConstructAssignments(DistanceAlongShapeLibrary.java:325)
(29 more stack trace elements identical to the above line snipped...)
The whole log is at https://gist.github.com/1700619.
I know the builder is expected to use a considerable amount of RAM,
but the stack trace makes me wonder if there isn't some runaway
recursion at work.
Is there any way to increase the verbosity of the builder so I might
be able to see what it is in the feed that is causing this behavior?
Any other ideas?
Thanks,
Kurt Raschke
-P tripEntriesFactory.throwExceptionOnInvalidStopToShapeMappingException=false
Let me know if that helps. Again, my apologies about not responding
sooner. This got caught up in mailing list moderation.
Brian
> --
> You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
> To post to this group, send email to onebusaway...@googlegroups.com.
> To unsubscribe from this group, send email to onebusaway-devel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/onebusaway-developers?hl=en.
>
https://github.com/MobilityLab/TransitNearMe/issues/17
I have not yet tried a new build of OBA, but once I get my dev
environment working I'll do that and report back.
If there were a reliable source of corrected shapefiles, then I'd
consider patching the GTFS transformer to support substituting
defective shapes, as the TransitNearMe tool does, but honestly I would
much prefer that WMATA fix their feed.
-Kurt