Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Issues with SWT 3.5 and Solaris (Sparc)
Issues with SWT 3.5 and Solaris (Sparc) [message #545917] Fri, 09 July 2010 15:23 Go to next message
Jay Mising name is currently offline Jay Mising nameFriend
Messages: 11
Registered: July 2010
Junior Member
Hi all,

I'm trying to run a swt browser application on Solaris 10 u3. I first tried to load the GTK version of swt and i get this error:

bash-3.00$ java -jar DJSweet-Demo.jar
The program 'SWT' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.  (Details: serial 316 error_code 16 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


So i switch to the Motiff jar and i get this error:

bash-3.00$ java -jar DJSweet-Demo.jar
The program 'SWT' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.  (Details: serial 316 error_code 16 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


I've tried versions 3.5 and versions 3.6 and get the same error. The GTK version is 2.4.9.

I set the MOZILLA_FIVE_HOME and LD_LIBRARY_PATH = /usr/sfw/lib/mozilla

Any suggestions?
Re: Issues with SWT 3.5 and Solaris (Sparc) [message #545958 is a reply to message #545917] Fri, 09 July 2010 17:42 Go to previous messageGo to next message
Jay Mising name is currently offline Jay Mising nameFriend
Messages: 11
Registered: July 2010
Junior Member
Sorry, the error when i run with the Motif swt is:
bash-3.00$ java -jar DJSweet-Demo.jar



Caused by: org.eclipse.swt.SWTError: No more handles [Unsupported platform]
        at org.eclipse.swt.SWT.error(Unknown Source)
        at org.eclipse.swt.browser.MozillaDelegate.<init>(Unknown Source)
        at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
        at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
        at chrriis.dj.sweet.components.JWebBrowser.<init>(JWebBrowser.java:279)        at chrriis.dj.sweet.demo.examples.webbrowser.ClasspathPages.<init>(ClasspathPages.java:27)


Re: Issues with SWT 3.5 and Solaris (Sparc) [message #546011 is a reply to message #545958] Fri, 09 July 2010 21:22 Go to previous messageGo to next message
Jay Mising name is currently offline Jay Mising nameFriend
Messages: 11
Registered: July 2010
Junior Member
Here is the line of code that it is crashing on:


shell.setImages



Any ideas?
Re: Issues with SWT 3.5 and Solaris (Sparc) [message #546012 is a reply to message #546011] Fri, 09 July 2010 21:25 Go to previous messageGo to next message
Jay Mising name is currently offline Jay Mising nameFriend
Messages: 11
Registered: July 2010
Junior Member
Sorry, here is the full line of code it is crashing on:

    shell.setImages(new Image[] {
        new Image(display, clazz.getResourceAsStream("resource/DJIcon16x16.png")),
        new Image(display, clazz.getResourceAsStream("resource/DJIcon24x24.png")),
        new Image(display, clazz.getResourceAsStream("resource/DJIcon32x32.png")),
        new Image(display, clazz.getResourceAsStream("resource/DJIcon48x48.png")),
        new Image(display, clazz.getResourceAsStream("resource/DJIcon256x256.png")),
    });


With error:

The program 'SWT' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.  (Details: serial 316 error_code 16 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Re: Issues with SWT 3.5 and Solaris (Sparc) [message #546595 is a reply to message #546012] Tue, 13 July 2010 13:53 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

If the app you're running requires use of the Browser then the solaris-motif
build will not work because it does not have Browser support.

The error you're seeing on solaris-gtk seems unrelated to the Browser. Are
you physically sitting at the Solaris machine, or are you remoting to it
from elsewhere? I've encountered X Window System errors when remoting from
an older X environment to a newer one as a result of incompatibilities
between the two. If you see this problem while sitting at the Solaris
machine then please log a bug with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT
and provide steps to reproduce the problem.

Thanks,
Grant


"Jay" <jmandawg@hotmail.com> wrote in message
news:i1844h$mib$1@build.eclipse.org...
> Sorry, here is the full line of code it is crashing on:
>
> shell.setImages(new Image[] {
> new Image(display,
> clazz.getResourceAsStream("resource/DJIcon16x16.png")),
> new Image(display,
> clazz.getResourceAsStream("resource/DJIcon24x24.png")),
> new Image(display,
> clazz.getResourceAsStream("resource/DJIcon32x32.png")),
> new Image(display,
> clazz.getResourceAsStream("resource/DJIcon48x48.png")),
> new Image(display,
> clazz.getResourceAsStream("resource/DJIcon256x256.png")),
> });
>
> With error:
>
>
> The program 'SWT' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadLength (poly request too large or internal Xlib length
> erro'. (Details: serial 316 error_code 16 request_code 18 minor_code 0)
> (Note to programmers: normally, X errors are reported asynchronously;
> that is, you will receive the error a while after causing it.
> To debug your program, run it with the --sync command line
> option to change this behavior. You can then get a meaningful
> backtrace from your debugger if you break on the gdk_x_error()
> function.)
>
>
Re: Issues with SWT 3.5 and Solaris (Sparc) [message #546641 is a reply to message #546595] Tue, 13 July 2010 15:51 Go to previous message
Jay Mising name is currently offline Jay Mising nameFriend
Messages: 11
Registered: July 2010
Junior Member
Thanks for the reply. I was sitting at the terminal on both machines we tried it on. After i commented out those lines everything worked fine. I've opened this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=319555
Previous Topic:Text preferred size ignores trailing line feed
Next Topic:Tree/TreeViewer: How to detect a click into the icon without selecting the TreeItem
Goto Forum:
  


Current Time: Thu Mar 28 15:47:43 GMT 2024

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

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

Back to the top