SOLVED--Error: Could not find a place to build the sketch

edited April 2015 in Using Processing

Intermittently, but frequently, I get the above error dialog when trying to run a sketch. Searching the site and Googling the message came up dry. The console shows this:

java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1006)
    at java.io.File.createTempFile(File.java:1989)
    at processing.app.Base.createTempFolder(Base.java:1858)
    at processing.app.Sketch.makeTempFolder(Sketch.java:1143)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:130)
    at processing.mode.java.JavaMode.handleRun(JavaMode.java:120)
    at processing.mode.java.JavaEditor$23.run(JavaEditor.java:697)
    at java.lang.Thread.run(Thread.java:745)
java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1006)
    at java.io.File.createTempFile(File.java:1989)
    at processing.app.Base.createTempFolder(Base.java:1858)
    at processing.app.Sketch.makeTempFolder(Sketch.java:1143)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:130)
    at processing.mode.java.JavaMode.handleRun(JavaMode.java:120)
    at processing.mode.java.JavaEditor$23.run(JavaEditor.java:697)
    at java.lang.Thread.run(Thread.java:745)
java.lang.NullPointerException
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:211)
    at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:192)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:151)
    at processing.mode.java.JavaBuild.build(JavaBuild.java:130)
    at processing.mode.java.JavaMode.handleRun(JavaMode.java:120)
    at processing.mode.java.JavaEditor$23.run(JavaEditor.java:697)
    at java.lang.Thread.run(Thread.java:745)

The source shows this message comes from a routine trying to allocate some space in /tmp. There's plenty of disk space and the permissions look good. The error goes away if I either wait a couple of minutes or quit and restart Processing.

I'm running Processing 2.2.1 on MacOS Yosemite, but I saw this problem under Mavericks as well, and on a different Mac too.

Any suggestions or other wisdom out there?

Edit: I see the same problem with Processing 3.0a5

Answers

  • Is this really my own private error that nobody else sees?

    I'm thinking that if some other program is stomping on /tmp I should see more problems with other software.

    Any clues at all?

  • edited April 2015 Answer ✓

    I figured that if I was the only one seeing this error it must be something peculiar to my configuration so I decided to start turning off the always-running utility programs, one by one.

    The culprit is MenuEverywhere. I've been running for days now without error after killing that program.

    I hope this can help future searchers.

    Edit: I can't see how to mark this as answered. Can a moderator help please?

  • I'm having the same problem. On a Mac. There is 5gb left on disk but it is giving me problems running the latest sketch.

  • Do you get the same error? You should paste your error output here as it will help solving your problem.

    Kf

Sign In or Register to comment.