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

Certain multireddits in Main Page crash after open the app #1656

Open
3 tasks done
JJWilson-75 opened this issue May 31, 2024 · 3 comments
Open
3 tasks done

Certain multireddits in Main Page crash after open the app #1656

JJWilson-75 opened this issue May 31, 2024 · 3 comments
Labels
type: possible bug Issues that seem to be a bug, but haven't been confirmed yet

Comments

@JJWilson-75
Copy link

Checklist

  • I have used the search function for open and closed issues to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.
  • If the bug only occurs with a certain link, post, image..., I will include the URL.

App version

7.2.3

Where did you get the app from

Other

Android version

12

Device model

RMX3690

First occurred

Today after installing new version

Steps to reproduce

  1. Go to Customize Tabs in Main Page
  2. Select 2 for Tab Count (Home and All)
  3. Enable Show Favourite Multireddits (preferably at least 4 multireddits)
  4. Exit the app and open it again
  5. Go straight to any multireddits between the third and second to last appearing in the Main Page (the first two multireddits and the last one are unaffected by this regardless of the number of favourite multireddits)
  6. The app crash unless you select other tabs like All, the first two multireddits, or the last multireddit on the Main Page, then you go to the fault-causing multireddits

Example post, link, markdown...

No response

Expected behaviour

After open the app, I should able to browse any multireddits in the Main Page

Current behaviour

I have to select one of the All tab, the first two multireddits or the last one before going to any multireddits between the third and second to last to prevent it from crashing

Logs

Stacktrace

java.lang.IllegalStateException: Can't access ViewModels from detached fragment
at androidx.fragment.app.Fragment.getViewModelStore(Unknown Source:35)
at androidx.lifecycle.u0.(Unknown Source:10)
at ml.docilealligator.infinityforreddit.fragments.PostFragment.r0(Unknown Source:210)
at ml.docilealligator.infinityforreddit.fragments.PostFragment.D0(Unknown Source:75)
at ml.docilealligator.infinityforreddit.fragments.PostFragment.t(Unknown Source:0)
at id.t0.a(Unknown Source:2)
at pc.c1.t(Unknown Source:0)
at pc.c1.d(Unknown Source:0)
at pc.b1.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7971)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1017)

END of stacktrace

@JJWilson-75 JJWilson-75 added the type: possible bug Issues that seem to be a bug, but haven't been confirmed yet label May 31, 2024
@Docile-Alligator
Copy link
Owner

I will look into it.

@martixy
Copy link

martixy commented Jun 3, 2024

All my multireddits are missing for me on v7.2.3, tho I have not observed any crashes yet.

@Docile-Alligator
Copy link
Owner

@martixy Cannot reproduce this. Where did you create the multireddits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: possible bug Issues that seem to be a bug, but haven't been confirmed yet
Projects
None yet
Development

No branches or pull requests

3 participants