journey-to-the-moon icon indicating copy to clipboard operation
journey-to-the-moon copied to clipboard

Invalid file format

Open individual8 opened this issue 10 years ago • 5 comments

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

Start aborted! Invalid file format.

individual8 avatar Nov 10 '14 10:11 individual8

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

Scarygami avatar Nov 10 '14 11:11 Scarygami

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.

individual8 avatar Nov 10 '14 11:11 individual8

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.

Scarygami avatar Nov 10 '14 11:11 Scarygami

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

individual8 avatar Nov 10 '14 12:11 individual8

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

Scarygami avatar Nov 10 '14 12:11 Scarygami