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

Deck waveform loading bug #11344

Closed
atskler opened this issue Mar 8, 2023 · 21 comments
Closed

Deck waveform loading bug #11344

atskler opened this issue Mar 8, 2023 · 21 comments

Comments

@atskler
Copy link

atskler commented Mar 8, 2023

Bug Description

If I load track "A" to deck "1" and then I load another "B" track to deck "2" and then I quickly drop the track "A" to deck "2" while it is still loading track "B" it will load and display erroneously the waveform of track "A" - it will be pressed and a silence will be inserted to its end. There also seems to be a rare cases when the waveform is not loaded at all, just a plain line appears.

The issue on video:
https://www.youtube.com/watch?v=LHlp103QXwk

Screenshots:

fig1
fig2
fig3

Version

2.5.0-alpha

OS

OpenSUSE Tumbleweed

@atskler atskler added the bug label Mar 8, 2023
@Akashgola123
Copy link

I want to work on this issue please assign this issue to me

@ronso0
Copy link
Member

ronso0 commented Mar 9, 2023

Anyone can try to fix issues, no need to permit or assign that.
1st step would be to reproduce the issue. If you did, try to track it down. As soon as you have a fix for it: just open a pull request to share your progress and get early feedback from devs.

@daschuer
Copy link
Member

daschuer commented Mar 9, 2023

Which 2.5-alpha is exactly affected? We have recently fixed a related issue in #11333.
Maybe it is related? Can you reproduce the issue with the stable 2.3.4 release?

All this looks like a race condition. The waveform of the new track is probably rendered into the Image sized for the old track.

@atskler
Copy link
Author

atskler commented Mar 9, 2023

2.4-alpha-1419-g0243efdaf8 (main) does it
2.3.4 does it

2.3.3-121-gd1f63374fc works correctly

@robbert-vdh
Copy link
Contributor

Probably the same thing as this: #11280 (comment)

@MarcPlace
Copy link

Yesterday this also has happened a few times to me while DJing, using this commit 6dc6f40 (2.4 Branch). Reloading the track again into the deck has mostly fixed it.

@daschuer
Copy link
Member

Can you Identify with which version the issue starts?
We have macOS and windows builds here: https://downloads.mixxx.org/snapshots/2.3/

I have just skimmed through the commits, but did not find something obvious:
These could be candidates to introduce the issue:
47834be
cfcd265

Are you able to do a git bisect?

@MarcPlace
Copy link

Trying to track down this issue a bit, so I've reverted commit 47834be to see if it makes any difference. Unfortunately not, but it takes a bit of effort loading/unloading tracks to get into this state. Could be really something like a race condition:
01
Also remarkable to see how the Waveforms above differs from the preview waveforms (in this example I've loaded the same track into both decks and went to the same time position):
02
As far as I can tell for now, 47834be seems not to be the culprit.

@daschuer
Copy link
Member

Thank you @MarcPlace, It looks like that on the right track samples are hidden behind the end of the visible region on the right.
In @atskler example the previous loaded Track was longer and we see a shinked waveform + a silence region. I assume your previous track was shorter.

@atskler
Copy link
Author

atskler commented Mar 12, 2023

@daschuer I saw that also, probably a variation of the same problem. And maybe this is another variation of it, where one of the decks not draws the waveform at all: https://www.youtube.com/watch?v=5CJmmaRRORc

@atskler
Copy link
Author

atskler commented Mar 12, 2023

These could be candidates to introduce the issue:
47834be
cfcd265

The first committed after v2.3.4 released but the problem already here in v2.3.4 as I mentioned before. So only the second could be a candidate. I'm just building mixxx from before that commit.

@daschuer
Copy link
Member

I have just prepared #11359. Please test that as well.

@atskler
Copy link
Author

atskler commented Mar 12, 2023

@daschuer
60727de (2023-02-20 8:56 AM GMT+1) - works correctly
cfcd265 (2023-02-20 9:14 AM GMT+1) - introduces the problems brought up here
5af6037, #11359, daschuer:gh11344 (2023-03-12 4:13 PM GMT+1) - seems to fix all the problems brought up here

@MarcPlace
Copy link

MarcPlace commented Mar 12, 2023

Can confirm that 5af6037 (#11359 daschuer:gh11344) has also fixed it for me, at least since this fix I've never managed to get an incomplete preview waveform again. But as I mentioned before, this issue unfortunately happens very rare on my system, so this is just the test result of about 20 minutes of loading/unloading tracks.
I'm already using 2.4 most of the time (because of the Rubberband-r3 feature, which was an incredible step forward in sound quality for Mixxx (btw. thank you guys :). Would be great if you rebase it for 2.4 soon.

@thomich
Copy link

thomich commented Mar 21, 2023

morning

using 2.3.4 and made a video to see what happend, maybe it helps to check the fixed version:
https://watch.screencastify.com/v/9o7hgWWBxIVYca0Dzmx6

thanks for your work

@daschuer
Copy link
Member

This issue is fixed.
You can test this developer snapshot:
http://downloads.mixxx.org/snapshots/2.3/mixxx-2.3.4-9-geeae59a9f9-win64.msi

@thomich
Copy link

thomich commented Mar 21, 2023

still on linux with mixxx ;)... if there is a developer package for ubuntu 20.04, i will test...

@daschuer
Copy link
Member

Here (You need to be logged in on GitHub):
https://github.com/mixxxdj/mixxx/suites/11654436323/artifacts/605334095

@thomich
Copy link

thomich commented Mar 21, 2023

thanks @daschuer

installed, tested and 👍
all fine now...

many thanks..

@thomich
Copy link

thomich commented Mar 22, 2023

any idea, when it will be as update eg. in ubuntu repositories?

@daschuer
Copy link
Member

This will be part of the upcoming 2.3.5. Wich is planned soon. We have not yet scheduled a date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants