pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-15 Thread Giuseppe Pagnoni
Hi Michael,

thanks for replying.  Unfortunately changing the driver to the nv one does 
not work since nv does not support GLX which is required by pyglet.  I 
appreciate your suggestion, though.

cheers,
   giuseppe


--
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41100 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5363




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Giuseppe Pagnoni
Hello,

First of all, let me apologize for the re- and cross-posting , but
after a couple of weeks scouring the web and forums to no avail, I
thought I would try again and query the FreeBSD mother source...

I installed pyglet from the ports (latest version as of yesterday,
py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
found 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
luxi = pyglet.font.load('Luxi Sans', 14)
---   SEGMENTATION FAULT

- SNIPPET 2
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, 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:

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.1
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.36.15
(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,

cheers,

  giuseppe

-- 
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41125 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5336
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Jorge Medina
On Wed, Apr 14, 2010 at 7:44 AM, Giuseppe Pagnoni gpagn...@gmail.com wrote:
 Hello,

 First of all, let me apologize for the re- and cross-posting , but
 after a couple of weeks scouring the web and forums to no avail, I
 thought I would try again and query the FreeBSD mother source...

 I installed pyglet from the ports (latest version as of yesterday,
 py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
 version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
 found 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
 luxi = pyglet.font.load('Luxi Sans', 14)
 ---   SEGMENTATION FAULT

 - SNIPPET 2
 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, 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:

 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.1
 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.36.15
 (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,

 cheers,

  giuseppe

 --
 Giuseppe Pagnoni
 Dip. Scienze Biomediche
 Sezione Fisiologia
 Univ. di Modena e Reggio Emilia
 Via Campi 287
 I-41125 Modena, Italy
 Tel: +39-059-205-5742
 Fax: +39-059-205-5336
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


which is the resolution that you have running  the xorg?

-- 
Jorge Andrés Medina Oliva.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Michael Powell
Giuseppe Pagnoni wrote:

 Hello,
 
 First of all, let me apologize for the re- and cross-posting , but
 after a couple of weeks scouring the web and forums to no avail, I
 thought I would try again and query the FreeBSD mother source...
 
 I installed pyglet from the ports (latest version as of yesterday,
 py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
 version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
 found 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
 luxi = pyglet.font.load('Luxi Sans', 14)
 ---   SEGMENTATION FAULT
 
 - SNIPPET 2
 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, perhaps somebody can suggest a
 way to narrow down the problem?

I'm not a coder, but possibly this may help: 

http://pyglet.org/doc/api/index.html

Then look at pyglet.font and pyglet.font.base for example purposes.

 
 Here is some more information on my system reported by a routine
 included in a python package (PsychoPy) I am trying to use:
 
 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.1
 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.36.15
 (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

To drive a wedge you might consider as an experiment temporarily replacing 
the Nvidia driver in xorg.cong with the nv driver. If same problem, it may 
be confirming the problem is not an interaction with a video display driver 
but rather the Python coding itself. Notice the different approach in the 
doc example(s).

I'm not really a coder and don't know a whole lot about Python, but since 
this seems to have been a problem to you for a while now I thought maybe I'd 
toss out my ideas. YMMV  :-)

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


pyglet segfaults on FreeBSD 8.0/amd64

2010-04-01 Thread Giuseppe Pagnoni
Hi,

I installed pyglet from the ports (latest version as of yesterday) on
a FreeBSD 8.0 amd64 box, running the ports' nvidia driver.  I found
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


-- 
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41125 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5336
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org