This is the last line of the report before it did a code sign check and deep within Apple’s code sign checking system it failed (out of our hands). The most common problem is a failure for it to communicate with Apple’s web servers.
I’ve seen similar issues where the code sign tools can crash if they can’t reach Apple’s code sign servers!
I’m running Sierra, and I just noticed that I cannot anymore prevent/allow app nap. But I’m sure it worked before installing Sierra.
My tests done with (1) Sam’s RedBull and (2) using Thomas T’s Preferences (cfr. macoslib).
What I see is that Activity Monitor shows Yes/No only for the Finder and Safari. All other apps are stuck at No.
May be it is time, at least for me, to forget about using Prevent App Nap.
[quote=415690:@Christian Schmitz]This is intentional. Xojo now uses higher Mac SDK version, so Apple expects that you as developer know about it.
e.g. use NSProcessInfoMBS class[/quote]
Now that you bring that up - is there a way to prevent it for launched processes as well? I’m still running into situations where my helpers are being “de-prioritized” all the way to Zombie state after 10s of hours of running.
Are these helper apps console or GUI apps? I think (thought?) that console apps were immune from app nap. Are you seeing console apps get “de-prioritized” too? I don’t see a priority column option under Activity Monitor > View > Columns so what are you using to verify the de-prioritized state?
They are C/C++ console apps. Yes - I’ve actually watched my task drop in priority and finally end up Zombied and disconnected from the UI even though the Shell is still running after a period of days. This can happen when a user starts a long process that may prompt for use input, but they are out for the weekend and don’t see the prompt until Monday.
By default they were; but there’s no guarantee that’s valid now.
In my own application which uses the code documented by Apple, so that it can perform a long task (like 40+ minutes), failed to prevent the machine from going to sleep after 5 minutes. When I returned, I expected it to be completed. I haven’t investigated it further after confirming that I’m using the right code.
There is just so much that’s broke nowadays, it’s really sad.
Not only sad but scary. I have helper apps which run on a headless mac mini. The GUI portion (accessed remotely) uses the app nap disable stuff but the console apps I have always treated as app nap proof. This makes me worried about ever upgrading the OS on them. I can’t let those processes be Zombied because they are not monitored frequently.
My advice would be to a) don’t upgrade this machine and b) look into alternative (and less costly solutions) in the future. Remember Xojo can target Windows, Linux and PI, none of which (AFAIK) do these “energy saving” measures. Which to be honest, I am happy Apple implemented that, but sad, they they’re just left broken.
[quote=415886:@Douglas Handy]Do we know when this broke?[/quote] I don’t to be honest. I only recently created a project that does LONG tasks, so I can’t say I ever actually the option that’s meant to stop the machine from going to sleep until this year.
@Christian Schmitz If app nap is disabled this way, will that also prevent the OSX screensaver from cutting in while the app is running in the foreground (doing some sort of activity) without the user interacting with either mouse or keyboard? If not, is there another way that I can prevent the screensaver from coming on?