Bug 25292 - Null Pointer Exception on startup when system font cannot be determined
Summary: Null Pointer Exception on startup when system font cannot be determined
Status: RESOLVED DUPLICATE of bug 35657
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: Sun Solaris
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-24 01:39 EDT by Edward Buchwalter CLA
Modified: 2003-05-20 17:58 EDT (History)
1 user (show)

See Also:


Attachments
java class that outputs system font (4.22 KB, text/plain)
2002-10-31 11:26 EST, Silenio Quarti CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Buchwalter CLA 2002-10-24 01:39:05 EDT
java.lang.NullPointerException
        at org.eclipse.swt.graphics.Device.<init>(Device.java:129)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:333)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:330)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
        at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
        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:247)
        at org.eclipse.core.launcher.Main.run(Main.java:703)
        at org.eclipse.core.launcher.Main.main(Main.java:539)
Comment 1 Sonia Dimitrov CLA 2002-10-24 09:14:30 EDT
Please provide steps to reproduce this problem.
Comment 2 Edward Buchwalter CLA 2002-10-24 11:28:11 EDT
this exception occurs during startup - so there aren't really
any steps. I just run "eclipse" on the command line and see the
stack trace provided on initial bug report. 

This is on a sun ultra-1 machine.
Comment 3 Sonia Dimitrov CLA 2002-10-24 11:41:10 EDT
Moving to SWT for comment.
Comment 4 Steve Northover CLA 2002-10-25 08:02:09 EDT
GG to fix.
Comment 5 Grant Gayed CLA 2002-10-25 10:52:36 EDT
This has been reported before.  It's a problem with determining your system 
font, which is taken to be the font of a motif Label.  The inability to 
determine this indicates a font path setup problem on your end.  See 
http://dev.eclipse.org/bugs/show_bug.cgi?id=19209 .

Changing the report title to reflect the specific problem.  We should either 
handle this case better or FAQ it.
Comment 6 Silenio Quarti CLA 2002-10-31 11:24:21 EST
Eduard

This should not happen on startup anymore (builds > 20021031), but
it can still happen any time getFontData() is called on a system
font that is not a complete XLFD.

Please could you run the attached java class (next) and add the output to this
bug? We are not able to reproduce this problem and I want to gather
more info.

Thanks!
Silenio
Comment 7 Silenio Quarti CLA 2002-10-31 11:26:02 EST
Created attachment 2294 [details]
java class that outputs system font
Comment 8 Steve Northover CLA 2003-03-05 18:23:18 EST
Edward, any update?  Can we close this PR?
Comment 9 Veronika Irvine CLA 2003-03-26 15:58:31 EST
Edward,

I am going to change the severity of this bug report from blocking to major 
since the problem no onger occurs on startup.
Please let us know if you are still experiencing the problem and if you have 
been able to run Silenio's test case.

Thank you.
Comment 10 Grant Gayed CLA 2003-05-20 17:58:42 EDT
Marking as duplicate since we are able to reproduce this problem using the 
locale of the other report.


*** This bug has been marked as a duplicate of 35657 ***