josephdadams / spotify-controller

MIT License
7 stars 0 forks source link

Connection issues #7

Closed EventeQ closed 3 weeks ago

EventeQ commented 7 months ago

Hi Joseph

I have just installed this module in one of my older mac mini (2014 model, i5 2,6ghz 8gb ram) and this machine runs OS X 12.7.3 (Monterey), and it seem to have an issue with my connection to companion (3.1.2 build). I use the 0.3.0 version of your controller module. It is the latest version of spotify, fresh installation.

I have spotify, stage timer and playback pro on this machine and every module works with zero latency from companion and any of my streamdecks in this system except the spotify controller module. It loose connection and if I press button nothing happens, and then a short while later all commands that I did but never happened - all of them comes at the same time upon getting connection before connection goes idle again. It is like I have connection on/off back and forth and it is only doing this with your spotify module and not the other 2 in use, these work when the controller doesn't. Also as soon as I hover my mouse pointer above your icon in the top meny I get the spinning color disk and I just simply can not do anything with the controller settings.

I just can't figure this out no matter what I do atm, any advice would be highly appreciated.

josephdadams commented 7 months ago

It sounds like the program is hanging up and not able to execute the AppleScript commands (the underlying functionality to control the Spotify app)

EventeQ commented 7 months ago

It sounds like the program is hanging up and not able to execute the AppleScript commands (the underlying functionality to control the Spotify app)

I personally know nothing about programming so I dont know really. Is there anything I can do to troubleshoot in a way that will help you get the right info so this can be resolved?

josephdadams commented 7 months ago

Do you have any other MacOS Monterey computers you could test on?

EventeQ commented 7 months ago

Acctually I do. I have my old retina which is on Mojave atm, I will update it to monterey 12.7.4 and get back to you after I made some tests. I will also update the mini from 12.7.3 to 12.7.4 to see if anything changes.

I will get back to you regarding this after both machines are on the same OS verision. Don't know if it is helpful but I links to both macs specs below

Mini https://everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i5-2.6-late-2014-specs.html

Retina https://everymac.com/systems/apple/macbook_pro/specs/macbook-pro-core-i7-2.5-15-dual-graphics-mid-2015-retina-display-specs.html

EventeQ commented 7 months ago

So my findings are:

Mac Mini 2014: Monterey 12.7.4 + controller 0.3.0 + spotify 1.2.33.1042.g26c92729 - The issue persists Activity monitor state that your controller software is unresponsive (in red text), seems to go in to unresponsive mode directly now. I uninstalled the controller and reinstalled it as well in case there was some issues with the install. After a while the red text and the note "unresponsive" is not showing anymore, but now I get error message, first I get this - Error: Spawn osascript EAGAIN and once I confirm this error and press ok I get this error - Error: read ENOTCONN at runApplescript (/Applications/Spotify Controller.app/Contents/Resources/app.asar/node_modules/applescript/lib/applescript.js:38:21) - and upon pressing ok this error shows again. Once I press ok second time for the error I get reverted to the first error message and it loops forever until I force close the controller app.

Macbook Pro Retina DG 2015: Monterey 12.7.4 + controller 0.3.0 + spotify 1.2.8.923.g4f94bf0d - The issue persists Activity control state that your controller software is unresponsive (in red text), seems to go in to unresponsive mode directly now.

EventeQ commented 7 months ago

So I left the retina running and now some time after I get error message that states:

TypeError: Cannot read property 'volume' of undefined at /Applications/Spotify Controller.app/Contents/Resources/app.asar/node_modules/spotify-node-applescript/lib/spotify-node-applescript.js:196:29 at /Applications/Spotify Controller.app/Contents/Resources/app.asar/node_modules/spotify-node-applescript/lib/spotify-node-applescript.js:100:20 at ChildProcess. (/Applications/Spotify Controller.app/Contents/Resources/app.asar/node_modules/applescript/lib/applescript.js:54:7)

josephdadams commented 7 months ago

Can you roll back to spotify-controller v0.2.0 and test that?

EventeQ commented 7 months ago

So I did as you suggested, no error message yet but activity monitor shows that it is unresponsive. Leaving it as it is and maybe I get an error message on both machines.

Also, if I start the controller, then start spotify and then activate the controller in companion I get unresponsive state in Activity Monitor

josephdadams commented 3 weeks ago

Try latest release and re open issue if needed