From owner-freebsd-java@FreeBSD.ORG Mon Feb 11 22:13:01 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 158EF16A41A for ; Mon, 11 Feb 2008 22:13:01 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (unknown [IPv6:2001:610:1908:1000:204:23ff:feb5:7e66]) by mx1.freebsd.org (Postfix) with ESMTP id 8F73E13C46A for ; Mon, 11 Feb 2008 22:13:00 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id m1BMCAtS008167; Mon, 11 Feb 2008 23:12:10 +0100 From: Pieter de Goeje To: freebsd-java@freebsd.org Date: Mon, 11 Feb 2008 23:12:09 +0100 User-Agent: KMail/1.9.7 References: <47B01EBA.4030809@zirakzigil.org> <20080211180212.GA61796@misty.eyesbeyond.com> In-Reply-To: <20080211180212.GA61796@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802112312.10253.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Giulio Ferro Subject: Re: Java desktop (eclipse) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 22:13:01 -0000 On Monday 11 February 2008, Greg Lewis wrote: > On Mon, Feb 11, 2008 at 11:08:58AM +0100, Giulio Ferro wrote: > > Is pretty much unusable. Every now and then, when you open a dialog or > > do some > > operation (e.g. refactoring) everything crashes with a "problematic > > frame" error > > or permgen error (even though I set a high value for that in config.ini). Add -XX:MaxPermSize=256m to eclipse.ini (/usr/local/eclipse/eclipse.ini) to fix. Also you might want to bump -Xmx up to 512m or more. BTW it would be nice if this file was moved to /usr/local/etc and if it wasn't overwritten during a reinstall. > > > > I already submitted more than one report on this and got no reply. Is > > java on freebsd > > abandoned or what? > > Definitely not. Although it sounds from your subsequent email that this is > mainly occurring for eclipse 3.3. Thats probably the reason while this > version of eclipse is still in the eclipse-devel port rather than having > become the stable eclipse port ;). It really seems like your problems > are specific to that version of eclipse and that you need people interested > in working on that rather than Java in general. The problem with eclipse-devel is that it invokes realpath(3) with a NULL resolved_path parameter, leading to a segfault. One can easily trigger the bug by clicking File -> Open. This can be worked around by patching the appropriate files. Place the following file in eclipse-devel/files - this file patches the swt FileDialog class to correctly call realpath(3). http://unforgiven.student.utwente.nl/~pyotr/eclipse/post-patch-plugins-swt-gtk-swt-FileDialog.java Add the file to the post-patch part of the port. http://unforgiven.student.utwente.nl/~pyotr/eclipse/Makefile.patch i.e. cd eclipse-devel; patch < Makefile.patch Good Luck! -- Pieter de Goeje