Saturday, November 7, 2015

Unity on Linux and !CreateDirectoryRecursive(fullpath)

Having installed the latest Unity 5.1.0f3 (game development software/framework) on Kubuntu, every time I would try to create or open a project I could get an error dialog that said simply:
!CreateDirectoryRecursive(fullpath)
And there were two buttons: one said "Quit", and did nothing.  The other said nothing, and did nothing. To exit Unity I'd have to kill or ctrl-c if I started it from command line.

This went on for quite some time. I even tried re-installing, and deleting every configuration file I could find. I searched the internet, but the only one similar report I found on this error was not helpful.

So finally I straced the thing and found the problem... ~/.cache/unity3d was for some reason owned by root.

Simple, but amazingly frustrating to finally track down.

(I also installed unity on Arch linux using AUR, and it worked fine with no such complications.)

1 comment:

  1. A newbie here! I'm trying to run Unity batch mode on an Ubuntu server. I get it to work correctly for creating a project. But then I have to create a second project and run an Editor script (I'm trying to create asset bundles on my server)... but I got an this same error...

    I understand you've successfully found the problem, but I don't understand how you fixed it, could you please be more specific on that? I would appreciate that.

    Again, I'm a newbie...

    ReplyDelete