NetBSD Problem Report #45979

From  Fri Feb 10 21:28:17 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id ACF1863BCF4
	for <>; Fri, 10 Feb 2012 21:28:17 +0000 (UTC)
Message-Id: <>
Date: Fri, 10 Feb 2012 22:28:12 +0100 (CET)
From: "Bernhard Riedel" <>
Reply-To: "Bernhard Riedel" <>
Subject: pkgsrc/graphics/xli creatively mangles bitmaps
X-Send-Pr-Version: 3.95

>Number:         45979
>Category:       pkg
>Synopsis:       xli-1.17.0nb11 shows psychedelic artifacts when trying to display 1-bit deep pictures while using MIT-SHM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 21:30:00 +0000 2012
>Originator:     Bernhard "Burnhard" Riedel
>Release:        NetBSD 5.1
a nice concept
System: NetBSD 5.1 NetBSD 5.1 (WIP) #0: Sun Nov 27 22:39:05 CET 2011 amd64
Architecture: x86_64
Machine: amd64
	xli-1.17.0nb11 (from pkgsrc/graphics/xli) produces weird and beautiful
	effects when trying to display 1 bit deep bitmaps.
	This doesn't seem to depend on the file format (tried with .pbm and .png)
	(a) bitmap > screen
	    xli Tea1.png
	    you might notice that 
	      the picture contents are warped
	      there are colour effects
	      xli might render pixels outside the window frame on the left
	      more weirdness appears when trying to drag the viewable area around
        (b) small bitmap
	    xli draw02.png
	    the picture will be shown correctly.
	    now press a few keys. "l"/"r" to rotate, "." to reload.
	disable MIT-SHM extension (see xorg.conf(5))
        run xli and Xorg on two different machines

	I want to thank many people who helped reproduce/isolate this phenomenon,
	especially Ignatios Souvatzis (for pointing out SHM as an important difference
	between running on local vs remote display) and Matthias Kretschmer.
        Finally, Staffan Thomén tried with pkgsrc xli on Irix, and it worked
	correctly, despite MIT-SHM in his Xserver.
	Can't isolate which one of the differences (Irix X11 vs Xorg, different CPU
	endianness, different framebuffer endianness) is responsible.

 		NetBSD 5.1 NetBSD 5.1 (WIP) #0: Sun Nov 27 22:39:05 CET 2011 amd64
 		NetBSD 5.1.1 NetBSD 5.1.1 (YURI) #0: Sat Feb  4 09:20:13 CET 2012 i386
                 unspecified FreeBSD
 		unspecified Linux

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.