[Mac System] OnState not reconize on startup (solved)

gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

[Mac System] OnState not reconize on startup (solved)

Post by gemx »

Hi, I just discovered your plug-ins and I find it great.
This allows me to not create virtual terminals and add a lot of AppelScript.
But I noticed something strange. When I restart my Mac, Mac system does not recognize all the programs that start by default. I have to stop them manulally and restart them and mac system seen on it.
Is this normal?
Am I the only one with this problem ?
Thank you for your help.
Please excuse me for my bad English.

Indigo : 6,0,21
Mac System : The last version found here https://github.com/bipphilippe/Indigo-D ... Mac-System

Best regard
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

I have forget to say that i use Yosemite 10.10.2
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

Hi,

Thank you for using the plug-in.

Your post is just in time for me as I am finalizing a new release of the plugging.

I am going to test this. I mus admit it was not one of my test cases :shock: (so evident that I have forgotten it !)
Meanwhile, can you give me a couple of application names your are using with this device ?

Sincerely,
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

Hello, thank you for your answer,

Here the list of application I use with Mac System :
-Airfoil
-Calendar
Chrome
EyeTV
FaceTime
Indigo
iTunes
Mail
Messages
Omnifocus
SecuritySpy
Skype
Utorrent
Plex

Thanks again for your work.

Best regard
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

Hi,

I'm impressed.

I have a question for you.
In my new version, I have inserted new application device properties.
I am stressed (for you) when I see the number of devices that you will have to recreate.

I order to avoid that, I could :
- keep the current Application device without new properties
- create a new type of device to support the new properties

The new properties include things as :
- % cpu used
- state of the process (running, stuck...)

What are your thoughts ?

Sincerely,
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

Hello,

Im actually use all this appalications because with your plug-in it's very easy to set up. But only some of them are very usefull. :wink:

It's not a problem to recreate them. I like the idea to see all this informations.

Best regards,
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: [Mac System] OnState not reconize on startup

Post by RogueProeliator »

In my new version, I have inserted new application device properties.
I am stressed (for you) when I see the number of devices that you will have to recreate.
In general, the devices need not be re-created... I usually add code to programmatically add in new properties, but a quicker and easy solution for users is that they can simply open the device properties and click Save. This will generate any new properties for them.

Adam
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

RogueProeliator wrote:
In my new version, I have inserted new application device properties.
I am stressed (for you) when I see the number of devices that you will have to recreate.
In general, the devices need not be re-created... I usually add code to programmatically add in new properties, but a quicker and easy solution for users is that they can simply open the device properties and click Save. This will generate any new properties for them.

Adam
Thanks for this.
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

gemx wrote:When I restart my Mac, Mac system does not recognize all the programs that start by default. I have to stop them manulally and restart them and mac system seen on it.
Is this normal?
Hi,

The v1.1.0 should correct that.

Let me know if not,
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

Hello,

Thanks for your update. It's work now :P

But on the log of Indigo I have this error message :

Code: Select all

Mac System Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 169, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Mac System.indigoPlugin/Contents/Server Plugin/interface.py", line 93, in getProcessData
<type 'exceptions.KeyError'>: u''

  Mac System Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Don't hesitate if you need more information.

Best regards,
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

gemx wrote:Hello,

But on the log of Indigo I have this error message :

Code: Select all

Mac System Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 169, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Mac System.indigoPlugin/Contents/Server Plugin/interface.py", line 93, in getProcessData
<type 'exceptions.KeyError'>: u''

  Mac System Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Hi,

First guess :
This new version of the plug-in needs you to edit the configuration of every application or volume device and click save on it to create some new data.
Have you done that ?

If you have already done that, could you activate the followings : Enable debugging and Enable log raw data in the plugin configuration and send me the resulting log ?

Sincerely,
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

Hello,

I have delete all my device and recreate some of them.

This is the error message with debugging and log raw data :

Code: Select all

 Stopped plugin "Mac System 1.1.0"
  Starting plugin "Mac System 1.1.0" (pid 96160)
  Started plugin "Mac System 1.1.0"
  Mac System Debug                startup called
  Mac System Debug                end of startup
  Mac System Debug                deviceStartComm called for: App Ko iTunes (665195922 - bip.ms.application)
  Mac System Debug                end of deviceStartComm
  Mac System Debug                deviceStartComm called for: App KO JDownloader2 (1340208463 - bip.ms.application)
  Mac System Debug                end of deviceStartComm
  Mac System Debug                deviceStartComm called for: App uTorrent (225035682 - bip.ms.application)
  Mac System Debug                end of deviceStartComm
  Mac System Debug                runConcurrentThread initiated
  Mac System Debug                initiating dialog timer "Next disk spin" on a 600 seconds pace
  Mac System Debug                time ellapsed for dialog timer "Next disk spin"
  Mac System Debug                initiating dialog timer "Read volume data" on a 60 seconds pace
  Mac System Debug                time ellapsed for dialog timer "Read volume data"
  Mac System Debug                initiating dialog timer "Read application data" on a 60 seconds pace
  Mac System Debug                time ellapsed for dialog timer "Read application data"
  Mac System Debug                going to call shell pmset -g | grep disksleep | sed -e s/[a-z]//g  | sed -e 's/ //g'
  Mac System Debug                returned from shell: 0
  Mac System Debug                Input Plugin Property Keys: Values   : {'disksleepTime': 0}
  Mac System Debug                going to call shell ps -awxc -opid,state,comm | grep 'iTunes$'
  Mac System Debug                returned from shell: {'ProcessID': u'43819', 'PStatus': u'S'}
  Mac System Debug                Input Keys: Values   : {'ProcessID': u'43819', 'onOffState': True, 'PStatus': u'running'}
  Mac System Debug                ProcessID value :  <> 43819
  Mac System                      received "App Ko iTunes" status ProcessID update to 43819
  Mac System Debug                ProcessID value : 43819 == 43819
  Mac System Debug                onOffState value : False <> True
  Mac System                      received "App Ko iTunes" status onOffState update to True
  Mac System Debug                onOffState value : True == True
  Mac System Debug                PStatus value :  <> running
  Mac System                      received "App Ko iTunes" status PStatus update to running
  Mac System Debug                PStatus value : running == running
  Mac System Debug                Updated Keys: Values   : {'ProcessID': u'43819', 'onOffState': u'True', 'PStatus': u'running'}
  Mac System Debug                device "App Ko iTunes" has automatic image for PStatus = running
  Mac System Debug                going to call shell ps -awxc -opid,lstart,etime,pcpu,pmem,state,comm | grep 'iTunes$'
  Mac System Debug                returned from shell: {'ProcessID': u'43819', 'PCpu': u'.0  3.', 'ETime': u'04:31:48   0', 'PStatus': u'', 'LStart': u'Tue Apr 21 18:26:01 2015', 'PMem': u'0 S'}
  Mac System Error                Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 169, in runConcurrentThread
  File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Mac System.indigoPlugin/Contents/Server Plugin/interface.py", line 93, in getProcessData
<type 'exceptions.KeyError'>: u''

  Mac System Error                plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Best regards,
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

Hi,

Thanks for this debug log.
This points me were the issue is.
It sounds that the "ps" terminal command is having a slightly different behavior on your mac than on mines (localisation ? OS version ?).
I am going to correct my plugin to manage that in the coming hours.

Sincerely
bip.philippe
Posts: 58
Joined: Wed Feb 20, 2013 2:09 am
Location: France

Re: [Mac System] OnState not reconize on startup

Post by bip.philippe »

Hi,

v1.1.1 should correct this bug.

Let me know,
gemx
Posts: 17
Joined: Sun Apr 05, 2015 8:42 am

Re: [Mac System] OnState not reconize on startup

Post by gemx »

Hello,

Thanks it's work very good now. Thanks for you update and your plugin. :lol:

Best regards,

Nicolas Cholet
Locked

Return to “Bip's Plugins”