From owner-freebsd-questions@FreeBSD.ORG Thu Apr 1 21:15:45 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 40D46106566B for ; Thu, 1 Apr 2010 21:15:45 +0000 (UTC) (envelope-from gpagnoni@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id D26CA8FC18 for ; Thu, 1 Apr 2010 21:15:44 +0000 (UTC) Received: by gwaa20 with SMTP id a20so242952gwa.13 for ; Thu, 01 Apr 2010 14:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=cHfOorCbLufRoZi0m0JJM0Pxe+Xe9LUGLNGJvIQvSFs=; b=suqm2JbwMa9CCuZXBRYe9NStrrrC4JlBiEps2/7b76fw5lvN7ER1fVqbaHQAKHi5MB SWlJk6xwfscON0B82WBCKi2AnWhVpG0Bmkmx35hHMXNyyWs12LUTaZR8gKXvuq3XxZG0 g4qFwII/E8YodjHMWVwL2BarDOdE8rHA4RvDU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Mg7WueFwa612YbXUn2QVTaqNH9yoyW78GqwXN52joRDOr2ksoxBuyo2BiOtO5/DxHo AeH1ENmprq0Jt6jN7sIWAr/DzSqvL2DF2XG3zXOMlAX152ThKSC7f5pUCttlPi8bpxhG 1bVE/23o7BqGPRNJkrVvrMMIkLGDWtba3GHXQ= MIME-Version: 1.0 Received: by 10.90.63.15 with HTTP; Thu, 1 Apr 2010 14:15:43 -0700 (PDT) Date: Thu, 1 Apr 2010 23:15:43 +0200 Received: by 10.91.161.23 with SMTP id n23mr2302726ago.66.1270156543571; Thu, 01 Apr 2010 14:15:43 -0700 (PDT) Message-ID: From: Giuseppe Pagnoni To: freebsd-questions@freebsd.org, freebsd-python@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: pyglet segfaults on FreeBSD 8.0/amd64 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: Thu, 01 Apr 2010 21:15:45 -0000 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