[MC-658] Minecraft crashes whenever i press ''esc'', ''enter'', ''e'' running osx Created: 26/Oct/12  Updated: 11/Jun/24  Resolved: 02/Mar/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: jaime deku Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: OSX, crash
Environment:

im running OSX 10.7.5 i'v updated to the latest version of java.


Attachments: Text File crash-2012-10-25_14.28.01-client.txt     Text File crash-2012-10-26_07.33.16-client.txt     Text File crash-2012-11-05_09.14.54-client.txt     Text File crash-2013-02-23_20.54.12-client.txt     Text File crash-2013-02-23_20.56.48-client.txt    
Issue Links:
Duplicate
is duplicated by MC-5696 Opening menus causes minecraft to cra... Resolved
is duplicated by MC-6690 Minecraft crashes when hitting E Resolved
is duplicated by MC-9119 Opening inventory crash (mac) Resolved
is duplicated by MC-9630 crash upon hitting "escape" key - OSX Resolved
is duplicated by MC-9637 Crash on releasing mouse using 2 disp... Resolved
is duplicated by MC-10200 Games halts when pressing 'E' key, Nu... Resolved
is duplicated by MC-10616 Crash the game if it is open on a sec... Resolved
is duplicated by MC-10781 It crash when I press E or open a chest Resolved
is duplicated by MC-10805 Crash on Macbook PROr 15 inch. When u... Resolved
is duplicated by MC-11284 Whenever i load up the game, it crash... Resolved
is duplicated by MC-11553 Minecraft Crash on Smaller Screen Resolved
is duplicated by MC-11868 Inventory Crash mac (with report) Resolved
is duplicated by MC-12233 Crash while releasing mouse on second... Resolved
is duplicated by MC-12300 Keep crashing on servers Resolved
is duplicated by MC-12724 1.5.1 Crashing a Few Moments After Lo... Resolved
is duplicated by MC-13166 Complete crash upon opening inventory... Resolved
is duplicated by MC-13244 Minecraft Mac keeps crashing on 1.5.1 Resolved
is duplicated by MC-13302 Random Chrash when opening an GUI Resolved
is duplicated by MC-13457 Crash upon opening Inventory. Resolved
is duplicated by MC-13473 When ever I go on a multiplayer serve... Resolved
is duplicated by MC-14385 Pressing E causes crash Resolved
is duplicated by MC-14558 NullPointerException on mouse grab Resolved
is duplicated by MC-14573 Whenever I attempt to open inventory ... Resolved
is duplicated by MC-14759 Minecraft crashes on opening chest, i... Resolved
is duplicated by MC-14936 Minecraft crashing upon opening inven... Resolved
is duplicated by MC-15279 Attempting to open inventory/chat cau... Resolved
is duplicated by MC-17278 Null Pointer thrown from getting the ... Resolved
is duplicated by MC-17292 Minecraft server "Electracy.net" cras... Resolved
is duplicated by MC-17509 Every time I try to use the escape ke... Resolved
is duplicated by MC-17530 Random crash while running on persona... Resolved
is duplicated by MC-17580 Minecraft crashes when hitting comman... Resolved
is duplicated by MC-83 Crash when paused or opened inventory Resolved
is duplicated by MC-615 Inventory, Chat and other GUIs crash ... Resolved
is duplicated by MC-2038 Minecraft crashes when exiting full s... Resolved
is duplicated by MC-2589 MC Crashes when i try to use text, on... Resolved
is duplicated by MC-2629 Crash when opening inventory-like win... Resolved
is duplicated by MC-3228 Crashed upon opening inventory. Resolved
is duplicated by MC-3757 no block-palette loads, crashes when ... Resolved
is duplicated by MC-4176 Crash playing multiplayer Resolved
is duplicated by MC-5049 Crash when opening chest Resolved
is duplicated by MC-5219 Minecraft Crashes when opening chat Resolved
CHK:
Confirmation Status: Community Consensus

 Description   

my game crashes whenever i press any of the following keys
''ESC''
''INVENTORY''
''CHAT''
this has happened almost any time that i have tried to push one of these keys. i found that after binding them to other keys it still had the same affect.keep in mind that this has not happened every single time i have played, i have had some, but few successful attempts to play. i have played in every game mode, and on multiplayer/singleplayer. this began somtime in 1.3.2, and has not stopped science. i have no idea what is causing this, if you can please help, i would like to play again soon.



 Comments   
Comment by pinkpuffin8 [ 11/Jun/24 ]

I think that the "E Crash" tends to happen with mods.

Comment by [Mojang] Grum (Erik Broes) [ 22/Apr/13 ]

There are indeed known issues with lwjgl and multiple displays, the workaround above should work.

LWJGL is working hard on version3 and it should have far better multi-monitor solutions.

Also the latest snapshot is using a different way of making the window and listening to input events, it would be really nice if someone could confirm this gets rid of the problem.

Comment by mark grandi [ 22/Mar/13 ]

Like richard wooding just said, This seems to be an issue that minecraft is not catching the null returned by getCursorPosition.

It seems to be caused by:

Starting minecraft
Moving the minecraft window to an external screen
Login
join a server
while it is joining, move your mouse to the main screen
minecraft should go to the main menu automatically, go back to minecraft on the second screen
hit esc twice, to exit menu then start it up
crash

to make it so it DOESN'T crash, you can

just start minecraft on the main screen
log in
join a server
wait till it joins
then move minecraft to the second screen. It should not crash.

Comment by Richard Wooding [ 23/Feb/13 ]

On a hunch I relocated the menu bar in System Preferences > Displays > Arrangement on Mac OS X

A i have notebook monitor, and an external monitor.

Previously (when the bug occured) the Mac OS X menu bar was on notebook monitor.

I relocated the menu bar to the external display where the Minecraft game was.

Now hitting the E key no longer causes the crash.

Comment by Richard Wooding [ 23/Feb/13 ]

I seem to have this issue on 1.4.7

MacOS X 10.8.2
Java 1.6.0_41
OpenGL Vendor: ATI Technologies Inc.
OpenGL Version: 2.1 ATI-1.0.29

I have a two monitor setup.

Comment by Gregory S [ 09/Nov/12 ]

Same issue here Tiago. I posted to Kappa on lwjgl forum, hopefully someone can find a fix to this so I can play MC on my mac again.

Comment by Tiago Rodrigues [ 09/Nov/12 ]

Hi guys,

I tried the suggested fix and it does work, but it seems to now cause weird issues with the mouse.

I only tried this in windowed mode, but it seems like the window sometimes loses focus of the mouse and I'm actually clicking other windows instead of the Minecraft window. Usually clicking outside of it and back again fixes it, but sometimes the mouse buttons stop performing any actions after this.

Comment by Jaime [ 08/Nov/12 ]

I'll let them know that the patch they posted works. Perhaps whatever they're doing to fix this mouse release bug can be incorporated into the next release? If I'm using standard, unmodified MC, I have this issue.

Comment by [Mojang] Grum (Erik Broes) [ 08/Nov/12 ]

This is a bug that should be reported with http://lwjgl.org/forum , we cannot change it.

Comment by Jaime [ 08/Nov/12 ]

Still having this problem in OS X (Lion) & Windows. I should mention that that download bug fix did work, however.

Latest crash report:

      Minecraft has crashed!      
      ----------------------      

Minecraft has stopped running because it encountered a problem; Unexpected error
This error has been saved to /Users/Jaime/Library/Application Support/minecraft/crash-reports/crash-2012-11-08_10.30.07-client.txt for your convenience. Please include a copy of this file if you report this crash to anyone.



--- BEGIN ERROR REPORT d9862338 --------
Generated 11/8/12 10:30 AM

- Minecraft Version: 1.4.2
- Operating System: Mac OS X (x86_64) version 10.7.4
- Java Version: 1.6.0_37, Apple Inc.
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
- Memory: 440418408 bytes (420 MB) / 581435392 bytes (554 MB) up to 1060372480 bytes (1011 MB)
- JVM Flags: 3 total; -Xbootclasspath/a:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar -Xms512M -Xmx1024M
- AABB Pool Size: 15635 (875560 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used
- LWJGL: 2.4.2
- OpenGL: NVIDIA GeForce GTX 460 v2 OpenGL Engine GL version 2.1 NVIDIA-7.18.18, NVIDIA Corporation
- Is Modded: Probably not
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: 1588 (88928 bytes; 0 MB) allocated, 14 (784 bytes; 0 MB) used
- World MpServer Entities: 10 total; [axc['uncappedmarker'/231, l='MpServer', x=185.50, y=65.62, z=31.50], og['Bat'/265, l='MpServer', x=143.84, y=15.19, z=1.12], og['Bat'/295, l='MpServer', x=181.66, y=31.43, z=23.61], og['Bat'/350, l='MpServer', x=152.75, y=38.15, z=2.28], og['Bat'/326, l='MpServer', x=112.30, y=22.00, z=27.32], og['Bat'/270, l='MpServer', x=114.87, y=25.92, z=40.39], pf['Falling Block'/719, l='MpServer', x=235.50, y=38.09, z=159.50], pf['Falling Block'/720, l='MpServer', x=236.50, y=38.09, z=159.50], on['Pig'/37, l='MpServer', x=202.28, y=66.00, z=47.81], pf['Falling Block'/762, l='MpServer', x=240.50, y=31.42, z=44.50]]
- World MpServer Players: 1 total; [axc['uncappedmarker'/231, l='MpServer', x=185.50, y=65.62, z=31.50]]
- World MpServer Chunk Stats: MultiplayerChunkCache: 300
- Forced Entities: 10 total; [og['Bat'/350, l='MpServer', x=152.75, y=38.15, z=2.28], axc['uncappedmarker'/231, l='MpServer', x=185.50, y=65.62, z=31.50], pf['Falling Block'/762, l='MpServer', x=240.50, y=31.42, z=44.50], og['Bat'/326, l='MpServer', x=112.30, y=22.00, z=27.32], og['Bat'/265, l='MpServer', x=143.84, y=15.19, z=1.12], og['Bat'/270, l='MpServer', x=114.87, y=25.92, z=40.39], pf['Falling Block'/719, l='MpServer', x=235.50, y=38.09, z=159.50], on['Pig'/37, l='MpServer', x=202.28, y=66.00, z=47.81], og['Bat'/295, l='MpServer', x=181.66, y=31.43, z=23.61], pf['Falling Block'/720, l='MpServer', x=236.50, y=38.09, z=159.50]]
- Retry Entities: 0 total; []

java.lang.NullPointerException
	at org.lwjgl.opengl.AWTUtil.getPointerLocation(AWTUtil.java:120)
	at org.lwjgl.opengl.AWTUtil.getCursorPosition(AWTUtil.java:138)
	at org.lwjgl.opengl.MouseEventQueue.resetCursorToCenter(MouseEventQueue.java:115)
	at org.lwjgl.opengl.MacOSXMouseEventQueue.resetCursorToCenter(MacOSXMouseEventQueue.java:71)
	at org.lwjgl.opengl.MouseEventQueue.setGrabbed(MouseEventQueue.java:101)
	at org.lwjgl.opengl.MacOSXMouseEventQueue.setGrabbed(MacOSXMouseEventQueue.java:57)
	at org.lwjgl.opengl.MacOSXDisplay.grabMouse(MacOSXDisplay.java:347)
	at org.lwjgl.input.Mouse.setGrabbed(Mouse.java:636)
	at arb.b(SourceFile:24)
	at net.minecraft.client.Minecraft.i(SourceFile:910)
	at net.minecraft.client.Minecraft.a(SourceFile:452)
	at net.minecraft.client.Minecraft.l(SourceFile:1225)
	at net.minecraft.client.Minecraft.J(SourceFile:582)
	at net.minecraft.client.Minecraft.run(SourceFile:534)
	at java.lang.Thread.run(Thread.java:680)
--- END ERROR REPORT a8a46cb3 ----------
Comment by Jaime [ 06/Nov/12 ]

Hi there,
I'm running a Hackintosh, the standard Apple Wired Keyboard and a classic Microsoft Intellimouse.
I should mention that this is happening on my PC as well (I can provice the crash reports as well if you like), which is a very plain home-built PC with no hacking or crazy modifications.
I'll try those files later this afternoon...thanks!

Comment by [Mojang] Grum (Erik Broes) [ 05/Nov/12 ]

It seems you are having problems with releasing your cursor when opening a gui-window/screen. I however have no idea why it works properly when you are in the main menu.

Could you give some more information about the system you are on? Are you using some sort of non-standard mouse orso? I'm also running on a mac and I can't really replicate it

There are some extremely alpha osx-bugfixes in the work for lwjgl; see: http://lwjgl.org/forum/index.php?topic=4711.msg25685#msg25685

Maybe give those a shot? You should unpack them in your ~/Library/Application Support/minecraft/bin folder. You can remove it again by doing a force update.

Comment by Kyle Fahringer [ 05/Nov/12 ]

"...and has not stopped science"

Science moves forward! Nothing stops science!

Comment by Jaime [ 05/Nov/12 ]

I'm experiencing the same issue. I'm attaching a few crash reports. If I press esc, e, or t while playing, the game freezes, then shows the crash screen.

Comment by [Mojang] Nathan Adams [ 29/Oct/12 ]

Can you please attach a crash report so that we can look into the issue?

Generated at Sun Jan 12 11:51:47 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.