gl.gen_textures(n) causes system crash
Erik De Rijcke
derijcke.erik at gmail.com
Thu Mar 26 10:45:19 PDT 2009
Hi,
Calling the method gen_textures(n) from the GL class blocks when tried on a
nested X server like Xephyr or makes my system crash on a native X server
(with fglrx drivers).
Upon closer inspection (tried with Xephyr) the blocking seems to occur when
trying to access the responceInputStream.
public int[] gen_textures(int n) {
RequestOutputStream o = display.out;
int[] textures;
synchronized (o) {
o.begin_request(glx.major_opcode, 145, 3);
o.write_int32(tag);
o.write_int32(n);
ResponseInputStream in = display.in;
synchronized (in) {
* in.skip(32);*
textures = new int[n];
for (int i = 0; i < n; i++)
textures[i] = *in.read_int32()*;
}
}
return textures;
}
So probably a problematic request has been sent to the server.
I'm not sure if this is causes by my fgrlx drivers or a mistake I made
(drawing simple colored figures works just fine), I'll see if it works with
the 'ati' driver.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20090326/8a94adf9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CopyOfGLTextureLoaderTest.java
Type: application/octet-stream
Size: 4463 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/caciocavallo-dev/attachments/20090326/8a94adf9/CopyOfGLTextureLoaderTest.java
More information about the caciocavallo-dev
mailing list