mojira.dev
MCL-1481

Read/Write problems with old builds in custom dirs

When using non-current builds placed in custom directories, the world files fail to save and load correctly.
Once a world is created, the pause menu does not display the "Saving world" message and exiting the world back to the menu is instantaneous.
Upon re-entering the world list, the newly generated world is not there.
Checking the directories, I discovered that the worlds' folders and files were all present and in order, even at the same time as the client insisted that there was nothing there.
I also discovered that for some reason the worlds existed in TWO places at once. One saves folder, in the version's directory, contains the proper files. The other saves folder, in the ".minecraft" directory, contains only a level.dat, session.lock and empty data folder for each world.
I have no idea what could be causing this.

Related issues

Attachments

Comments

migrated
[media]
kumasasa

Please attach the complete output of the "Development console" of the launcher. CTRL-A, CTRL-C there, CTRL-V in the ticket.
If the launcher closes after game start, please edit your profile and select at "Launcher visibility" "Hide launcher and reopen" or "Keep the launcher open"

migrated
Launcher 1.2.1 (through bootstrap 5) started on osx...
Current time is Aug 18, 2013 12:44:07 PM
System.getProperty('os.name') == 'Mac OS X'
System.getProperty('os.version') == '10.8.4'
System.getProperty('os.arch') == 'x86_64'
System.getProperty('java.version') == '1.6.0_51'
System.getProperty('java.vendor') == 'Apple Inc.'
System.getProperty('sun.arch.data.model') == '64'
Loaded 2 profile(s); selected '1.5.2-Vanilla'
Refreshing auth...
Logging in with access token
Delta time to compare resources: 24387 ms 
Download job 'Resources' skipped as there are no files to download
Job 'Resources' finished successfully
Getting syncinfo for selected version
Queueing library & version downloads
Download job 'Version & Libraries' started (8 threads, 11 files)
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/minecraft/launchwrapper/1.5/launchwrapper-1.5.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/lwjgl/lwjgl/lwjgl-platform/2.9.0/lwjgl-platform-2.9.0-natives-osx.jar for job 'Version & Libraries': Used own copy as it matched etag
Finished downloading /Users/[REDACTED]/Library/Application Support/minecraft/versions/1.5.2/1.5.2.jar for job 'Version & Libraries': Used own copy as it matched etag
Job 'Version & Libraries' finished successfully
Launching game
Looking for old natives to clean up...
Unpacking natives to /Users/[REDACTED]/Library/Application Support/minecraft/versions/1.5.2/1.5.2-natives-1376855138972656000
Launching in /Users/[REDACTED]/Library/Application Support/minecraft/1.5.2
Running /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xdock:icon=/Users/[REDACTED]/Library/Application Support/minecraft/assets/icons/minecraft.icns -Xdock:name=Minecraft -Xmx4G -Djava.library.path=/Users/[REDACTED]/Library/Application Support/minecraft/versions/1.5.2/1.5.2-natives-1376855138972656000 -cp /Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/minecraft/launchwrapper/1.5/launchwrapper-1.5.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0.jar:/Users/[REDACTED]/Library/Application Support/minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0.jar:/Users/[REDACTED]/Library/Application Support/minecraft/versions/1.5.2/1.5.2.jar net.minecraft.launchwrapper.Launch Rancore202 token:633293a081d1418a8dc6419a8900c144:47426a7d193c452ba8bacca63a004911 --gameDir /Users/[REDACTED]/Library/Application Support/minecraft/1.5.2 --assetsDir /Users/[REDACTED]/Library/Application Support/minecraft/assets
Client> Aug 18, 2013 12:45:39 PM net.minecraft.launchwrapper.LogWrapper log
Client> INFO: Using tweak class name net.minecraft.launchwrapper.VanillaTweaker
Client> Aug 18, 2013 12:45:40 PM net.minecraft.launchwrapper.LogWrapper log
Client> INFO: Launching wrapped minecraft
Client> 229 recipes
Client> 27 achievements
Client> 2013-08-18 12:45:42 [CLIENT] [INFO] Setting user: Rancore202
Client> (Session ID is token:633293a081d1418a8dc6419a8900c144:47426a7d193c452ba8bacca63a004911)
Client> Client asked for parameter: server
Client> Turning of ImageIO disk-caching
Client> Loading current icons for window from: /Users/[REDACTED]/Library/Application Support/minecraft/assets/icons/icon_16x16.png and /Users/[REDACTED]/Library/Application Support/minecraft/assets/icons/icon_32x32.png
Client> 2013-08-18 12:45:42 [CLIENT] [INFO] LWJGL Version: 2.9.0
Client> Setting gameDir to: /Users/[REDACTED]/Library/Application Support/minecraft/1.5.2
Client> 
Client> Starting up SoundSystem...
Client> Initializing LWJGL OpenAL
Client>     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
Client> OpenAL initialized.
Client> 
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/lava_flow.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/water_flow.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_0.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_1.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/lava.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/portal.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/blocks/water.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/items/clock.txt
Client> 2013-08-18 12:45:45 [CLIENT] [INFO] Found animation info for: textures/items/compass.txt
Client> 2013-08-18 12:45:46 [CLIENT] [SEVERE] ########## GL ERROR ##########
Client> 2013-08-18 12:45:46 [CLIENT] [SEVERE] @ Post startup
Client> 2013-08-18 12:45:46 [CLIENT] [SEVERE] 1281: Invalid value
Client> 2013-08-18 12:45:47 [CLIENT] [SEVERE] ########## GL ERROR ##########
Client> 2013-08-18 12:45:47 [CLIENT] [SEVERE] @ Pre render
Client> 2013-08-18 12:45:47 [CLIENT] [SEVERE] 1281: Invalid value
Client> 2013-08-18 12:46:36 [SERVER] [INFO] Starting integrated minecraft server version 1.5.2
Client> 2013-08-18 12:46:36 [SERVER] [INFO] Generating keypair
Client> 2013-08-18 12:46:37 [SERVER] [INFO] Preparing start region for level 0
Client> 2013-08-18 12:46:38 [SERVER] [INFO] Preparing spawn area: 6%
Client> 2013-08-18 12:46:39 [SERVER] [INFO] Preparing spawn area: 17%
Client> 2013-08-18 12:46:40 [SERVER] [INFO] Preparing spawn area: 30%
Client> 2013-08-18 12:46:41 [SERVER] [INFO] Preparing spawn area: 39%
Client> 2013-08-18 12:46:42 [SERVER] [INFO] Preparing spawn area: 51%
Client> 2013-08-18 12:46:43 [SERVER] [INFO] Preparing spawn area: 63%
Client> 2013-08-18 12:46:44 [SERVER] [INFO] Preparing spawn area: 78%
Client> 2013-08-18 12:46:45 [SERVER] [INFO] Preparing spawn area: 91%
Client> 2013-08-18 12:46:46 [SERVER] [INFO] Rancore202[/127.0.0.1:0] logged in with entity id 146 at (0.5, 70.0, 254.5)
Client> 2013-08-18 12:46:48 [SERVER] [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
Client> 2013-08-18 12:47:31 [CLIENT] [INFO] [CHAT] Seed: 8197994901698817429
Client> 2013-08-18 12:47:33 [CLIENT] [INFO] [CHAT] Saved screenshot as 2013-08-18_12.47.33.png
Client> 2013-08-18 12:47:48 [SERVER] [INFO] Saving and pausing game...
Client> 2013-08-18 12:47:48 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/Overworld
Client> 2013-08-18 12:47:48 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/Nether
Client> 2013-08-18 12:47:48 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/The End
Client> 2013-08-18 12:47:51 [SERVER] [INFO] Stopping server
Client> 2013-08-18 12:47:51 [SERVER] [INFO] Saving players
Client> 2013-08-18 12:47:52 [SERVER] [INFO] Saving worlds
Client> 2013-08-18 12:47:52 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/Overworld
Client> 2013-08-18 12:47:52 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/Nether
Client> 2013-08-18 12:47:52 [SERVER] [INFO] Saving chunks for level 'CheckOutThisBug!'/The End
Client> 2013-08-18 12:47:56 [CLIENT] [INFO] Stopping!
Client> 
Client> SoundSystem shutting down...
Client>     Author: Paul Lamb, www.paulscode.com
Client> 
Game ended with no troubles detected (exit code 0)
Deleting /Users/[REDACTED]/Library/Application Support/minecraft/versions/1.5.2/1.5.2-natives-1376855138972656000
kumasasa

Don't use directories with exclamations marks in the directory name. Rename your world directory.
This is a well-know Java bug, see http://bugs.sun.com/view_bug.do?bug_id=4523159 (submitted in 2001), but nothing we can do here.

kumasasa

@Mojang: Don't allow ! in world names.

migrated

This issue takes place with all worlds, no matter the name.
It even affected one with the default "New World".
(Sorry for not knowing how to put that huge comment in a code container.)
If you'd like, I can provide a matching example with those conditions.
Here's an image demonstrating the two separate saves that are generated with every world.
https://dl.dropboxusercontent.com/u/14403620/TwoFolders.png
Both save folders were cleared prior to the game being run, and the world was generated on all default, untouched settings and did not appear in the "Singleplayer" menu after quitting.
The world can still be played by "creating" an identical world, though.

kumasasa

Attached image to ticket

kumasasa

Duplicate of MCL-1394

migrated

(Unassigned)

Unconfirmed

Retrieved