Giter Club home page Giter Club logo

Comments (5)

SergeyTrukhachev avatar SergeyTrukhachev commented on June 8, 2024 2

@rorbech this issue just disappeared by itself and I don't see it happening for the last 5-6 weeks. The ticket can be closed.

from realm-java.

cmelchior avatar cmelchior commented on June 8, 2024

This exception comes from OkHttp and indicates that the network connection was somehow not correct:

https://github.com/square/okhttp/blob/eb6c016f6f5a6fa789cb4d21636b83e0abab895d/okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt#L75

It complains about this in the HTTP2 protocol: https://httpwg.org/specs/rfc7540.html#SETTINGS

This is unfortunately out of our control and is probably a consequence of people being on a particular network, perhaps behind a firewall or proxy. The best you can do is retry the operation and if it keeps failing, report it to the user or do some other fallback.

from realm-java.

SergeyTrukhachev avatar SergeyTrukhachev commented on June 8, 2024

@cmelchior thank you for you input.
Btw, I found something that might be helpful.
This issue started to happen when I updated realm plugin from 10.11.1 to 10.16.1 together with gradle from 7.4.2 to 8.1.2.
Before that the app was working for years and I had no issues like this before, so I assume there is a bug which was introduced at some point after 10.11.1.
I have 10k MAU and around 100 users face this issue now.

AFAIK I can't just downgrade realm version since you have some internal database format or something which could be changed over the version change and it's not recommended to downgrade since it can lead to the issues for the users, right?

from realm-java.

anton-plebanovich avatar anton-plebanovich commented on June 8, 2024

Hi @cmelchior we have around 100 users that try to start the app that crashes shortly after launch. Even though it's 1% of users they try to launch several more times and then go to the Store to leave a 1* review which negatively impacts the app rating.

That's a pity to hear that you are not in control here. Could you elaborate more on "retry the operation"? I am not an Android guy but it sounds like a complex task to catch an exception in a thread that we do not control to prevent a crash. Then, we will need to somehow understand which one of the ongoing operations caused the crash which again could be a complex task to achieve.
image

I hope we will be able to resolve this situation with your help. As @SergeyTrukhachev mentioned we did not have this issue on a previous version and the iOS version works pretty much reliably. If that's impossible on the newest Android Realm version is there a rollback solution to downgrade to the old version we were using?

from realm-java.

rorbech avatar rorbech commented on June 8, 2024

Hi @SergeyTrukhachev. We haven't touched the okhttp implementation between these versions. Could you try to elaborate on how your resolved dependencies have changed when you upgraded across Realm, AGP, Gradle, etc. This could help understand if the version of okhttp or other libraries have changed transitively.

Also, are there any patterns in Android versions, etc. in your crashlytics reports?

from realm-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.