Infinity-For-Reddit icon indicating copy to clipboard operation
Infinity-For-Reddit copied to clipboard

Duplicate Child Comments

Open K4Z3R0 opened this issue 2 years ago • 6 comments

Checklist

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

App version

5.2.1 (100)

Where did you get the app from

Google Play

Android version

10

Device model

TECNO KE7

First occurred

Idk probably about some weeks ago

Steps to reproduce

  1. Open post
  2. Go through comments
  3. Open child comments
  4. Then the child comments are duplicated

Screenshot_20220802-112357

Expected behaviour

The child comments should not be duplicate

Current behaviour

Duplicate child comments

Logs

No, the app dom't crash for me ever

K4Z3R0 avatar Aug 02 '22 03:08 K4Z3R0

I confirm this happens, it makes it really confusing to know to which parent these comments belong. Screenshot_20220803-151627_Infinity

vahaala avatar Aug 03 '22 13:08 vahaala

I have not been able to observe this behavior, including on the post screenshotted by @vahaala.

Do you have links to posts this is reproducible on?

patrickdemers6 avatar Aug 23 '22 18:08 patrickdemers6

I have not been able to observe this behavior, including on the post screenshotted by @vahaala.

Do you have links to posts this is reproducible on?

There is no specific post because this occurs in every post but does not occur every time.

K4Z3R0 avatar Aug 24 '22 07:08 K4Z3R0

I can also confirm this happening in several versions of the app ever since I started using it around a year ago.

user-727 avatar Sep 02 '22 20:09 user-727

Yep, exact same issue for me. Happens in almost every post with child comments. No rhyme or reason to which ones work fine and which are broken as far as I can tell.

H-Tevin avatar Sep 12 '22 18:09 H-Tevin

For me it seems tonbe posts with many comments and specifically child comments

Wladefant avatar Sep 19 '22 07:09 Wladefant

I think I fugured it out. It is easier to reproduce on slow internet because you need to do some actions while comments are loading.

Prerequisites (it's complicated, but pretty common in large posts) : "Load more comments" button that will load all children and disappear. I will call this target button. Some comments with children that can be collapsed before the target button but not parents of it. Collapsing a comment with about 4 children works best. Collapsing those comments should not change position of parent of the target button. Some comments after target button. (I think it will crash if there are none)

For example:

  • Top level 1
    • Child 1.1
      • Child 1.1.1
      • Child 1.1. 2
      • .... (more children of 1.1)
    • Target button (Load more comments)
  • Top level 2
    • Child 2.1

Steps:

  • Click target button
  • While comments are loading collapse Child 1.1
  • Wait for comments to load

Now things are already broken because comments get loaded under Top level 2 and the button continues to show "Loading"

  • Collapse and expand Top level 1

"Loading" button button disappears and loaded comments appear under correct parent. But comments under Top level 2 are still there, so there are duplicate comments.

tabasavr avatar Nov 11 '22 08:11 tabasavr

I thought this was fixed in the last release? At least the problem hasn't been occuring for me anymore.

gbakeman avatar Nov 11 '22 15:11 gbakeman

I thought this was fixed in the last release? At least the problem hasn't been occuring for me anymore.

It was #953. There are some similarities but the two bugs are unrelated

tabasavr avatar Nov 11 '22 19:11 tabasavr