<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:56:55 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-2158] Roughly every 24 hours, Minecraft server enters a state where players cannot connect.</title>
                <link>https://bugs.mojang.com/browse/MC-2158</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Our Minecraft server is running 24/7. Since 1.4pre and persisting into 1.4.2 official, approximately every 24 hours the server starts refusing to allow clients to join. When this happens, everyone currently online gets kicked off with an error message of &quot;Internal exception: Java.io.IOException: Bad packet ID &lt;a href=&quot;##&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;#&lt;/a&gt;.&quot; The ## can be any number between 1 and 255, and appears to change randomly. (It probably has something to do with something, but I don&apos;t know what.)&lt;/p&gt;

&lt;p&gt;When this happens, the server log shows &quot;Info: &lt;span class=&quot;error&quot;&gt;&amp;#91;playername&amp;#93;&lt;/span&gt; lost connection: disconnect.endOfStream.&quot;&lt;/p&gt;

&lt;p&gt;Anyone trying to log back on gets the same error message, and the server log displays the same message immediately after they log on. Users can&apos;t even stay on long enough to see the world load; They are apparently kicked before that information is even transmitted to the client.&lt;/p&gt;

&lt;p&gt;If the server is restarted by issuing a /stop command and then running it again, the problem goes away for another 24 hours, but crops back up pretty much exactly the same time the next day. The computer does not have to be rebooted for things to work again; Only the Minecraft server stopped and restarted. I have tried rebooting the whole computer between restarts, and that does not solve the issue or delay its appearance. Once the server is restarted, players can log back on immediately without even having to restart their Minecraft clients.&lt;/p&gt;

&lt;p&gt;This problem APPEARS to be related to the recent fix of the &quot;massive memory leak&quot; in the server .jar. We&apos;ve been running the pre-release snapshots for a while, and our server used to consume more and more memory over the course of about a week until it became very laggy and unresponsive (though users could still connect) which could be cured by a restart. That memory allocation was shown both in Minecraft Server&apos;s own memory graph and System Monitor. Now, since approximately 1.4pre, the server uses very little memory usage over a prolonged period (it scales with the number of users logged in, as you would expect, and diminishes to near-zero with no one logged on, which it did not do prior to the update) but instead presents this disconnection issue. Before this mystery bug manifests, the server behaves normally and players can log on and play just fine. We have about six very active players, the server is whitelisted so only approved individuals may join, and the maximum player cap is 8.&lt;/p&gt;

&lt;p&gt;We don&apos;t have any mods installed; Everything is vanilla Minecraft. I have not yet tried installing 1.4.3pre.&lt;/p&gt;</description>
                <environment>Server: Ubuntu 11.10 64 bit (GUI), Intel Core 2 Duo 1.8 ghz dual core, 2 GB memory. Official Sun Java JRE 6, 64 bit.&lt;br/&gt;
&lt;br/&gt;
Clients: Various Windows XP and 7, and Ubuntu. (No clients run on the same computer as the server.)</environment>
        <key id="13558">MC-2158</key>
            <summary>Roughly every 24 hours, Minecraft server enters a state where players cannot connect.</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="-1">Unassigned</assignee>
                                    <reporter username="zero_dgz">Zero DgZ</reporter>
                        <labels>
                            <label>badpacket</label>
                            <label>crash</label>
                            <label>endofstream</label>
                            <label>multiplayer</label>
                    </labels>
                <created>Sun, 4 Nov 2012 00:23:44 +0100</created>
                <updated>Wed, 6 May 2015 13:46:46 +0200</updated>
                            <resolved>Thu, 29 Nov 2012 00:44:13 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                                    <fixVersion>Minecraft 1.4.5</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="25603" author="bljat" created="Thu, 29 Nov 2012 00:44:13 +0100"  >&lt;p&gt;Thanks for the info.&lt;/p&gt;</comment>
                            <comment id="25602" author="zero_dgz" created="Thu, 29 Nov 2012 00:43:02 +0100"  >&lt;p&gt;Evidently this bug has been licked as of 1.4.5. After updating we don&apos;t experience the problem anymore. It may yet have been related to, or the same as, &lt;a href=&quot;https://bugs.mojang.com/browse/MC-984&quot; title=&quot;Internal exception: java.io.IOException: Bad packet id 249&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-984&quot;&gt;&lt;del&gt;MC-984&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="25445" author="bljat" created="Wed, 28 Nov 2012 01:52:47 +0100"  >&lt;p&gt;Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="18605" author="zero_dgz" created="Tue, 6 Nov 2012 01:14:17 +0100"  >&lt;p&gt;I&apos;ve read through &lt;a href=&quot;https://bugs.mojang.com/browse/MC-984&quot; title=&quot;Internal exception: java.io.IOException: Bad packet id 249&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-984&quot;&gt;&lt;del&gt;MC-984&lt;/del&gt;&lt;/a&gt; and all of its attached comments. It seems similar to the bug we are experiencing, and may yet be the same bug. It seems to share some commonalities, but without more information I can&apos;t be sure.&lt;/p&gt;

&lt;p&gt;I just whacked our entire world map with MCEdit, and there are NO beacon blocks in use anywhere. Ours is a survival-only server. Nobody has creative mode, and to my knowledge no one has even summoned let alone killed a Wither to get a Wither Star yet.&lt;/p&gt;

&lt;p&gt;We DO, however, have a lot of maps around and also quite a few in item frames. I noticed one commenter in &lt;a href=&quot;https://bugs.mojang.com/browse/MC-984&quot; title=&quot;Internal exception: java.io.IOException: Bad packet id 249&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-984&quot;&gt;&lt;del&gt;MC-984&lt;/del&gt;&lt;/a&gt; mentioned having a lot of framed maps, so possibly the situation is related to THAT, though I cannot be sure. I will try removing all the item framed maps I can find and see if the problem persists, or takes longer to crop up with fewer maps.&lt;/p&gt;</comment>
                            <comment id="17991" author="zero_dgz" created="Sun, 4 Nov 2012 14:19:52 +0100"  >&lt;p&gt;Just tried it. We didn&apos;t have any beacons in use in the first place, either. This issue does not appear to be related to beacons.&lt;/p&gt;</comment>
                            <comment id="17854" author="chalmes" created="Sun, 4 Nov 2012 01:44:41 +0100"  >&lt;p&gt;Possible duplicate of &lt;a href=&quot;https://bugs.mojang.com/browse/MC-984&quot; title=&quot;Internal exception: java.io.IOException: Bad packet id 249&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-984&quot;&gt;&lt;del&gt;MC-984&lt;/del&gt;&lt;/a&gt;.  Try disabling beacons.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12056" name="Minecraft Bad Packet.png" size="41514" author="zero_dgz" created="Sun, 4 Nov 2012 00:23:45 +0100"/>
                            <attachment id="12057" name="Minecraft endOfStream.png" size="189600" author="zero_dgz" created="Sun, 4 Nov 2012 00:23:46 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 6 Nov 2012 22:11:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <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_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Survival]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0mpxb:</customfieldvalue>

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