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

boroda

  • Hero Member
  • *****
  • Posts: 4748
In case you were not aware: the download button on the Add-Ons page leads to a "Something appears to be missing…" page on MediaFire.

it seems that i've accidentally deleted the current stable version when i was deleting old (not public) versions from the host. thanks for reporting.

And, which download version would you recommend to be the latest, most stable version?
(I've experienced some temporary but frequent MB freezes with some more recent versions)

I checked what is available on your 'Drive', but I am overwhelmed by the amount of downloads and not sure which one to choose.

this version is the latest stable if i'm not mistaken:

https://www.mediafire.com/file/dm3rhfze89n3qwi/Additional-Tagging-Tools-Plugin.zip/file

also, you could try this earlier version:

https://www.mediafire.com/file/3g5c8uc8lea8vq8/Additional-Tagging-Tools-Plugin-8.0-2024-01-29.zip/file

another probably stable version:

https://www.mediafire.com/file/h2t08o9562efboi/mb_TagTools_latest.zip/file

boroda

  • Hero Member
  • *****
  • Posts: 4748
Will try new $LR() function fix and let you know how it goes

Every time I try to run 'Preview' on new LR preset I get this error

what do you mean by "new LR preset"?

boroda

  • Hero Member
  • *****
  • Posts: 4748
@Bee-liever, @hiccup

this is my current version which i'm working on now. i've compiled it in release mode. it's working fine for me except that $TitleCase() function doesn't work at all the moment.

https://www.mediafire.com/file/mrnrs2z632hao13/Tagging+Tools_2024-04-24.zip/file

hiccup

  • Hero Member
  • *****
  • Posts: 8013
this version is the latest stable if i'm not mistaken:
https://www.mediafire.com/file/dm3rhfze89n3qwi/Additional-Tagging-Tools-Plugin.zip/file

also, you could try this earlier version:
https://www.mediafire.com/file/3g5c8uc8lea8vq8/Additional-Tagging-Tools-Plugin-8.0-2024-01-29.zip/file

another probably stable version:
https://www.mediafire.com/file/h2t08o9562efboi/mb_TagTools_latest.zip/file
Could it be they are all the same?
They all say: 8.0.8794.38420

About the freezes I am experiencing, I see it also happens when using a 2023 version of AT&RT, so it's probably something wrong with my setup.
One thing I noticed is that in some of my virtual tags I hadn't made adjustments for the new amount of 20 custom tags that 3.6 now has.
(I moved some around, and that broke the formulas)

But right now that didn't solve the (brief) freezes, so I'll see what else may be wrong.

Just a thought: could it be that AT&RT has some issue with recognising or using custom tags 17–20?


boroda

  • Hero Member
  • *****
  • Posts: 4748
1st 2 are indeed the same. the modification date of 3d is later. but maybe it anyway the same version.

what kind of freezes do you experience? could you describe more detailed or maybe record video?

no, new custom tags can't interfere with plugin. plugin is just not aware of them.

this version also freezes:

https://www.mediafire.com/file/mrnrs2z632hao13/Tagging+Tools_2024-04-24.zip/file

?

p.s. do you experience freezes if you turn skin coloring off?
Last Edit: April 24, 2024, 04:07:46 PM by boroda

hiccup

  • Hero Member
  • *****
  • Posts: 8013
this version also freezes:
https://www.mediafire.com/file/mrnrs2z632hao13/Tagging+Tools_2024-04-24.zip/file
?

p.s. do you experience freezes if you turn skin coloring off?
yes, and yes

The freeze is for example when starting MusicBee, and it taking up to 10 seconds before the albums in the main panel show up.
With the plugin disabled it's almost instant.
Or, sometimes when opening the preferences panel. That can also take a (short) while.

But by now I am becoming convinced it is because of some flaw in my setup/tweaks/virtual tags/formulas elsewhere.
So unless anyone else reports such freezes, forget about it. I'll need to figure this out myself.


edit
I think I solved it. There were two other locations in MusicBee where in formulas/rules the former custom tag's original tag name was replaced with the generic 'Custom#' name, as a result of me having moved some custom tags around.

Fixed it there too, and things seem to be working fine now. (using 2024-04-24 8.1.8880.30821)
Last Edit: April 24, 2024, 04:37:06 PM by hiccup

boodahbellie

  • Jr. Member
  • **
  • Posts: 21
Posting an error I just received...
FYI, My music library, as well as my MB installation is hosted on DropBox. (Not sure if this would create this issue)

MusicBee v3.5.8447.35892P  (Win10.0), 24 Apr 2024 15:33:

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   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)

boroda

  • Hero Member
  • *****
  • Posts: 4748
which plugin version are you using? tools> additional tagging & reporting tools> see version number at the bottom of submenu.

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3840
  • MB Version: 3.6.8878 P
what do you mean by "new LR preset"?
If I press 'New Preset' and create a new one, when I have finished setting it up and hit 'Preview' it runs until about 94%, displays this error
Code
25/04/2024 10:53:00 AM - 10.0.22631.0 - 3.6.8878.11963P - System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
   at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Form.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at #=znYWwf_ctQYuDuWubeh5ROLc=.Dispose(Boolean #=zaS1bbLM=)
   at #=z3pY_v0mQn0LmF_1MRT9NARs=.Dispose(Boolean #=zaS1bbLM=)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.#=zkhslwYLbcnLWwzZi$I_KqIc=.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Dispose()
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Finalize()
a different error with version 8.1.8880.30821 than before.

MB than shuts down.
MusicBee and my library - Making bee-utiful music together

boroda

  • Hero Member
  • *****
  • Posts: 4748
@Bee-liever, as i understood it the definition of new preset doesn't matter? ok, i'll take a look at this bug right now.

boroda

  • Hero Member
  • *****
  • Posts: 4748
what do you mean by "new LR preset"?
If I press 'New Preset' and create a new one, when I have finished setting it up and hit 'Preview' it runs until about 94%, displays this error
Code
25/04/2024 10:53:00 AM - 10.0.22631.0 - 3.6.8878.11963P - System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
   at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Form.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at #=znYWwf_ctQYuDuWubeh5ROLc=.Dispose(Boolean #=zaS1bbLM=)
   at #=z3pY_v0mQn0LmF_1MRT9NARs=.Dispose(Boolean #=zaS1bbLM=)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.#=zkhslwYLbcnLWwzZi$I_KqIc=.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Dispose()
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Finalize()
a different error with version 8.1.8880.30821 than before.

MB than shuts down.

i'm not able to reproduce this. 1st try to run this version:

https://www.mediafire.com/file/16sid3j34j3da4s/Tagging+Tools_2024-04-25.zip/file

it's debug version. error messages will be more detailed, maybe it will help me. though i'm doubtful. the problem is that this error arises on MB part, not on plugin part.

give me one of exact preset definitions, which doesn't work for you. i'll try to reproduce it again.

also, try to turn off plugin skin coloring.

p.s. tell me if this version is working for you:

https://www.mediafire.com/file/dm3rhfze89n3qwi/Additional-Tagging-Tools-Plugin.zip/file

i'll see what exactly has been changed since that version.
Last Edit: April 25, 2024, 07:00:06 AM by boroda

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3840
  • MB Version: 3.6.8878 P
Alright boroda,
1st download version:
didnt work - as expected - using
<Grouping>  -  <Album Unique Id>
Count - Kind

Error reports
Code
25/04/2024 4:26:03 PM - 10.0.22631.0 - 3.6.8878.11963P - System.ArgumentException: An entry with the same key already exists.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
   at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)
   at MusicBeePlugin.LibraryReports.executePreset(String[] queriedFiles, Boolean interactive, Boolean saveResultsToTags, String functionId, Nullable`1 filterResults) in D:\Source\Repos\Additional-Tagging-Tools\Plugin\LibraryReports.cs:line 2812
   at MusicBeePlugin.LibraryReports.previewTrackList() in D:\Source\Repos\Additional-Tagging-Tools\Plugin\LibraryReports.cs:line 4107
   at MusicBeePlugin.PluginWindowTemplate.serializedOperation() in D:\Source\Repos\Additional-Tagging-Tools\Helpers\PluginWindowTemplate.cs:line 3433
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

25/04/2024 4:26:08 PM - 10.0.22631.0 - 3.6.8878.11963P - System.ComponentModel.Win32Exception (0x80004005): Error creating window handle.
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
   at System.Windows.Forms.ContainerControl.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Form.AfterControlRemoved(Control control, Control oldParent)
   at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at #=znYWwf_ctQYuDuWubeh5ROLc=.Dispose(Boolean #=zaS1bbLM=)
   at #=z3pY_v0mQn0LmF_1MRT9NARs=.Dispose(Boolean #=zaS1bbLM=)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.#=zkhslwYLbcnLWwzZi$I_KqIc=.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Dispose()
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zkSxGMPEa$2Ns6jCxZg==.Dispose(Boolean #=zaS1bbLM=)
   at System.ComponentModel.Component.Finalize()

25/04/2024 4:26:58 PM - 10.0.22631.0 - 3.6.8878.11963P - System.IO.FileNotFoundException: The system cannot find the file specified.
T:\MusicBee\Plugins\.install\
   at #=zQJxsD4O0b1txy9hhahFmHV4=.#=zcTczedYQaobj.#=zfSvSFAE=.#=zHi0MhDQ=(#=zOar0ZId6rZ$uB1RlBxJf6qc= #=ztMOHHNI=, Boolean #=zM3q$3KvD3436)
   at #=zQJxsD4O0b1txy9hhahFmHV4=.#=zcTczedYQaobj.#=zfSvSFAE=.#=zVurn1DQ=(#=zOar0ZId6rZ$uB1RlBxJf6qc= #=zX3u$lIM=, #=zOar0ZId6rZ$uB1RlBxJf6qc= #=z5hG8U10=, Boolean #=zM3q$3KvD3436)
   at #=zHFj27QH19GJQAn4epgM_morbeMjD.#=zZ8gSg$c=(#=zisCVX5a6RuNfEyrgNPR_torkRpZF #=zpJ7F7TCSWdkz)
   at #=zeq4xYeAQeTXfWaqQ0ZZOSZ0=.#=zS4uqOzl5dNic(#=z0QAqfczDSSAuZ4JLlw== #=zCwtUGpPQnbSc, String #=zPajJJ50=)
   at #=zeq4xYeAQeTXfWaqQ0ZZOSZ0=.#=zh7kjGkSAlhxD()

25/04/2024 4:35:50 PM - 10.0.22631.0 - 3.6.8878.11963P - System.ArgumentException: Parameter is not valid.
   at System.Drawing.Font.GetHeight(Graphics graphics)
   at System.Drawing.Font.GetHeight()
   at System.Drawing.Font.get_Height()
   at System.Windows.Forms.Control.set_Font(Font value)
   at #=zrQlGzvlp9avmDTDYLjpMd3bL0D2R..ctor()
   at #=zXseN2ISMQVrESN3O5AmQx5U=..ctor()
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=znJSe1LzEDzkE..ctor(#=z0QAqfczDSSAuZ4JLlw== #=z9ibrJNc=, Boolean #=zCggxhp$Xu8en)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=z$5bKw0M=(#=z0QAqfczDSSAuZ4JLlw== #=z9ibrJNc=, Boolean #=zCggxhp$Xu8en)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=zR7_FF8WgzWDUpGz7sw==(Object #=zGv_nRzM=, EventArgs #=zG7yBVro=)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)

25/04/2024 4:36:22 PM - 10.0.22631.0 - 3.6.8878.11963P - System.ArgumentException: Parameter is not valid.
   at System.Drawing.Font.GetHeight(Graphics graphics)
   at System.Drawing.Font.GetHeight()
   at System.Drawing.Font.get_Height()
   at System.Windows.Forms.Control.set_Font(Font value)
   at #=zrQlGzvlp9avmDTDYLjpMd3bL0D2R..ctor()
   at #=zXseN2ISMQVrESN3O5AmQx5U=..ctor()
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=znJSe1LzEDzkE..ctor(#=z0QAqfczDSSAuZ4JLlw== #=z9ibrJNc=, Boolean #=zCggxhp$Xu8en)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=z$5bKw0M=(#=z0QAqfczDSSAuZ4JLlw== #=z9ibrJNc=, Boolean #=zCggxhp$Xu8en)
   at #=zJH5cSVysJYiST7WOR0jyM7zJcmfx.#=zA3xYkVZ0vtUG.#=zR7_FF8WgzWDUpGz7sw==(Object #=zGv_nRzM=, EventArgs #=zG7yBVro=)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)

2nd download version:
works fine
MusicBee and my library - Making bee-utiful music together

boroda

  • Hero Member
  • *****
  • Posts: 4748
@Bee-liever, 1st error means that you have duplicated tracks in the library. it should be fixed now:

https://www.mediafire.com/file/16sid3j34j3da4s/Tagging+Tools_2024-04-25.zip/file

all other errors seems to be unrelated to the plugin. i can't decipher them, they are MB internal errors. but it seems that you have some bugs with fonts installed. 3d error about "T:\MusicBee\Plugins\.install\" is very strange to me, but it's hardly related to AT&RT.

turn off skin coloring in AT&RT, and check if there are no problems with installed fonts. and check that Segoe UI fonts are installed.
Last Edit: April 25, 2024, 10:46:19 AM by boroda

boodahbellie

  • Jr. Member
  • **
  • Posts: 21
which plugin version are you using? tools> additional tagging & reporting tools> see version number at the bottom of submenu.

v7.3.8740.43100

Upgraded to v8.1.8881.22127 from above and the issue disappears.
Last Edit: April 25, 2024, 09:38:40 PM by boodahbellie

boroda

  • Hero Member
  • *****
  • Posts: 4748
new version:

I have found that the present Move everything after <Custom text 2> from <Tag 1> to <Tag 2> works the opposite from what (I think) it's supposed to do.
...
Using the exact same criteria, but with the preset Move everything before <Custom text 1> from <Tag 1> to <Tag 2> works the way I think the after present should be working.

i've fixed this. thanks phred for finding this issue. you might want to reinstall predefined presets.

-----------

* "Change Case" dedicated command and related ASR presets fixes

* New virtual tag functions:
    $TitleCase(string)
    $TitleCase2(string,excepted_words)
    $TitleCase3(string,excepted_words,word_splitters)
    $TitleCase4(string,excepted_words,word_splitters,exception_chars)

where:
    excepted_words: list of words separated by spaces, which will become lowercase (except for the 1st and the last words)
    word_splitters: list of characters separated by spaces, which must be treated as word splitters. i'd recommend to enclose the list into quotes (e.g. "& . -")
    exception_chars: list of characters separated by spaces after which the words become lowercase (e.g. ' for something like "Someone's")

--------------

the only known bug at the moment is completely vague to me Bee-liever's bug report. i'm neither able to reproduce this nor understand why this would happen.

https://www.mediafire.com/file/odmp6wgn9hg7hfi/mb_TagTools_debug.zip/file
Last Edit: April 26, 2024, 09:12:47 AM by boroda