Bug 19209 - F2 build fails to start on HPUX
Summary: F2 build fails to start on HPUX
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC HP-UX
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Sridhar Bidigalu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 16:25 EDT by Troy Miller CLA
Modified: 2002-06-11 17:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Miller CLA 2002-06-04 16:25:23 EDT
I downloaded F2 and chmod'ed the files:

   ./plugins/org.eclipse.swt.motif_2.0.0/os/hpux/hp9000/libswt-cde-motif-2043.sl
   ./plugins/org.eclipse.swt.motif_2.0.0/os/hpux/hp9000/libswt-motif-2043.sl

Uname output:

   uname -a
   HP-UX jefe B.11.11 U 9000/800 686349373 unlimited-user license

The output from the command line:

./eclipse -nosplash -debug
Start VM: /opt/java1.3/bin/java
-classpath /aoi/troym/eclipse/./startup.jar org.eclipse.core.launcher.Main
-os hpux
-ws motif
-arch hp9000
-debug
Startup: using configuration file:/aoi/troym/eclipse/workspace/.metadata/.config/plat
form.cfg
Boot URL: file:/aoi/troym/eclipse/plugins/org.eclipse.core.boot_2.0.0/boot.jar
Workspace location:
   /aoi/troym/eclipse/workspace
Debug-Options:
    file:/aoi/troym/eclipse/.options
Install URL:
    file:/aoi/troym/eclipse/
java.lang.NullPointerException
        at org.eclipse.swt.graphics.Device.<init>(Device.java:113)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:318)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:315)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1142)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.j
ava:739)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:244)
        at org.eclipse.core.launcher.Main.run(Main.java:693)
        at org.eclipse.core.launcher.Main.main(Main.java:526)


In the file "workspace/.metadata/.log":

!SESSION Jun 04, 2002 11:10:31.946 ---------------------------------------------
java.version=1.3.1.02
java.vendor=Hewlett-Packard Co.
BootLoader constants: OS=hpux, ARCH=hp9000, WS=motif, NL=en
Command-line arguments: -os hpux -ws motif -arch hp9000 -install file:/aoi/troym
/eclipse/
!ENTRY org.eclipse.update.core 4 0 Jun 04, 2002 11:10:31.948
!MESSAGE The URL:platform:/base/plugins/org.eclipse.platform.hpux.motif_2.0.0.jar doesn't point to a valid platform plugin.The URL will not be written in the platform configuration [java.lang.Exception]
!STACK 0
java.lang.Exception
        at org.eclipse.update.internal.core.InstallConfiguration.getRuntimeConfigurationURL(InstallConfiguration.java:826)
        at org.eclipse.update.internal.core.InstallConfiguration.saveFeatureEntry(InstallConfiguration.java:469)
        at org.eclipse.update.internal.core.InstallConfiguration.save(InstallConfiguration.java:386)
        at org.eclipse.update.internal.core.SiteLocal.save(SiteLocal.java:213)
        at org.eclipse.update.internal.core.SiteReconciler.reconcile(SiteReconciler.java:205)
        at org.eclipse.update.internal.core.SiteLocal.reconcile(SiteLocal.java:558)
        at org.eclipse.update.internal.core.SiteLocal.internalGetLocalSite(SiteLocal.java:90)
        at org.eclipse.update.internal.core.InternalSiteManager.internalGetLocalSite(InternalSiteManager.java:65)
        at org.eclipse.update.internal.core.InternalSiteManager.reconcile(InternalSiteManager.java:412)
        at org.eclipse.update.internal.core.UpdateManagerReconciler.reconcile(UpdateManagerReconciler.java:136)
        at org.eclipse.update.internal.core.UpdateManagerReconciler.run(UpdateManagerReconciler.java:80)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:739)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:244)
        at org.eclipse.core.launcher.Main.run(Main.java:693)
        at org.eclipse.core.launcher.Main.main(Main.java:526)
Comment 1 Mike Wilson CLA 2002-06-05 13:36:40 EDT
Workspace log shows install problem. GG to look at NPE in Display creation 
code.
Comment 2 Vlad Klicnik CLA 2002-06-05 14:00:24 EDT
... just passing the buck back (with additional info).

The F2 HP-UX build has a bogus org.eclipse.platform.hpux.motif_2.0.0 plugin (is 
an empty directory). This was reported in bug 19230.

The update message in the log was reported in bug 18952 and fix is in HEAD 
("low hanging fruit" trivial problem). The problem was us incorrectly logging 
what should have been just a warning trace message (were calling our log() 
instead of warn() internal methods). We were detecting the problem above (bug 
19230). Eclipse continues to start up after this (have observed this in our own 
HP-UX testing).

So apart from the build problem, the only remaining thing is the NPE.

Back to SWT ...
Comment 3 Mike Wilson CLA 2002-06-05 14:18:28 EDT
Not sure why this is happening. Sridhar to investigate. Remember, if we want 
this fixed it has to get ok'ed by 2 TLs at this point. Let me know asap.
Comment 4 Grant Gayed CLA 2002-06-06 12:54:23 EDT
Interestingly a question with this exact trace was asked on EC recently, and 
got the following response:

   We had a similar problem a few months ago. Our problems was that in the
   Solaris server we had only one font group and that was not the one Eclipse
   search. I cannot remember which was the good but we had now a 'Default' and
   a 'System' font group set in the Font Style manager. If you had only one of
   these try to add the other one.

The shortcut to the thread is http://www.eclipse.org/newsportal/article.php3?
id=27217&group=eclipse.tools
Comment 5 Sridhar Bidigalu CLA 2002-06-07 11:27:10 EDT
Ok! I am not able to get NullPointerException, it works perfectly
fine once I fix those permissions. Here is my log...

sbidigal (32) > ./eclipse -nosplash -debug
Start VM: /opt/java1.3/bin/java
-classpath
/tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/./startup.jar
org.eclipse.core.launcher.Main
-os hpux
-ws motif
-arch hp9000
-debug 
Startup: using configuration
file:/tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/workspace/.metadata/.config/platform.cfg
Boot URL:
file:/tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/plugins/org.eclipse.core.boot_2.0.0/boot.jar
Workspace location:
   /tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/workspace
Debug-Options:
    file:/tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/.options
Install URL:
    file:/tmp_mnt/net/ma-homes/homes/sbidigal/eclipse/20020602/eclipse/

I suspect this has do with the monitor he is using. Can you please
provide me the xdpyinfo(X display info. or run SAM) and try running 
eclipse on a different platform using the same monitor. I want to know,
specifically the depth and the colormap used, basically X server 
configuration of your system. Thanks!
Comment 6 Troy Miller CLA 2002-06-07 11:41:02 EDT
The X-Server is a PC running ReflectionX 8.05.  Here is the output:

name of display:    troympc.rsn.hp.com:0.0
version number:    11.0
vendor string:    WRQ, Inc.
vendor release number:    8
maximum request size:  4194300 bytes
motion buffer size:  0
bitmap unit, bit order, padding:    32, MSBFirst, 32
image byte order:    MSBFirst
number of supported pixmap formats:    3
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
keycode range:    minimum 9, maximum 254
focus:  window 0x200000e, revert to PointerRoot
number of extensions:    18
    BIG-REQUESTS
    DEC-XTRAP
    Extended-Visual-Information
    GLX
    LBX
    MIT-SUNDRY-NONSTANDARD
    Multi-Buffering
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    TOG-CUP
    WRQ-ADMIN
    WRQ_XPrint
    XC-APPGROUP
    XIE
    XInputExtension
    XTEST
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1280x1024 pixels (394x305 millimeters)
  resolution:    83x85 dots per inch
  depths (3):    1, 24, 8
  root window id:    0x28
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x24
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store YES, save-unders NO
  largest cursor:    32x32
  current input event mask:    0x400000
    PropertyChangeMask
  number of visuals:    4
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
  visual: 
    visual id:    0x22
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x23    
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0 
    significant bits in color specification:    8 bits
Comment 7 Troy Miller CLA 2002-06-07 11:45:37 EDT
On a stock hp712.  The build on the same host runs fine.  Here is the display info:

name of display:    bball:0.0
version number:    11.0
vendor string:    Hewlett-Packard Company
vendor release number:    600000
maximum request size:  4194300 bytes
motion buffer size:  100
bitmap unit, bit order, padding:    32, MSBFirst, 32
image byte order:    MSBFirst
number of supported pixmap formats:    3
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
keycode range:    minimum 16, maximum 141
focus:  window 0x200000e, revert to PointerRoot
number of extensions:    13
    BIG-REQUESTS
    DOUBLE-BUFFER
    HP-SMT
    HPExtension
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    Multi-Buffering
    SHAPE
    X3D-PEX
    XIE
    XInputExtension
    XTEST
    XTestExtension1
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1280x1024 pixels (342x273 millimeters)
  resolution:    95x95 dots per inch
  depths (3):    1, 8, 16
  root window id:    0x24
  depth of root window:    8 planes
  number of colormaps:    minimum 1, maximum 2
  default colormap:    0x22
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 1
  options:    backing-store YES, save-unders YES
  largest cursor:    64x64
  current input event mask:    0xd0001d
    KeyPressMask             ButtonPressMask          ButtonReleaseMask        
    EnterWindowMask          SubstructureRedirectMask PropertyChangeMask       
    ColormapChangeMask       
  number of visuals:    2
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    8 planes
    available colormap entries:    8 per subfield
    red, green, blue masks:    0xe0, 0x1c, 0x3
    significant bits in color specification:    8 bits
Comment 8 Sridhar Bidigalu CLA 2002-06-07 11:49:12 EDT
I will have to try this on Monday, since I don't have a
PC system at Rational, Lexington. Is it possible for 
anyone at OTI, to quickly  go thru. it and confirm. Thanks!
Comment 9 Troy Miller CLA 2002-06-07 17:18:01 EDT
You can close this bug.  I have it working.  I pulled the source and started
looking around and found that it was font related.

I changed the ReflectionX font search path to;

   100dpi 75dpi misc hp sun ibm dec

and I have the GUI up.  Thanks for your help.
Comment 10 Sridhar Bidigalu CLA 2002-06-11 17:11:30 EDT
User error, case closed.