File I/O Errors During Startup in Windows

Do you have any issues? Don't hesitate to tell us about it.
User avatar
erikkabo
Settler
Reactions:
Posts: 4
Joined: 09 Feb 2021, 03:18

File I/O Errors During Startup in Windows

#1

Post by erikkabo »

Hello,

I recently bought a copy of TheoTown via Steam, and am trying to play it on my Windows 10 PC. However, when I start the game, it just hangs at the splash screen, with the progress bar barely started. If I alt+tab, I get the region navigation screen, but no mouse or keyboard response. The game exits when I press alt+F4. I uninstalled, installed the latest version of Java, and reinstalled, and that did not help. I also tried running the executable as administrator, and that didn't change the behavior. Below is the text from the log file, with two runs; the first is the initial start, the second is a subsequent startup. Note that, when I navigate to the folder, the files listed are present in the proper locations. I do not get a crash.txt file.

Any suggestions are appreciated!

Code: Select all

[1.9.62p] 2021/02/08 20:11:13: m
[1.9.62p] 2021/02/08 20:11:13: translation en_US
[1.9.62p] 2021/02/08 20:11:14: 
java.io.FileNotFoundException: C:\Users\erikk\TheoTown\managed plugins\.core.mpf (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Users\erikk\TheoTown\managed plugins\.core.mpf (The system cannot find the path specified)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at info.flowersoft.theotown.store.ManagedPluginFile.<init>(ManagedPluginFile.java:51)
	at info.flowersoft.theotown.store.ManagedPluginsController.loadState(ManagedPluginsController.java:532)
	at info.flowersoft.theotown.store.ManagedPluginsController.init(ManagedPluginsController.java:130)
	at info.flowersoft.theotown.MyGdxGame.create(MyGdxGame.java:91)
	at info.flowersoft.theotown.desktop.DesktopLauncher$2.create(DesktopLauncher.java:81)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.initializeListener(Lwjgl3Window.java:433)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:381)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:141)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:117)
	at info.flowersoft.theotown.desktop.DesktopLauncher.main(DesktopLauncher.java:77)

[1.9.62p] 2021/02/08 20:11:14: 
java.io.FileNotFoundException: C:\Users\erikk\TheoTown\managed plugins\DSA_Game_Integration_7rlLRlLX9qgcYZ0c.mpf (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Users\erikk\TheoTown\managed plugins\DSA_Game_Integration_7rlLRlLX9qgcYZ0c.mpf (The system cannot find the path specified)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at info.flowersoft.theotown.store.ManagedPluginFile.<init>(ManagedPluginFile.java:51)
	at info.flowersoft.theotown.store.ManagedPluginsController.loadState(ManagedPluginsController.java:532)
	at info.flowersoft.theotown.store.ManagedPluginsController.init(ManagedPluginsController.java:130)
	at info.flowersoft.theotown.MyGdxGame.create(MyGdxGame.java:91)
	at info.flowersoft.theotown.desktop.DesktopLauncher$2.create(DesktopLauncher.java:81)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.initializeListener(Lwjgl3Window.java:433)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:381)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:141)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:117)
	at info.flowersoft.theotown.desktop.DesktopLauncher.main(DesktopLauncher.java:77)

[1.9.62p] 2021/02/08 20:11:14: create() finish
[1.9.62p] 2021/02/08 20:11:14: create() end
[1.9.62p] 2021/02/08 20:11:17: Setup fullscreen 1920x1080
[1.9.62p] 2021/02/08 20:11:17: 
com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: C:\Users\erikk\TheoTown\key_mapping.json (Absolute)
com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: C:\Users\erikk\TheoTown\key_mapping.json (Absolute)
	at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:150)
	at com.badlogic.gdx.files.FileHandle.reader(FileHandle.java:169)
	at info.flowersoft.theotown.util.Files.readTextFile(Files.java:56)
	at info.flowersoft.theotown.util.Files.readTextFile(Files.java:72)
	at info.flowersoft.theotown.input.KeyActionManager.load(KeyActionManager.java:40)
	at info.flowersoft.theotown.stages.LoadingStage$4.run(LoadingStage.java:167)
	at info.flowersoft.theotown.stages.LoadingStage.update(LoadingStage.java:1591)
	at io.blueflower.stapel2d.gamestack.GameStack.update(GameStack.java:147)
	at info.flowersoft.theotown.MyGdxGame.render(MyGdxGame.java:154)
	at info.flowersoft.theotown.desktop.DesktopLauncher$2.render(DesktopLauncher.java:101)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:403)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:141)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:117)
	at info.flowersoft.theotown.desktop.DesktopLauncher.main(DesktopLauncher.java:77)
Caused by: java.io.FileNotFoundException: C:\Users\erikk\TheoTown\key_mapping.json (The system cannot find the file specified)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:146)
	... 13 more
	
[1.9.62p] 2021/02/09 14:51:00: Startup
[1.9.62p] 2021/02/09 14:51:00: Configure lwjgl3 1280x720
[1.9.62p] 2021/02/09 14:51:00: Instantiate lwjgl3
[1.9.62p] 2021/02/09 14:51:01: create() cold start
[1.9.62p] 2021/02/09 14:51:02: m
[1.9.62p] 2021/02/09 14:51:02: translation en_US
[1.9.62p] 2021/02/09 14:51:26: Startup
[1.9.62p] 2021/02/09 14:51:26: Configure lwjgl3 1280x720
[1.9.62p] 2021/02/09 14:51:26: Instantiate lwjgl3
[1.9.62p] 2021/02/09 14:51:28: create() cold start
[1.9.62p] 2021/02/09 14:51:29: m
[1.9.62p] 2021/02/09 14:51:29: translation en_US
[1.9.62p] 2021/02/09 14:51:29: create() finish
[1.9.62p] 2021/02/09 14:51:29: create() end
[1.9.62p] 2021/02/09 14:51:31: Setup fullscreen 1920x1080
	
Thanks!

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: File I/O Errors During Startup in Windows

#2

Post by Wekabu city »

Off Topic
Java versions only matters if you are starting the application via CLI (which is probably not what you are doing). Since I highly assume that you start it via Steam, your Java install doesn't matter as it uses Theotown's builtin JRE. Needless to say, I know that libGDX breaks with many OpenJDK flavours on Linux (not what you are seeing here). I also don't recommend latest Oracle Java 9+, use a OpenJDK JRE instead in this case (AdoptopenJDK is known to work). I would also stay of off Java 15 (latest Java) unless you absolutely must and use Java 8 or Java 11 (latests LTS) instead and wait until Java 17 (the next LTS version) releases later this year and a few years after that so lib devs can make sure it's compatible.
To your actual error, I don't think it's possible for you to fix that, but I would still try to use Steam's "verify integrity of game files" functionality just to be sure that the files really exist.

User avatar
erikkabo
Settler
Reactions:
Posts: 4
Joined: 09 Feb 2021, 03:18

Re: File I/O Errors During Startup in Windows

#3

Post by erikkabo »

Hello Wekabu,

Thanks for the detailed response!

You are correct, I was running the app from the steam client, which was using the included JRE. I tried using steam to verify integrity of the local files, but it doesn't check the files in the user directory; it said the installation was valid when I had deleted that folder.

I tried opening a command line as administrator and running the exe from there, and it used the latest version of Java that I had installed. This did not change the behavior. Then, I tried the x64 and x86 versions of AdoptOpenJDK, and they did not change the behavior, either. Each time I ran, I would delete the TheoTown folder in my user folder to make sure I was getting a fresh start.

Any other ideas?

Thanks!

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: File I/O Errors During Startup in Windows

#4

Post by Wekabu city »

erikkabo wrote:
10 Feb 2021, 17:08
Hello Wekabu,

Thanks for the detailed response!

You are correct, I was running the app from the steam client, which was using the included JRE. I tried using steam to verify integrity of the local files, but it doesn't check the files in the user directory; it said the installation was valid when I had deleted that folder.

I tried opening a command line as administrator and running the exe from there, and it used the latest version of Java that I had installed. This did not change the behavior. Then, I tried the x64 and x86 versions of AdoptOpenJDK, and they did not change the behavior, either. Each time I ran, I would delete the TheoTown folder in my user folder to make sure I was getting a fresh start.

Any other ideas?

Thanks!
Then this is an issue with theotown (or some random thing interfering with the application), which makes it outside of our reach to fix. It's strange though as usually that should've been intercepted pretty early in the testing cycle. Either way, we can now conclude that the JRE is not at fault.
I would wait until a dev responds to this topic

User avatar
erikkabo
Settler
Reactions:
Posts: 4
Joined: 09 Feb 2021, 03:18

Re: File I/O Errors During Startup in Windows

#5

Post by erikkabo »

Hello everyone,

I tried playing TheoTown on another computer in the house, and it worked fine. I was trying to gather hardware data about this computer to share, and, on a whim, unplugged my laptop from my USB docking station. TheoTown runs just fine on this computer when it is not plugged into the dock. So, it is some incompatibility with my dock or monitors. Here is the configuration:

Dock: Dell D3100 Docking Station, plugged in via USB-C
Monitors: 2x Dell P2419H, both connected to docking station via HDMI

Other Steam games play just fine in this configuration.

Any ideas? Anything else I can check or test?

Thanks!

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: File I/O Errors During Startup in Windows

#6

Post by Lobby »

Hi,

I am sorry to hear that you have this issue. The missing file exceptions in the log file are probably unrelated to your issue and should not impact the game at all. What you may want to try out is to check whether it could be related to fullscreen mode. Open the TheoTown folder and to edit the .settings.json file in it. Search for a line stating

Code: Select all

"fullscreen": true,
and replace it by

Code: Select all

"fullscreen": false,

User avatar
erikkabo
Settler
Reactions:
Posts: 4
Joined: 09 Feb 2021, 03:18

Re: File I/O Errors During Startup in Windows

#7

Post by erikkabo »

That resolved the problem! Thanks!

Post Reply Previous topicNext topic

Return to “Problems and Errors (bugs)”