mojira.dev
MCPE-26659

/gamerule will crash the game if the first argument contains uppercase letters

The bug

When the player tries to use the /gamerule command where the first argument contains any uppercase letters, the game will crash.

How to reproduce

  1. Start a new world with cheats/commands enabled

  2. Run the command /gamerule doDaylightCycle [true/false] (Note that this will work with any /gamerule command, as long as the first argument contains uppercase letters. It does not specifically need to be doDaylightCycle.)

Attachments

Comments 6

Interesting bug. I play Minecraft (Bedrock Engine) on an Xbox One. I will try doing this to see if it crashes my game on an Xbox One.

I will try to reproduce it 100% of the time. I will contact you within this week or the next. I do find this bug as interesting as you do. Thanks!

So it turns out the bug as originally reported was worse than i thought. The crash actually occurs with ANY gamerule command where the gamerule contains uppercase characters. For example, /gamerule mobGriefing will result in a crash, while /gamerule mobgriefing will not. Should I open a new issue for this?

Thanks for the extra info about this.

I could not trigger a crash by using changing the daylight cycle settings at all - is that actually an issue still, or does the problem lie solely with using uppercase letters in the commands? (Which is easily reproducible)

It's most definitely the latter. As far as I can tell, only /gamerule is affected by the bug.

The issue has been updated with my new findings.

DevEd

(Unassigned)

85607

Confirmed

Windows

Windows 10 Pro

/gamerule, crash

1.2.0.81, 1.2.1.1, 1.2.2.3

1.2.3.6

Retrieved