Posts: 33
Threads: 4
Joined: Apr 2023
Reputation:
3
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.
Posts: 33
Threads: 4
Joined: Apr 2023
Reputation:
3
06-21-2025, 10:18 PM
(This post was last modified: 06-21-2025, 10:21 PM by Yawarakaimono.)
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
Posts: 33
Threads: 4
Joined: Apr 2023
Reputation:
3
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
Posts: 33
Threads: 4
Joined: Apr 2023
Reputation:
3
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.
Posts: 33
Threads: 4
Joined: Apr 2023
Reputation:
3
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