Media Library duplicates on boot and when a new item is added

Bug #1672229 reported by Azaziah
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Committed
Medium
Phill

Bug Description

In some cases OpenLP starts creating duplicates of all the items
in the Media Library on boot and when a new Media item is added.

This issue has been reported to be happening in 2.2 and 2.4.5
with Windows 10 (and 8?), but may not be limited to Windows.

https://forums.openlp.org/discussion/comment/9197/#Comment_9197
https://forums.openlp.org/discussion/3452/media-library-multiplies#latest

The causes of this bug are still unclear.

Related branches

Azaziah (suutari-olli)
description: updated
description: updated
Azaziah (suutari-olli)
Changed in openlp:
importance: Undecided → Medium
Revision history for this message
Paul (penright) wrote :

Couple of notes.

Summary: I think it has to do with a certain number of medias stored or if there is more than will fit into a window and then you add one. I was able to reproduce the issue on 2.4.6.

Details: I downloaded 2.4.6 onto a new laptop. It only had a couple of video files and I added them one at a time while exiting, rerunning, then checking the media for duplicates. After repeating a few times and not seeing the issue, I notice it was 2.4.6 and my other laptop was 2.4.5 and I tried 2.4.2. So I thought oh, maybe it got fixed in 2.4.6, so I downloaded it to my "broke" laptop, ran it, when asked if I wanted to save database, I said yes, then I cleared out the duplicates. Exited and reran, no duplicates. Then I added one media, exited, reran, checked media. All existing duplicated, the new one did not. So now I thinking what is different between the two. Well number of media and where they are stored before I added them. So I copied them to a thumb drive and added to the "non-broke" laptop. Added a couple, everything ok. Added one at a time, till wham, it happen. I may be getting close to knowing how to replicate the bug. I need to spend more time but wanted to pass this along for the FYI.

Also, I am adding the media by selecting from the folder and dragging into the media window.

Revision history for this message
Paul (penright) wrote :

After posting the previous comment about dragging the slides, I went back and tested the same process only using the disk icon (Load new media). My first pass did NOT reproduce the issue.
So maybe it has to do with adding media by dragging from folder to media window and the number of entries when adding.

If this is a case then the workaround will be just to use the icon.

Curious, where is the entries stored? Is it a database or registry?

With this being Father's day weekend, it maybe Monday before I can do more testing.

Revision history for this message
Paul (penright) wrote :

Here is a log with the issue.
I had to rename it because you have to exit and re-run it to see the issue.
The name should help with the order. I just discovered I can only do one file, so I added them to a zip.

Revision history for this message
Paul (penright) wrote :

Here is a set of logs doing the same steps except with using icon (Load new media).
The issue was NOT reproduced.
Again this was successful.
I am sending this log so you can see the difference.

Phill (phill-ridout)
Changed in openlp:
assignee: nobody → Phill (phill-ridout)
status: New → In Progress
Phill (phill-ridout)
Changed in openlp:
status: In Progress → Fix Committed
Tim Bentley (trb143)
Changed in openlp:
milestone: none → 2.5.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.