question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Owntracks (Android) crashes with csv format on the friends view

See original GitHub issue

App Build number: 23024 Android 10.0.1 (OxygenOS OnePlus 5T) latest official release

I use a little wemos with gps hat and your pico homie sketch, works great. As i want to have full data, i switched from json to csv format and since then, the android owntracks app crashed, when i switch to the friends view. (Info: I changed to lat/long coordinates somewhat for privacy reasons)

The log shows:

08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: com.fasterxml.jackson.core.JsonParseException: Unexpected character (',' (code 44)): Expected space separating root-level values
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt:  at [Source: (byte[])"20,61168AE9,v,50000956,11000432,6,32,0,117,80"; line: 1, column: 4]
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2337)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:710)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:635)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportMissingRootWS(ParserMinimalBase.java:682)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._verifyRootSpace(UTF8StreamJsonParser.java:1693)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parsePosNumber(UTF8StreamJsonParser.java:1433)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:868)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:762)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4684)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4586)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3609)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at org.owntracks.android.support.Parser.fromJson(Parser.java:63)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at org.owntracks.android.services.MessageProcessorEndpointMqtt$1.messageArrived(MessageProcessorEndpointMqtt.java:171)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at org.eclipse.paho.client.mqttv3.internal.CommsCallback.deliverMessage(CommsCallback.java:519)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:417)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:214)
08-18 09:53:44.232 25149  3763 E MessageProcessorEndpointMqtt: 	at java.lang.Thread.run(Thread.java:919)

I thought it was mentioned, that csv is supported, was that an old information or is this a bug in the parsing code ?

Thanks, Ronny

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rcmcronnycommented, Aug 18, 2021

Seems legit, i already did use the cards since some short time and tried the friends feature in the app a long time not. So this was not obvious to me. Many thanks for pointing me to this and sorry for duplicate report on this. Keep up the good work.

1reaction
growsecommented, Aug 18, 2021

Aha! This smells similar to #984 - the app assumed that if it knew about a contact, then that contact has a valid location. Obviously, this isn’t necessarily true.

NullPointerException: Attempt to invoke virtual method 'java.lang.String org.owntracks.android.model.messages.MessageLocation.getGeocode()' on a null object reference is the key line, when displaying the contact, it tries to reverse geocode the location (for display). Sometimes, there is no location. Then it explodes.

It’s hopefully fixed in the next version. I should really get that released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

0.4.2 crashes on when accessing /last/ · Issue #50 · owntracks ...
Everything seems to be fine in 0.4.2 except when I try to access the live map. Here's the relevant log: ot-recorder[22361]: starting ...
Read more >
Android App Crashing - List View - CSV file - Stack Overflow
Ok, I am trying to populate a list view but on load up it is crashing. Importing product from a CSV in to...
Read more >
Deobfuscate or symbolicate crash stack traces - Google Help
Crashes and ANRs on Android produce a stack trace, which is a snapshot of the sequence of nested functions called in your program...
Read more >
Is there a self hosted app to track your location? I use Google ...
My first question, though, would be "Why?" What value do you get out of tracking your location with any great detail that self...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/19 21 ...
... Bug:417161 - "sys-fs/csvfs - file system representation of CSV data" ... watch, and share games with your friends" status:UNCONFIRMED resolution: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found