From owner-freebsd-questions@FreeBSD.ORG Thu Sep 17 15:58:20 2009 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 561CF1065670 for ; Thu, 17 Sep 2009 15:58:20 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 117718FC0C for ; Thu, 17 Sep 2009 15:58:20 +0000 (UTC) Received: from isis.bris.ac.uk ([137.222.10.63]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MoJN9-0005e1-MO; Thu, 17 Sep 2009 16:58:19 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by isis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1MoJN9-0002Tr-2p; Thu, 17 Sep 2009 16:58:15 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id n8HFwEdU022261; Thu, 17 Sep 2009 16:58:14 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3/Submit) id n8HFwEYi022260; Thu, 17 Sep 2009 16:58:14 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 17 Sep 2009 16:58:14 +0100 From: Anton Shterenlikht To: Roland Smith Message-ID: <20090917155814.GA22231@mech-cluster241.men.bris.ac.uk> References: <20090914153728.GA60162@mech-cluster241.men.bris.ac.uk> <20090914154241.GA60268@mech-cluster241.men.bris.ac.uk> <20090914172233.GA69286@slackbox.xs4all.nl> <20090917123404.GA101@mech-cluster241.men.bris.ac.uk> <20090917131616.GA1393@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090917131616.GA1393@slackbox.xs4all.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-questions@freebsd.org Subject: Re: port math/gnuplot hangs and ignores "kill -9" 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, 17 Sep 2009 15:58:20 -0000 On Thu, Sep 17, 2009 at 03:16:16PM +0200, Roland Smith wrote: > On Thu, Sep 17, 2009 at 01:34:04PM +0100, Anton Shterenlikht wrote: > > > It could be that the process is stuck in the 'D' state (uninterruptable wait). > > > You can veryfiy that by running 'ps -u' and looking in the eight column when > > > gnuplot is running. > > > > > > Does the window with the plot actually appear? > > > > > > Interactive use of gnuplot-4.2.6 is fine on amd64 7.2-RELEASE-p2. > > > > I reinstalled gnuplot-4.2.6 and (hopefully) all ports on which it depends. > > I still get the same behaviour. > > > > top -PISu shows: > > > > last pid: 108; load averages: 0.88, 0.35, 0.19 up 2+02:23:38 13:27:52 > > 109 processes: 4 running, 88 sleeping, 17 waiting > > CPU 0: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle > > CPU 1: 0.0% user, 0.0% nice, 100% system, 0.0% interrupt, 0.0% idle > > Mem: 105M Active, 2074M Inact, 363M Wired, 768K Cache, 827M Buf, 5322M Free > > Swap: 19G Total, 19G Free > > > > PID UID THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > 11 0 2 171 ki31 0K 64K RUN 0 77.9H 100.00% idle > > 99992 1001 2 48 0 98240K 55608K CPU1 1 0:00 100.00% gnuplot > > > > so gnuplot is using 100% and all in system state. > > > > and ps -u: > > > > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > > mexas 99992 98.1 0.7 98240 55608 5 R+ 1:25pm 0:00.72 gnuplot > > > > so the state is not "D". > > > > The window does appear (just using simple gnuplot> plot sin(x), and > > the terminal is set to 'wxt', but nothing ever apears in the window. > > The wxt terminal is only available when gnuplot is compiled with the wxWidgets > toolkit. Try using the plain x11 terminal, and see if that works better? Roland, perhaps you also know the origin of this gnuplot warning: Could not find/open font when opening font "arial", using internal non-scalable font >From searching the net it appears that gnuplot is not finding truetype fonts, something to do with GD library. I've got xorg-fonts-truetype-7.4 and gd-2.0.35_1,1 installed. So I'm not sure what the problem is. Several functions are not available without truetype fonts, e.g. label rotation, which is sometimes useful. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423