#202 freeglut builds but crashes in X11 remote session from MacOSX

open
nobody
None
5
5 days ago
2013-10-20
Bruce Axtens
No

Context: Mac OS X 10.6.8, BuildVersion: 10K549; freeglut 2.8.1, installed using 'brew'

Building the 'Fast OpenGL method' version of the image noise project on RosettaCode.

Build command:

gcc -I/opt/X11/include -L/opt/X11/lib -lGL -lglut noise.c -o noise

It builds and runs perfectly in Linux. It builds perfectly on Mac OSX. However, when it's run on Mac (via X11 remote session) it crashes, viz:

bash-3.2$ ./noise
freeglut (./noise):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
Segmentation fault

A ticket I thought may have had something to do with this referred to NVidia graphics but I don't think that applies here because the graphics use a different chipset, viz

bash-3.2$ system_profiler
...
Intel GMA 950:

  Chipset Model: GMA 950
  Type: GPU
  Bus: Built-In
  VRAM (Total): 64 MB of Shared System Memory
  Vendor: Intel (0x8086)
  Device ID: 0x27a2
  Revision ID: 0x0003
  Displays:
    Color LCD:
      Resolution: 1280 x 800
      Pixel Depth: 32-Bit Color (ARGB8888)
      Main Display: Yes
      Mirror: Off
      Online: Yes
      Display Asleep: Yes
      Built-In: Yes
    Display Connector:
      Status: No Display Connected
...

Discussion