mojira.dev

Exopandora

More than one avatar was detected! There might be multiple accounts sharing this same name.

Assigned

No issues.

Reported

MC-154696 Multiple blinking cursors in a gui screen with multiple textfields Duplicate MC-78147 JSON-Texts not functional in tag "Name" of an Item Works As Intended MC-58882 Unable to locate sign at X Y Z Duplicate MC-58881 World not loading - Invisible blocks Fixed MC-57999 Baby Horses disappear after sleeping in bed Incomplete MC-49407 /effect and /enchant still uses ids Fixed MC-48382 Reloading Block Models Duplicate MC-41650 /playsound random.fuse Duplicate MC-36540 World Selection List Duplicate MC-36537 Creative Tab transparency Issue Duplicate MC-32853 Log and Chat sction of the Server.exe / not displayed Duplicate MC-31164 Custom Heads not availabe in Villager trades Works As Intended MC-30801 Enchanted Book with no enchantment Duplicate MC-29273 Strange (shifting) falling behavior on sand Cannot Reproduce MCPE-4310 Breaking blocks threw glass panels Duplicate MCPE-2573 No auto-jump on up-side-down stairs Cannot Reproduce MC-16480 End of Stream Duplicate MC-11615 Hotbar still showing when F1 mode is on Duplicate MC-7562 Redstone-Loop/Dispenser Bug Duplicate MC-5704 Chat overlapping with HUD Duplicate

Comments

I also faced this issue on my server. It is caused by constantly loaded minecarts (in spawn chunks for example).

Technical explanation:

The problem is that movement updates of minecarts are being appended to a list (Entity.movementThisTick) each tick, but they are never processed or cleared. This results in ever-increasing memory usage of minecarts that are loaded for a longer time periods, eventually causing the jvm to run out of memory. The issue was introduced somewhere in the snapshot cycle of 1.21.4 to 1.21.5. Here is some pseudocode explaining the issue (using official mappings):

class Entity {
	private List movementThisTick;
	
	void move() {
		// appends new entries to movementThisTick
	}
	
	void applyEffectsFromBlocks() {
		// clears movementThisTick
	}
	
	void applyEffectsFromBlocks(Vec3, Vec3) {
		// does not clear movementThisTick
	}
}

class AbstractMinecart extends Entity {
	override void move() {
		if (legacy movement) {
			super.move()
			this.applyEffectsFromBlocks()
		} else {
			// experimental movement code
		}
	}

	override void applyEffectsFromBlocks() {
		if (legacy movement) {
			super.applyEffectsFromBlocks(vec, vec)
		} else {
			super.applyEffectsFromBlocks()
		}
	}
}

Destroying or unloading the minecart will release the list for garbage collection. The more minecarts are loaded, the faster the memory will fill up, since the problem is per entity instance.

Suggested fix:

Insert a call to this.removeLatestMovementRecordingBatch() in method applyEffectsFromBlocks()of AbstractMinecart after super.applyEffectsFromBlocks(vec, vec):

class AbstractMinecart extends Entity {
    override void applyEffectsFromBlocks() {
	    if (legacy movement) {
		    super.applyEffectsFromBlocks(vec, vec)
+		    this.removeLatestMovementRecordingBatch()
	    } else {
		    super.applyEffectsFromBlocks()
		}
	}
}

This removes the latest movement update batch that got added by Entity.move(). This should be fine because the updates are not used by the legacy minecart movement code anyway.

I made a simple fabric mod to fix the issue: https://github.com/Exopandora/MinecartMemoryLeakFix

/give YOURNAME minecraft:diamond_sword 1 0 {
display:{
Name: "{text:\"TEST\",color:gold,bold:false,strikethrough:false,underlined:false,italic:false}"
}
}

also tried:

/give YOURNAME minecraft:diamond_sword 1 0 {
display:{
Name: "\"{text:\"TEST\",color:gold,bold:false,strikethrough:false,underlined:false,italic:false}"\"
}
}

and:

/give YOURNAME minecraft:diamond_sword 1 0 {
display:{
Name: "\"{text:\\\"TEST\\\",color:gold,bold:false,strikethrough:false,underlined:false,italic:false}"\"
}
}

oh i forgot the sell tag but when i tested it, it worked and why in the tag tag ? If you give yourswlf a head you dont have to type it.

Yes thats true
I added a health scoreboard too
thanks for the help- Server now works

May has to do with the word and the beacon placed last session

Console:

[INFO] Starting minecraft server version 13w19a
 [INFO] Loading properties
 [INFO] Default game type: SURVIVAL
 [INFO] Generating keypair
 [INFO] Starting Minecraft server on *:25565
 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
 [WARNING] The server will make no attempt to authenticate usernames. Beware.
 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
 [WARNING] To change this, set "online-mode" to "true" in the server.properties file.
 [INFO] Preparing level "world"
 [INFO] Preparing start region for level 0
 [INFO] Preparing spawn area: 96%
 [INFO] Done (1,177s)! For help, type "help" or "?"
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [SEVERE] Reached end of stream
 [INFO] Exopandora[/127.0.0.1:62380] logged in with entity id 305 at (-47.16904940416364, 74.0, -243.90474031344291)
 [INFO] Exopandora lost connection: disconnect.genericReason
 [INFO] Exopandora lost connection: disconnect.genericReason

Launcher:

Launcher 0.8 (Dev) (through bootstrap 2) started on windows...
System.getProperty('os.name') == 'Windows 8'
System.getProperty('os.version') == '6.2'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.7.0_13'
System.getProperty('java.vendor') == 'Oracle Corporation'
Loaded 1 profile(s); selected '(Default)'
Going to log in with legacy stored username & password...
Trying to log in...
Delta time to compare resources: 488 ms 
Download job 'Resources' skipped as there are no files to download
Job 'Resources' finished successfully
Logged in successfully
Getting syncinfo for selected version
Queueing library & version downloads
Download job 'Version & Libraries' started (8 threads, 1 files)
Finished downloading C:\Users\Marcel\AppData\Roaming\.minecraft\versions\13w19a\13w19a.jar for job 'Version & Libraries': Used own copy as it matched etag
Job 'Version & Libraries' finished successfully
Launching game
Unpacking natives to C:\Users\Marcel\AppData\Roaming\.minecraft\versions\13w19a\13w19a-natives-160806205584857
Launching in C:\Users\Marcel\AppData\Roaming\.minecraft
Running: "C:\Program Files\Java\jre7\bin\javaw.exe" -Xmx1G -Djava.library.path=C:\Users\Marcel\AppData\Roaming\.minecraft\versions\13w19a\13w19a-natives-160806205584857 -cp C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.4\jopt-simple-4.4.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\argo\argo\2.25_fixed\argo-2.25_fixed.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\org\bouncycastle\bcprov-jdk15on\1.47\bcprov-jdk15on-1.47.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\14.0\guava-14.0.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\Marcel\AppData\Roaming\.minecraft\versions\13w19a\13w19a.jar net.minecraft.client.main.Main --username Exopandora --session 1579911015587255024 --workDir C:\Users\Marcel\AppData\Roaming\.minecraft
---- YOU CAN CLOSE THIS LAUNCHER IF THE GAME STARTED OK ----
---- YOU CAN CLOSE THIS LAUNCHER IF THE GAME STARTED OK ----
---- YOU CAN CLOSE THIS LAUNCHER IF THE GAME STARTED OK ----
---- (We'll do this automatically later ;D) ----
Client> 265 recipes
Client> 27 achievements
Client> 2013-05-21 14:20:17 [CLIENT] [INFO] Setting user: Exopandora
Client> 2013-05-21 14:20:17 [CLIENT] [INFO] (Session ID is 1579911015587255024)
Client> 2013-05-21 14:20:17 [CLIENT] [INFO] LWJGL Version: 2.9.0
Client> 16843169 is not a valid stat, creating place-holder
Client> 16843168 is not a valid stat, creating place-holder
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-05-21 14:20:20 [CLIENT] [INFO] Found animation info for: textures/blocks/lava_flow.txt
Client> 2013-05-21 14:20:20 [CLIENT] [INFO] Found animation info for: textures/blocks/water_flow.txt
Client> 2013-05-21 14:20:20 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_0.txt
Client> 2013-05-21 14:20:20 [CLIENT] [INFO] Found animation info for: textures/blocks/fire_1.txt
Client> 2013-05-21 14:20:20 [CLIENT] [INFO] Found animation info for: textures/blocks/lava.txt
Client> 2013-05-21 14:20:21 [CLIENT] [INFO] Found animation info for: textures/blocks/portal.txt
Client> 2013-05-21 14:20:21 [CLIENT] [INFO] Found animation info for: textures/blocks/water.txt
Client> 2013-05-21 14:20:21 [CLIENT] [INFO] Found animation info for: textures/items/clock.txt
Client> 2013-05-21 14:20:21 [CLIENT] [INFO] Found animation info for: textures/items/compass.txt
Client> 2013-05-21 14:20:24 [CLIENT] [INFO] Connecting to localhost, 25565
Client> 2013-05-21 14:20:26 [CLIENT] [SEVERE] Reached end of stream

man thats a minecraft machanic - thats purpose

Hey, the Bug I reported isn't the same like that one. You've to wtach the video COMPLETE not the first 10 seconds. The real Bug is that the Dispenser/Dropper is ticking despite the Dispenser/Dropper isn't connected with redstone.

Yes i know but in what other way would you say that to them ?

look at my last bug report...