From owner-freebsd-x11@FreeBSD.ORG Sat Apr 12 21:48:39 2008 Return-Path: Delivered-To: x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47BFD106566C for ; Sat, 12 Apr 2008 21:48:39 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id D7B4D8FC13 for ; Sat, 12 Apr 2008 21:48:38 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.2/8.14.1) with ESMTP id m3CLDXq1038684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 12 Apr 2008 17:13:34 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.2/8.14.1/Submit) id m3CLDXVB038683 for x11@FreeBSD.org; Sat, 12 Apr 2008 17:13:33 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: x11@FreeBSD.org Date: Sat, 12 Apr 2008 17:13:33 -0400 User-Agent: KMail/1.9.9 X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: Subject: XCreateImage returns NULL X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2008 21:48:39 -0000 Hello! I have a weird problem on two machines already (both running FreeBSD-7, one is i386, the other -- amd64). Both have xorg-libraries-7.3_1 installed: xorg-docs-1.3,1/ xorg-fonts-miscbitmaps-7.2/ xorg-fonts-100dpi-7.2/ xorg-fonts-truetype-7.2/ xorg-fonts-7.2/ xorg-fonts-type1-7.2/ xorg-fonts-75dpi-7.2/ xorg-libraries-7.3_1/ xorg-fonts-cyrillic-7.2/ xorg-server-1.4_5,1/ The editors/xcoral port builds, but the installed executable dies on startup, because the call to 2839 image = XCreateImage(dpy, 2840 DefaultVisual(dpy,DefaultScreen(dpy)), 2841 DefaultDepth(dpy,DefaultScreen(dpy)), 2842 ZPixmap, 2843 0, 2844 data, 2845 wp, hp, 32, 2846 wp * bytes_per_pixel); returns NULL and the next line: 2847 image->bits_per_pixel = DefaultDepth(dpy,DefaultScreen(dpy)); dies. I'm not an expert on X11-programming, but the manual page does not even describe possible reasons for failure, nor explains, how to query them (errno?) Also, in ALL of the examples, I could find online, nobody ever checks, what XCreateImage returns: http://www.codase.com/search/call?name=xcreateimage&start=10 It just is not supposed to fail, I guess -- but crashes here 100%... Any ideas? Thanks! -mi