Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Xlib: unexpected async reply  (Read 2618 times)
0 Members and 1 Guest are viewing this topic.
Offline zero

Junior Member





« Posted 2006-03-03 02:04:59 »

I just noticed, that the jogl nightly build from yesterday stopped working on the latest mustang weekly build (73) on linux. I have tested it on my notebook (Ubuntu/Gnome) and a friend couldn't run it on his laptop (SUSE/KDE) either.

The small output is the same for both of us:

Beginning DRI hack
Ending DRI hack

and a bit later:

Xlib: unexpected async reply (sequence 0x149)!

where the hex-code can be different of course.

Anyone/Ken knows, what is behind of this?
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2006-03-03 02:51:56 »

Sounds like I broke the Xlib locking somewhere in the X11 port. What fails on your machine? Does the simple Gears demo provoke the failure or do you have a more complicated test case which is broken?
Offline zero

Junior Member





« Reply #2 - Posted 2006-03-04 05:30:35 »

Hi Ken,
sorry for the late reply.

The demos.gears.Gears demo also fails  to run (grey canvas) with the following output:

Beginning DRI hack
Ending DRI hack
INIT GL IS: com.sun.opengl.impl.GLImpl
Xlib: unexpected async reply (sequence 0xce)!
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: Quadro FX Go1400/PCI/SSE2
GL_VERSION: 2.0.0 NVIDIA 76.67


btw. everything runs fine with java version "1.5.0_06".

best regards,
 micha
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #3 - Posted 2006-03-06 02:25:55 »

It turns out this is a regression in Mustang which has been present since build 53 but which didn't become apparent until we made JOGL's internal locking of the AWT less overly strict. I've filed bug 6394099 about this and hope that it will be fixed soon. Until then please work with 5.0u6 on X11 platforms. There is no possible workaround for this that can be done in JOGL.
Offline zero

Junior Member





« Reply #4 - Posted 2006-03-06 03:27:56 »

Thanks for answering and filling the bug report  Smiley
Offline brendanburns

Senior Newbie





« Reply #5 - Posted 2006-03-08 14:51:32 »

I'm also seeing this on VIA UniChrome (KM400), when I run the latest snapshot I get a Gray Screen:

[bburns@localhost Desktop]$ java -classpath ./tmp/jogl.jar:jogl-demos.jar demos.gears.Gears
INIT GL IS: com.sun.opengl.impl.GLImpl
Xlib: unexpected async reply (sequence 0x13d)!

[bburns@localhost Desktop]$ java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

The Feb. 17th release works (well it uses the indirect renderer, see my earlier message)

Any ideas?
--brendan

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #6 - Posted 2006-03-08 17:41:58 »

We recently made some changes to what X11-level locking JOGL does to support multi-screen X11 setups and it's possible there are some lurking bugs, though the most recent problem above was actually a bug in the JDK. The same bug doesn't exist in 5.0u6, though.

I'll ask for some advice on exactly what locking is needed on X11 platforms. In the meantime, does Java3D work on your system? It would be helpful if you could download their 1.4 release and try compiling and running the HelloUniverse example.
Offline brendanburns

Senior Newbie





« Reply #7 - Posted 2006-03-08 22:58:52 »

When I try to run HelloUniverse I get the following (with LIBGL_DEBUG set to verbose)

libGL: XF86DRIGetClientDriverName: 4.1.0 unichrome (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/unichrome_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/unichrome_dri.so failed (/usr/X11R6/lib/modules/dri/unichrome_dri.so: undefined symbol: _glapi_add_entrypoint)
libGL error: unable to find driver: unichrome_dri.so
Java 3D WARNING : reported GLX version = 1.2
    GLX version 1.3 or higher is required
    The reported version number may be incorrect.  There is a known
    ATI driver bug in glXQueryVersion that incorrectly reports the GLX
    version as 1.2 when it really is 1.3, so Java 3D will attempt to
    run anyway.
Java 3D WARNING : OpenGL 1.3 will be required in the near future (GL_VERSION=1.2)

and a window which simply displays a black screen.

Thanks!
--brendan
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #8 - Posted 2006-03-09 00:01:20 »

After speaking with one of the Java3D engineers I now understand why the new X11 locking code in JOGL is breaking with indirect contexts. To make Java3D work with an indirect rendering context you need to specify the system property j3d.renderLock to be true (-Dj3d.renderLock=true). I will check in changes to JOGL to autodetect this case and fall back to the necessary more strict locking.
Offline zero

Junior Member





« Reply #9 - Posted 2006-03-26 15:54:28 »

fixed in mustang beta 2 build 77, great Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Predator

Senior Newbie




Java games rock!


« Reply #10 - Posted 2006-03-26 16:21:50 »

Ive got the same issue, even with the latest jogl build- but only if I use my Laptop...
Any chances to get this working (Im not sure what the posting before means Wink )?

EDIT: Just tried it with 1.6b2-77 - the same problem Sad
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #11 - Posted 2006-03-26 19:27:55 »

Could you try this test again tomorrow with a nightly build dated 3/27 or later (or build the JOGL sources from the CVS repository)? In particular, if the Xlib error is still reported, please try running with the system property -Djogl.GLContext.noopt specified and see if that changes the behavior. There is a bug in the implementation of this flag up to and including the 3/26 build currently on the JOGL home page.
Offline Predator

Senior Newbie




Java games rock!


« Reply #12 - Posted 2006-03-27 13:51:03 »

It works with the build dated 3/27  Cheesy

I didnt try it with the -Djogl.... flag but I could if you want me to test it?!.
Offline Predator

Senior Newbie




Java games rock!


« Reply #13 - Posted 2006-03-27 15:29:10 »

Well I tested it with the -Djogl.GLContext.noopt flag and it does also work- but its very slow (Im not sure if it is my system)?

EDIT: I checke my system an everything else seems to run properly- the jogl demos run also fast... the code itself cant cause the performance loss because on every other machine it runs fast as hell.

Well here are the specs:
Pentium M 1.4GHz
ATI Radeon mobility 9700 w 64MB VRAM
1GB Ram

Fedora Core 5
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #14 - Posted 2006-03-27 19:19:44 »

Well I tested it with the -Djogl.GLContext.noopt flag and it does also work- but its very slow (Im not sure if it is my system)?

With the jogl demos or just your app? I don't see any slowdown of the demos on my machine with that flag specified.

Quote
EDIT: I checke my system an everything else seems to run properly- the jogl demos run also fast... the code itself cant cause the performance loss because on every other machine it runs fast as hell.

Sorry but this doesn't mean the code can't be causing the problem. Different drivers cope with OpenGL errors differently and it's absolutely possible that your code is causing an OpenGL error to be generated which will cause the drivers to run incredibly slowly. Please try installing a DebugGL in your GLEventListener.init() method and see if it reports any errors.

Quote
Well here are the specs:
Pentium M 1.4GHz
ATI Radeon mobility 9700 w 64MB VRAM
1GB Ram

Fedora Core 5

ATI's drivers, in particular their Linux drivers, have in my opinion been notoriously unreliable. I have a machine similar in configuration to yours except it has an NVidia Quadro FX Go700 and have had no reliability problems with it.
Offline Predator

Senior Newbie




Java games rock!


« Reply #15 - Posted 2006-03-27 20:12:53 »

Sorry I expressed it a little bit wrong Wink

It works with and without the -Djogl... flag Cheesy But its very slow no matter if I use the -Djogl flag or not. Every other gl app seems to run fast on the same machine.

Ive had the same app( with nearly the same code) running excellent on the same machine. The only changes are the jogl version and (uhhm maybe a little big change) the OS (i upgraded from fedora 4 to 5). But as I stated above Im not sure if the cause is jogl- my new installation might also be messed up. One other thing is that it runs on every other Linux machine very good... and one of those machines was equipped with a radeon 9800 (with nearly the same poor drivers).

Btw, slow means less than 2 fps for a scene you shouldnt call scene (<1k polys).

But hey- thanks for your answers so far Cheesy
Offline Predator

Senior Newbie




Java games rock!


« Reply #16 - Posted 2006-03-30 16:08:14 »

It seems that the slowlyness is also if I use Windows with the same machine- it runs fast on every other machine. Could someone provide me a jogl version before Mar. 17th? This is the easiest way to check if its due to jogl.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #17 - Posted 2006-03-30 16:32:46 »

Older archived builds are in the "Documents & files" section of the JOGL home page.
Offline Maok

Senior Newbie




Java games rock!


« Reply #18 - Posted 2006-03-30 16:34:02 »

my application is crashing with the latest nightly builds too

it is the first upgrade of jogl i did for two month or so
and during 3-4month i haven't upgraded my system (you may be aware of a certain drivers problem with the latest versions of xorg)

i can't figure out how to check my version of xlibs

my system is a debian, with an ati ( Cry ) 9600

please, tell my all the informations you need to know

also do you know the last 'stable' version regarding this issue ?
Offline Predator

Senior Newbie




Java games rock!


« Reply #19 - Posted 2006-03-30 17:41:34 »

The problem is indeed jogl!!

If I use jsr beta 1 (jan 04) it runs like hell Wink - any suggestions, anything I could check?

It seems to be a problem with mobility cards only?!
Offline Maok

Senior Newbie




Java games rock!


« Reply #20 - Posted 2006-03-30 17:42:53 »

non, i have the same problem with a desktop
Offline Predator

Senior Newbie




Java games rock!


« Reply #21 - Posted 2006-03-30 17:44:26 »

Uve got the XLib issue right? Try beta3- this one should work, although since build Mar-27 the XLib problems are gone here.

Well about my performance problem, is it possible that jogl somehow uses the wrong OpenGL driver/system? I have a strong feeling that it uses this mesa thing instead of the fglrx driver? But just a feeling, I dont have enough knowledge whats going on behind the scenes Wink
Offline Maok

Senior Newbie




Java games rock!


« Reply #22 - Posted 2006-03-30 17:59:13 »

its the same asnyc error yes
Offline Predator

Senior Newbie




Java games rock!


« Reply #23 - Posted 2006-03-30 20:01:36 »

The same with beta 1?

I made a new topic about the performance issue- so that we can discuss only about the Xlib thing here.
Offline Maok

Senior Newbie




Java games rock!


« Reply #24 - Posted 2006-03-31 08:32:24 »

ok it seems to be working with beta3 (feb 17 20006)
i can't see any efficiency lack between this release and previous ones
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (10 views)
2014-10-02 14:36:20

Pippogeek (41 views)
2014-09-24 16:13:29

Pippogeek (32 views)
2014-09-24 16:12:22

Pippogeek (22 views)
2014-09-24 16:12:06

Grunnt (48 views)
2014-09-23 14:38:19

radar3301 (30 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!