SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Jaikoz 11.6 not saving work

Hi, no I have not, did you send it to support@jthink.net ?

Yes I did send to the email

Looked at your support files, okay its weird because the error:

Unable to save record:RecNo:0 because:Invalid File Format:MP3

doesn’t seem related to Apple Music/ITunes

But now Im thinking that maybe enabling Apple Music/iTunes enables a different code path, and that code path is exposing a regression in latest release since I did make changes in the code giving the error as part of the removal of the View Audio tab

Will prioritize this work for tomorrow.

Thank you Paul I appreciate your help

Okay fixed, the error is specific to saving mp3s to iTunes, other formats should work okay -

https://jthink.atlassian.net/browse/JAIKOZ-1441

Just working on doing a new release with this fix included plus a couple of others.

Fixedin Jaikoz 11.6.2 Pulp released January 12th 2023

Thank you Paul
I will update and let you know how is going.

I sent you the support zip for you to have a look and an explanation of the issue i still have.

Thank you Paul

Playlist forders

OKay thats different error I see it in logs

13/01/2023 11.06.23:com.jthink.jaikoz.ituneshelper.ITunesModelCreator:createITunesModel:SEVERE: Problem creating iTunes Model:{
    NSAppleScriptErrorAppName = Music;
    NSAppleScriptErrorBriefMessage = "Connection is invalid.";
    NSAppleScriptErrorMessage = "Music got an error: Connection is invalid.";
    NSAppleScriptErrorNumber = "-609";
    NSAppleScriptErrorRange = "NSRange: {33, 8}";
}
com.tagtraum.japlscript.execution.JaplScriptException: {
    NSAppleScriptErrorAppName = Music;
    NSAppleScriptErrorBriefMessage = "Connection is invalid.";
    NSAppleScriptErrorMessage = "Music got an error: Connection is invalid.";
    NSAppleScriptErrorNumber = "-609";
    NSAppleScriptErrorRange = "NSRange: {33, 8}";
}
	at com.tagtraum.japlscript.execution.CocoaScriptExecutor.execute(Native Method)
	at com.tagtraum.japlscript.execution.CocoaScriptExecutor.executeImpl(CocoaScriptExecutor.java:28)
	at com.tagtraum.japlscript.execution.ScriptExecutor.execute(ScriptExecutor.java:102)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:475)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:467)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:463)
	at com.tagtraum.japlscript.ObjectInvocationHandler.invokeProperty(ObjectInvocationHandler.java:390)
	at com.tagtraum.japlscript.ObjectInvocationHandler.invoke(ObjectInvocationHandler.java:188)
	at jdk.proxy2/jdk.proxy2.$Proxy18.getLocation(Unknown Source)
	at com.jthink.jaikoz.ituneshelper.OSXMusicAppModelCreator.createITunesModelInternal(OSXMusicAppModelCreator.java:40)
	at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.createITunesModel(ITunesModelCreator.java:208)
	at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.run(ITunesModelCreator.java:166)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

Bu then you restart and next time totally different error

13/01/2023 11.09.15:com.jthink.jaikoz.ituneshelper.ITunesModelCreator:createITunesModel:SEVERE: Problem creating iTunes Model:{
    NSAppleScriptErrorAppName = Music;
    NSAppleScriptErrorBriefMessage = "Can’t get location of file track id 227363 of library playlist id 65 of source id 64.";
    NSAppleScriptErrorMessage = "Music got an error: Can’t get location of file track id 227363 of library playlist id 65 of source id 64.";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {33, 8}";
}
com.tagtraum.japlscript.execution.JaplScriptException: {
    NSAppleScriptErrorAppName = Music;
    NSAppleScriptErrorBriefMessage = "Can’t get location of file track id 227363 of library playlist id 65 of source id 64.";
    NSAppleScriptErrorMessage = "Music got an error: Can’t get location of file track id 227363 of library playlist id 65 of source id 64.";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {33, 8}";
}
	at com.tagtraum.japlscript.execution.CocoaScriptExecutor.execute(Native Method)
	at com.tagtraum.japlscript.execution.CocoaScriptExecutor.executeImpl(CocoaScriptExecutor.java:28)
	at com.tagtraum.japlscript.execution.ScriptExecutor.execute(ScriptExecutor.java:102)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:475)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:467)
	at com.tagtraum.japlscript.ObjectInvocationHandler.executeAppleScript(ObjectInvocationHandler.java:463)
	at com.tagtraum.japlscript.ObjectInvocationHandler.invokeProperty(ObjectInvocationHandler.java:390)
	at com.tagtraum.japlscript.ObjectInvocationHandler.invoke(ObjectInvocationHandler.java:188)
	at jdk.proxy2/jdk.proxy2.$Proxy29.getLocation(Unknown Source)
	at com.jthink.jaikoz.ituneshelper.OSXMusicAppModelCreator.createITunesModelInternal(OSXMusicAppModelCreator.java:40)
	at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.createITunesModel(ITunesModelCreator.java:208)
	at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.run(ITunesModelCreator.java:166)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

The first error seems to be problem connecting to Apple Music, but it doesnt happen second time round so I think a one-off error, maybe Music was busy.

The second error seems to be a problem with particular file in iTunes, I should be able to deal with this error better, raised https://jthink.atlassian.net/browse/JAIKOZ-1442. When Jaikoz starts it makes a model of the iTunes library, I wonder if you just create a brand new library again if it might work ?

Now I look at it a bit more it is a bit unusual, Apple Music has returned a list of file tracks , i.e tracks associated with actual local music file, however when Jaikoz simply asks for the file location it fails with Apple Music saying it cannot find the file location.

Hi, I have done a fix for this second issue and uploaded a new version of Jaikoz 11.6.2 Pulp, please try and let me know how you get on.

  • Download replacement version of Jaikoz 11.6.2 now on website
  • Install new version
  • In Help:About it will now say Build Date:13th January 2023 , before it would say 12th January 2022

I downloaded the 13 january version and I still get the error.

Like I mentioned, my apple music library is new and it is done by playlist folders and inside those playlist folders I have the playlist of individual artists.

Possibly it is the reason why a Jaikoz playlist folder is not created.

If i create a new music library and there is no playlist folder in it, Jaikoz is creating a Jaikoz folder with the playlist of music i saved in Jaikoz.

I attach the screenshot and the support file of Jaikoz to the email i sent to support

Thank you for helping me

Gilles

I was reading back your comment about the location of Apple Music.
Mine is on the default location.
Inside the music folder I have many individual folder with different sort of style of music.
I Do that to keep my music style in order.
I just try to figure out why Jaikoz can’t find the music library?

I thought you created a new library, my fix was for second issue as I thought ffrst issue was temporary Apple busy issue, bu that seems to be the problem issue. If you create new empty library then start Jaikoz and add an album to it does it work ?

Hello Paul

Thank you for your reply to help me.
If I do I brand new library with nothing on it jailoz work but the present music library it don’t work. I don’t see any difference between both library it’s the same. I forgot to mention I have 85.000 sons into maybe 10.000 folders I to few thousand playlist

Regards

Gillet

Here some extra details from the console today.

Ah okay, so that is a large library for iTunes, i have found iTunes unreliable with libraries that size, maybe worth considering an alternative.

This error is different, i think your library is perhaps a little broken and this is causing Jaikoz to fall over trying to read some files from the library, I could add in some more error handling to try and avoid this but I need your support files again so I can see exactly where the error occurred.

Here more details about my error.

I am attaching 3 screenshot of the setting of Jaikoz - apple music and the console result after saving one album.

When i start Jaikoz then Apple music will start in the same times then apple will load and it take a minutes or so to load. I had talk with apple technician and they said with a large library of 49.6 mg it is normal for the times of loading but i noticed if i unselect jaikoz option to save then apple music load faster something like 15 sc but if the option in jaikoz is ON then the loading times is around a minutes +

You will see in the screenshot of Jaikoz how it is selected and also in apple music.
In apple music under file in setting the option keep music organise and copy files to music are not selected because if i do then t will create a huge amount of folders with artist and albums title. so the way it is it keep my library in a simple way.
I will send you the support file to the support email.

Thank you for your help

Jaikoz setting
Gilles

Apple music setting

Console result

Here some new details about Jaikoz saving to apple music app.

I had load a album to call Rumba Calzada – Feel The Sun 2023
I pasting from the console what was the result after saving.
It came with again an error but i noticed the 10 track are not from the album i just saved it is from one album that previously was edited. The track title here are not the one i just did save.

Now i have a jaikoz playlist folder in my apple music playlist it just came out of the bleu.

Here from the times i was working on jaikoz from the console
Jan 19, 2023 1:09:02 PM: INFO: Started:Creating MusicApp model
Jan 19, 2023 1:09:29 PM: INFO: Jaikoz has been configured with minimum heap memory of 256 mb, maximum heap memory of 4,096 mb
Jan 19, 2023 1:09:29 PM: INFO: Jaikoz 11.6.2 Pulp using Java 17.0.2 17.0.2+8 64bit on Mac OS X 12.6.2 aarch64 initialized successfully
Jan 19, 2023 1:12:51 PM: WARNING: Unable to retrieve details from Music App for:Mi Guaguancó
Jan 19, 2023 1:12:51 PM: WARNING: Unable to retrieve details from Music App for:Me Hace Falta
Jan 19, 2023 1:12:53 PM: WARNING: Unable to retrieve details from Music App for:Cosas de Mujeres
Jan 19, 2023 1:14:39 PM: INFO: Started to load files from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023
Jan 19, 2023 1:14:40 PM: INFO: Counted 10 files that could be loaded from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023
Jan 19, 2023 1:14:40 PM: INFO: Completed loading of 10 songs from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023
Jan 19, 2023 1:14:40 PM: INFO: 10 files are loaded
Jan 19, 2023 1:14:55 PM: INFO: Found 1 new artwork images
Jan 19, 2023 1:14:55 PM: INFO: Added 10 artwork to selected songs
Jan 19, 2023 1:14:55 PM: INFO: Completed getting artwork from local folders for 10 songs
Jan 19, 2023 1:15:36 PM: INFO: New values pasted into 10 fields
Jan 19, 2023 1:15:47 PM: INFO: Started to force save changes to all songs
Jan 19, 2023 1:15:47 PM: INFO: Completed saving of 10 songs
Jan 19, 2023 1:15:47 PM: INFO: Completed deletion of 0 songs
Jan 19, 2023 1:18:53 PM: WARNING: Unable to retrieve details from Music App for:Maldita Mujer
Jan 19, 2023 1:19:14 PM: INFO: Started to force save changes to all songs
Jan 19, 2023 1:19:14 PM: SEVERE: There was a problem changing some files,these have been left with status of changed
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/01 Bomba de San Anton.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/02 El Porro.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/03 Mozambique.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/04 Rapid Mambo.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/05 De Luto.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/06 Noticias.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/07 Connections.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/08 Afro Spirit.mp3
Jan 19, 2023 1:19:14 PM: SEVERE: Unable to find:/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/09 Vida Divina.mp3
Jan 19, 2023 1:19:14 PM: INFO: Completed saving of 1 songs
Jan 19, 2023 1:19:14 PM: INFO: Completed deletion of 0 songs
Jan 19, 2023 1:19:21 PM: INFO: 10 files are loaded
Jan 19, 2023 1:19:21 PM: INFO: Closed 10 files
Jan 19, 2023 1:19:21 PM: INFO: 0 files are loaded
Jan 19, 2023 1:19:26 PM: INFO: Started to load files from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada
Jan 19, 2023 1:19:26 PM: INFO: Counted 10 files that could be loaded from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada
Jan 19, 2023 1:19:26 PM: INFO: Completed loading of 10 songs from /Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada
Jan 19, 2023 1:19:26 PM: INFO: 10 files are loaded
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:1 Montuneando
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:2 El Mundo A Tus Pies
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:3 El Tigre
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:4 Desengano
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:5 Nuestra Noche
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:6 La Duena De Mi Razon
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:7 Cuidado Con El Pescao
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:8 La Boba
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:9 A Mi Madre
Jan 19, 2023 1:19:36 PM: WARNING: Unable to retrieve details from Music App for:10 Díctale A Tu Corazon
Jan 19, 2023 1:19:42 PM: INFO: New values pasted into 10 fields
Jan 19, 2023 1:24:16 PM: WARNING: Unable to retrieve details from Music App for:La Cura para Olvidar
Jan 19, 2023 1:24:59 PM: INFO: Completed:Creating MusicApp model
Jan 19, 2023 1:25:01 PM: SEVERE: Index 2 out of bounds for length 2
java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.createDatabase(ITunesModelCreator.java:248)
at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.createITunesModel(ITunesModelCreator.java:214)
at com.jthink.jaikoz.ituneshelper.ITunesModelCreator.run(ITunesModelCreator.java:166)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Jan 19, 2023 1:25:22 PM: INFO: iTunes has been updated successfully, you can see the changes made within the Jaikoz:2023-01-19 13:25 itunes playlist
Jan 19, 2023 1:25:28 PM: INFO: Updating details for POSIX file “/Users/rumberosnz/Downloads/Rumba Calzada – Feel The Sun 2023/Raphael Geronimo’s Rumba Calzada/10 Bongo Thing.mp3” in iTunes library
Jan 19, 2023 1:25:28 PM: INFO: iTunes has been updated successfully, you can see the changes made within the Jaikoz:2023-01-19 13:25 itunes playlist
From 10 track only two were saved

I think maybe the issue is that when you start Jaikoz it trys to create a model of iTunes, and then (because your library is large) before it has actually finished you save some files and Jaikoz has to use incomplete model.

So, could try starting Jaikoz, waiting 30 minutes and then trying save to see if that works

Also, you made a comment about Jaikoz being good for creating iTunes playlists. The playlists are only created for the purposes of creating a list of files that have been modified and need to be updated. But if you are using this to create playlists for actually playing music I feel there must be a better option for doing that ?