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

Unable to parse file: InfoParseError("invalid utf-8 sequence of 1 bytes from index 8 at 0x12e") #2

Closed
MAVProxyUser opened this issue Mar 5, 2024 · 7 comments

Comments

@MAVProxyUser
Copy link

Unable to parse file: InfoParseError("invalid utf-8 sequence of 1 bytes from index 0 at 0x138")
Unable to parse file: InfoParseError("invalid utf-8 sequence of 1 bytes from index 15 at 0x14")
Unable to parse file: InfoParseError("invalid utf-8 sequence of 1 bytes from index 8 at 0x12e")

from: thread 'main' panicked at src/main.rs:41:45:

Any idea what causes this?

@lvauvillier
Copy link
Owner

Hi @MAVProxyUser can you share your log file?

@MAVProxyUser
Copy link
Author

@lvauvillier
Copy link
Owner

Thanks @MAVProxyUser. However, these do not looks like to be the standard .txt logs from DJI.

@MAVProxyUser
Copy link
Author

you have to extract them...
gzip -d FlightLogs.z01.gz (it would not upload with out being gzipped)
Then use any zip program that can handle a multi file archive.
Open FlightLogs.zip, and it should span all the other z01, z02, z03, etc files automatically and extract a huge pile of
.txt.zip files. (35 gig worth)

You can recursively extract them all to normal .txt files after stripping the gzip compression (not really .zip files even though that it their extension)

find . -name "*.zip" -exec pigz -d -z -v {} ;

You should be left with gigs worth of plain txt DJI log files.

Hope that helps.

@MAVProxyUser
Copy link
Author

@lvauvillier there is at least one log per folder that exhibits the error. You should have a huge sample set.

@lvauvillier
Copy link
Owner

@MAVProxyUser I'm currently unable to download the entire archive due to limited bandwidth. Could you please send just one .txt log file that produice the error?

@lvauvillier
Copy link
Owner

Fixed.Thanks for reporting this.

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

2 participants