IO Bug

The worst monsters in the Hearthlands warp the fabric of space and time...
hydr0gen
Posts: 5
Joined: Wed Mar 24, 2010 1:13 pm

IO Bug

Post by hydr0gen »

This bug become a bit annoying. I have 2 clients: 1 digging ground second is cutting trees. When map gets updated, second client crash

Code: Select all

1.55.4:2817eaa44d9b296884bf84c8d3c1ab4da9e201dc

haven.StreamMessage$IOError: java.nio.file.AccessDeniedException: C:\Users\User\AppData\Roaming\Haven and Hearth\data\cache1309293667941138300.new -> C:\Users\User\AppData\Roaming\Haven and Hearth\data\9f1254e6abeed405.0
	at haven.StreamMessage.close(StreamMessage.java:127)
	at haven.MapFile$Grid.save(MapFile.java:437)
	at haven.MapFile.update(MapFile.java:737)
	at haven.MapFile$Processor.lambda$run$0(MapFile.java:198)
	at haven.MapFile$Processor.run(MapFile.java:214)
Caused by: java.nio.file.AccessDeniedException: C:\Users\User\AppData\Roaming\Haven and Hearth\data\cache1309293667941138300.new -> C:\Users\User\AppData\Roaming\Haven and Hearth\data\9f1254e6abeed405.0
	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
	at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
	at java.nio.file.Files.move(Unknown Source)
	at haven.HashDirCache$2.close(HashDirCache.java:277)
	at haven.StreamMessage.close(StreamMessage.java:122)
	... 4 more
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: IO Bug

Post by Granger »

Running multiple clients is not supported.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
Astarisk
Posts: 882
Joined: Fri Aug 13, 2010 7:08 am

Re: IO Bug

Post by Astarisk »

Granger wrote:Running multiple clients is not supported.
When did that become an official stance of the devs?
IRC/IGN: Rawrz

Join the (HedgeHugs) Haven & Hearth Discord if you need help.
https://discord.com/invite/Uy8yzm4
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: IO Bug

Post by Granger »

No idea, but in case Loftar actually wanted to support it then he wouldn't have coded the file access as being exclusive, would he?
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: IO Bug

Post by shubla »

Granger wrote:No idea, but in case Loftar actually wanted to support it then he wouldn't have coded the file access as being exclusive, would he?
Or maybe he did not even realize that such a problem as this would even occur.
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
Astarisk
Posts: 882
Joined: Fri Aug 13, 2010 7:08 am

Re: IO Bug

Post by Astarisk »

Granger wrote:No idea, but in case Loftar actually wanted to support it then he wouldn't have coded the file access as being exclusive, would he?
Could be an issue with Windows that he isn't aware of or a myriad of other things. When I asked about it he said he supposedly uses proper file locking to coordinate multiple access to the files.
Last edited by Astarisk on Mon Apr 10, 2017 7:48 pm, edited 1 time in total.
IRC/IGN: Rawrz

Join the (HedgeHugs) Haven & Hearth Discord if you need help.
https://discord.com/invite/Uy8yzm4
User avatar
jorb
Posts: 18715
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: IO Bug

Post by jorb »

May try to look at it. Any idea on how to reproduce it, beyond what is described in the OP?
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
displaced
Posts: 124
Joined: Wed Feb 12, 2014 12:09 am

Re: IO Bug

Post by displaced »

2 Accounts -> down in the mine -> one stands there and the other one is mining. (They have to see each other).
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: IO Bug

Post by MagicManICT »

Almost bet the map "changed" while both clients were trying to update it for the same thing--a tile was removed thus forcing a map update.
Astarisk wrote:
Granger wrote:Running multiple clients is not supported.
When did that become an official stance of the devs?
As far as Granger's remarks... it's not a design feature, so no, not directly supported, but loftar does do what he can so people can if they want. It's not the first time multi-boxing has caused client crashes that have subsequently been fixed.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.

Return to “Bugs”