From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 9 22:30:26 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9211434E for ; Tue, 9 Oct 2012 22:30:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 6C3668FC1B for ; Tue, 9 Oct 2012 22:30:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q99MUQAq043701 for ; Tue, 9 Oct 2012 22:30:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q99MUQRR043700; Tue, 9 Oct 2012 22:30:26 GMT (envelope-from gnats) Resent-Date: Tue, 9 Oct 2012 22:30:26 GMT Resent-Message-Id: <201210092230.q99MUQRR043700@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ronald F.Guilmette" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 83EB427C for ; Tue, 9 Oct 2012 21:28:56 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 58BAA8FC16 for ; Tue, 9 Oct 2012 21:28:56 +0000 (UTC) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 7E97350844; Tue, 9 Oct 2012 14:28:54 -0700 (PDT) Message-Id: <20121009212854.7E97350844@segfault.tristatelogic.com> Date: Tue, 9 Oct 2012 14:28:54 -0700 (PDT) From: "Ronald F.Guilmette" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/172548: ports/xbmc wrong rasterizer selected when run as non-root Cc: rfg@tristatelogic.com X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Ronald F.Guilmette" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 22:30:26 -0000 X-List-Received-Date: Tue, 09 Oct 2012 22:30:26 -0000 >Number: 172548 >Category: ports >Synopsis: ports/xbmc wrong rasterizer selected when run as non-root >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 09 22:30:25 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ronald F. Guilmette >Release: FreeBSD 9.0-RELEASE amd64 >Organization: entr0py >Environment: FreeBSD 9.0-RELEASE amd64 >Description: NOTE: I have never before filed a FreeBSD PR with Severity=critical and Priority=high, but I do think that it is warranted in this case, because xbmc is utterly unusable (by any non-root user) due to this issue/problem/bug. As described in this thread: http://forum.xbmc.org/showthread.php?tid=133221 (see both pages of it, please) when xbmc is executed as an ordinary user, for some reason it chooses the built-in _software_ rasterizer, and this choice makes xbmc run as slow as old dog. However for equally unknown reasons, when xbmc is executed under root, the correct (hardrware) rasterizer is selected, and in that case, performance of xbmc is normal. (Note that it was *not* just ne who reported this problematic behavior. Somebody else did first, and that somebody else is, I would guess, probably running xbmc under Linux... so I would also guess that this problem in xbmc is not even FreeBSD-specific.) Anyway, I have verified this exact behavior under FreeBSD 9.0 on two different platforms... one with an AMD cpu and ATI graphics, and another with an Intel CPU and Intel graphics. So it is clearly not hardware dependent. It is however clearly a permissions problem lurking somwhere. (I don't know enough about xbmc, or Mesa, or DRI to even begin to guess where.) >How-To-Repeat: portinstall --batch xbmc {log in as normal user} xbmc {notice now how slow & unresponsive mouse is now} su root {give root password} xbmc {notice how now, xbmc runs at a reasonable rate & mouse is responsive} >Fix: I have no idea how to fix this. I am hoping and praying that the FreeBSD port maintainer for xbmc will send me a fix. >Release-Note: >Audit-Trail: >Unformatted: