Author Topic: Additional Tagging & Reporting Tools  (Read 1160067 times)

Zafar Iqbal

  • Newbie
  • *
  • Posts: 7
Something si off with my MusicBee and I can't say what. I've been trying to find/solve the issue for almost a week.

I use v7.something of Additional Tagging and Reporting Tools plugin. I don't really use anything else than Auto-Rate. When MusicBee had an update not too long ago, I updated the plugin as well to v9.1. I had issues with the new one. It resets settings and ranking was either bomb or 5 stars. Overall I didn't t spent too much time with it and reverted to older version of the plugin.

With v7.x the ranking behaves as expected. However, it tends to stop working after a while. I used to think it would be after auto-rating during startup or triggering auto-rate on selected files manually, but I no longer think that's the case.

The problem is noticeable in two ways (v7.x):
1. Standard rating for never played tracks gets reset to 2,5 - No other setting changes.
2. Once that setting shows as being reset, I can no longer manually trigger auto-rate on selected files. If I do, I get a popup with an error.

I went on here to write about it, saw there's a new pre-release and just tried it. It didn't help.

I disabled and uninstalled old plugin.
I checked the folder for residue files (in Roaming\MusicBee. I don't know if there is something somewhere else as well).
Restarted MusicBee
Installed latest prerelease
Restarted MusicBee
Configured Auto-Rate
Restarted MusicBee
Went into Auto-Rate and Standard rating is reset and all % fields have been set to 10%, which is not how I configured it.
Played with it some more and eventually got it to save and rank, but ranking is like earlier latest version: either bomb or 5 stars. At one point, I could get it to give a file 4 stars when I set 100% on only 4 stars. But it broke soon after with error message pop up.

v9.1
MusicBee v3.6.9065.26432D  (Win10.0), 29 nov 2024 23:30:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.PluginWindowTemplate.switchOperation(ThreadStart operation, Button clickedButtonParam, Button okButtonParam, Button previewButtonParam, Button closeButtonParam, Boolean backgroundTaskIsNativeMbParam, PrepareOperation prepareOperation)
   at MusicBeePlugin.AutoRateCommand.buttonOK_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


v9.2 pre-release
MusicBee v3.6.9065.26432D  (Win10.0), 29 nov 2024 23:58:

System.DivideByZeroException: Attempted to divide by zero.
   at System.Decimal.FCallDivide(Decimal& d1, Decimal& d2)
   at System.Decimal.op_Division(Decimal d1, Decimal d2)
   at MusicBeePlugin.AutoRate.buttonNormalizePercentages_Click(Object sender, EventArgs e) in D:\Source\Repos\Additional-Tagging-Tools\Plugin\AutoRate.cs:line 1242
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


Zafar Iqbal

  • Newbie
  • *
  • Posts: 7
Thank you very much for your continuous dedication!

2,5 rating is probably because it resets and my library is at least 5 yeas old, so I don't know why it would say I have no play counts. Music Explorer tells me I have 34.7k plays.

The latest pre-release does not give me any error pop ups. Hurray!
And with the exception of the very first time I checked, it has so far not reset settings. Double hurray!!

I first tried having a look using some few secs long audio files. Ranking appeared to behave as expected. I spend a good amount of time with just testing.
I then shifted to proper audio files but suddenly it doesn't. I deleted the settings file and reconfigured but behavior is still he same:

If I enter only percentages for threshold, I immediately get 5 stars on everything.
If I enter values under the "Set the threshold for rating" fields, I get bomb.

I then tried to clear skip and play count, and also cleared rating and auto-rate values, from the shorter files. My thinking was, perhaps something wasn't allowing auto-rate to work properly. But it's still doing the same. "Set the threshold..." = bomb. Procentages = 5 stars.

Not sure if it's of any help, but here's a screenshot of how I've configured Auto-Rate.



Ps. I've looked but couldn't find information. Can both columns be configured simultaneously? If I enter values under "Set the thresshold..." and click on "Calculate threshold now", the fields gets cleared.

Zafar Iqbal

  • Newbie
  • *
  • Posts: 7
I've been testing some more and did some new findings:

Auto-rate when music is played works after I deleted settings file and reconfigured. This explains why it initially also seemed to work on the smaller audio files but then suddenly not on the proper ones (by then I had probably done some auto-rate on selected file, but can't remember).

I'm pretty confident but can't seem to find a precise pattern, but I think it's somewhat like before: if I manually auto-rate selected files (and I bet during startup as well), it will break. I'd then have to delete the settings file and reconfigure. If I just configure and leave it, it works.

Overall, it's better than v9.1 and I don't feel I need to revert to the old v7x. I would like to be able to auto-rate selected files though.

boroda

  • Hero Member
  • *****
  • Posts: 5233
@Zafar Iqbal, the only strange thing on your screenshot is that you have all fields "set stars if plays per day..." set to zero. sorry, i couldn't help further.


Zafar Iqbal

  • Newbie
  • *
  • Posts: 7
I agree. With v7, they got populated automatically with various (very small) values when I clicked on Calculate Threshold Now. But not in newer versions. If I set something manually (only whole numbers work) and then click Calculate Threshold Now, then they get cleared again.

I gave final release a try and in short, it's working worse for me compared to previous prerelease.
Settings are resetting more frequently.
Calculate auto-rate threshold on startup also breaks it now.
I get the error below when auto-rate threshold on startup is enabled

I downloaded portable and added few music files to a new library and it was as usual at first. After a while, I reset play count etc. and then it completely stopped working - till I made sure everything had a play count. But surely, not everything can always have play count (new stuff).
With the portable, both columns gets populated with numbers.

I get error in status bar during startup when auto calculate threshold on startup is enabled - this is from the log:

Quote
01-12-2024 03:54:22 - 10.0.19045.0 - 3.5.8698.34385P - System.ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.ReliableEnter(Object obj, Boolean& lockTaken)
   at MusicBeePlugin.PluginWindowTemplate.serializedOperation()
   at #=zu4Zx8AwXW_Fbz0RgnA==.#=zgqHaG_kL5IRH(Object #=zstMq00w=)

boroda

  • Hero Member
  • *****
  • Posts: 5233
i'll look at the error, but i haven't changed anything in the final release. i've only re-compiled it in release (not in debug) mode.


Zafar Iqbal

  • Newbie
  • *
  • Posts: 7
I had completely overlooked/forgotten, that my main MusicBee installation is v3.6 from the forum. The portable I've lately also been testing with was 3.5 from official download page.

On portable 3.5
Standard rating always resets to 2,5 - even if I change nothing else
Using "Auto calculate threshold on startup" causes % fields to reset to 10% each
Overall more stable and predictable, with the exception of those 2 settings
No errors

Both of these settings appear to work fine, are remembered and I can change them and get the effect of it, for as long as the program is running. But resets after program restart.

On 3.6 however, Auto-Rate breaks and from then won't rate properly.

I'll see if I can get my library into v3.5. I actually don't use beta versions, but apparently managed to do it anyways.

Edit: I opened my main library in 3.5 (I made backups first!) and now, Auto-Rate is behaving like I described for 3.6 earlier. I feel like my library may have junk or something. Is there a guide for how to start over with a new library, while maintaining as much metadata as possible?
Last Edit: December 01, 2024, 06:02:01 PM by Zafar Iqbal

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10940
I'm getting an error when trying to open the Multiple Search & Replace window:

Code
MusicBee v3.6.9108.26223P  (Win10.0), 8 Dec 2024 23:56:

System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Preset'.
   at MusicBeePlugin.MultipleSearchAndReplace.loadComboBox_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at MusicBeePlugin.CustomComboBox.set_SelectedIndex(Int32 value)
   at MusicBeePlugin.MultipleSearchAndReplace.initializeForm()
   at MusicBeePlugin.PluginWindowTemplate.PluginWindowTemplate_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at MusicBeePlugin.PluginWindowTemplate.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest patches
(Unzip and overwrite existing program files)

Babydoll32

  • Full Member
  • ***
  • Posts: 180
Hi,

I have a problem with the Additional Tagging & Reporting Tools. As soon as I install all the presets, I receive the following message. I have tried everything possible, but I can't get rid of this message. I would prefer not to reinstall Musicbee. Does anyone have any idea what the issue could be? Musicbee 3.6.9108 and the latest add-on version are installed.


phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
Have you unticked the preset in question?

EDIT: typo
Last Edit: December 12, 2024, 12:25:08 PM by phred
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here

Babydoll32

  • Full Member
  • ***
  • Posts: 180
Have you untick the preset in question?

Yes, it is the "convert Replaygain to Soundcheck" preset. When I filter the presets by "Auto execute," it is displayed. However, I cannot deactivate it. The checkbox in front of the preset is also not checked. It should be, if Auto Execute is enabled, right?

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10272
Please post a screenshot of the filtered window for auto-execute.
Download the latest MusicBee v3.6 patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
The FAQ
The Wiki
Custom Forum Search
Posting screenshots is here