From cycle.code.media at gmail.com Thu Mar 6 02:40:43 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 13:40:43 +1100 Subject: [cl-opengl-devel] division-by-zero error Message-ID: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> hi folks, sorry if this has been discussed before but..... I'm trying to check out the cl-glut-examples but all I get is this "division-by-zero" issue, I'm using both cffi + cl-opengl from darcs and sbcl 1.0.15. Below is a snippit of what sbcl spits out. thanks, James * (asdf:oos 'asdf:load-op 'cl-glut-examples) ; loading system definition from /home/james/lisp/systems/cl-glut-examples.asd ; into # ; registering # as CL-GLUT-EXAMPLES ; loading system definition from /home/james/lisp/systems/cl-glu.asd into ; # ; registering # as CL-GLU debugger invoked on a DIVISION-BY-ZERO in thread #: arithmetic error DIVISION-BY-ZERO signalled Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [RETRY ] Retry performing # on #. 1: [ACCEPT] Continue, treating # on # as having been successful. 2: [ABORT ] Exit debugger, returning to top level. (SB-VM:SIGFPE-HANDLER # #.(SB-SYS:INT-SAP #XB79FA9EC) #) 0] From luismbo at gmail.com Thu Mar 6 03:29:03 2008 From: luismbo at gmail.com (=?ISO-8859-1?Q?Lu=EDs_Oliveira?=) Date: Thu, 6 Mar 2008 03:29:03 +0000 Subject: [cl-opengl-devel] division-by-zero error In-Reply-To: <391f79580803051927i6b63173if0e882c2d5a8b0da@mail.gmail.com> References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <391f79580803051927i6b63173if0e882c2d5a8b0da@mail.gmail.com> Message-ID: <391f79580803051929t5a9663eet63039e0ffdea0628@mail.gmail.com> On Thu, Mar 6, 2008 at 2:40 AM, James Baker wrote: > I'm trying to check out the cl-glut-examples but all I get is this > "division-by-zero" issue, I'm using both cffi + cl-opengl from darcs > and sbcl 1.0.15. [...] > * (asdf:oos 'asdf:load-op 'cl-glut-examples) Does this help? (sb-int:with-float-traps-masked (:invalid :divide-by-zero) (asdf:oos 'asdf:load-op 'cl-glut-examples)) -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From 00003b at gmail.com Thu Mar 6 03:30:52 2008 From: 00003b at gmail.com (Bart Botta) Date: Wed, 5 Mar 2008 21:30:52 -0600 Subject: [cl-opengl-devel] division-by-zero error In-Reply-To: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> Message-ID: <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> (oops, forgot to reply to the list, sorry about the extra copies) Just as a guess, you might try deleting .fasl files in cl-opengl and cffi directories, if that doesn't help, will need more information: On 3/5/08, James Baker wrote: > "division-by-zero" issue, I'm using both cffi + cl-opengl from darcs > and sbcl 1.0.15. What OS/platform/graphics card drivers? > > (SB-VM:SIGFPE-HANDLER > # > #.(SB-SYS:INT-SAP #XB79FA9EC) > #) > 0] What does it say if you type backtrace at that prompt? -- -b- From cycle.code.media at gmail.com Thu Mar 6 03:47:24 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 14:47:24 +1100 Subject: [cl-opengl-devel] division-by-zero error In-Reply-To: <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> Message-ID: <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> (argh, forgot to cc the list!) sorry, should have included more details in the first mail. I'm running debian stable, using the closed-source nvidia drivers and built sbcl from source myself. ok well, using (sb-int:with-float-traps-masked (:invalid :divide-by-zero)) as suggested by Lu?s allows me to load cl-glut-examples, but the issue still occurs if i try to run an example (i.e. rb-hello) backtrace from there is = (SB-VM:SIGFPE-HANDLER # #.(SB-SYS:INT-SAP #XB79FB36C) #) 0] backtrace 0: (SB-VM:SIGFPE-HANDLER # #.(SB-SYS:INT-SAP #XB79FB36C) #) 1: (SB-VM:SIGFPE-HANDLER # #.(SB-SYS:INT-SAP #XB79FB36C) #)[:EXTERNAL] 2: ((FLET #:WITHOUT-INTERRUPTS-BODY-[INVOKE-INTERRUPTION]11)) 3: (SB-SYS:INVOKE-INTERRUPTION #) 4: ((FLET SB-UNIX::RUN-HANDLER) 8 #.(SB-SYS:INT-SAP #XB79FB36C) #.(SB-SYS:INT-SAP #XB79FB3EC)) 5: ("foreign function: call_into_lisp") 6: ("foreign function: funcall3") 7: ("foreign function: interrupt_handle_now") On Thu, Mar 6, 2008 at 2:30 PM, Bart Botta <00003b at gmail.com> wrote: > (oops, forgot to reply to the list, sorry about the extra copies) > > > Just as a guess, you might try deleting .fasl files in cl-opengl and > cffi directories, if that doesn't help, will need more information: > > > On 3/5/08, James Baker wrote: > > "division-by-zero" issue, I'm using both cffi + cl-opengl from darcs > > and sbcl 1.0.15. > > > What OS/platform/graphics card drivers? > > > > > > (SB-VM:SIGFPE-HANDLER > > # > > #.(SB-SYS:INT-SAP #XB79FA9EC) > > #) > > 0] > > > > What does it say if you type backtrace at that prompt? > > -- > -b- > From 00003b at gmail.com Thu Mar 6 04:03:49 2008 From: 00003b at gmail.com (Bart Botta) Date: Wed, 5 Mar 2008 22:03:49 -0600 Subject: [cl-opengl-devel] division-by-zero error In-Reply-To: <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> Message-ID: <77cb99c00803052003i29e29033q3de2cba75bcd230c@mail.gmail.com> On 3/5/08, James Baker wrote: > ok well, using (sb-int:with-float-traps-masked (:invalid > :divide-by-zero)) as suggested by Lu?s allows me to load > cl-glut-examples, but the issue still occurs if i try to run an > example (i.e. rb-hello) well, you could try adding the with-float-traps-masked when you call rb-hello as well, but seems like it would be better to try to figure out what is breaking first... > backtrace from there is = 'from there' = from calling rb-hello? Do you get the same backtrace when loading cl-glut-examples without the with-float-traps-masked? > 7: ("foreign function: interrupt_handle_now") > hmm, not much useful there. It didn't go any farther than that? -- -b- From cycle.code.media at gmail.com Thu Mar 6 04:10:41 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 15:10:41 +1100 Subject: [cl-opengl-devel] division-by-zero error In-Reply-To: <77cb99c00803052003i29e29033q3de2cba75bcd230c@mail.gmail.com> References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <77cb99c00803052003i29e29033q3de2cba75bcd230c@mail.gmail.com> Message-ID: <428d2dc0803052010k69357903xf4d1126803032a40@mail.gmail.com> Sorry perhaps that wasnt very clear on my part. The backtrace was from calling rb-hello, and yes thats all there was up to 7:("foreign function:...") James On Thu, Mar 6, 2008 at 3:03 PM, Bart Botta <00003b at gmail.com> wrote: > On 3/5/08, James Baker wrote: > > > ok well, using (sb-int:with-float-traps-masked (:invalid > > :divide-by-zero)) as suggested by Lu?s allows me to load > > cl-glut-examples, but the issue still occurs if i try to run an > > example (i.e. rb-hello) > > well, you could try adding the with-float-traps-masked when you call > rb-hello as well, but seems like it would be better to try to figure > out what is breaking first... > > > backtrace from there is = > > 'from there' = from calling rb-hello? Do you get the same backtrace > when loading cl-glut-examples without the with-float-traps-masked? > > > > 7: ("foreign function: interrupt_handle_now") > > > hmm, not much useful there. It didn't go any farther than that? > > -- > -b- > From luismbo at gmail.com Thu Mar 6 05:28:27 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Thu, 06 Mar 2008 05:28:27 +0000 Subject: [cl-opengl-devel] Re: division-by-zero error References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> Message-ID: "James Baker" writes: > ok well, using (sb-int:with-float-traps-masked (:invalid > :divide-by-zero)) as suggested by Lu?s allows me to load > cl-glut-examples, but the issue still occurs if i try to run an > example (i.e. rb-hello) Did you run the example using with-float-traps-masked as well? -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From cycle.code.media at gmail.com Thu Mar 6 05:34:50 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 16:34:50 +1100 Subject: [cl-opengl-devel] Re: division-by-zero error In-Reply-To: References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> Message-ID: <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> I just checked then and calling an example using with-float-traps-masked works, thanks very much. James On Thu, Mar 6, 2008 at 4:28 PM, Luis Oliveira wrote: > "James Baker" writes: > > ok well, using (sb-int:with-float-traps-masked (:invalid > > :divide-by-zero)) as suggested by Lu?s allows me to load > > cl-glut-examples, but the issue still occurs if i try to run an > > example (i.e. rb-hello) > > Did you run the example using with-float-traps-masked as well? > > -- > > > Lu?s Oliveira > http://student.dei.uc.pt/~lmoliv/ > > _______________________________________________ > cl-opengl-devel mailing list > cl-opengl-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel > From luismbo at gmail.com Thu Mar 6 05:48:18 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Thu, 06 Mar 2008 05:48:18 +0000 Subject: [cl-opengl-devel] Re: division-by-zero error References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> Message-ID: "James Baker" writes: > I just checked then and calling an example using > with-float-traps-masked works, thanks very much. Maybe we should use this in cl-glut then. I'm guessing you're running on x86-64, is that right? -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From cycle.code.media at gmail.com Thu Mar 6 05:52:09 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 16:52:09 +1100 Subject: [cl-opengl-devel] Re: division-by-zero error In-Reply-To: References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> Message-ID: <428d2dc0803052152x3a3170c7q50dc41d3f1958ff2@mail.gmail.com> I'm running 32bit debian on a x86-64 James On Thu, Mar 6, 2008 at 4:48 PM, Luis Oliveira wrote: > "James Baker" writes: > > > I just checked then and calling an example using > > with-float-traps-masked works, thanks very much. > > Maybe we should use this in cl-glut then. I'm guessing you're running on > x86-64, is that right? > > -- > > > Lu?s Oliveira > http://student.dei.uc.pt/~lmoliv/ > > _______________________________________________ > cl-opengl-devel mailing list > cl-opengl-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/cl-opengl-devel > From luismbo at gmail.com Thu Mar 6 06:16:14 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Thu, 06 Mar 2008 06:16:14 +0000 Subject: [cl-opengl-devel] Re: division-by-zero error References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> <428d2dc0803052152x3a3170c7q50dc41d3f1958ff2@mail.gmail.com> Message-ID: "James Baker" writes: > I'm running 32bit debian on a x86-64 Please let me know if the attached patch helps. -------------- next part -------------- A non-text attachment was scrubbed... Name: without-fp-traps.diff Type: text/x-patch Size: 4140 bytes Desc: not available URL: -------------- next part -------------- -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From cycle.code.media at gmail.com Thu Mar 6 06:42:54 2008 From: cycle.code.media at gmail.com (James Baker) Date: Thu, 6 Mar 2008 17:42:54 +1100 Subject: [cl-opengl-devel] Re: division-by-zero error In-Reply-To: References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> <428d2dc0803052152x3a3170c7q50dc41d3f1958ff2@mail.gmail.com> Message-ID: <428d2dc0803052242h7943dfffs8bec33370ee5bc5d@mail.gmail.com> > > Please let me know if the attached patch helps. > ok I applied the patch, cleaned out all the fasl's and did a (asdf:oos 'asdf:load-op 'cl-glut-examples) and no complaints. Running any of the examples without (sb-int:with-float-traps-masked (:invalid :divide-by-zero) (....)) still causes the divide-by-zero error. Thanks again, James From luismbo at gmail.com Fri Mar 7 20:46:54 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Fri, 07 Mar 2008 20:46:54 +0000 Subject: [cl-opengl-devel] Re: division-by-zero error References: <428d2dc0803051840j6f514a80r5daa9467d820d030@mail.gmail.com> <77cb99c00803051930x1b4ae3b8o23158c684b387334@mail.gmail.com> <428d2dc0803051946w4e8d2b6eu7fec6bf5432c6901@mail.gmail.com> <428d2dc0803051947t55ee3433p5c69dcbf0c91531b@mail.gmail.com> <428d2dc0803052134m52ee6304q8a624e537fd0135c@mail.gmail.com> <428d2dc0803052152x3a3170c7q50dc41d3f1958ff2@mail.gmail.com> <428d2dc0803052242h7943dfffs8bec33370ee5bc5d@mail.gmail.com> Message-ID: "James Baker" writes: > ok I applied the patch, [...] still causes the divide-by-zero error. I had a chance to try things out in my linux/x86-64 box today and pushed a patch that should work this time. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Fri Mar 7 21:17:08 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Fri, 07 Mar 2008 21:17:08 +0000 Subject: [cl-opengl-devel] Re: GLUT handling for a mouse wheel References: <6e831e4e0802090514o1ea771b1x21c50b64d18c248f@mail.gmail.com> Message-ID: "Charlie McMackin" writes: > the change: in glut/callbacks.lisp add (:wheel-down -1) to the > mouse-button-state cenum. Applied, thanks. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/ From luismbo at gmail.com Fri Mar 7 21:19:46 2008 From: luismbo at gmail.com (Luis Oliveira) Date: Fri, 07 Mar 2008 21:19:46 +0000 Subject: [cl-opengl-devel] Re: Patch for 2d mipmap generation and more mouse buttons References: <47AE2300.7080207@erleuchtet.org> Message-ID: Johann Korndoerfer writes: > the attached patch does two things: I think the patch is missing some bits so I had to apply the changes manually. > 1) it adds glu:build-2d-mipmaps > 2) as suggested earlier this month, more mouse-buttons are now > recognized (:wheel-up, :wheel-down and :button4 to :button7) Applied, thanks. -- Lu?s Oliveira http://student.dei.uc.pt/~lmoliv/