relaycorp / relaynet-gateway-android

Awala Gateway for Android
https://relaynet.network/users
GNU General Public License v3.0
9 stars 0 forks source link

App crashes when receiving parcel from Internet gateway as the sync process is being cancelled #710

Closed gnarea closed 12 months ago

gnarea commented 1 year ago
2023-10-03 19:18:32.137 10388-10469 AndroidRuntime          tech.relaycorp.gateway               E  FATAL EXCEPTION: DefaultDispatcher-worker-7
Process: tech.relaycorp.gateway, PID: 10388
java.lang.IllegalStateException: Flow exception transparency is violated:
    Previous 'emit' call has thrown exception java.io.EOFException, but then emission attempt of value 'tech.relaycorp.relaynet.bindings.pdc.ParcelCollection@51e120e' has been detected.
    Emissions from 'catch' blocks are prohibited in order to avoid unspecified behaviour, 'Flow.catch' operator can be used instead.
    For a more detailed explanation, please refer to Flow documentation.

Full logs: https://pastebin.com/AAfauaqJ

I'm not sure if this is a bug in the PoWeb library or the way we're using it.