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

applying track properties quickly twice will delete track metadata #12963

Closed
zfhrp6 opened this issue Mar 13, 2024 · 6 comments
Closed

applying track properties quickly twice will delete track metadata #12963

zfhrp6 opened this issue Mar 13, 2024 · 6 comments
Labels

Comments

@zfhrp6
Copy link

zfhrp6 commented Mar 13, 2024

Bug Description

applying track properties quickly twice will delete track metadata.

Expected Behavior

none

Current Behavior

track metadata will be deleted

Steps to Reproduce

  1. Open track properties
  2. Apply and apply quickly

Detailed Description

log and screenrecord

mixxx.log

applying_break_metadata.mp4

file in filesystem information

The affected file and the backup in filesystem are still the same.

sqlite information

I didn't check all table, but the value in the library table became NULL in mixxx.sqlite .

Here is the records of the affected file(1) and the backup(2).

SELECT t.* FROM library AS t
-- I tested new DB so I didnt need any WHERE clause
;
id artist title album year genre tracknumber location comment url duration bitrate samplerate cuepoint bpm wavesummaryhex channels datetime_added mixxx_deleted played header_parsed filetype replaygain timesplayed rating key beats beats_version composer bpm_lock beats_sub_version keys keys_version keys_sub_version key_id grouping album_artist coverart_source coverart_type coverart_location coverart_hash replaygain_peak tracktotal color coverart_color coverart_digest last_played_at source_synchronized_ms
1             1     136.176 128 44100 0 0.0   2 2024-03-13T17:13:10.438Z 0 0 1   0.305140602914104 0 0         0     KeyMap-1.0   0     1 1   61045 1.91240704059601     15000290      
2 Nobuo Uematsu Spinach Rag FINAL FANTASY VI Original Soundtrack 2004 Other 6 2     136.176 128 44100 0 0.0   2 2024-03-13T17:13:10.452Z 0 0 1 mp3 0.305140602914104 0 0         0     KeyMap-1.0   0   Nobuo Uematsu 1 1   61045 1.91240704059601 20   15000290     1630260428000

Others

This forum thread may be relevant. https://mixxx.discourse.group/t/mixxx-2-4-metadata-bug-properties/29083

Version

2.4.0

OS

Windows 11

@zfhrp6 zfhrp6 added the bug label Mar 13, 2024
@ronso0
Copy link
Member

ronso0 commented Mar 13, 2024

Thanks for tracking that down!

I can reproduce it by triggering Apply twice quickly via hotkey Alt+A.
I then eventually run into
DEBUG ASSERT: "pTrack->getDateAdded().isValid()" in function TrackCollectionManager::SaveTrackResult TrackCollectionManager::saveTrack(Track*, TrackMetadataExportMode) const at ./src/library/trackcollectionmanager.cpp:205
For some reason I can't reproduce it reliably by double-clicking Apply.

I'll take a look...

@ronso0
Copy link
Member

ronso0 commented Mar 13, 2024

Got it!
#12965

@zfhrp6
Copy link
Author

zfhrp6 commented Mar 14, 2024

I commented that I tested the PR #12965 and it's good.

This may be a bit off topic, but storage speed might be the reason why it didn't happen with quickly clicks in ronso0's environment. Because I am using USB-HDD instead of SSD, so my storage is not fast.

@ronso0
Copy link
Member

ronso0 commented Mar 14, 2024

HmmnonI could reproduce with quick Alt+A but not always with double-click.
And storage speed is unrelated afaict as the database is in memory.

ronso0 added a commit to ronso0/mixxx that referenced this issue Mar 15, 2024
@zfhrp6
Copy link
Author

zfhrp6 commented Mar 15, 2024

Indeed. It is not a problem with the actual files (on the file system), so storage speed is not the cause. my misunderstanding.

@daschuer
Copy link
Member

By #12965

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

No branches or pull requests

3 participants