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

Disk-backed message queue crashes when given unparsable message #1129

Closed
growse opened this issue Nov 24, 2021 · 0 comments
Closed

Disk-backed message queue crashes when given unparsable message #1129

growse opened this issue Nov 24, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@growse
Copy link
Collaborator

growse commented Nov 24, 2021

From play store crash reports:

java.lang.RuntimeException:  at [Source: (byte[])""; line: 1, column: 0]
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6729)
  at android.app.ActivityThread.access$1500 (ActivityThread.java:247)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2053)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:201)
  at android.os.Looper.loop (Looper.java:288)
  at android.app.ActivityThread.main (ActivityThread.java:7838)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException:  at [Source: (byte[])""; line: 1, column: 0]
  at com.fasterxml.jackson.databind.ObjectMapper._initForReading (ObjectMapper.java:4688)
  at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose (ObjectMapper.java:4586)
  at com.fasterxml.jackson.databind.ObjectMapper.readValue (ObjectMapper.java:3609)
  at org.owntracks.android.support.Parser.fromUnencryptedJson (Parser.java:55)
  at org.owntracks.android.services.BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe$messageBaseConverter$1.from (BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe.kt:32)
  at org.owntracks.android.services.BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe$messageBaseConverter$1.from (BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe.kt:31)
  at com.squareup.tape2.FileObjectQueue$QueueFileIterator.next (FileObjectQueue.java:95)
  at com.squareup.tape2.ObjectQueue.peek (ObjectQueue.java:58)
  at com.squareup.tape2.ObjectQueue.asList (ObjectQueue.java:65)
  at org.owntracks.android.services.BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe.<init> (BlockingDequeThatAlsoSometimesPersistsThingsToDiskMaybe.kt:46)
  at org.owntracks.android.services.MessageProcessor.<init> (MessageProcessor.java:106)
  at org.owntracks.android.DaggerApp_HiltComponents_SingletonC.messageProcessor (DaggerApp_HiltComponents_SingletonC.java:262)
  at org.owntracks.android.DaggerApp_HiltComponents_SingletonC.access$5200 (DaggerApp_HiltComponents_SingletonC.java:149)
  at org.owntracks.android.DaggerApp_HiltComponents_SingletonC$SwitchingProvider.get (DaggerApp_HiltComponents_SingletonC.java:1464)
  at dagger.internal.DoubleCheck.get (DoubleCheck.java:47)
  at dagger.internal.DelegateFactory.get (DelegateFactory.java:36)
  at org.owntracks.android.DaggerApp_HiltComponents_SingletonC.injectApp2 (DaggerApp_HiltComponents_SingletonC.java:373)
  at org.owntracks.android.DaggerApp_HiltComponents_SingletonC.injectApp (DaggerApp_HiltComponents_SingletonC.java:339)
  at org.owntracks.android.Hilt_App.onCreate (Hilt_App.java:43)
  at org.owntracks.android.App.onCreate (App.kt:71)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1211)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6724)
  at android.app.ActivityThread.access$1500 (ActivityThread.java:247)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2053)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:201)
  at android.os.Looper.loop (Looper.java:288)
  at android.app.ActivityThread.main (ActivityThread.java:7838)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (Ru
@growse growse added the bug label Nov 24, 2021
@growse growse added this to the v2.4.4 milestone Nov 24, 2021
@growse growse self-assigned this Nov 24, 2021
@growse growse closed this as completed in bd009ec Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant