Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Problem: Library update in progress message
#81
Javascript Console:

Currently I only see warnings, empty string passed to getElementById()

GLOBAL.libLoading is true
GLOBAL.libRendered is false

I am shure, because these are in front of me.

I do remember to have seen an error about thumbnail not found
and the GLOBALS undefined.

I don't seem to be able to reproduce that one.


I was finding out why, it's difficult for me as I didn't see code for a long time.
#82
(06-21-2025, 09:02 PM)Yawarakaimono Wrote: Javascript Console:

Currently I only see warnings, empty string passed to getElementById()

GLOBAL.libLoading is true
GLOBAL.libRendered is false

I am shure, because these are in front of me.

I do remember to have seen an error about thumbnail not found
and the GLOBALS undefined.

I don't seem to be able to reproduce that one.


I was finding out why, it's difficult for me as I didn't see code for a long time.

Whats the line number and script name associated with the warnings?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#83
jquery-1.8.2.js:140:21

?
#84
If it doesn't go further up the call chain from the jQuery script and its only a warning then its not an aborted moode script like in this earlier post from @alexarz https://moodeaudio.org/forum/showthread....7#pid64717

That can't really be used to debugging...
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#85
Has GLOBAL.libLoading a double function?
One to indicate data is being transferred from the database,
Two to indicate that an update process is active?

If exceptions can occur in loadLibrary, wouldn't a try construct be advisable to reset the global flags?

Just curious, don't want to be impolite
#86
I can do some testing, what you are looking for is the data or situation which generates an exception that prevents resetting GLOBAL.loadLibrary?

I can't spend full time on it
#87
(06-21-2025, 10:27 PM)Yawarakaimono Wrote: I can do some testing, what you are looking for is the data or situation which generates an exception that prevents resetting GLOBAL.loadLibrary?

I can't spend full time on it

Correct. In @alexarz case we have a script abort that can apparently be tied to no Artist or Album Artist tag in a file. The aborted script would leave the libLoading flag always set to true.

I'm not sure whats happening in your case.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#88
I seem to have a really dirty database.

When I include all my files:

In tag or album view I see nothing on display, but the console shows

Uncaught TypeError: (intermediate value).toLowerCase is not a function
keyAlbum scripts-library.js:506
allSongs scripts-library.js:248
groupLib scripts-library.js:246
renderLibrary scripts-library.js:128
loadLibrary scripts-library.js:111
jQuery 8
loadLibrary scripts-library.js:108
<anonymous> scripts-panels.js:96
jQuery 8
<anonymous> scripts-panels.js:67
jQuery 11


When I have a library with only a DSD subset of my files, I can't produce this exception.

Also no data displayed on tag or album view.
#89
(06-22-2025, 09:00 AM)Yawarakaimono Wrote: I seem to have a really dirty database.

When I include all my files:

In tag or album view I see nothing on display, but the console shows

Uncaught TypeError: (intermediate value).toLowerCase is not a function
   keyAlbum scripts-library.js:506
   allSongs scripts-library.js:248
   groupLib scripts-library.js:246
   renderLibrary scripts-library.js:128
   loadLibrary scripts-library.js:111
   jQuery 8
   loadLibrary scripts-library.js:108
   <anonymous> scripts-panels.js:96
   jQuery 8
   <anonymous> scripts-panels.js:67
   jQuery 11


When I have a library with only a DSD subset of my files, I can't produce this exception.

Also no data displayed on tag or album view.

It did take some time, at last the tag view showed information...
#90
So I now know that it can take several minutes before I see something in Tag or Albums view, which corresponds roughly with GLOBAL.libLoading = true. I understand that the library can't be updated because mpd can only be doing one command at a time?

When I update folder OSDisk, and the spinner is gone, it can take 5 minutes before GLOBAL.libLoading = true. It is not yet clear if this time is corresponding with the amount of missing tag-data or something else.

What can be going on in this 5 minutes? It is in folder view, with only a few lines to display


Forum Jump: