TMP path problem (windows) [resolved]

The worst monsters in the Hearthlands warp the fabric of space and time...

TMP path problem (windows) [resolved]

Postby jakey2846 » Fri Nov 25, 2016 11:57 pm

Whenever I try to launch autohaven.jnlp I keep getting these errors. I have no idea how to solve this problem. (Edit: just realised I could scroll up on the error details)

Code: Select all
java.lang.Error: java.lang.reflect.InvocationTargetException
   at haven.MainFrame.javabughack(MainFrame.java:365)
   at haven.MainFrame.main2(MainFrame.java:378)
   at haven.MainFrame.access$100(MainFrame.java:36)
   at haven.MainFrame$7.run(MainFrame.java:429)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
   at java.awt.EventQueue.invokeAndWait(Unknown Source)
   at java.awt.EventQueue.invokeAndWait(Unknown Source)
   at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
   at haven.MainFrame.javabughack(MainFrame.java:356)
   ... 4 more
Caused by: java.lang.ExceptionInInitializerError
   at haven.MainFrame$5.run(MainFrame.java:359)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Delayed error in resource gfx/loginscr (v-1), from local res source
   at haven.Resource$Pool$Queued.get(Resource.java:338)
   at haven.Resource$Pool$Queued.get(Resource.java:307)
   at haven.Loading.waitforint(Loading.java:87)
   at haven.Loading.waitfor(Loading.java:99)
   at haven.Resource$Pool.loadwait(Resource.java:609)
   at haven.Resource$Pool.loadwait(Resource.java:613)
   at haven.Resource.loadtex(Resource.java:1644)
   at haven.LoginScreen.<clinit>(LoginScreen.java:40)
   ... 15 more
Caused by: haven.Resource$LoadException: Load error in resource gfx/loginscr(v2), from local res source
   at haven.Resource$Image.<init>(Resource.java:810)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at haven.Resource$LayerConstructor.cons(Resource.java:735)
   at haven.Resource.load(Resource.java:1611)
   at haven.Resource.access$600(Resource.java:39)
   at haven.Resource$Pool.handle(Resource.java:383)
   at haven.Resource$Pool.access$1100(Resource.java:284)
   at haven.Resource$Pool$Loader.run(Resource.java:531)
   at java.lang.Thread.run(Unknown Source)
   Suppressed: haven.Resource$LoadException: Load error in resource gfx/loginscr(v-1), from filesystem res source (C:\Users\BOB\Downloads\haven\res)
      at haven.Resource$Pool.handle(Resource.java:395)
      ... 3 more
   Caused by: java.io.FileNotFoundException: C:\Users\BOB\Downloads\haven\res\gfx\loginscr.res
      at haven.Resource$FileSource.get(Resource.java:178)
      at haven.Resource$Pool.handle(Resource.java:379)
      ... 3 more
Caused by: javax.imageio.IIOException: Can't create cache file!
   at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
   at javax.imageio.ImageIO.read(Unknown Source)
   at haven.Resource$Image.<init>(Resource.java:808)
   ... 11 more
Caused by: java.nio.file.AccessDeniedException: C:\imageio2712030366733947778.tmp
   at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
   at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
   at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
   at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
   at java.nio.file.Files.newByteChannel(Unknown Source)
   at java.nio.file.Files.createFile(Unknown Source)
   at java.nio.file.TempFileHelper.create(Unknown Source)
   at java.nio.file.TempFileHelper.createTempFile(Unknown Source)
   at java.nio.file.Files.createTempFile(Unknown Source)
   at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
   at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
   ... 14 more
Last edited by Granger on Tue Nov 29, 2016 8:41 am, edited 2 times in total.
Reason: Added code tags to make it readable, adjusted title to match topic contents
jakey2846
 
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

Re: Error after verifying application

Postby Granger » Sat Nov 26, 2016 8:42 am

java.nio.file.AccessDeniedException: C:\imageio2712030366733947778.tmp


This looks strange, my guess is you run it as a non-admin user.
If this happens when you click the play button ontop of the heaven:
Either Loftar dosn't use a system supplied temp directory (which would surprise me) or your user profile is broken.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Postby jakey2846 » Sat Nov 26, 2016 5:21 pm

This looks strange, my guess is you run it as a non-admin user.
If this happens when you click the play button ontop of the heaven:
Either Loftar dosn't use a system supplied temp directory (which would surprise me) or your user profile is broken.

How would I run the file as an administrator?
Also when launching It doesn't get to a part with a play button before the error occurs.
jakey2846
 
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

Re: Error after verifying application

Postby Granger » Sat Nov 26, 2016 7:09 pm

Sorry, shitty cellphone I used to send it - it should have read:
Granger wrote:If this happens when you click the play button ontop of the heaven and hearth website


Forwarding this to Loftar.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Postby shubla » Sat Nov 26, 2016 7:50 pm

Granger wrote:Sorry, shitty cellphone I used to send it - it should have read:
Granger wrote:If this happens when you click the play button ontop of the heaven and hearth website


Forwarding this to Loftar.

Or then he just reads this thread.
I dont see any reason to forward that to him.
He (hopefully) checks bugs for most critical stuff each time he visits forum.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Error after verifying application

Postby MagicManICT » Sun Nov 27, 2016 4:21 am

shubla wrote:I dont see any reason to forward that to him.
He (hopefully) checks bugs for most critical stuff each time he visits forum.


Can't say if he doesn't or doesn't and what his browsing habits are. Maybe he checks PM first, maybe he looks at The Moot first just to smile at what he has wrought. It points it out that the rest of us have looked at it and are stumped by the problem and would like his insight.

jakey2846 wrote:How would I run the file as an administrator?


In Windows, you can run almost anything as the administrator account by right clicking the icon or executable and selecting "Run as Administrator." This isn't advised as if there is a flaw, hack, or virus it can increase security compromises, but in some cases it can be the only way to get a program to run.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18436
Joined: Tue Aug 17, 2010 1:47 am

Re: Error after verifying application

Postby loftar » Sun Nov 27, 2016 5:18 am

This isn't actually something I do, but rather something that Java's image-loading library does. I'll have to read its source code to find out why it might fail.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Error after verifying application

Postby loftar » Sun Nov 27, 2016 6:20 am

Having looked at it, unless there's something explicitly setting ImageIO's caching directory (can't think of what that would be), then Java is just detecting the wrong temp directory. I can't say I know why it would do that, though; have you been messing around with your environment variables, or something? I don't really even know how this is regulated on Windows.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Error after verifying application

Postby Granger » Sun Nov 27, 2016 10:03 am

TEMP path madness under windows might happen in case the configured directories don't exist (happens when users 'empty' the temp directory by removing it itself).

Open cmd.exe and type SET<enter>, in the list appearing there should be TEMP and TMP: make sure that the directories these refer to both exist and are writable by your user.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Granger
 
Posts: 9264
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Postby jakey2846 » Sun Nov 27, 2016 7:53 pm

Open cmd.exe and type SET<enter>, in the list appearing there should be TEMP and TMP: make sure that the directories these refer to both exist and are writable by your user.
Does this mean there is no tmp file? (no idea if this counts as code but the last thing was so Ill just do this anyway)
Code: Select all
TEMP=C:\Users\BOB\AppData\Local\Temp
TMP=C:\


(Edit: I have found one folder labeled tmp00006b5e but no file plainly labled tmp.)
jakey2846
 
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

Next

Return to Bugs

Who is online

Users browsing this forum: Claude [Bot] and 88 guests