techlore / Plexus-app

Remove the fear of Android app compatibility on de-Googled devices.
https://plexus.techlore.tech
GNU General Public License v3.0
190 stars 12 forks source link

[Issue]: The app crashes when rating an app #40

Open GrafKiedyOdcinek opened 3 weeks ago

GrafKiedyOdcinek commented 3 weeks ago

Description

The app crashes when rating an app that doesn't have any other ratings. For some apps the rating isn't submitted and when I try to submit the rating again it says that I don't have a de-Googled/MicroG device. I'm using CalyxOS on Pixel 6.

Steps to reproduce the issue

The app crashes when I submit a rating for the app Max (and other apps without ratings) The app doesn't submit a rating when I rate the game The Simpsons: Tapped Out (and other apps without ratings).

Device

Both de-Googled & microG

Error messages/logs

No response

Additional context

No response

Terms

StellarSand commented 3 weeks ago

There's a lot of ratings from CalyxOS in our database, so the app is working fine on it. There's also many apps that have ratings only from CalyxOS, further confirming the fact that the app works when rating a previously unrated app on CalyxOS. Here's a few examples of apps which have ratings only from CalyxOS:

You can try the following steps:

GrafKiedyOdcinek commented 3 weeks ago

I reinstalled the app using the latest version from GitHub and I still experience the same issue. That YouTube Studio rating is actually from my device, which is very weird, becouse I can't submit ratings for apps without other ratings (after a few days I could submit ratings for more apps, becouse they received ratings from others when previously it wouldn't submit them). Could you give me more instructions on how I can create and share the logs? I don't understand the insturctions that you provided.

StellarSand commented 3 weeks ago
StellarSand commented 1 week ago

You can also use the LogFox app to get the crash logs directly from the device.

GrafKiedyOdcinek commented 2 days ago

I fixed the issue by disabling my dns. After looking at the logs it looks like if play.google.com is blocked the app crashes. I think it should show a message that play.google.com is blocked and for the application to fully work you need to unlock it, instead of the app just crashing. Here are the logs: FATAL EXCEPTION: main Process: tech.techlore.plexus, PID: 2200 java.net.ConnectException: Failed to connect to play.google.com/0.0.0.0:443 at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:147) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:116) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:186) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:128) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:97) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:289) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:232) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:465) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.connect(DelegatingHttpsURLConnection.java:90) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:30) at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:848) at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:818) at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:346) at org.jsoup.helper.HttpConnection.get(HttpConnection.java:331) at tech.techlore.plexus.fragments.bottomsheets.submit.SubmitBottomSheet$getIconUrl$3.invokeSuspend(SubmitBottomSheet.kt:271) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@bacc8f4, Dispatchers.Main.immediate]

StellarSand commented 2 days ago

So this happens because the icons are retrieved from play.google.com & fdroid.org. Instead of showing a message, I may have some other ideas which could fix it & blocking from DNS will continue to function normally. Thanks for sharing the crash logs.