<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 08:15:52 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>[BDS-16839] Server Memory Usage Explodes when Specific User Joins</title>
                <link>https://bugs.mojang.com/browse/BDS-16839</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h2&gt;

&lt;p&gt;After updating my Bedrock Dedicated Server (BDS) to version 1.18.30, the server&apos;s memory usage increases without bound, eventually consuming all physical memory, then crashes.&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;Details&quot;&gt;&lt;/a&gt;Details&lt;/h2&gt;

&lt;p&gt;When I attempt to join the server,&#160;the server crashes, disconnecting everyone.&lt;/p&gt;

&lt;p&gt;The server idles around ~1 GB of memory usage, but when I join, its memory usage explodes to over 60GB. CPU and disk I/O also increase, but not unreasonably so. &#160;Since the machine has 64GB of physical memory, the server crashes after consuming it all.&lt;/p&gt;

&lt;p&gt;The server crashes after logging that I have connected. This is always the last line before crashing:&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;
[2022-04-21 18:15:14:567 INFO] Player connected: &amp;lt;MY GAMER TAG&amp;gt; &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I have attached a screenshot of the resource usage.&lt;/p&gt;
&lt;h2&gt;&lt;a name=&quot;OtherNotes&quot;&gt;&lt;/a&gt;Other Notes&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;Everything is vanilla. No mods, nothing odd about the world. Just vanilla survival with no more than 4 users logged in.&lt;/li&gt;
	&lt;li&gt;I can start the server and behavior is normal with no users logged in.&lt;/li&gt;
	&lt;li&gt;Immediately after updating to 1.18.30, I was able to log in and play for ~2 hours with no issues.&lt;/li&gt;
	&lt;li&gt;So far, users other than myself can join, and the server behaves normally. I don&apos;t know if this will change as it did for me.&lt;/li&gt;
	&lt;li&gt;Restarting the server has no effect. It comes back up as normal, but as soon as I attempt to join, it crashes.&lt;/li&gt;
	&lt;li&gt;&lt;b&gt;The BDS generates a core dump that I am happy to share - but it&apos;s ~68 GB in size. I&apos;m sure a dev could use it, along with debug symbols and GDB, to figure out what went wrong.&lt;/b&gt;
	&lt;ul&gt;
		&lt;li&gt;&lt;b&gt;EDIT: I was able to compress it down to ~1.5 GB, but that&apos;s still way larger than the maximum size allowed by Jira.&lt;/b&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Server Environment&lt;br/&gt;
CPU: AMD Ryzen 7 3800X 8-Core Processor&lt;br/&gt;
Installed RAM: 64 GB&lt;br/&gt;
OS: Debian 10&lt;br/&gt;
Minecraft Version: Bedrock Dedicated Server 1.18.30.04&lt;br/&gt;
&lt;br/&gt;
Client Environment&lt;br/&gt;
CPU: AMD Ryzen 7 5800X 8-Core Processor, 3.80 GHz&lt;br/&gt;
Installed RAM: 64 GB&lt;br/&gt;
OS: Windows 11 Pro, Version 21H2, OS build 22000.613&lt;br/&gt;
Minecraft Version: Minecraft 1.18.30 (Minecraft for Windows)</environment>
        <key id="499742">BDS-16839</key>
            <summary>Server Memory Usage Explodes when Specific User Joins</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="DoctorKest">DoctorKest</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Apr 2022 01:45:56 +0200</created>
                <updated>Tue, 26 Apr 2022 11:22:44 +0200</updated>
                            <resolved>Sat, 23 Apr 2022 17:53:35 +0200</resolved>
                                    <version>1.18.30</version>
                                                            <votes>2</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="1157901" author="JIRAUSER656151" created="Tue, 26 Apr 2022 11:02:38 +0200"  >&lt;p&gt;Same at my environment, my system was running fine before 1.18.30.04 update. Now it randomly hangs after i try to connect / reconnect to server.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;screen -L -Logfile &quot;_logs/$(date +%Y%m%d%H%M%S).log&quot; -dmS $server_name /bin/bash -c &quot;./bedrock_server&quot;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:18:931 INFO&amp;#93;&lt;/span&gt; Version 1.18.30.04&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:18:931 INFO&amp;#93;&lt;/span&gt; Session ID f978bad5-4cfc-4551-af1d-177169aba431&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:18:932 INFO&amp;#93;&lt;/span&gt; Level Name: #############&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:18:938 INFO&amp;#93;&lt;/span&gt; Game mode: 0 Survival&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:18:938 INFO&amp;#93;&lt;/span&gt; Difficulty: 1 EASY&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:19:806 INFO&amp;#93;&lt;/span&gt; Content logging enabled. Writing log to: ContentLog_&lt;em&gt;Tuesday&lt;/em&gt;&lt;em&gt;2022_April_26&lt;/em&gt;_08_29_19&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:19:806 INFO&amp;#93;&lt;/span&gt; Experiment(s) active: wld_, VE_&lt;em&gt;, ddi&lt;/em&gt;, biom, ucft, gtst, mola, scpt&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:19:806 INFO&amp;#93;&lt;/span&gt; opening worlds/#############/db&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:23:493 INFO&amp;#93;&lt;/span&gt; Server started.&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:23:902 INFO&amp;#93;&lt;/span&gt; IPv4 supported, port: 40306&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:29:23:902 INFO&amp;#93;&lt;/span&gt; IPv6 supported, port: 49943&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:30:03:178 INFO&amp;#93;&lt;/span&gt; Player connected: #####, xuid: ################&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:30:15:991 INFO&amp;#93;&lt;/span&gt; Package: com.mojang.minecraft.dedicatedserver&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Version: 1.18.30.04&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;OS: Linux&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Server start: 2022-04-26 08:29:18 CEST&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Dmp timestamp: 2022-04-26 08:30:15 CEST&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Upload Date: 2022-04-26 08:30:15 CEST&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Session ID: f978bad5-4cfc-4551-af1d-177169aba431&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Commit hash: 49c247f9e920c88ad8f8aa0d338313c739e3d554&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Build id: 9208238&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Crash&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2022-04-26 08:30:15:991 INFO&amp;#93;&lt;/span&gt; &#160;at clone (UnknownFile:?)&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Failed to open curl lib from binary, use libcurl.so instead&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;ContentLog_&lt;em&gt;Tuesday&lt;/em&gt;&lt;em&gt;2022_April_26&lt;/em&gt;_08_29_19 is empty&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I tried to look at CPU / MEM usage and its same here&lt;/p&gt;</comment>
                            <comment id="1156605" author="JIRAUSER716222" created="Sat, 23 Apr 2022 13:52:40 +0200"  >&lt;p&gt;Yep, the main issue seems to be &lt;a href=&quot;https://bugs.mojang.com/browse/MCPE-154278&quot; title=&quot;World corrupted/broken in 1.18.30&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MCPE-154278&quot;&gt;&lt;del&gt;MCPE-154278&lt;/del&gt;&lt;/a&gt;. I&#8217;ve been commenting over there, this one should be marked as a duplicate.&lt;/p&gt;</comment>
                            <comment id="1156589" author="rayth" created="Sat, 23 Apr 2022 13:15:00 +0200"  >&lt;p&gt;We&apos;re encountering this same thing and found it to be related to certain areas in the game loading. Suspected corrupt chunks and you just happen to be logging in to one&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="499549">MCPE-154278</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="500725">MCPE-154808</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="479907" name="Screen Shot 2022-04-21 at 6.16.45 PM.png" size="152661" author="DoctorKest" created="Fri, 22 Apr 2022 01:22:43 +0200"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></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>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i27ogf:</customfieldvalue>

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