jtxBoard icon indicating copy to clipboard operation
jtxBoard copied to clipboard

[BUG] UI multiplies categories

Open joao-matos opened this issue 10 months ago • 5 comments

Describe the bug categories are auto multiplying

To Reproduce i'm not sure. I have notice this happening in different notes but I don't know the pattern. the tasks were created with 2 categories and when I go back to them they have been doubled or tripled the initial same category. They have a parent and subtasks. The parent has categories but are not the same. The subtasks don't have categories. It's local, no sync.

Expected behavior No category duplication

Screenshots See example attached

Device and version

  • Device: poco x3 nfc
  • Android version: android 14
  • jtx Board version: 2.10.00.ose (210000006)
  • Downloaded from: f-Droid

Image

joao-matos avatar Feb 22 '25 23:02 joao-matos

Hi @joao-matos , thank you for the issue report. I'll have a look. Just to be sure, this is only a display issue, right? So when you reopen the same entry later, it looks normal?

patrickunterwegs avatar Feb 23 '25 20:02 patrickunterwegs

Yes and no. Not sure... In previous days, when I've noticed, I edited the task, remove the extra duplicated categories and save. Today, aware of your last comment, after seeing the duplicate categories, I didn't edit the note. Instead, I went back to the task list, then open back the same note and the duplicate categories were not there.

Not sure if related but I use the kanban view.

joao-matos avatar Feb 23 '25 23:02 joao-matos

I went to it again and can reproduce every time: Open a task with 2 categories and multiple subtasks; Click on a subtask; Edit subtask. No need to save, just hit back ( to go to the parent) and the duplicate categories appear in the parent of this subtask.

If I hit edit on this parent with the visible duplicates, they are there. Either i change or don't change, if i just go back to the list and then back to the same task, the duplication disappeared.

Let me know if this is enough otherwise I can record a video.

joao-matos avatar Feb 23 '25 23:02 joao-matos

I have had this happen once yesterday while creating a journal entry. No sub items. Categories got duplicated, happened twice whilst editing then I saved and exited and went back and edited and was able to delete the duplicates and save ok. Haven't seen it today. Can't reproduce it. It was the first use after both jtxB and DavX had been updated, but auto sync is turned off so not a sync issue as no sync involved.

rogercreagh avatar Feb 24 '25 08:02 rogercreagh

Hi @joao-matos , thank you for the issue report. I'll have a look. Just to be sure, this is only a display issue, right? So when you reopen the same entry later, it looks normal?

I have the same issue and this happens on edits or while syncing, on my end. Not all the time, though, it seems random to me.

Reopening the same entry later and in fact, it looks normal again. Categories are just displayed twice for me and not actually multiplied. Still, can be a little annoying.

scharmach avatar Mar 29 '25 19:03 scharmach

Hi, sorry that this took a while. Health is back and headspace too. So about this issue: I can't reproduce it right now, so it's weird again. In the code I can see a possible cause for this (having to do with concurrency). I will do a change, hoping that it will solve the issue for you. But regrettably the way I did it was because of another issue presumably in one of the libraries causing a crash. I hope the other issue in the library is solved now and that the change will also solve the duplication of categories again. I'll test a bit, but the thing needs to be observed. If you encounter any issues then from 2.11.5, please let me know.

patrickunterwegs avatar May 28 '25 10:05 patrickunterwegs