From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 24787BC6C for ; Wed, 28 Nov 2007 15:58:01 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIoQTUfUnw6Dnmdsb2JhbACCOY0FAQEBAQcEBhEY X-IronPort-AV: E=Sophos;i="4.23,225,1194217200"; d="scan'208";a="19772411" Received: from pih-relay04.plus.net ([212.159.14.131]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Nov 2007 15:58:00 +0100 Received: from [80.229.56.224] (helo=beast.local) by pih-relay04.plus.net with esmtp (Exim) id 1IxOMS-0005EC-Fi for caml-list@yquem.inria.fr; Wed, 28 Nov 2007 14:58:00 +0000 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Floating exception Date: Wed, 28 Nov 2007 14:48:44 +0000 User-Agent: KMail/1.9.5 References: <47471716.3020304@irisa.fr> <200711271119.26078.jon@ffconsultancy.com> <200711281147.16378.san.vu-ngoc@univ-rennes1.fr> In-Reply-To: <200711281147.16378.san.vu-ngoc@univ-rennes1.fr> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200711281448.44882.jon@ffconsultancy.com> X-Spam: no; 0.00; bindings:01 lablgtk:01 bug:01 ocamlsdl:01 ocaml:01 lablgl:01 lablglut:01 ocaml:01 lablgl:01 ocamlsdl:01 smoke:98 frog:98 wrote:01 exception:01 caml-list:01 On Wednesday 28 November 2007 10:47, Vu Ngoc San wrote: > > My guess is that the glut libraries installed on these computers are > > causing the problems. Perhaps we should write bindings to GLX or use > > LablGTK2 to evade glut and see what happens but, of course, we cannot > > reproduce the problem here and there are a huge number of variations we > > could try without having any real idea of what is going wrong. > > I wouldn't bet on this. I can reproduce the same bug with both the sdl-gl > (ocamlsdl) interface, and the gtk-gl (liblablgtk2-gl-ocaml) interface. > > However, as I said, I couldn't with glxgears, and more interestingly I > couldn't either with the demos shipped with glcaml. They use SDL. I just > modified the source code in order to allow resizing windows. Oh, this is very interesting. Let's try to narrow down the problem. The following don't work reliably for you: OCaml -> LablGL -> Lablglut -> OpenGL OCaml -> LablGL -> LablGTKGL -> OpenGL OCaml -> LablGL -> OCamlSDL -> OpenGL but the following do work: OCaml -> GLCaml -> SDL + OpenGL C -> GLX + OpenGL Looks like the problem is with LablGL then? Smoke actually makes relatively few OpenGL calls (most are done by GLU) so I can easily port it to GLCaml. Maybe I should try that next... -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/products/?e