Can't select multiple albums in "List (by Album)" view [#21134]

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

bdb484
Posts: 77
Joined: Wed Jul 10, 2013 12:31 pm

Can't select multiple albums in "List (by Album)" view [#21134]

Post by bdb484 »

When looking at my library or any playlist in the "List (by Album)" view, I am unable to reliably select more than one album at a time using Shift+Click or Ctrl+Click, which worked normally in MM4, as I recall.

I can select a single album by clicking on its artwork or by clicking in the summary column, but I can't select multiple albums by Shift+Clicking or Ctrl+Clicking onto another album.

If I Ctrl+Click to select multiple albums, I invariably get an error message:

Code: Select all

Application throw an exception "Read lock not acquired!
[N:\DelphitMediaMonkey505\HT MLSMonkey'\BaseShared. pas, line 4100)"
Error: Read lock not acquired!
[M:\DelphitMediaMonkey305\HT ML3Monkey'\BaseShared.pas,
line 41009
at GroupedTrackList.handleGroupSelection
{file:///controls/groupedTrackList js:426:28)
at HTMLDivElement.mouseUpHandler
{file:///templates, js:182:40)
at line 426!
Source code:
422, this.focusedindex = group.index;
423, this._groupShiftFocusedID = grouplD;
424,
425, if {[e.ctrikey &.& this.multiselect) ||
[this.multiselect && usingTouch && this.selectionMode]) {
426, if [ds.isSelected(group.index]] {
427, ds.modifyfsync(] => {
428, for [vari = group.index; i < group.index
+ group.itemCount; i++)
429, ds.setSelected|i, false);
430
this.raiseltemSelectChange(this.focusedindex);
431,
Callstack: Script: file:///mminit.js ; Func window.myAlert ;
Row: 304 ; Col: 17
Script: file:y//mminitjs ; Func window.alertException ; Row:
314; Cok 9
Script: file://mminitjs ; Func window.onerror ; Row: 284 ;
Col: 13
Would you like to restart MediaMonkey in Safe mode? 
If I try to continue without restarting, I get another error message:

Code: Select all

Application throw an exception Uncaught Error: Read lock
not acquired!
[MN:\DelphitMediaMonkey505\HT MLSMonkey'\BaseShared.pas,
line 4100}
Script: file:///controls/groupedTrackList js
Line 426: if (ds.isSelected(group.index]] {
Callstack:
file:///controls/groupedTrackList.js :
handleGroupSelection(426)
file:///templates.js : mouseUpHandler(182)
‘Would you like to restart MediaMonkey in Safe mode?
If I still try to continue, it lets me proceed, but the program will often start acting buggy.

The behavior is weirder if I Shift+Click to select a range of albums, as there are several possible outcomes, depending on how many tracks each has and where they are relative to each other. If the playlist has Albums A (more than 1 track), B (1 track), C (more than 1 track), D (1 track), and E (more than 1 track):
  • Selecting Album A and then Shift+Clicking onto Album C or E results in nothing being selected.
  • Selecting Album A and then Shift+Clicking onto Album B or D results in the full range being selected, as expected.
  • Selecting Album B and then Shift+Clicking onto Album A or D results in the full range being selected, as expected.
  • Selecting Album B and then Shift+Clicking onto Album C or E results in nothing being selected.
  • Selecting Album C and then Shift+Clicking onto Album A, B, or D results in the full range being selected, as expected.
  • Selecting Album C and then Shift+Clicking onto Album E results in nothing being selected.
  • Selecting Album D and then Shift+Clicking onto Album A, B, or C results in the full range being selected, as expected.
  • Selecting Album D and then Shift+Clicking onto Album E results in nothing being selected.
  • Selecting Album E and then Shift+Clicking onto Album A, B, C, or D results in the full range being selected, as expected.
In all the cases where "nothing is selected," the status bar will indicate that the last track on the second album is selected, but neither keyboard shortcuts nor the controls in the menu bar will allow you to actually play it or modify it.

Here's a screencast, in case it allows you to divine any relevant information I'm not thinking of.

I'm running MM5 5.0.5.2695 on the following machine:

Edition Windows 10 Pro
Version 22H2
Installed on ‎4/‎26/‎2022
OS build 19045.4651
Experience Windows Feature Experience Pack 1000.19060.1000.0
Processor Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz 3.70 GHz
Installed RAM 64.0 GB
Device ID 82EEA34B-5704-4020-A32A-1B3BDBBC3426
Product ID 00330-50000-00000-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Lowlander
Posts: 58575
Joined: Sat Sep 06, 2003 5:53 pm

Re: Can't select multiple albums in "List (by Album)" view

Post by Lowlander »

Please test with the latest MediaMonkey 2024 build to see if you have any issues.
bdb484
Posts: 77
Joined: Wed Jul 10, 2013 12:31 pm

Re: Can't select multiple albums in "List (by Album)" view

Post by bdb484 »

Done. Ctrl+Click is now working as expected. This is incredibly exciting, as this bug has been driving me crazy for years.

Ctrl+Shift is still behaving as described above, though.
Lowlander
Posts: 58575
Joined: Sat Sep 06, 2003 5:53 pm

Re: Can't select multiple albums in "List (by Album)" view

Post by Lowlander »

I'm not sure which Shift+Click issues you still have on 3040.
MiPi
Posts: 902
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: Can't select multiple albums in "List (by Album)" view

Post by MiPi »

Reproduced, tracked as: https://www.ventismedia.com/mantis/view.php?id=21134

[EDIT: fixed in build 3043]
Post Reply