LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Minecraft graphics glitches in Ubuntu 10.10 w/ Intel Graphics (https://www.linuxquestions.org/questions/linux-games-33/minecraft-graphics-glitches-in-ubuntu-10-10-w-intel-graphics-916956/)

Rotten194 12-03-2011 03:56 PM

Minecraft graphics glitches in Ubuntu 10.10 w/ Intel Graphics
 
Issue:
http://i.imgur.com/pY848.png
Basically, black noise all over the screen.

I'm running Ubuntu 10.10, with an Intel (i7) graphics card.

Info:
Code:

jon@ubuntu: sudo lspci -v                                                  (0)
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: Toshiba America Info Systems Device fc30
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Toshiba America Info Systems Device fc30
        Flags: bus master, fast devsel, latency 0, IRQ 50
        Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915
        Kernel modules: i915

Minecraft console output:
Code:

jon@ubuntu: ./minecraft.sh                                                  (0)
27 achievements
174 recipes
Setting user: <me>, <sessionid>
Mesa: Initializing x86-64 optimizations
Loading: net.java.games.input.LinuxEnvironmentPlugin
Failed to open device (/dev/input/event12): Failed to open device /dev/input/event12 (13)

Failed to open device (/dev/input/event8): Failed to open device /dev/input/event8 (13)

Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (13)

Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)

Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)

Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)

Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)

Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)

Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)

Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)

Linux plugin claims to have found 0 controllers

<game runs for awhile>
<hit "quit game" on main menu>

Stopping!
Exception in thread "Minecraft main thread" org.lwjgl.LWJGLException: X Error - disp: 0x7f073002f690 serial: 41392 error: GLXBadWindow request_code: 155 minor_code: 32
        at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:313)
        at org.lwjgl.opengl.LinuxDisplay.nDestroyWindow(Native Method)
        at org.lwjgl.opengl.LinuxDisplay.destroyWindow(LinuxDisplay.java:560)
        at org.lwjgl.opengl.Display.destroyWindow(Display.java:351)
        at org.lwjgl.opengl.Display.access$400(Display.java:62)
        at org.lwjgl.opengl.Display$5.destroy(Display.java:860)
        at org.lwjgl.opengl.Display.destroy(Display.java:1110)
        at net.minecraft.client.Minecraft.d(SourceFile:514)
        at net.minecraft.client.Minecraft.run(SourceFile:675)
        at java.lang.Thread.run(Thread.java:662)
<^C and kill it>

Driver is mesa, I've tried compiling the version from Intel's open-source site as well as installing it via apt-get, both of which had this issue.

After a reboot, Minecraft doesn't have this issue, but after about a minute it suddenly shows up. After that, immediately after starting Minecraft it has this issue, so I think it's an issue in the driver itself and not with Minecraft.

corp769 12-05-2011 12:49 AM

What kind of computer do you have? I have the Alienware M14x, running Fedora 15 64-bit, and I had a similar issue. After installing bumblebee and configuring everything to work properly, using my nvidia chipset, the problem went away. Also, after I installed the needed dependencies and libraries to enable 3D support for the Intel graphics chipset, the problem went away.

Rotten194 12-05-2011 04:59 PM

Thanks corp769. I have a Toshiba Satellite, which doesn't have a discrete graphics card (only an integrated one), so I don't think Bumblebee would help. I think I have all the Mesa dependencies installed, though there's a lot of them.

yooman 12-11-2011 05:50 PM

+1 on this problem
 
Hi Rotten194,

I have the same problem! Did you ever figure out a solution?
I'm running a fresh install of Ubuntu 11.10 on an HP Probook 4530s (Intel Core i3) with integrated graphics.
The problem is present when running Minecraft with both the OpenJDK JVM (installed via apt) and the official Sun/Oracle JVM (downloaded from java.com).

I've noticed that the "noise" particles seem to be holes in the rendered world-- you can see through them. See this screenshot, noise above the horizon is blue (the sky) and noise below the horizon is black (the void): http://i.imgur.com/gVGLa.png I can sometimes also see torches on the opposite side of a wall through the noise on that wall.
Also, it gets a LOT worse when you're actually mining, as I imagine the rapid texture swaps (block getting more and more cracked) exacerbates this problem: http://i.imgur.com/wOooe.png

Interestingly, if I leave Minecraft running in the background and navigate around Ubuntu, the UI in other programs starts to glitch and flicker as well! This makes me think it's a video driver problem and not a Java problem.

Code:

mturley@SpaceTrapezoid:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: Hewlett-Packard Company Device 167c
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 167c
        Flags: bus master, fast devsel, latency 0, IRQ 47
        Memory at d4000000 (64-bit, non-prefetchable) [size=4M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

Let's figure this out together. It's very annoying and makes the game nearly unplayable at times.

Rotten194 12-11-2011 05:52 PM

Quote:

Originally Posted by yooman (Post 4547472)
Hi Rotten194,

I have the same problem! Did you ever figure out a solution?
I'm running a fresh install of Ubuntu 11.10 on an HP Probook 4530s (Intel Core i3) with integrated graphics.
The problem is present when running Minecraft with both the OpenJDK JVM (installed via apt) and the official Sun/Oracle JVM (downloaded from java.com).

I've noticed that the "noise" particles seem to be holes in the rendered world-- you can see through them. See this screenshot, noise above the horizon is blue (the sky) and noise below the horizon is black (the void): http://i.imgur.com/gVGLa.png I can sometimes also see torches on the opposite side of a wall through the noise on that wall.
Also, it gets a LOT worse when you're actually mining, as I imagine the rapid texture swaps (block getting more and more cracked) exacerbates this problem: http://i.imgur.com/wOooe.png

Interestingly, if I leave Minecraft running in the background and navigate around Ubuntu, the UI in other programs starts to glitch and flicker as well! This makes me think it's a video driver problem and not a Java problem.

Code:

mturley@SpaceTrapezoid:~$ lspci -v
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
        Subsystem: Hewlett-Packard Company Device 167c
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company Device 167c
        Flags: bus master, fast devsel, latency 0, IRQ 47
        Memory at d4000000 (64-bit, non-prefetchable) [size=4M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

Let's figure this out together. It's very annoying and makes the game nearly unplayable at times.

Yes, this is exactly the problem I'm having! I haven't managed to fix it, however. What drivers are you using?

yooman 12-11-2011 08:37 PM

Quote:

Originally Posted by Rotten194 (Post 4547474)
What drivers are you using?

I'm not sure... whatever comes stock with Ubuntu. Nothing shows up in Ubuntu's "Additional Drivers" utility, and I haven't gone looking for any. All I've installed since I installed Ubuntu is the Gnome3 Shell (I prefer it to Unity), some Gnome3 extensions, some media codecs, and the two different JVMs.

Where can you find alternate Intel graphics drivers for Ubuntu?

Rotten194 12-11-2011 08:39 PM

Quote:

Originally Posted by yooman (Post 4547556)
I'm not sure... whatever comes stock with Ubuntu. Nothing shows up in Ubuntu's "Additional Drivers" utility, and I haven't gone looking for any. All I've installed since I installed Ubuntu is the Gnome3 Shell (I prefer it to Unity), some Gnome3 extensions, some media codecs, and the two different JVMs.

Where can you find alternate Intel graphics drivers for Ubuntu?

Probably the VESA driver than... I was using that, then I installed the MESA one (from source, but it should be available in the repositories too), but it didn't help.

yooman 12-11-2011 08:43 PM

Quote:

Originally Posted by Rotten194 (Post 4547558)
Probably the VESA driver than... I was using that, then I installed the MESA one (from source, but it should be available in the repositories too), but it didn't help.

I'll give that a try and get back to you. Have you done any other research on this issue? Any ideas for what else to try? I've been googling around with not much to show for it (except discovering this thread, of course).

Rotten194 12-11-2011 08:45 PM

Quote:

Originally Posted by yooman (Post 4547560)
I'll give that a try and get back to you. Have you done any other research on this issue? Any ideas for what else to try? I've been googling around with not much to show for it (except discovering this thread, of course).

I've looked all over and haven't found anything (besides the MESA driver). At this point, I think it's just an issue with the drivers and won't get a fix until Intel updates them.

yooman 12-11-2011 09:23 PM

Quote:

Originally Posted by Rotten194 (Post 4547561)
I've looked all over and haven't found anything (besides the MESA driver). At this point, I think it's just an issue with the drivers and won't get a fix until Intel updates them.

Well, shit.

cascade9 12-11-2011 09:39 PM

Ubuntu 10.10/11.04 + 'sandy bridge' video = not fun.

http://www.phoronix.com/scan.php?pag...nb_natty&num=1

Quote:

Originally Posted by yooman (Post 4547556)
Where can you find alternate Intel graphics drivers for Ubuntu?

x-updates or xorg-edgers PPA.

https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

https://launchpad.net/~xorg-edgers/+archive/ppa

Either of them might help, but they could also make things even worse.

yooman 12-11-2011 10:37 PM

Quote:

Originally Posted by cascade9 (Post 4547586)
x-updates or xorg-edgers PPA.

https://launchpad.net/~ubuntu-x-swat/+archive/x-updates

https://launchpad.net/~xorg-edgers/+archive/ppa

Either of them might help, but they could also make things even worse.

Thanks! I assume I should be trying the "xserver-xorg-video-intel" package? Also, if I decide one isn't right and want to switch to the other, is it adequite to simply remove the package with apt, remove the PPA, add the alternate PPA, and reinstall? or is there more cleanup entailed in switching from one to another?

afaulkner 12-12-2011 08:20 PM

I was having this same problem. I'm fairly sure I fixed it, but not completely positive. I had to compile a kernel from the linux-next git repo, and the problem went away. I also compiled mesa and xf86-video-intel from git, but I'm pretty sure the new kernel is what fixed it.

Its been running for about 45 minutes without the glitches appearing, which is longer than has ever happened before.

yooman 12-12-2011 11:12 PM

Quote:

Originally Posted by afaulkner (Post 4548363)
I was having this same problem. I'm fairly sure I fixed it, but not completely positive. I had to compile a kernel from the linux-next git repo, and the problem went away. I also compiled mesa and xf86-video-intel from git, but I'm pretty sure the new kernel is what fixed it.

Its been running for about 45 minutes without the glitches appearing, which is longer than has ever happened before.

Oh yeah? Which Kernel was it?

afaulkner 12-13-2011 01:14 AM

Quote:

Oh yeah? Which Kernel was it?
3.2.0-rc5-next-20111212-dirty - Output from uname -r.

Its been running for several hours now without glitches. I think that it fixed it.


All times are GMT -5. The time now is 02:48 PM.