Re: [Haskell-cafe] gtk2hs problem

2007-11-21 Thread Gregory Propf
OK, it actually DOES appear related to the -threaded flag. I was sure I had removed that and still seen the problem but now it seems that taking that out is indeed the fix. Using the -O2 flag is OK. I guess it's some syncronization problem when using the threaded RTS. Which is a shame becaus

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 15:18 -0800, Gregory Propf wrote: > I'm using the Gtk.timeoutAddFull function to do the animation. Are you using the threaded rts? Are you linking the program with -threaded? Are you doing the drawing directly in the timeout function or just invalidating the window/widget an

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Stefan O'Rear
On Tue, Nov 20, 2007 at 03:18:03PM -0800, Gregory Propf wrote: > I've written a small program using the gtk2hs library and it crashes at > unpredictable times with X windows errors like the one below. I looked for > the messages online and found various people talking about buggy gtk > librarie

[Haskell-cafe] gtk2hs problem

2007-11-20 Thread Gregory Propf
I've written a small program using the gtk2hs library and it crashes at unpredictable times with X windows errors like the one below. I looked for the messages online and found various people talking about buggy gtk libraries but no clear solutions. I don't know a lot about X windows or what t