JOGL application freezing in Linux + Solaris but not Windows

I have a very weird problem. I made a web-start application that utilizes Java OpenGL bindings. It runs fine on Windows, but on linux and solaris it starts fine but freezes at one point. And there is no way for me to close the window, it is basically non-responsive at all.

What could be causing this? Usually this happens when I switch shaders in my program, or when I start generating iso surface. I don’t believe I use any native resources by that point since I read the shaders in at the start and the program doesn’t freeze right after I read in the volume data itself.

What could potentially be causing this? If it would help, here is the application itself - http://giga2.cs.ohiou.edu/~neiman/jstart/jung/volume.jnlp Try to load a file in (please do not load anything higher than 15mb), and try to switch shaders.

The Java console freezes as well by this point so there is no way for me to know if any exceptions are thrown or anything. How would I go about even debugging this?

This appears to be a problem with Java WebStart. I re-compiled my program in Ubuntu using Netbeans, and it works fine, but the java web start version still freezes. What gives? How can I fix this?

I appear to have fixed this by changing around how I handle shaders and some GUI components. It seems that some error didn’t mess up windows but did for linux. I am not quite sure what that error was. I believe it was GL_INVALID_OPERATION on glUseProgram, but I could be wrong.

Ok the problem only remains in my take screenshot function. It totally freezes the program Like I described in original post. I believe this has something to do with threading. For some reason the JFileChooser freezes the whole program while it waits for the user to select file. But hte dialog itself is frozen. It is very weird and I am not sure how to fix it. It works for loading data in, the JFileChooser that is. What are some things I should knwo about Java + Threads? + GUI that are different from Windows in LInux? Because that seems to be the problem here.

Please don’t worry, my screenshot feature works but I don’t use a JFileChooser. JFileChooser contains some bugs in the Metal UI, it depends on your version of Java. I advise you to look at the bug database of Sun. Maybe you could find a solution to avoid using it.