OpengGL lockup using GHC 6.6 on Intel Mac

I just installed ghc 6.6 from MacPorts and am trying to use the Haskell ported NeHe OpenGL lessons to play with OpenGL. Unfortunately, when I load the lesson in ghci and then run main the screen turns to garbage and I am forced to power cycle the machine to get back to my desktop. It's not a complete lockup as I an Alt-Tab between apps and the selector UI appears. Selecting an app, though, does nothing and I have no access to the desktop. Anyone know of any issues with the current HOpenGL on Intel? The code comes from this link: http://www.codersbase.com/index.php/Nehe-tuts Don't worry about darcs. You can select the URL for the repo and get the code directly form there. Thanx, joe

Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from http://darcs.haskell.org/packages/GLUT/examples/ work on your platform? Cheers, S.

The NeHe tutorials work for me with both GHC 6.6 and HEAD on my Intel Mac; however, I'm not using MacPorts. Is anyone else here who uses MacPorts on an Intel Mac, to confirm or deny the bug? Cheers, Wolfgang

Well, it doesn't lock the whole machine but loading Alpha3D.hs int
GHCi and typing main causes a window to be displayed with no content
and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.

I can reproduce this with ghc-6.6 built from source as well. I sampled ghc while it was stuck like this, and it looks like it's trying to open a GUI event loop (not surprising if it's opening a window). It looks like something about that is not working. Unfortunately, the Intel binary distribution on the downloads page is missing some of the OpenGL C headers, and so won't work properly either. Deborah On Dec 1, 2006, at 10:19 AM, Joe Jones wrote:
Well, it doesn't lock the whole machine but loading Alpha3D.hs int GHCi and typing main causes a window to be displayed with no content and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
wrote: Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

This also fails in Hugs (crashes rather than hangs), so it looks like it's a problem with the GLUT binding on Mac OS X Intel rather than something specific to GHC. I'll see if I can find a PPC machine to try it on also. Deborah On Dec 1, 2006, at 5:13 PM, Deborah Goldsmith wrote:
I can reproduce this with ghc-6.6 built from source as well. I sampled ghc while it was stuck like this, and it looks like it's trying to open a GUI event loop (not surprising if it's opening a window). It looks like something about that is not working.
Unfortunately, the Intel binary distribution on the downloads page is missing some of the OpenGL C headers, and so won't work properly either.
Deborah
On Dec 1, 2006, at 10:19 AM, Joe Jones wrote:
Well, it doesn't lock the whole machine but loading Alpha3D.hs int GHCi and typing main causes a window to be displayed with no content and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
wrote: Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

It fails on PowerPC too, using the standard PPC distribution. Deborah On Dec 1, 2006, at 6:41 PM, Deborah Goldsmith wrote:
This also fails in Hugs (crashes rather than hangs), so it looks like it's a problem with the GLUT binding on Mac OS X Intel rather than something specific to GHC. I'll see if I can find a PPC machine to try it on also.
Deborah
On Dec 1, 2006, at 5:13 PM, Deborah Goldsmith wrote:
I can reproduce this with ghc-6.6 built from source as well. I sampled ghc while it was stuck like this, and it looks like it's trying to open a GUI event loop (not surprising if it's opening a window). It looks like something about that is not working.
Unfortunately, the Intel binary distribution on the downloads page is missing some of the OpenGL C headers, and so won't work properly either.
Deborah
On Dec 1, 2006, at 10:19 AM, Joe Jones wrote:
Well, it doesn't lock the whole machine but loading Alpha3D.hs int GHCi and typing main causes a window to be displayed with no content and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
wrote: Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

I can get this to work if I compile it with ghc, rather than try to run it with ghci or hugs. ghc --make Alpha3D.hs ./Alpha3D works fine with no hangs. Deborah On Dec 1, 2006, at 6:49 PM, Deborah Goldsmith wrote:
It fails on PowerPC too, using the standard PPC distribution.
Deborah
On Dec 1, 2006, at 6:41 PM, Deborah Goldsmith wrote:
This also fails in Hugs (crashes rather than hangs), so it looks like it's a problem with the GLUT binding on Mac OS X Intel rather than something specific to GHC. I'll see if I can find a PPC machine to try it on also.
Deborah
On Dec 1, 2006, at 5:13 PM, Deborah Goldsmith wrote:
I can reproduce this with ghc-6.6 built from source as well. I sampled ghc while it was stuck like this, and it looks like it's trying to open a GUI event loop (not surprising if it's opening a window). It looks like something about that is not working.
Unfortunately, the Intel binary distribution on the downloads page is missing some of the OpenGL C headers, and so won't work properly either.
Deborah
On Dec 1, 2006, at 10:19 AM, Joe Jones wrote:
Well, it doesn't lock the whole machine but loading Alpha3D.hs int GHCi and typing main causes a window to be displayed with no content and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
wrote: Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones:
[...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Yep, that works well. Thanx!
On 12/1/06, Deborah Goldsmith
I can get this to work if I compile it with ghc, rather than try to run it with ghci or hugs.
ghc --make Alpha3D.hs ./Alpha3D
works fine with no hangs.
Deborah
On Dec 1, 2006, at 6:49 PM, Deborah Goldsmith wrote:
It fails on PowerPC too, using the standard PPC distribution.
Deborah
On Dec 1, 2006, at 6:41 PM, Deborah Goldsmith wrote:
This also fails in Hugs (crashes rather than hangs), so it looks like it's a problem with the GLUT binding on Mac OS X Intel rather than something specific to GHC. I'll see if I can find a PPC machine to try it on also.
Deborah
On Dec 1, 2006, at 5:13 PM, Deborah Goldsmith wrote:
I can reproduce this with ghc-6.6 built from source as well. I sampled ghc while it was stuck like this, and it looks like it's trying to open a GUI event loop (not surprising if it's opening a window). It looks like something about that is not working.
Unfortunately, the Intel binary distribution on the downloads page is missing some of the OpenGL C headers, and so won't work properly either.
Deborah
On Dec 1, 2006, at 10:19 AM, Joe Jones wrote:
Well, it doesn't lock the whole machine but loading Alpha3D.hs int GHCi and typing main causes a window to be displayed with no content and ghc 6.6 locked up, requiring a hard kill.
On 12/1/06, Sven Panne
wrote: Am Mittwoch, 29. November 2006 19:29 schrieb Joe Jones: > [...] Anyone know of any issues with the current HOpenGL on Intel? [...]
The Haskell versions of the NeHe tutorials work for me on x86_64 openSUSE 10.1 (GHC 6.6 and bleeding edge GHC from darcs repo, perhaps a few weeks old), so I guess that this is a Mac issue. Jason converted the tutorials on a G4, so I assume it is a problem with Mac + Intel. I don't have access to such a platform, so some help is needed. Do any of the examples from
http://darcs.haskell.org/packages/GLUT/examples/
work on your platform?
Cheers, S.
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (4)
-
Deborah Goldsmith
-
Joe Jones
-
Sven Panne
-
Wolfgang Thaller