I'm running under SUSE Linux and when trying to run my code I got this mysterious error
ava.io.IOException: Permission denied at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1704) at java.io.File.createTempFile(File.java:1792) at com.jogamp.common.util.cache.TempFileCache.initTmpRoot(TempFileCache.java:159) at com.jogamp.common.util.cache.TempFileCache.<clinit>(TempFileCache.java:76) at com.jogamp.common.util.cache.TempJarCache.initSingleton(TempJarCache.java:77) at com.jogamp.common.os.Platform$3.run(Platform.java:305) So I tracked it down to a permission problem with the /tmp/jogamp.tmp.cache directory. I originally ran my code under root and the jogamp.tmp.cache directory was created with root permissions under /tmp. drwxr-xr-x 3 root root 184 2011-11-28 16:50 jogamp.tmp.cache Then, when I changed user to "martin" I of course could not write to that directory so I needed to do the following within the code System.setProperty("jogamp.gluegen.UseTempJarCache","false"); This seems like a basic problem. Do I have jogl installed correctly? I followed the instructions and got jogl by using git. Is this the best way to get jogl? Is this an alpha version of jogl? To be honest, I'm not sure which version of jogl I have. All I can say is that I followed the instructions and I downloaded jogl on the 24th of this month. Are there more stable, older versions? |
Administrator
|
On Tuesday, November 29, 2011 04:39:06 AM Martin Hegedus [via jogamp] wrote:
> > I'm running under SUSE Linux and when trying to run my code I got this > mysterious error > > ava.io.IOException: Permission denied > at java.io.UnixFileSystem.createFileExclusively(Native Method) > at java.io.File.checkAndCreate(File.java:1704) > at java.io.File.createTempFile(File.java:1792) > at > com.jogamp.common.util.cache.TempFileCache.initTmpRoot(TempFileCache.java:159) > at > com.jogamp.common.util.cache.TempFileCache.<clinit>(TempFileCache.java:76) > at > com.jogamp.common.util.cache.TempJarCache.initSingleton(TempJarCache.java:77) > at com.jogamp.common.os.Platform$3.run(Platform.java:305) > > So I tracked it down to a permission problem with the /tmp/jogamp.tmp.cache > directory. > > I originally ran my code under root and the jogamp.tmp.cache directory was > created with root permissions under /tmp. > drwxr-xr-x 3 root root 184 2011-11-28 16:50 jogamp.tmp.cache > > Then, when I changed user to "martin" I of course could not write to that > directory so I needed to do the following within the code > > System.setProperty("jogamp.gluegen.UseTempJarCache","false"); > > This seems like a basic problem. Do I have jogl installed correctly? Yes - my fault. Thank you very much for this bug report, I missed the fact when 'mkdir' the temp root, it only has permissions for the current user. Working on a fix right now, THANK YOU. > > I followed the instructions and got jogl by using git. Is this the best way > to get jogl? Is this an alpha version of jogl? To be honest, I'm not sure > which version of jogl I have. All I can say is that I followed the > instructions and I downloaded jogl on the 24th of this month. Are there > more stable, older versions? If you are fit using git, it's the best. Otherwise, you can check the wiki for the diff. releases: - stable RC builds - autobuilds .. I will update you when it's fixed. Would be great if you verify it afterwards. Cheers, Sven |
Cool, happy to test it out after the fix is in place.
Yes, I missed the wiki thing. Sorry, I'm one of those people that doesn't do so well reading manuals and instructions. :) |
Administrator
|
On Tuesday, November 29, 2011 07:02:39 AM Martin Hegedus [via jogamp] wrote:
> > Cool, happy to test it out after the fix is in place. > > Yes, I missed the wiki thing. Sorry, I'm one of those people that doesn't > do so well reading manuals and instructions. :) Your approach is most welcome: Using the sources w/ git is most desired. https://jogamp.org/chuck/job/gluegen/451/ http://jogamp.org/git/?p=gluegen.git;&a=commit&h=1cdbadd0d2ad5509d970bed2fc388327ec2c4521 builds are kicked off .. ~Sven |
Thanks. I tried starting and running my code under multiple users (including root) and it works. Tried different permutations and tried having multiple instances of the code running under multiple users, i.e. 3 codes running under 3 users for a total of 9. Seems to work.
|
Administrator
|
On Tuesday, November 29, 2011 10:26:18 PM Martin Hegedus [via jogamp] wrote:
> > Thanks. I tried starting and running my code under multiple users (including > root) and it works. Tried different permutations and tried having multiple > instances of the code running under multiple users, i.e. 3 codes running > under 3 users for a total of 9. Seems to work. Awesome - THANK YOU for testing and reporting. ~Sven |
Free forum by Nabble | Edit this page |