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

Song will be silent halfway through. Have video to show what can make the bug occur. #12312

Closed
mrSilkie opened this issue Nov 18, 2023 · 18 comments

Comments

@mrSilkie
Copy link

Bug Description

https://www.youtube.com/watch?v=VuQYccUeNgs

Basically if you use the mouse to click through the song you'll be able to listen to all the points. If you shift+jog wheel, you'll fast forward into silence. The song is corrupt and you have to eject and reload and then maybe jesus smiles on your forsaken mixxx install and you get to play the whole song without worries.

But this bug makes mixxx unusable. I wouldn't ever play a set as i can't be guaranteed that this bug won't just pop out of nowhere because i used the fast forward feature to skip the intro, now the outro is bugged and there is simply no way of knowing.

Mix 2.3.6 (HEAD)

Version

2.3.6 (HEAD)

OS

Windows 10

@mrSilkie mrSilkie added the bug label Nov 18, 2023
@ronso0
Copy link
Member

ronso0 commented Nov 18, 2023

Please attach a log file of session where this happens. Ideally just one song.
Which controller and which mapping do you use?

@mrSilkie
Copy link
Author

mrSilkie commented Nov 18, 2023

Hi ronso0.

I've been looking at other DJ softwares out there and they all SUCK compared to MIXXX, MIXXX is the king and I would like to help sort out this bug incase others have this issue as it's pretty bad in terms of bugs. I wish I could peek underneath the hood and attach a debugger to MIXXX so i could see what's actually going on. I looked at the log and it doesn't look like it's got any answers.

In this log, i ran as administrator, picked first song, skipped forward half the song and had the bug occur. I then closed out of it. I use a numark mixtrack platinum with a custom mapping which swaps the gain knob for channel fader.

mixxx.log

@ronso0
Copy link
Member

ronso0 commented Nov 19, 2023

Did you test with Netsky - Power.m4a?
If yes, the info is there (not the actual reason)

Debug [AnalyzerThread 0 #1]: AnalyzerThread - Analyzing "M:/DJ/FILES/TIDAL/Playlist/DnB [0ba2f7d7-5213-46e9-a538-03818741add9]/03 - Netsky - Power.m4a"
Debug [AnalyzerThread 0 #1]: SoundSourceMediaFoundation - Number of channels in input stream 2
Debug [AnalyzerThread 0 #1]: SoundSourceMediaFoundation - Requested number of channels 2
Debug [AnalyzerThread 0 #1]: SoundSourceMediaFoundation - Samples per second in input stream 44100
Debug [AnalyzerThread 0 #1]: SoundSourceMediaFoundation - Sample buffer capacity 4096
Debug [AnalyzerThread 0 #1]: SoundSourceMediaFoundation - Frame index range [0 -> 9977801)
Debug [AnalyzerThread 0 #1]: AnalysisDAO fetched 2 analyses, 2006444 bytes for track 2501 in 11 ms
...
Warning [CachingReaderWorker 1]: SoundSourceMediaFoundation - Seeking to frame 3579904 failed
Warning [CachingReaderWorker 1]: SoundSourceMediaFoundation - Failed to position reader at beginning of decoding range [3579904 -> 3588096)
Warning [CachingReaderWorker 1]: AudioSource - Failed to read sample frames: expected = [3579904 -> 3588096) , actual = [9977801 -> 9977801)
Info [CachingReaderWorker 1]: AudioSource - Shrinking readable frame index range: before = [0 -> 9977801) , after = [0 -> 3579904)
Warning [CachingReaderWorker 1]: CachingReaderWorker - "[Channel1]" Failed to read chunk samples for frame index range: expected = [3579904 -> 3579904) , actual = [9977801 -> 9977801)

i ran as administrator

There is no need to run Mixxx with admin privileges.

So are you saying: (with the exact same track)

  • play the track from start to end: works
  • click anywhere in the overview: no hickups
  • use ffw, maybe cross a broken spot: silence till the end

?

@mrSilkie
Copy link
Author

mrSilkie commented Nov 19, 2023

I ran as admin just in case

But you're correct.

  • play the track from start to end: works
  • click anywhere in the overview: no hickups
  • use ffw, maybe cross a broken spot: silence till the end

That last point, if you FFW at all you run the risk of corrupting the deck so you may not cross a broken spot during your FFW but there will be a broken spot at some point (if the FFW has bugged the deck) and at that point you'll have silence onward. So it can catch you off guard.

Thanks for responding. I haven't been able to replicate the bug on my other machine but will keep trying.

@ronso0
Copy link
Member

ronso0 commented Nov 19, 2023

But you can replicate the bug with a specific track on a specific machine?

@mrSilkie
Copy link
Author

mrSilkie commented Nov 22, 2023

But you can replicate the bug with a specific track on a specific machine?

I just moved my deck to my main pc today and first track I play it has this bug. Next track, then the track after. I suppose to answer your question yes.

I have synced my config with another machine and i don't have these problems at all. Just on this one machine. It could be sound drivers? But i have no clue.

When I'm in this bugged out state of music 'playing' but hearing nothing. If i try to change sound device I get errors

Error opening "Speakers (MixTrack Platinum)" Unanticipated host error

I've tried all the possible options and my results are always the same. I notice that my files have been m4a's and my mp3 files don't have this issue

@mrSilkie
Copy link
Author

I also noticed that I can always skip to the end, Fast Rewind no worries, fast forward i run into silence.

@daschuer
Copy link
Member

We use the Windows Media foundation libraries on Windows for encoding. Maybe your two machines have a different version. Please report the version of the
mfplat.dll for both machines.

Can you confirm that 2.3.6 shows the error but not 2.3.0. The issue is that the encoding of m4a files has not changed between these versions.

@uklotzde
Copy link
Contributor

The reporter mentioned that only decoding of M4A files is affected: https://mixxx.discourse.group/t/songs-are-silent-halfway-through-video-proof/28399/6

This is caused by various issues with newer versions of the Windows Media Foundation libraries that have already been reported:

#11094
#12289

First Microsoft has to fix their software and release those updates for everyone.

@daschuer
Copy link
Member

The referenced issues are on Windows 11, this is a Windows 10 issue. I am curious to read which DLL version is used. Maybe Microsoft has shipped the faulty DLLs also to Windows 10?

@mrSilkie
Copy link
Author

Thanks for everybody chipping in their knowledge. Same issue on 2.3.0 as 2.3.6, Just didn't give 2.3.0 enough testing to find out it was not a solution.

mfplat.dll version on W10 not working machine = 10.0.19041.3636

mfplat.dll version on W11 working machine = 10.0.22621.2506

PS C:\WINDOWS\system32> dism /online /enable-feature /featurename:MediaPlayback

Deployment Image Servicing and Management tool
Version: 10.0.19041.3636

Image Version: 10.0.19045.3693

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.
PS C:\WINDOWS\system32> sfc /scannow

Beginning system scan. This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection found corrupt files and successfully repaired them.
For online repairs, details are included in the CBS log file located at
windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. For offline
repairs, details are included in the log file provided by the /OFFLOGFILE flag.
PS C:\WINDOWS\system32>

I'll try get an up to date version of mfplat.dll on my w10 machine and get back to you all!

@mrSilkie
Copy link
Author

I went as far as renaming the dll to dll_old, so it was 'missing'. I am on a non N based W10 install so mfplat.dll is part of the base packages.

I used sfc /scannow to repair and redownload from the store, however, I ended up with the same version and same issue. If i went online and tried to download a dodgy dll from one of those sites, it would crash mixxx when the file is loaded to the deck.

I think we're in the ballpark for where the issue is occuring. I don't have much patience and just want to DJ. I'm pretty set on using MIXXX (because it's simply the best) so will upgrade to w11 in a weeks time if we can't resolve this issue.

Is there anybody else with W10 that can share their mfplat.dll version number?

@daschuer
Copy link
Member

On GitHub we have:
working: 10.0.17763.2989
not working: 10.0.20348.1

@daschuer
Copy link
Member

@Psychlist1972 can you confirm this issue? Is there a way to downgrade to a working version?

@mrSilkie
Copy link
Author

Fixed with W11 update. Thanks for providing a bit more detail so I knew that windows was the culprit.

I guess if you can downgrade to a previous version then that would be a valid fix too. I found it quite confusing as 'features' need to be managed by the integrated feature installer so there may not be a download link. Maybe some DISM cmd will set the feature version. I was also quite curious with the inner workings of mixxx with this bug, is there not conversion to a single filetype (mp3?) before it gets loaded into the deck buffer. If this was the case, I would assume that mp3 and m4a would behave the same once in the deck buffer.

Have tried a couple songs and now it's just as stable as my laptop, same mfplat.dll version number. Cheers guys.

@daschuer
Copy link
Member

mp3 and m4a is decoded into a raw 24 bit float frames (AV_SAMPLE_FMT_FLT) "file type" which is cached in chunks.

@Psychlist1972
Copy link

@Psychlist1972 can you confirm this issue? Is there a way to downgrade to a working version?

If this is related to #12289 then I would ask that someone experiencing the problem try the Canary Insider release of Windows 11 to see if the same codec update fixes it.

The fact that this is failing on Windows 10, however, makes me think it's potentially a different issue. 12289 is something which was new to Windows 11 and is a problem in the coded itself. I'd need to check with the team to see if the same codec was pushed to 10 in a servicing update or something.

I can't ask the audio team to confirm anything without traces that capture the problem. Please use either Feedback Hub to capture the trace, or our separate tracing script. Instructions here:
#12289 (comment)

Pete

@mrSilkie
Copy link
Author

Sorry, I wasn't aware that it would be possible to debug using the 'CollectAudioLogs' project. I would have loved to debug it myself. Response for my thread has been really good, thanks for all the people who have posted.

My winver show me 23H2 (OS Build 22631.2715) and I haven't encountered the bug. I would encourage others who have this bug to update to W11, or try to change their feature version to a working version and stay on W10, and possibly share some logs in the process.

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

5 participants