From supraexpress@globaleyes.net  Mon Sep 19 04:05:56 2005
Return-Path: <supraexpress@globaleyes.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4C30B16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Sep 2005 04:05:56 +0000 (GMT)
	(envelope-from supraexpress@globaleyes.net)
Received: from mercury.ll.net (mercury.ll.net [209.131.224.35])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E987343D46
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Sep 2005 04:05:55 +0000 (GMT)
	(envelope-from supraexpress@globaleyes.net)
Received: from freebsd2.localnet10 (unverified [209.131.253.90]) by mercury.ll.net
 (Vircom SMTPRS 3.2.315.0) with ESMTP id <B0437329441@mercury.ll.net> for <FreeBSD-gnats-submit@freebsd.org>;
 Sun, 18 Sep 2005 23:05:52 -0500
Message-Id: <1127102752.0@freebsd2.localnet10>
Date: Sun, 18 Sep 2005 23:05:52 -0500
From: "User1001" <supraexpress@globaleyes.net>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: xfig-3.2.4_1 takes over cpu after clicking editing-type button
X-Send-Pr-Version: gtk-send-pr 0.4.6 
X-GNATS-Notify:

>Number:         86318
>Category:       ports
>Synopsis:       graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lesi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 19 04:10:06 GMT 2005
>Closed-Date:    Thu Nov 17 21:21:13 GMT 2005
>Last-Modified:  Thu Nov 17 21:21:13 GMT 2005
>Originator:     User1001
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:


System: FreeBSD 5.4-STABLE #0: Wed Jul 13 01:21:45 CDT 2005

xfig-3.2.4_2
xorg-clients-6.8.2 
xorg-server-6.8.2_6
transfig-3.2.4_1


>Description:


1) start XFIG
2) click on TEXT button
3) move mouse pointer to a spot on the canvas and click to open up a text box
4) no apparent reaction
5) check TOP - xfig slowly but surely takes more and more of the CPU
6) kill XFIG

This has begun to happen only "recently". There have been a number of ports
updates over the last month, or so. The last time it worked proplery was
September 1, 2005.

Note: am able to open and load a previously saved XFIG file through the GUI,
but clicking on ANY editing-button fails as above.


>How-To-Repeat:





>Fix:





>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Mon Oct 3 22:11:43 GMT 2005 
State-Changed-Why:  
Can you provide a patch to fix this problem? 

Note that xfig port is unmaintained at the moment. I'm afraid we're not able 
to help you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86318 

From: User1001 <supraexpress@globaleyes.net>
To: bug-followup@FreeBSD.org,  supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Fri, 07 Oct 2005 22:49:18 -0500

 It might be that xfig-3.2.4 has a memory leak as it gobs up memory as it 
   gobs up CPU. I don't have the means to tell.
 
 xfig-3.2.5-alpha5 (and transfig-3.2.5-alpha5), however, DOES work with 
 minimal compilation changes.
 
 Sources:
 
 http://xfig.org/art4.html/
 ftp://www-epb.lbl.gov/xfig/alpha/
 
 
 Raw changes for xfig-3.2.5-alpha5:
 1) Imakefile
 *** Imakefile.orig      Mon Apr 26 15:24:41 2004
 --- Imakefile   Fri Oct  7 22:26:10 2005
 ***************
 *** 71,77 ****
    XCOMM Redefine the following if your PNG library, zlib library and/or 
 include file
    XCOMM are in different places
 
 ! PNGLIBDIR = $(USRLIBDIR)
    PNGINC = -I/usr/local/include
    ZLIBDIR = $(USRLIBDIR)
 
 --- 71,77 ----
    XCOMM Redefine the following if your PNG library, zlib library and/or 
 include file
    XCOMM are in different places
 
 ! PNGLIBDIR = /usr/local/lib
    PNGINC = -I/usr/local/include
    ZLIBDIR = $(USRLIBDIR)
 
 ***************
 *** 116,122 ****
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/include/X11
    #endif
 
    XCOMM Uncomment the following definiton if you want to use the small 
 icons
 --- 116,122 ----
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/X11R6/include/X11
    #endif
 
    XCOMM Uncomment the following definiton if you want to use the small 
 icons
 
 2) renaming sample files
 Rename -[a-z].fig.gz files in 
 ./Libraries/Electronic/Schematic/More/simple_device-inch/ and 
 ./Libraries/Electronic/Schematic/More/simple_device-metric, to have no 
 leading dash or INSTALL will take filename as a paramter, and will fail.
 
 Then xmkmf -a, make, make install. Note: installation target may need to 
 be adjusted.
 
 
 Raw changes to transfig-3.2.5-alpha:
 
 1) fig2dev/Imakefile
 
 *** Imakefile.orig      Mon Jan  5 12:40:42 2004
 --- Imakefile   Fri Oct  7 22:16:25 2005
 ***************
 *** 74,82 ****
    XCOMM file are in different places
 
    #ifdef USEPNG
 ! PNGLIBDIR = $(USRLIBDIR)
    ZLIBDIR = $(USRLIBDIR)
 ! PNGINC = -I/usr/include/X11
    #endif
 
    XCOMM ****************
 --- 74,82 ----
    XCOMM file are in different places
 
    #ifdef USEPNG
 ! PNGLIBDIR = /usr/local/lib
    ZLIBDIR = $(USRLIBDIR)
 ! PNGINC = -I/usr/local/include/libpng
    #endif
 
    XCOMM ****************
 ***************
 *** 92,98 ****
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/include/X11
    #endif
 
    XCOMM ****************
 --- 92,98 ----
 
    #ifdef USEXPM
    XPMLIBDIR = $(USRLIBDIR)
 ! XPMINC = -I/usr/X11R6/include/X11
    #endif
 
    XCOMM ****************
 
 2) fig2dev/fig2dev.h
 
 *** fig2dev.h.orig      Fri Oct  7 22:09:02 2005
 --- fig2dev.h   Fri Oct  7 22:09:43 2005
 ***************
 *** 214,220 ****
    #endif /* PATH_MAX */
 
    #if ( !defined(__NetBSD__) && !defined(__DARWIN__))
 ! extern int            sys_nerr, errno;
    #endif
 
    #if ( !(defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__) && \
 --- 214,221 ----
    #endif /* PATH_MAX */
 
    #if ( !defined(__NetBSD__) && !defined(__DARWIN__))
 ! extern const int      sys_nerr;
 ! extern int            errno;
    #endif
 
    #if ( !(defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__) && \
 
 Then xmkmf -a, make, make install. Installation target may need to be 
 changed.
 
 
 BOTH applications work as far as I can tell (open figure, enter text, 
 edit object, export figure as LaTeX pictures, or eps).
 
 Conclusion: remove transfig-3.2.4_2 and xfig-3.2.4_2 ports and create 
 new ports for transfig-3.2.5-alpha5 and xfig-3.2.5-alpha5 (which is not 
 my forte).

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
Date: Fri, 11 Nov 2005 23:50:19 +0100

 Assuming you use KDE with "Apply colors to non-KDE applications" enabled, this 
 should be fixed with xfig-3.2.4_3. Can you confirm this?
 See also thread "xfig freezes on amd64 with KDE 3.4.2":
 http://lists.freebsd.org/mailman/htdig/freebsd-ports/2005-October/026807.html

From: User1001 <supraexpress@globaleyes.net>
To: Dejan Lesjak <dejan.lesjak@ijs.si>,  bug-followup@freebsd.org
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Fri, 11 Nov 2005 19:05:50 -0600

 I don't use KDE, so cannot confirm. I have already migrated to
 3.2.5_alpha5. I do use Xorg libraries, however, and there WERE a bunch
 of port/OS S/W changes around the time when this symptom first appeared
 for me, but I couldn't pin down anything specific.
 
 Dejan Lesjak wrote:
 > Assuming you use KDE with "Apply colors to non-KDE applications" enabled, this 
 > should be fixed with xfig-3.2.4_3. Can you confirm this?
 > See also thread "xfig freezes on amd64 with KDE 3.4.2":
 > http://lists.freebsd.org/mailman/htdig/freebsd-ports/2005-October/026807.html

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
Date: Sat, 12 Nov 2005 07:58:33 +0100

 It still might be the fix for the issue - at least I cannot reproduce your 
 problem. 
 
 Could you please try xfig-3.2.4_3 and see if it works for you?

From: User1001 <supraexpress@globaleyes.net>
To: Michael Nottebrock <lofi@freebsd.org>,  bug-followup@freebsd.org
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Sat, 12 Nov 2005 10:08:07 -0600

 OK - I can try 3.2.4_3 since I still have the 3.2.5_alpha5 source
 archive and compiled it outside of the ports tree.
 
 Michael Nottebrock wrote:
 > It still might be the fix for the issue - at least I cannot reproduce your 
 > problem. 
 > 
 > Could you please try xfig-3.2.4_3 and see if it works for you?
 

From: User1001 <supraexpress@globaleyes.net>
To: Michael Nottebrock <lofi@freebsd.org>,  bug-followup@freebsd.org
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Sun, 13 Nov 2005 09:12:57 -0600

 No - 3.2.4_3 does not work for me. Same problem - click on widget on
 left - no response to window any more, CPU utilization "reaches for the
 ceiling". Please upgrade the port to 3.2.5_alpha5. Thank you.
 
 
 TOP display for 3.2.5_alpha5 (after selecting item from left panel):
 6960K  5456K select   0:00  0.00%  0.00%
 
 
 TOP display for 3.2.4_3 (after selecting item from left panel):
 6556K  5264K RUN      0:44 93.42% 87.16%
 
 
 Size differences between the two versions:
 1452728 Oct  7 22:35 /usr/X11R6/bin/xfig (3.2.5_alpha5)
 
 1377410 Nov 13 08:25 /usr/ports/graphics/xfig/work/xfig.3.2.4/xfig (3.2.4_3)
 
 
 There are a number of bug fixes and functional enhancements to
 3.2.5_alpha5, and it is about two years newer than 3.2.4_3.
 
 
 Michael Nottebrock wrote:
 > It still might be the fix for the issue - at least I cannot reproduce your 
 > problem. 
 > 
 > Could you please try xfig-3.2.4_3 and see if it works for you?

From: User1001 <supraexpress@globaleyes.net>
To: Michael Nottebrock <lofi@freebsd.org>,  bug-followup@freebsd.org
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking
 editing-type button
Date: Sun, 13 Nov 2005 09:26:58 -0600

 No change - xfig 3.2.4_3 locks up as soon as I select anything from the
 left (Editing) panel, and CPU utilization "reaches for the sky".
 
 Xfig 3.2.5_alpha5 works like a charm, is about 2 years newer than 3.2.4,
 and has bug fixes and enhancements over 3.2.4. I vote for upgrading xfig
  port to 3.2.5_alpha5.
 
 Michael Nottebrock wrote:
 > It still might be the fix for the issue - at least I cannot reproduce your 
 > problem. 
 > 
 > Could you please try xfig-3.2.4_3 and see if it works for you?

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
Date: Sun, 13 Nov 2005 18:58:55 +0100

 Feel free to open another PR to submit a port for xfig 3.2.5.
 
 Given that that 3.2.5 is, despite everything, considered a development 
 snapshot however, please submit it as a new port (xfig-devel), not as an 
 update against 3.2.4.

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: bug-followup@freebsd.org,
 supraexpress@globaleyes.net
Cc:  
Subject: Re: ports/86318: graphics/xfig 3.2.4_1 takes over cpu after clicking editing-type button
Date: Sun, 13 Nov 2005 19:20:40 +0100

 I actually made xfig-devel port to see if it would fix this problem a while 
 ago. I'll dig around and add it when I find it. graphics/xfig does seem to 
 work for several people so it should be kept as is.
State-Changed-From-To: feedback->open 
State-Changed-By: lesi 
State-Changed-When: Sun Nov 13 18:59:15 GMT 2005 
State-Changed-Why:  
Feedback received. 
Grab as reminder for xfig-devel port. 


Responsible-Changed-From-To: freebsd-ports-bugs->lesi 
Responsible-Changed-By: lesi 
Responsible-Changed-When: Sun Nov 13 18:59:15 GMT 2005 
Responsible-Changed-Why:  
Feedback received. 
Grab as reminder for xfig-devel port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86318 
State-Changed-From-To: open->closed 
State-Changed-By: lesi 
State-Changed-When: Thu Nov 17 21:20:22 GMT 2005 
State-Changed-Why:  
Xfig 3.2.5 alpha5 added as graphics/xfig-devel. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86318 
>Unformatted:
