Skip to main content



      Home
Home » Archived » BIRT » LINUX GTK SWT crash
LINUX GTK SWT crash [message #12005] Tue, 01 March 2005 12:31 Go to next message
Eclipse UserFriend
Originally posted by: car.audaxis.com

HI all,

I'm using Mandrake 10.1, Eclipse 3.0.1 and tried to build a report with
the Report Designer. At the end of the wizard, I got a SWT crash (see
..log,...). Do you know if there is any workaround to get this working ?

Here is some excertp from my .log file.

!MESSAGE No more handles (java.lang.UnsatisfiedLinkError:
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
libxpcom.so: cannot open shared object file: No such file or directory)
!STACK 0
org.eclipse.swt.SWTError: No more handles
(java.lang.UnsatisfiedLinkError:
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
libxpcom.so: cannot open shared object file: No such file or directory)
at org.eclipse.swt.SWT.error(SWT.java:2717)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
at
org.eclipse.birt.report.designer.internal.ui.editors.preview .PreviewEditor.createPartControl(PreviewEditor.java:259)





Also, after the crash when I re-launch Eclipse, it fails because of a

!MESSAGE Missing required bundle org.eclipse.birt.chart.engine_0.0.0.

But I installed 0.0.1 ????

Any idea ?

Thanx,

Chris.
Re: LINUX GTK SWT crash [message #12031 is a reply to message #12005] Tue, 01 March 2005 16:41 Go to previous messageGo to next message
Eclipse UserFriend
I don't know if this is same problem or not, but I also got an error about
no more handles when running under Windows2000.

!MESSAGE No more handles
!STACK 0
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2717)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:17 23)
at org.eclipse.swt.graphics.GC.<init>(GC.java:120)
at org.eclipse.swt.graphics.GC.<init>(GC.java:87)
at
org.eclipse.birt.chart.device.swt.SwtTextRenderer.rotatedTex tAsImage(SwtText
Renderer.java:419)
at
org.eclipse.birt.chart.device.swt.SwtTextRenderer.renderText InBlock(SwtTextR
enderer.java:263)

There appears to be some GC's allocated that aren't being disposed. A quick
code search shows
org.eclipse.birt.report.designer.internal.ui.util.graphics.I mageCanvas not
disposing a GC in its clear() method.

Also org.eclipse.birt.chart.computation.LegendBuilder.compute() is calling
xs.getTextMetrics(la) which allocates a SwtTextMetrics which allocates a GC
and the textmextrics appears to never be disposed. Same thing in
org.eclipse.birt.chart.render.AxesRenderer.renderEachAxis() and
org.eclipse.birt.chart.render.BaseRenderer.renderLegend().
Re: LINUX GTK SWT crash [message #13229 is a reply to message #12005] Thu, 03 March 2005 13:36 Go to previous messageGo to next message
Eclipse UserFriend
I'm having the same issue on Fedora Core 3. I also tried booting into
WinXP and experienced something similar. I've tried both of the nightly
builds since the milestone release and am still unable to successfully
create a report.


Christophe ARYS wrote:

> HI all,

> I'm using Mandrake 10.1, Eclipse 3.0.1 and tried to build a report with
> the Report Designer. At the end of the wizard, I got a SWT crash (see
> ..log,...). Do you know if there is any workaround to get this working ?

> Here is some excertp from my .log file.

> !MESSAGE No more handles (java.lang.UnsatisfiedLinkError:
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> !STACK 0
> org.eclipse.swt.SWTError: No more handles
> (java.lang.UnsatisfiedLinkError:
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> at org.eclipse.swt.SWT.error(SWT.java:2717)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
> at
>
org.eclipse.birt.report.designer.internal.ui.editors.preview .PreviewEditor.createPartControl(PreviewEditor.java:259)





> Also, after the crash when I re-launch Eclipse, it fails because of a

> !MESSAGE Missing required bundle org.eclipse.birt.chart.engine_0.0.0.

> But I installed 0.0.1 ????

> Any idea ?

> Thanx,

> Chris.
Re: LINUX GTK SWT crash [message #13416 is a reply to message #12031] Thu, 03 March 2005 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eric,

We're aware of a few SWT resource leaks in the chart engine /
SWT-device-extension for which we should have fixes shortly. We've made
the fixes in source but need to run a few tests before committing these
changes.

Thanks for pointing them out.

Rohit Colaco
ECE Project Lead

---

Eric Simon wrote:

> I don't know if this is same problem or not, but I also got an error about
> no more handles when running under Windows2000.

> !MESSAGE No more handles
> !STACK 0
> org.eclipse.swt.SWTError: No more handles
> at org.eclipse.swt.SWT.error(SWT.java:2717)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.SWT.error(SWT.java:2587)
> at org.eclipse.swt.graphics.Image.internal_new_GC(Image.java:17 23)
> at org.eclipse.swt.graphics.GC.<init>(GC.java:120)
> at org.eclipse.swt.graphics.GC.<init>(GC.java:87)
> at
> org.eclipse.birt.chart.device.swt.SwtTextRenderer.rotatedTex tAsImage(SwtText
> Renderer.java:419)
> at
> org.eclipse.birt.chart.device.swt.SwtTextRenderer.renderText InBlock(SwtTextR
> enderer.java:263)

> There appears to be some GC's allocated that aren't being disposed. A quick
> code search shows
> org.eclipse.birt.report.designer.internal.ui.util.graphics.I mageCanvas not
> disposing a GC in its clear() method.

> Also org.eclipse.birt.chart.computation.LegendBuilder.compute() is calling
> xs.getTextMetrics(la) which allocates a SwtTextMetrics which allocates a GC
> and the textmextrics appears to never be disposed. Same thing in
> org.eclipse.birt.chart.render.AxesRenderer.renderEachAxis() and
> org.eclipse.birt.chart.render.BaseRenderer.renderLegend().
Re: LINUX GTK SWT crash [message #15216 is a reply to message #12005] Mon, 07 March 2005 03:31 Go to previous messageGo to next message
Eclipse UserFriend
Baoliang Liu wrote:

You need the Mozilla version 1.4 GTK2 for your distribution. Mozilla 1.5
GTK2 or Mozilla 1.6 GTK2 can also be used.
1. If you are using SWT 3.0, download the Mozilla 1.6 Xft & GTK2 build
available from the Mozilla XFT website. If you are using SWT 3.1, you can
choose to use the more recent Mozilla 1.7.3 GTK2 from Mozilla.org.
2. Uninstall any prior Mozilla version.
3. Extract and install the Mozilla build.
4. Run Mozilla once. Verify the application run correctly and check the
version number (1.6) in the Mozilla About dialog.
5. Set the environment variable MOZILLA_FIVE_HOME to the folder containing
your Mozilla install. e.g. setenv MOZILLA_FIVE_HOME /usr/lib/mozilla
6. Start Eclipse. Eclipse is now ready to use the Browser widget.

You may need to reboot your system.




> HI all,

> I'm using Mandrake 10.1, Eclipse 3.0.1 and tried to build a report with
> the Report Designer. At the end of the wizard, I got a SWT crash (see
> ..log,...). Do you know if there is any workaround to get this working ?

> Here is some excertp from my .log file.

> !MESSAGE No more handles (java.lang.UnsatisfiedLinkError:
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> !STACK 0
> org.eclipse.swt.SWTError: No more handles
> (java.lang.UnsatisfiedLinkError:
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> at org.eclipse.swt.SWT.error(SWT.java:2717)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
> at
>
org.eclipse.birt.report.designer.internal.ui.editors.preview .PreviewEditor.createPartControl(PreviewEditor.java:259)





> Also, after the crash when I re-launch Eclipse, it fails because of a

> !MESSAGE Missing required bundle org.eclipse.birt.chart.engine_0.0.0.

> But I installed 0.0.1 ????

> Any idea ?

> Thanx,

> Chris.
Re: LINUX GTK SWT crash [message #15640 is a reply to message #15216] Mon, 07 March 2005 22:54 Go to previous messageGo to next message
Eclipse UserFriend
Using Mozilla 1.6 did not work for me, however, 1.5 did.

Thank you.

Baoliang Liu wrote:

> Baoliang Liu wrote:

> You need the Mozilla version 1.4 GTK2 for your distribution. Mozilla 1.5
> GTK2 or Mozilla 1.6 GTK2 can also be used.
> 1. If you are using SWT 3.0, download the Mozilla 1.6 Xft & GTK2 build
> available from the Mozilla XFT website. If you are using SWT 3.1, you can
> choose to use the more recent Mozilla 1.7.3 GTK2 from Mozilla.org.
> 2. Uninstall any prior Mozilla version.
> 3. Extract and install the Mozilla build.
> 4. Run Mozilla once. Verify the application run correctly and check the
> version number (1.6) in the Mozilla About dialog.
> 5. Set the environment variable MOZILLA_FIVE_HOME to the folder containing
> your Mozilla install. e.g. setenv MOZILLA_FIVE_HOME /usr/lib/mozilla
> 6. Start Eclipse. Eclipse is now ready to use the Browser widget.

> You may need to reboot your system.




>> HI all,

>> I'm using Mandrake 10.1, Eclipse 3.0.1 and tried to build a report with
>> the Report Designer. At the end of the wizard, I got a SWT crash (see
>> ..log,...). Do you know if there is any workaround to get this working ?

>> Here is some excertp from my .log file.

>> !MESSAGE No more handles (java.lang.UnsatisfiedLinkError:
>>
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
>> libxpcom.so: cannot open shared object file: No such file or directory)
>> !STACK 0
>> org.eclipse.swt.SWTError: No more handles
>> (java.lang.UnsatisfiedLinkError:
>>
>
/home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
>> libxpcom.so: cannot open shared object file: No such file or directory)
>> at org.eclipse.swt.SWT.error(SWT.java:2717)
>> at org.eclipse.swt.SWT.error(SWT.java:2616)
>> at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
>> at
>>
>
org.eclipse.birt.report.designer.internal.ui.editors.preview .PreviewEditor.createPartControl(PreviewEditor.java:259)





>> Also, after the crash when I re-launch Eclipse, it fails because of a

>> !MESSAGE Missing required bundle org.eclipse.birt.chart.engine_0.0.0.

>> But I installed 0.0.1 ????

>> Any idea ?

>> Thanx,

>> Chris.
Re: LINUX GTK SWT crash [message #21747 is a reply to message #12005] Mon, 21 March 2005 04:50 Go to previous message
Eclipse UserFriend
Originally posted by: car.audaxis.com

I found a way to get it working. It seems that this was a 'standard'
bug of eclipse. My default browser is Firefox and I have to keep that.
In order to be able to use Birt, you'll have to install mozilla 1.6
(wherever you want). Then you'll have to specify to Eclipse where it is
located. To do this, just create a file named /etc/gre.conf containing:

[1.6]
GRE_PATH=/usr/local/mozilla

Finally, you have to be sure that the env. variable MOZILLA_FIVE_HOME is
not set (you may check it by typing: echo $MOZILLA_FIVE_HOME).
You can force this by typing: unset MOZILLA_FIVE_HOME before starting
Eclipse).

Chris.



> HI all,
>
> I'm using Mandrake 10.1, Eclipse 3.0.1 and tried to build a report with
> the Report Designer. At the end of the wizard, I got a SWT crash (see
> .log,...). Do you know if there is any workaround to get this working ?
>
> Here is some excertp from my .log file.
>
> !MESSAGE No more handles (java.lang.UnsatisfiedLinkError:
> /home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> !STACK 0
> org.eclipse.swt.SWTError: No more handles
> (java.lang.UnsatisfiedLinkError:
> /home/car/eclipse/plugins/org.eclipse.swt.gtk_3.0.1/os/linux /x86/libswt-mozilla-gtk-3063.so:
> libxpcom.so: cannot open shared object file: No such file or directory)
> at org.eclipse.swt.SWT.error(SWT.java:2717)
> at org.eclipse.swt.SWT.error(SWT.java:2616)
> at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
> at
> org.eclipse.birt.report.designer.internal.ui.editors.preview .PreviewEditor.createPartControl(PreviewEditor.java:259)
>
>
>
>
>
>
> Also, after the crash when I re-launch Eclipse, it fails because of a
>
> !MESSAGE Missing required bundle org.eclipse.birt.chart.engine_0.0.0.
>
> But I installed 0.0.1 ????
>
> Any idea ?
>
> Thanx,
>
> Chris.
Previous Topic:Draft Deployment Info
Next Topic:Who will write your reports?
Goto Forum:
  


Current Time: Fri May 09 21:17:55 EDT 2025

Powered by FUDForum. Page generated in 0.04452 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top