<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:01:07 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-3409] Single player mode, creative mode, E to select block, select block from grid,  E to return to game,  game freezess, crash log created</title>
                <link>https://bugs.mojang.com/browse/MC-3409</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Single player mode &amp;gt; creative mode &amp;gt; E to select block &amp;gt; select block from grid &amp;gt; E to return to game &amp;gt; game freezes &amp;gt; crash log created.&lt;/p&gt;</description>
                <environment>Windows 7, Java 7, update 7</environment>
        <key id="15427">MC-3409</key>
            <summary>Single player mode, creative mode, E to select block, select block from grid,  E to return to game,  game freezess, crash log created</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="jeb">[Mojang] Jeb (Jens Bergensten)</assignee>
                                    <reporter username="jimcamps">Jim Richane</reporter>
                        <labels>
                    </labels>
                <created>Sun, 18 Nov 2012 15:32:22 +0100</created>
                <updated>Sat, 23 Mar 2013 10:41:39 +0100</updated>
                            <resolved>Mon, 4 Mar 2013 11:06:46 +0100</resolved>
                                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.6</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Snapshot 13w09a</version>
                    <version>Snapshot 13w09b</version>
                                    <fixVersion>Snapshot 13w10a</fixVersion>
                                                        <votes>3</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="48427" author="bugi74" created="Thu, 28 Feb 2013 20:17:12 +0100"  >&lt;p&gt;Yes, that would indeed better fix. Alas, the changes would be all over the place, so not feasible to include the code for a fix here. I&apos;d apply that fix shown above for now, and add a Mojang-internal task to &quot;do things right&quot; with better time.&lt;/p&gt;</comment>
                            <comment id="48424" author="tlul" created="Thu, 28 Feb 2013 20:13:16 +0100"  >&lt;p&gt;Wouldn&apos;t the better fix be to pipe all isDown queries through a decoder method that handles -100, etc as the correct mouse buttons? This would also mean future input methods could be more easily integrated with legacy code. This isn&apos;t a frequently-called method (relatively speaking) so it would add very little overhead.&lt;/p&gt;</comment>
                            <comment id="48409" author="bugi74" created="Thu, 28 Feb 2013 19:54:50 +0100"  >&lt;p&gt;Affects 13w09b.&lt;/p&gt;</comment>
                            <comment id="44412" author="grygrflzr" created="Fri, 8 Feb 2013 01:38:12 +0100"  >&lt;p&gt;Andreas: Don&apos;t spread your personal information over the internet, I removed it from your comment.&lt;/p&gt;</comment>
                            <comment id="44410" author="mattthom2005" created="Fri, 8 Feb 2013 01:27:44 +0100"  >&lt;p&gt;Well, We can&apos;t say you did not spend any time on this...&lt;/p&gt;

&lt;p&gt;Well done. Thanks.&lt;/p&gt;

&lt;p&gt;Andreas&lt;/p&gt;


&lt;p&gt;Regards,&lt;/p&gt;


&lt;p&gt;Andreas Niederegger&lt;/p&gt;</comment>
                            <comment id="44285" author="bugi74" created="Thu, 7 Feb 2013 20:34:25 +0100"  >&lt;p&gt;Reproducible, debugged, and crude fix found (and yet another thing to check for those with the problem).&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Check&lt;/b&gt;&lt;br/&gt;
Ensure that the key configured for &apos;chat&apos; is a keyboard key, not any mouse button.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Background&lt;/b&gt;&lt;br/&gt;
I was able to reproduce this crash (not 100% certainly the same reason, though) on win7 64-bit, java 7, MC 1.4.7. Normally I do not experience any of the described problems, but if I adjust my controls certain way, I can cause that crash (i.e. same stacktrace end).&lt;/p&gt;

&lt;p&gt;The crash report reveals index out of bounds with value -100, and it is aimed at isKeyDown() method. Searching through the bulk of minecraft code revealed only one location that calls the method with anything else than hardcoded positive value: GuiContainerCreative.keyTyped(), which checks if the key bound to chat has been pressed.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Reproducing it&lt;/b&gt;&lt;br/&gt;
If that &apos;chat&apos; key is (accidentally?) bound to mouse buttons (which are handled as key&apos;s with codes -100 etc.), then everything works upto opening inventory in creative... but there the next key press will hit this issue (unless already in the search tab) and the code asks LWJGL if the key with code -100 (for left mouse button for example) is down. LWJGL naturally knows nothing about negative key codes and hasn&apos;t protected itself from such &quot;malicious&quot; queries...&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Fix&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;GuiContainerCreative.keyTyped(char, int)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (selectedTabIndex != CreativeTabs.tabAllSearch.getTabIndex()) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.mc.gameSettings.keyBindChat.keyCode &amp;gt;= 0 &amp;amp;&amp;amp;   &lt;span class=&quot;code-comment&quot;&gt;/* &amp;lt;-- ADDED */&lt;/span&gt;
                    Keyboard.isKeyDown(&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.mc.gameSettings.keyBindChat.keyCode)) {
                ...

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Tested on 1.4.7 and after that change, the inventory can be closed even if the chat is bound in a mouse button.&lt;/p&gt;</comment>
                            <comment id="38398" author="mattthom2005" created="Sat, 19 Jan 2013 23:35:48 +0100"  >&lt;p&gt;Same with us. &lt;br/&gt;
It&apos;s a read/write issue. Once I assigned administrator rights the problem was resolved&lt;/p&gt;

&lt;p&gt;Good luck to all.&lt;/p&gt;</comment>
                            <comment id="38377" author="bljat" created="Sat, 19 Jan 2013 22:24:23 +0100"  >&lt;p&gt;I suggest voting for this issue to get more attention to it.&lt;/p&gt;</comment>
                            <comment id="38376" author="mkeller85" created="Sat, 19 Jan 2013 22:19:50 +0100"  >&lt;p&gt;None of these solutions has worked for me.  How long does it typically take Mojang to issue an official fix for something that is so severly impacting so many end-users? I am new to their world.  Thanks. &lt;/p&gt;</comment>
                            <comment id="33891" author="mattthom2005" created="Mon, 7 Jan 2013 04:34:12 +0100"  >&lt;p&gt;Well done John&lt;br/&gt;
Ok, mental note of re-installing the application once the firewall is removed.&lt;br/&gt;
I did no have to do this but it should go on record...&lt;/p&gt;</comment>
                            <comment id="33885" author="dotsonjc" created="Mon, 7 Jan 2013 03:39:02 +0100"  >&lt;p&gt;I change my firewall rules to allow Minecraft, and changed the program to run as Administrator (even though the only user account on the Win7 box is Adminstrator) to no avail.  I then uninstalled and reinstalled Minecraft and the issue has disappeared.  I am concerned as I did see a comment somewhere about having a 32bit version of Java instead of a 64bit, but can&apos;t find it again and couldn&apos;t do anything about it on my 32bit box anyway.  Thanks to all who have commented here to help give me ideas to remediate.&lt;/p&gt;</comment>
                            <comment id="32578" author="mattthom2005" created="Fri, 4 Jan 2013 05:38:12 +0100"  >&lt;p&gt;Do you have a firewall enabled?&lt;br/&gt;
I had parenting controll enabled, once disabled and with full admin rights it worked for me. &lt;br/&gt;
I also googled this error and had a few links (which I did NOT need to check as the first thing the link asked to enable admin rights)&lt;/p&gt;

&lt;p&gt;Sorry it does not work for you&lt;/p&gt;</comment>
                            <comment id="32556" author="nmcbride7603" created="Fri, 4 Jan 2013 04:14:31 +0100"  >&lt;p&gt;I have logged into the account on 3 different computers and all have this issue. all three have administrator rights to the logged in user. is there any other fix to this issue?&lt;/p&gt;</comment>
                            <comment id="31683" author="mattthom2005" created="Mon, 31 Dec 2012 04:30:12 +0100"  >&lt;p&gt;Yes. But a Mac. OS X. Make sure you are logged on to the operating system (Mac or Pc) with administrator privilege. I think it has to do with permission. It worked for us. It has not crashed once. But please  this might have just been the case for us and yours still crashes. Hope it works for you&lt;/p&gt;</comment>
                            <comment id="31601" author="dotsonjc" created="Sun, 30 Dec 2012 22:22:12 +0100"  >&lt;p&gt;Logged onto pc as a different user?&lt;/p&gt;
</comment>
                            <comment id="31492" author="mattthom2005" created="Sun, 30 Dec 2012 04:43:12 +0100"  >&lt;p&gt;I am not sure if anyone receives this but I tried to use the app under a different user and it does NOT crash. So on my MAC it was a permission issue. Ensure your user account you are logged on is administrator, has full read and write access and no parent control is set up or enabled. &lt;/p&gt;

&lt;p&gt;This worked for me. Hope it works for all of you out there. &lt;/p&gt;

&lt;p&gt;(somehow I don&apos;t think this is the fix though as I woul emagine the guys at minecraft would have tested that one)&lt;/p&gt;</comment>
                            <comment id="31489" author="dotsonjc" created="Sun, 30 Dec 2012 04:16:40 +0100"  >&lt;p&gt;Agree with Georgia, why isn&apos;t there  a fix.  My sons spent some of their Christmas money to get this broken program.  &lt;/p&gt;</comment>
                            <comment id="31069" author="gjlittlebird" created="Thu, 27 Dec 2012 20:42:47 +0100"  >&lt;p&gt;Why is there no fix for this issue? We have the same problem and I see it was first posted in November.&lt;/p&gt;</comment>
                            <comment id="27458" author="kumasasa" created="Sun, 9 Dec 2012 23:02:51 +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: Updating screen events
java.lang.IndexOutOfBoundsException: -100
	at java.nio.DirectByteBuffer.get(Unknown Source)
	at org.lwjgl.input.Keyboard.isKeyDown(Keyboard.java:399)
	at avl.a(SourceFile:266)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="17956">MC-5357</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18023">MC-5419</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18120">MC-5499</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18210">MC-5582</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18238">MC-5605</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18582">MC-5926</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="19240">MC-6566</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="20114">MC-7330</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="20157">MC-7371</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="20680">MC-7864</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21418">MC-8481</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21465">MC-8519</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22413">MC-9003</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23009">MC-9409</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24052">MC-10178</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24065">MC-10190</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24453">MC-10494</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24865">MC-10884</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24868">MC-10887</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25281">MC-11176</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25410">MC-11292</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25413">MC-11295</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25642">MC-11497</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25646">MC-11501</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15433">MC-3414</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="16764">MC-4319</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17301">MC-4766</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17408">MC-4856</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17557">MC-4999</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17854">MC-5274</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13619" name="crash-2012-11-18_09.08.59-client.txt" size="3272" author="jimcamps" created="Sun, 18 Nov 2012 15:32:22 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Dec 2012 17:33:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10302"><![CDATA[Community Consensus]]></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>31.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i01iwf:</customfieldvalue>

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