INTERACT FORUM

Mac => JRiver Media Center 33 for Mac => Topic started by: abachem on April 14, 2025, 04:29:09 am

Title: Mysterious Error Messages when using MC Core Commands on macOS
Post by: abachem on April 14, 2025, 04:29:09 am
When using MC Core Commands as described in the Wiki then there will be executed correctly, but I always get the following error (warning) messages, which does not give me any hint what I am doing wrong. Can anybody help me?
I am using latest Build MC 33.0.72 Silicon on my macmini M4.  [solved]

Example: Using MCC command 10004 in the Terminal

Command: /Applications/Media\ Center\ 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher /MCC 10004

Error Message:
objc[39350]: Class JRNSWindowDelegate is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc240) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ed08). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class JRWebView is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc268) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ed30). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class JRWKWebView is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc2b8) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ed80). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class JRNSView is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc308) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778edd0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class JRNSWindow is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc358) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ee20). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class SPInvocationGrabber is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc088) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778eec0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class SPMediaKeyTap is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc128) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ef10). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[39350]: Class JRCmdRelay is implemented in both /Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc1c8) and /Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib (0x10778ef60). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
sent a notification!!!
Title: Re: Mysterious Error Messages when using MC Core Commands on macOS
Post by: EnglishTiger on April 14, 2025, 05:52:00 am
Although not somebody familiar with using MCC commands I can spot a mistake in yours - the MCC 1004 is missing it's parameter and at a guess it should be MCC 1004,4 if you are using the command to get MC to play the previous item. in the playlist.
Title: Re: Mysterious Error Messages when using MC Core Commands on macOS
Post by: abachem on April 14, 2025, 12:45:28 pm
yes, you are right, it must be /MCC 10004,4 for previous item. But unfortunately this makes no difference. I tried also /MCC 10001, a command with no parameter. The error messages are always the same.

But anyway, thank you very much for your quick answer!
Title: Re: Mysterious Error Messages when using MC Core Commands on macOS
Post by: zybex on April 15, 2025, 03:36:24 am
Quote
/Applications/Media Center 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher (0x102afc240)
/Applications/Media Center 33.app/Contents/MacOS/libJRTools.dylib

I'm not sure if this folder layout is normal on a Mac, but it looks like there's a duplicate install of MC within the MC folder. Do a database backup, then try cleaning up the install folder. Perhaps it's better to completely remove MC33 (after doing the backup!) then reinstall MC.
Title: Re: Mysterious Error Messages when using MC Core Commands on macOS
Post by: MrBiff on April 15, 2025, 04:07:27 pm
I'm not sure if this folder layout is normal on a Mac, but it looks like there's a duplicate install of MC within the MC folder. Do a database backup, then try cleaning up the install folder. Perhaps it's better to completely remove MC33 (after doing the backup!) then reinstall MC.

It's OK.  The Launcher.app package is stored within the Media Center.app package.

The errors the OP has seen aren't uncommon (but are still annoying).

Issue the command as:
Code: [Select]
open /Applications/Media\ Center\ 33.app/Contents/MacOS/Launcher.app --args /MCC 10004,4

Always use the open(1) command to run an app-style command (vs. command line executable).

Otherwise, you can run the packaged program and toss STDERR into the bit bucket:

Code: [Select]
/Applications/Media\ Center\ 33.app/Contents/MacOS/Launcher.app/Contents/MacOS/Launcher /MCC 10004,4 2> /dev/null
Title: Re: Mysterious Error Messages when using MC Core Commands on macOS
Post by: abachem on April 17, 2025, 04:20:26 am
Thank you all for your help. MrBiff's suggestion with the command 'open /Applications/Media\ Center\ 33.app/Contents/MacOS/Launcher.app --args /MCC 10004,4' works fine. I use KeyboardMaestro.com to connect the command with a key when MC is running and this works now perfectly. [solved]