<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:27:39 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-11439] Memory leak switching texture packs</title>
                <link>https://bugs.mojang.com/browse/MC-11439</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Switching texture packs several times eventually exhausts all available memory and crashes the game.  Specifically, direct memory (as in ByteBuffer.allocateDirect), not the Java heap, fills up.  This happens even without loading up a world.&lt;/p&gt;

&lt;p&gt;To reproduce this more easily, limit the amount of memory available to Java by adding -Xmx512M -Xms512M -XX:MaxDirectMemorySize=512M to the command line.&lt;/p&gt;</description>
                <environment>Java 1.6.0_43, Linux x86_64</environment>
        <key id="25579">MC-11439</key>
            <summary>Memory leak switching texture packs</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="grum">[Mojang] Grum (Erik Broes)</assignee>
                                    <reporter username="kahr">Kahr</reporter>
                        <labels>
                            <label>crash</label>
                            <label>leak</label>
                            <label>memory</label>
                    </labels>
                <created>Sat, 9 Mar 2013 21:54:30 +0100</created>
                <updated>Tue, 2 Jul 2013 23:47:04 +0200</updated>
                            <resolved>Mon, 6 May 2013 18:05:11 +0200</resolved>
                                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Snapshot 13w16a</version>
                                    <fixVersion>Snapshot 13w18c</fixVersion>
                                                        <votes>11</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="65275" author="grum" created="Mon, 6 May 2013 18:05:11 +0200"  >&lt;p&gt;Fixed in 13w18c&lt;/p&gt;</comment>
                            <comment id="63302" author="apocalypsing" created="Thu, 25 Apr 2013 18:45:16 +0200"  >&lt;p&gt;I had some really odd trouble getting a 256x pack to load, when testing the 1.5.2 release. When I clicked on the 256x pack to select it, Minecraft would freeze, as usual, but then after some time, the default texture pack would come up selected instead. I repeatedly clicked the 256x pack again and again until Minecraft crashed due due a lack of memory allocated. I had 2GB out of my system&apos;s 8GB allocated just FYI. I also got an OS warning, where Windows was telling me that my system was low on free RAM (which comes to me as a surprise as I rarely go over &amp;gt;6GB of usage). I looked in Task Manager and saw that the JVM was using (wait for it...) 4GB of my RAM (in total 89% of my RAM was in use). So the memory leak appears to be in 1.5.2 too it seems. I haven&apos;t tested the 13w17a snapshot yet, I hope it&apos;s been fixed there, along with the poor FPS issues, which were only partly fixed in 1.5.2.&lt;/p&gt;

&lt;p&gt;Edit: forgot to mention I was running Minecraft under Java 6 (1.6.0.41).&lt;/p&gt;</comment>
                            <comment id="61972" author="kahr" created="Sat, 20 Apr 2013 18:28:25 +0200"  >&lt;p&gt;Affects 13w16a.&lt;/p&gt;</comment>
                            <comment id="59047" author="tubelius" created="Sat, 6 Apr 2013 16:11:15 +0200"  >&lt;p&gt;I have 64-bit Java 7. The game runs fine with any 64x64 textures. With any 128x128 textures I get constant lag. I always have 30-100 FPS on my high-end PC. I wonder if the lag is related to this issue.&lt;/p&gt;</comment>
                            <comment id="55605" author="kahr" created="Tue, 19 Mar 2013 22:23:06 +0100"  >&lt;p&gt;Affects 1.5.1.&lt;/p&gt;</comment>
                            <comment id="52518" author="shinrathemad" created="Wed, 13 Mar 2013 23:32:23 +0100"  >&lt;p&gt;i see a very large memory leak with 256x texture packs and noted the game will go to 0 FPS and i have 5gigs allocated to minecraft and will will instantly fill all that up and freeze testing with 128x shows that it leaks but it runs around 8 FPS and testing with 64x it runs around 40-60 and using default 16x it runs fine hope this info helps&lt;/p&gt;</comment>
                            <comment id="52512" author="tyteen4a03" created="Wed, 13 Mar 2013 23:22:16 +0100"  >&lt;p&gt;This error can be reproduced by using an HD texture pack with a resolution of 256x256 or higher. Texture packs of resolution 64x64 and 128x128 may potentially produce the same results, but it will happen at a much slower pace.&lt;/p&gt;

&lt;p&gt;A client-side singleplayer version error:&lt;br/&gt;
java.lang.OutOfMemoryError: Direct buffer memory&lt;br/&gt;
	at java.nio.Bits.reserveMemory(Bits.java:632)&lt;br/&gt;
	at java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(DirectByteBuffer.java:97)&lt;br/&gt;
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)&lt;br/&gt;
	at bii.a(SourceFile:395)&lt;br/&gt;
	at bii.&amp;lt;init&amp;gt;(SourceFile:135)&lt;br/&gt;
	at bii.&amp;lt;init&amp;gt;(SourceFile:107)&lt;br/&gt;
	at bik.a(SourceFile:127)&lt;br/&gt;
	at bik.c(SourceFile:100)&lt;br/&gt;
	at bil.b(SourceFile:80)&lt;br/&gt;
	at bfy.d(SourceFile:350)&lt;br/&gt;
	at bfy.c(SourceFile:301)&lt;br/&gt;
	at bjr.a(SourceFile:146)&lt;br/&gt;
	at axn.a(SourceFile:175)&lt;br/&gt;
	at bjq.a(SourceFile:109)&lt;br/&gt;
	at bfk.b(SourceFile:768)&lt;br/&gt;
	at net.minecraft.client.Minecraft.K(SourceFile:595)&lt;br/&gt;
	at net.minecraft.client.Minecraft.run(SourceFile:524)&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:662)&lt;/p&gt;

&lt;p&gt;(Memory at that points hits around 220,000K, approximately 6GB of RAM was being used at that moment)&lt;/p&gt;</comment>
                            <comment id="52506" author="bljat" created="Wed, 13 Mar 2013 23:17:23 +0100"  >&lt;p&gt;Note:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Description: Rendering screen
java.lang.OutOfMemoryError: Direct buffer memory
	at java.nio.Bits.reserveMemory(Bits.java:632)
	at java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(DirectByteBuffer.java:97)
	at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
	at bii.a(SourceFile:395)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="51604" author="kumasasa" created="Sun, 10 Mar 2013 17:47:40 +0100"  >&lt;p&gt;Can reproduce by switching Default -&amp;gt; Whoa -&amp;gt; Default 4 times (Default heap size)&lt;br/&gt;
(Got eye cancer &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; )&lt;/p&gt;

&lt;p&gt;Java 7U17...&lt;/p&gt;

&lt;p&gt;Same crash report as already reported.&lt;br/&gt;
Console output:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/workbench_side.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/workbench_top.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/lava_flow.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/water_flow.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/fire_0.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/fire_1.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/lava.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/portal.txt
2013-03-10 17:44:16 [CLIENT] [INFO] Found animation info &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;: textures/blocks/water.txt
2013-03-10 17:44:26 [SERVER] [INFO] Stopping server
2013-03-10 17:44:26 [SERVER] [INFO] Saving players
u: Rendering screen
        at bfk.b(SourceFile:791)
        at net.minecraft.client.Minecraft.K(SourceFile:595)
        at net.minecraft.client.Minecraft.run(SourceFile:524)
        at java.lang.&lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt;.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Direct buffer memory
        at java.nio.Bits.reserveMemory(Unknown Source)
        at java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(Unknown Source)
        at java.nio.ByteBuffer.allocateDirect(Unknown Source)
        at bii.a(SourceFile:395)
        at bii.&amp;lt;init&amp;gt;(SourceFile:135)
        at bii.&amp;lt;init&amp;gt;(SourceFile:107)
        at bik.a(SourceFile:127)
        at bik.c(SourceFile:94)
        at bil.b(SourceFile:80)
        at bfy.d(SourceFile:351)
        at bfy.c(SourceFile:301)
        at bjr.a(SourceFile:146)
        at axn.a(SourceFile:175)
        at bjq.a(SourceFile:109)
        at bfk.b(SourceFile:768)
        ... 3 more
2013-03-10 17:44:26 [SERVER] [INFO] Saving worlds
2013-03-10 17:44:26 [SERVER] [INFO] Saving chunks &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; level &lt;span class=&quot;code-quote&quot;&gt;&apos;Test-Welt&apos;&lt;/span&gt;/Overworld
2013-03-10 17:44:26 [SERVER] [INFO] Saving chunks &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; level &lt;span class=&quot;code-quote&quot;&gt;&apos;Test-Welt&apos;&lt;/span&gt;/Nether
2013-03-10 17:44:26 [SERVER] [INFO] Saving chunks &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; level &lt;span class=&quot;code-quote&quot;&gt;&apos;Test-Welt&apos;&lt;/span&gt;/The End
2013-03-10 17:44:36 [CLIENT] [INFO] Stopping!
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="51595" author="kahr" created="Sun, 10 Mar 2013 16:36:40 +0100"  >&lt;p&gt;I first saw the crash with Misa&apos;s 1.5 texture pack, but since that&apos;s unreleased I made my own pack to illustrate the problem.  Attached whoa15.zip which upscales the default textures to 64x and adds a 30-frame animation to each.  Here&apos;s another crash report with the default heap size (1772MB in my case).  Switching between default and whoa15.zip 4-5 times was enough to exhaust direct memory and crash.&lt;/p&gt;</comment>
                            <comment id="51546" author="kumasasa" created="Sun, 10 Mar 2013 10:38:48 +0100"  >&lt;p&gt;Cannot reproduce.&lt;br/&gt;
With the default 1GB heap I can switch 20 times between texture packs.&lt;/p&gt;

&lt;p&gt;Maybe an upgrade to Java 1.7 will solve your issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="26003">MC-11715</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="40017">MC-21075</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="24044" name="crash-2013-03-09_15.40.54-client.txt" size="2780" author="kahr" created="Sat, 9 Mar 2013 21:54:30 +0100"/>
                            <attachment id="24106" name="crash-2013-03-10_11.21.04-client.txt" size="2704" author="kahr" created="Sun, 10 Mar 2013 16:36:40 +0100"/>
                            <attachment id="24105" name="whoa15.zip" size="1711502" author="kahr" created="Sun, 10 Mar 2013 16:36:40 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 10 Mar 2013 17:47:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i014vj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>