JaciBrunning / Pathfinder

Cross-Platform, Multi-Use Motion Profiling and Trajectory Generation
MIT License
255 stars 78 forks source link

Crash when reading CSV files #32

Closed GaganBhat closed 6 years ago

GaganBhat commented 6 years ago

When I try reading CSV files from the roboRio using Pathfinder.readFromCSV(), the code crashes on the Rio.

Here's the code within the constructor of the class.

image

exists() returns true and so does canRead(). The absolute path is also correct. When I comment out line 32, the error disappears.

Here's the error from the roboRio console

` true /home/lvuser/StraightForward_left.csv true

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0xb6d795b0, pid=14157, tid=0xb52b6470

JRE version: OpenJDK Runtime Environment (8.0_131-b57) (build 1.8.0_131-b57)

Java VM: OpenJDK Client VM (25.131-b57 mixed mode, Evaluation linux-aarch32 )

Problematic frame:

C [libc.so.6+0x345b0]

Core dump written. Default location: //core or core.14157 (max size 2048 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:

/tmp/hs_err_pid14157.log

If you would like to submit a bug report, please visit:

http://www.azulsystems.com/support/

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

`

Thanks in Advance!

roshanr10 commented 6 years ago

Think you could link the trajectory you’re trying to import? I’ve had issues when the trajectory wasn’t mathematically accurate... have you tested a simple drive straight trajectory?

GaganBhat commented 6 years ago

StraightForward_left.txt

Here is the csv file (converted to txt so that github accepts it.)

roshanr10 commented 6 years ago

Was this created using Vannaka’a generator GUI? I think you’re using the “SRX” profile they export... you need to use the “detailed” profile for it to be able to import into Pathfinder code using the read function.

GaganBhat commented 6 years ago

Alright, thanks a ton for that, I will try that right now! And yes, I did use Vannaka's generator GUI.

GaganBhat commented 6 years ago

Thanks for letting me know, the error doesn't occur anymore and everything functions normally =)