Hello,

I am not sure this is the right place to post, but since I was not
able to find any solution on the web and in other forums I thought I
might try here to see if anybody can tip me in the right direction.

I installed pyglet (v. 1.1.2) from the ports system on a FreeBSD 8.0
amd64 box, running the ports' nvidia driver (v. 195.22).  I found out
that I cannot use either font.Text or text.label  without causing
segfaults.  Here is some sample code that makes python crash:

----- SNIPPET 1
import pyglet
window = pyglet.window.Window()
luxi = pyglet.font.load('Luxi Sans', 14)
-------  > SEGMENTATION FAULT

----- SNIPPET 12
import pyglet
window = pyglet.window.Window()
label = pyglet.text.Label('Hello, world',
  font_name='Luxi Sans',
  font_size=36,
  x=window.width//2,
  y=window.height//2,
  anchor_x='center',
  anchor_y='center')
-------  > SEGMENTATION FAULT

It seems that the problem arises already at the stage of font
loading.  I am not at all a python expert, but perhaps somebody can
suggest a way to narrow down the problem?

Here is some more information on my system reported by a routine
included in a python package (PsychoPy) I am trying to use, in case
that's useful:

System info:
FreeBSD-8.0-RELEASE-p2-amd64-64bit-ELF

Python info
/usr/local/bin/python
2.6.4 (r264:75706, Mar 23 2010, 15:20:14)
[GCC 4.2.1 20070719  [FreeBSD]]
numpy 1.4.0
scipy 0.7.1
matplotlib 0.99.0
pyglet 1.1.2
PsychoPy 1.60.03

OpenGL info:
vendor: NVIDIA Corporation
rendering engine: GeForce 9500 GT/PCI/SSE2
OpenGL version: 3.2.0 NVIDIA 195.22
(Selected) Extensions:
      True GL_ARB_multitexture
      True GL_EXT_framebuffer_object
      True GL_ARB_fragment_program
      True GL_ARB_shader_objects
      True GL_ARB_vertex_shader
      True GL_ARB_texture_non_power_of_two
      True GL_ARB_texture_float


Thanks in advance for any suggestion/comment,

very best

 giuseppe

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to