-
Notifications
You must be signed in to change notification settings - Fork 30
Inference Engine Debugging
Michael Frumin edited this page Jul 17, 2013
·
7 revisions
The local-ie-testing profile exists on the onebusaway-nyc-vehicle-tracking-webapp for debugging purposes, it allows a local bundle to be loaded and run through a debugger. Note that bundles may require large amounts of RAM to load properly, which may in-turn require a 64-bit O/S to address.
The best examples of debugging exist in the integration tests, and the bundles and traces provided by the integration tests. Complete information on how to create a trace for debugging and testing the Inference Engine can be found on the [Inference Engine Traces](Inference Engine Traces) page.
- Get a fresh copy of onebusaway-nyc
user@ubuntu:~src$ git clone git@github:camsys/onebusaway-nyc.git
- From Package Explorer, right-click, choose Import -> Maven -> Existing project and choose ~/src/onebusaway-nyc
- After the import and initial build complete, right-click on onebusaway-nyc-integration-tests, choose Run As, Run Configuration, double click Maven Build, set base directory to be ~/src/onebusaway-nyc/onebusaway-nyc-integration-tests, and Goals: "pre-integration-test", and select run
- The console should indicate bundles are building. This will take some time
- Copy the built bundles to the location the vehicle-tracking-webapp expects them:
sudo mkdir -r /var/lib/obanyc/oba-bundle && sudo chown dev:dev /var/lib/obanyc/oba-bundle && cp -r ~/src/onebusaway-nyc/onebusaway-nyc-integration-tests/target/transit-data-bundle/* /var/lib/obanyc/oba-bundle/
- Right-click on onebusaway-nyc-vehicle-tracking-webapp, select Maven, and add the profile "local-ie-testing", click apply
- Right-click on onebusaway-nyc-vehicle-tracking-webapp, select Run-as, Run On Server (assuming you have tomcat installed, and configured with the proper memory args)
- A browser should popup. If not, browse to http://localhost:8080/onebusway-nyc-vehicle-tracking-webapp
- Click Bundle Status
- Select 2012September_Bronx_r10_b03 from the bundle drop down list and click "Change Bundle..."
- Browse back to http://localhost:8080/onebusway-nyc-vehicle-tracking-webapp
- Select Vehicle Simulator
- Select Browse and choose ~/src/onebusaway-nyc/onebusaway-nyc-integration-tests/src/integration-test/resources/traces/324-deadhead-labeled.csv
- Click submit
- Click map to view the trace. Click refresh if trace is not complete
Symbol | Meaning |
---|---|
Green peg | In Progress |
Red peg | Deadhead |
Blue peg | Layover |
Grey with orange dot | In service DSC but inference not in progress |