Personal tools
You are here: Home documentation FAQ for Pd Help! Pd crashes on startup on Mac OSX 10.7+
Document Actions

Help! Pd crashes on startup on Mac OSX 10.7+

Up to Table of Contents

Is Pd crashing on startup and you're using Mac OSX 10.7 or greater (Lion, Mountain Lion, Mavericks, etc)? This might be happening since newer versions of OSX save the window state when apps are closed and reopen them for you. This can be bad for Pd if there is a clash over resources (sockets, etc) when trying to open patches too quickly or simultaneously.

Luckily, there is a way to manually tell the operating system to not save window states and that's by either setting a defaults option or by simply locking the folder where this information is kept. This way it always opens Pd with an empty state.

A Clean Slate

First, make sure to remove the existing state, otherwise it will keep opening with whatever windows it last saved. You can hold Option when quitting (aka Cmd+Opt+Q) Pd to bypass the OSX save state mechanism and delete any current states.

Another option is to use the Terminal:

rm -rf ~/Library/Saved\ Application\ State/org.puredata.*

If you had startup crashes, this should at least get Pd back but it dosen't disable state saving ...

Option1: Setting Defaults Option

The easiest method to disable the state saving mechanism for Pd is by setting a user defaults option which tells OS X *not* to save Pd's window state by default when quitting:

defaults write org.puredata NSQuitAlwaysKeepsWindows -bool false

Now restart Pd. Upon quitting, Pd will not remove any window states that are set. Also, if you *do* want to save the window states, hold the Option/Alt key while quitting via the File menu or the Cmd+Q key binding.

Option 2: Locking the State Folder

You can disable the state saving mechanism for Pd by locking the state folder for Pd-Extended using the Get Info dialog (CMD+I):

~/Library/Saved\ Application\ State/org.puredata.*

"~/" is your user home directory.

There may be more then one folder named "org.puredata..." as (at the time of writing), Pd-vanilla and Pd-extended use slightly different identifiers. Anyway, if you're clearing one, you'd probably want to clear both.

As before, you can also use the Terminal:

chflags -v uchange ~/Library/Saved\ Application\ State/org.puredata.*

The "uchange" flag locks the folder.

References

by Dan Wilcox last modified 2016-03-16 01:15 AM

Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser