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

Invalid file format #4

Open
individual8 opened this issue Nov 10, 2014 · 5 comments
Open

Invalid file format #4

individual8 opened this issue Nov 10, 2014 · 5 comments

Comments

@individual8
Copy link

When I try with my 260 MB LocationHistory.json, Chrome will crash and Firefox ends up with an error.

Start aborted! Invalid file format.

@Scarygami
Copy link
Owner

Hmmm... I wonder if that is file-size related...
Can you try running your file through this script which will remove all unused fields and create a significantly smaller file:
https://gist.github.com/Scarygami/746494e6615218331afe

location_history_minify.py LocationHistory.json

@individual8
Copy link
Author

It probably is, I got Allocation Error Size on that other project (location-history-viualizer) as error. I'm sorry I don't have Python handy right now.

@Scarygami
Copy link
Owner

I guess you could create a similar script in any other language you have at hand :)

The journey only uses latitudeE7, longitudeE7 and timestampMs fields, so all others can be removed, like accuracy and especially activitys which takes up a huge portion of the file and has a really ugly grammar error as well.

@individual8
Copy link
Author

Is memory you're capable to use in Javascript really that limited? How big can a file be max?

@Scarygami
Copy link
Owner

I have no idea, would have to investigate, and maybe see if there are other/better ways to read the file.

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