TMP path problem (windows) [resolved]

The worst monsters in the Hearthlands warp the fabric of space and time...
jakey2846
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

TMP path problem (windows) [resolved]

Post by jakey2846 »

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
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Post by Granger »

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
jakey2846
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

Re: Error after verifying application

Post by jakey2846 »

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.
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Post by Granger »

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
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Error after verifying application

Post by shubla »

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
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: Error after verifying application

Post by MagicManICT »

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
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Error after verifying application

Post by loftar »

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: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Error after verifying application

Post by loftar »

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
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: Error after verifying application

Post by Granger »

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
jakey2846
Posts: 6
Joined: Fri Jun 20, 2014 5:55 pm

Re: Error after verifying application

Post by jakey2846 »

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.)

Return to “Bugs”