From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 20:42:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A1E106566C for ; Wed, 14 Apr 2010 20:42:56 +0000 (UTC) (envelope-from jorge@bsdchile.cl) Received: from mail-pz0-f201.google.com (mail-pz0-f201.google.com [209.85.222.201]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD4B8FC0C for ; Wed, 14 Apr 2010 20:42:56 +0000 (UTC) Received: by pzk39 with SMTP id 39so554585pzk.7 for ; Wed, 14 Apr 2010 13:42:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.156.12 with HTTP; Wed, 14 Apr 2010 13:42:56 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Apr 2010 16:42:56 -0400 Received: by 10.142.67.29 with SMTP id p29mr3757030wfa.138.1271277776101; Wed, 14 Apr 2010 13:42:56 -0700 (PDT) Message-ID: From: Jorge Medina To: Giuseppe Pagnoni Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: pyglet segfaults on FreeBSD 8.0/amd64/nVidia X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 20:42:56 -0000 On Wed, Apr 14, 2010 at 7:44 AM, Giuseppe Pagnoni wrot= e: > 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). =A0I > found that I cannot use either font.Text or text.label without causing > segfaults. =A0Here is some sample code that makes python crash: > > ----- SNIPPET 1 > import pyglet > luxi =3D pyglet.font.load('Luxi Sans', 14) > ------- =A0> SEGMENTATION FAULT > > ----- SNIPPET 2 > import pyglet > window =3D pyglet.window.Window() > label =3D pyglet.text.Label('Hello, world', > =A0 font_name=3D'Luxi Sans', > =A0 font_size=3D36, > =A0 x=3Dwindow.width//2, > =A0 y=3Dwindow.height//2, > =A0 anchor_x=3D'center', > =A0 anchor_y=3D'center') > ------- =A0> 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 =A0[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: > =A0 =A0 =A0 True GL_ARB_multitexture > =A0 =A0 =A0 True GL_EXT_framebuffer_object > =A0 =A0 =A0 True GL_ARB_fragment_program > =A0 =A0 =A0 True GL_ARB_shader_objects > =A0 =A0 =A0 True GL_ARB_vertex_shader > =A0 =A0 =A0 True GL_ARB_texture_non_power_of_two > =A0 =A0 =A0 True GL_ARB_texture_float > > > Thanks in advance for any suggestion/comment, > > cheers, > > =A0giuseppe > > -- > 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-unsubscribe@freebsd.o= rg" > which is the resolution that you have running the xorg? --=20 Jorge Andr=E9s Medina Oliva.