Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of range with new dji "Fly" app txt file #14

Open
lyapounov opened this issue Aug 11, 2020 · 3 comments
Open

Out of range with new dji "Fly" app txt file #14

lyapounov opened this issue Aug 11, 2020 · 3 comments

Comments

@lyapounov
Copy link

lyapounov commented Aug 11, 2020

On dji Fly app txt file, the call to parse_file returns

RangeError: index out of range
at checkOffset (buffer.js:622:11)
at Buffer.readUInt8 (buffer.js:660:5)
at is_jpeg_soi (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:26:20)
at FileParsingService.get_record_cache (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:110:28)
at FileParsingService.parse_records (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:50:28)
at Object.parse_file (/datas/www/dji/node_modules/node-djiparsetxt/dist/node-djiparsetxt.js:160:43)

@lyapounov
Copy link
Author

here is the txt file

fltest.txt

@lyapounov lyapounov changed the title Out of range with Mavic air 2 txt file Out of range with new dji "Fly" app txt file Aug 14, 2020
@chrisvm
Copy link
Owner

chrisvm commented Oct 16, 2020

Thanks for the issue report, will work on it when I have some time between projects. Should be an easy fix.

@jfcisternasm
Copy link

Hi, i'm using this library and have same issue with dji fly files. How can i help?

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

No branches or pull requests

3 participants