panda-official / TimeSwipe

PANDA Timeswipe driver and firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON parser sometimes fails in Data Logging example

begodev opened this issue · comments

image

Definition of Done

  • code for mentioned task is complete. examples & documentations are complete.

  • build chains are tested

  • corresponding branch is closed

  • merging is done

Driver & Data Logging Example were built on Debian-10...

It seems to be issue with encoding
@begodev can you attach corresponding json file please?

config.json.zip

the file is taken from 10.0.0.12/root/vnk

Attached file doesn't produce any errors
Maybe this file has been saved in Windows in some encoding like UTF-16, then copied to RPi
It seems encoding detection needed and check if a file exists.

Added open file and parse exception handlers: #68

I couldn't reproduce errors from the screenshot: tried run example on RPi several times without any errors.

@begodev Can you please test again and ping me when you get this error again

Ok, with try/catch blocks added it seems the software is working properly.