This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 54970 - NetBeans crashes in silence on trying to print a DTD
Summary: NetBeans crashes in silence on trying to print a DTD
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-15 09:19 UTC by blaverman
Modified: 2008-12-22 22:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file for today (21.21 KB, application/octet-stream)
2005-02-15 09:44 UTC, blaverman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blaverman 2005-02-15 09:19:13 UTC
Start Netbeans, open a DTD, click print, choose 
printer, whammo... NetBeans is gone. I tried 
printing an XML file just before that, and it 
worked. I tried both 4.0 and 4.1EA2.

Hmmm... recheck:
I restarted NetBeans, and it complains about an 
unclean shutdown or else another urnning 
instance. Click OK. Open some other DTD, now it 
works. Open some other files, no problems. Open 
the original DTD, prints ok.

Windows XP with Suns JDK 1.5.0_01, Subversion
Comment 1 Milos Kleint 2005-02-15 09:34:06 UTC
sounds like a jvm bug to me.
do you still have the log files ($nb_userdir/var/log/messages.log)?
can you attach it to the bug?
is your usecase reproducible with the same dtd? or was it just a one
time crash?

reassigning to xml for evaluation. Do you guys do something special
when printing or use the openide's action as is?
Comment 2 blaverman 2005-02-15 09:44:59 UTC
Created attachment 20346 [details]
log file for today
Comment 3 blaverman 2005-02-15 09:49:32 UTC
As I wrote, my later attempts at printing succeeded, so I'm not sure 
how to reproduce. I'll try a reboot (hey, its windows) and a fresh 
session later on.The log file shows nothing apart from the starting 
of modules. I just atached the today part. Yesterday's log is full 
of InvocationTargetException entries... I tried mounting an OASIS 
Catalog and it fails the new XML file wizard. Both 4.1 EA2 and 4.0 
showed similar behaviour.

Is 1.4.2 or 1.5 the preferred platform for NetBeans itself?
Comment 4 zikmund 2005-02-15 14:56:11 UTC
Without reprodicible case it is no P2. Downgrading to P3.

Please let us know if you will see it next time. Reproducible steps
would help a lot ;-). Thanks.
Comment 5 blaverman 2005-02-16 15:11:10 UTC
This morning I carefully redid what I did yesterday, but everything 
worked beautifully. Just now back from getting a cup of coffee, made 
some changes in the DTD, print... whammo.

Doesn't really count as reproducible, does it? I'll see if Sun has 
anything on crashes after printing. (yes, the printout came out fine)
Comment 6 blaverman 2005-02-16 15:33:54 UTC
Correction!

the printout was not ok. It appears to crash during the print job. A 
Job shows up in the printer queue, but no pages come out.
Comment 7 Milan Kuchtiak 2005-02-16 15:38:34 UTC
The XML modules do nothing specific when printing DTD document.
Comment 8 blaverman 2005-02-16 15:40:49 UTC
More info: restarting the IDE and immediately trying to print the 
same file again will crash agin. Restart once more and print another 
file... ok. Print that DTD... ok. Something in the printing code 
that doesn't clean up correctly.

What gets done after printing that could be construed as being 
needed to get a clean printing environment? Something in the 
formatting of DTDs? Java file was fine, after that the DTD was 
also???

Just rambling I suppose.
Comment 9 Petr Nejedly 2005-02-17 23:16:29 UTC
If the IDE just disappears, it have to be a bug in the JVM.
It may be trigerred by some interaction of the printed data with the
printing library or something.
Anyway, we can't do much about it from NB.