Generally speaking, there are complications with using OpenGL from multiple threads, I wonder if the calls you make via the Slime/Swank interface are in a different thread than the one that allocated the OpenGL context. Here's some documentation that may be relevant if you are using OS X:
http://developer.apple.com/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_threading/chapter_12_section_4.html#//apple_ref/doc/uid/TP40001987-CH409-SW9 http://developer.apple.com/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_threading/chapter_12_section_3.html#//apple_ref/doc/uid/TP40001987-CH409-SW7 On Dec 17, 11:33 pm, chris <cnuern...@gmail.com> wrote: > I am trying to write an application using the above libraries. There > is no point to this app at the moment other than to take my time and > enjoy learning clojure. I am hoping that anyone else with these > problems will be able to find this post, so I am going to dump. > > I have had a hell of time getting things to work correctly. First I > installed java 1.6, only to find out that trolltech doesn't support > that version on os x because it is 64 bit and they haven't ported > their libraries to cocoa. The error you get is an initializer failure > in JambiObject; it takes quite a while to figure out the > inconsistencies. > > Next I couldn't build because the ant process was finding two > xercesimpl.jar files somehow and this was making the construction of > the sax parser fail when the qt libs attempt to do their thing when > the java task is loading the clojure class from the build directory. > > I then managed to get an app up and running; the cool thing is that > when you close the app it just puts you back in the repl. Then you > can call a function and give event handing back to QT. This is fun; I > don't have to shutdown to try out lots of different stuff until I hang > the process or crash QT. > > Finally I decided to try out some openGL. I got a complete hang every > time I called GL, using the slime repl from emacs. I could get all > the rest of my gui stuff working but anything GL related would hang. > I tried switching from jogl to lwjgl and the result was the same. > super hang. > > 4 hours of debugging later I tried running the helloGL QT demo and it > was working. I then tried it from the command line repl and it > worked. Finally I tried it from the slime repl and it just hung. > > So my question to the gurus in this forum is why, on mac os 10.5 using > jvm 1.5 and the latest clojure, slime, aquamacs, clojure-contrib, qt, > jogl, swank-clojure, NVIDIA 8600M GT, 2.5 ghz core 2 due, 4 gigs of > ram, in a house that is 65 degrees fahrenheit, at 40.03N x 105.25W... > > would this exact scenario hang? I really want to use slime as my > primary repl; I will have to use some crap null gl wrappers when I am > not working on gl as it is unless I can get slime to play nice with > gl. > > Clojure is the shit! > > Unfortunately, java still sucks. Not that it will stop me using > clojure. > > Thanks! > > oh, the code is at: http://github.com/cnuernber/lambinator/tree/master > > Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---