Why does Minecraft keep crashing in Ubuntu 14.04?

Why does Minecraft keep crashing in Ubuntu 14.04? - Blue and White Fur Textile

I just installed Minecraft on my Ubuntu system using the Minecraft Installer Peeps PPA. When Minecraft finished downloading and was launched, it crashed and this is what I got:

    ---- Minecraft Crash Report ----
// Daisy, daisy...

Time: 10/12/15 5:25 PM
Description: Initializing game

java.lang.ExceptionInInitializerError
    at ave.ar(SourceFile:560)
    at ave.am(SourceFile:361)
    at ave.a(SourceFile:310)
    at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 4 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
    at ave.ar(SourceFile:560)
    at ave.am(SourceFile:361)

-- Initialization --
Details:
Stacktrace:
    at ave.a(SourceFile:310)
    at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
    Minecraft Version: 1.8.8
    Operating System: Linux (amd64) version 3.19.0-30-generic
    Java Version: 1.7.0_79, Oracle Corporation
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 67187144 bytes (64 MB) / 158736384 bytes (151 MB) up to 1060372480 bytes (1011 MB)
    JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    Launched Version: 1.8.8
    LWJGL: 2.9.4
    OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    GL Caps: 
    Using VBOs: No
    Is Modded: Probably not. Jar signature remains and client brand is untouched.
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: ~~ERROR~~ NullPointerException: null
    Profiler Position: N/A (disabled)
    CPU: <unknown>

Does anyone know why this is happening? Thanks.



Best Answer

  1. Looks like it's an OpenGL issue. Try sudo aptitude install freeglut3
  2. Check if you have the appropriate backport in your sources.list. I think that Debian's wiki explains it better.
  3. Check if you have OpenJDK 8 sudo aptitude install openjdk-8-jre
  4. Uninstall OpenJDK 7 sudo aptitude purge openjdk-7-jre



Pictures about "Why does Minecraft keep crashing in Ubuntu 14.04?"

Why does Minecraft keep crashing in Ubuntu 14.04? - Waves Crashing onto Shore
Why does Minecraft keep crashing in Ubuntu 14.04? - Brown and White Coral Reef
Why does Minecraft keep crashing in Ubuntu 14.04? - Brown Rocky Mountain Beside Body of Water



Why does Minecraft keep crashing on Linux?

There are several causes for Minecraft crashing on startup: the mods, bugs in the game, the corruption of the game files, and the missing or outdated graphics card driver.

Why is Minecraft crashing constantly?

The most common cause of crashes are mods, preexisting bugs, and updates. Attempting to modify the files of Minecraft or individual worlds, even with advanced editors, can also cause crashes. Crashes can also be caused by bugs in the game.

Is Ubuntu good for Minecraft?

Minecraft runs just fine on Linux, but it's probably not available for easy installation in your Linux distribution's package manager. Here's how to get your Linux system ready for Minecraft. We used Ubuntu 20.04. 4 for this process, and that's where our concrete examples come from.

Why does my Ubuntu keeps crashing?

Why does Ubuntu crash at boot having installed a new RAM stick? The memory you installed is either defective or incompatible with the motherboard. Also try the stick of memory by itself or with another single stick of memory to see if it still hangs.



Fix Minecraft Older Versions Crashing on Ubuntu/Linux




More answers regarding why does Minecraft keep crashing in Ubuntu 14.04?

Answer 2

It seems like you're missing XRandR. You can get it by running:

sudo apt-get install x11-xserver-utils

For details, see this forum thread.

Answer 3

If I recall correctly you need Java 1.8 to run Minecraft 1.8 (and annoyingly you need Java 1.7 for Minecraft 1.7). I ran into a similar problem on my system (Arch Linux) a while back and I think that's how I fixed it. Search Java in the software center and the 1.8 version should come up, if not you may need to add a ppa since you're on an older version of Ubuntu.

Answer 4

It's probably you have too many apps or u need to get an unknown (to u) update. Or both. I've experienced that before and to manny apps on that divice is always my problem. Delete some apps and try again!!;)

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Mikhail Nilov, ROMAN ODINTSOV, Anantha krishnan, Polina Kovaleva