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 173430

Summary: NetBeans cancels OSX shutdown
Product: platform Reporter: emi <emi>
Component: -- Other --Assignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 7.3   
Hardware: Macintosh   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description emi 2009-09-30 22:02:07 UTC
Sometimes, on OSX while shutting down with NetBeans open, NetBeans cancels the shutdown process although no user
interaction is needed (like a dialog to save files which could be a legitimate reason).

This happened to me on multiple occasions but I can't actually provide a reproducible usecase as I don't shutdown that
often nor really investigated.

I basically just get the OSX "NetBeans cancelled shutdown" dialog and after I quit netbeans manually and wait for it, I
can manually shutdown nicely.

Mostly happened in 6.5 since that's what I use. Pretty sure it applies to current too but I can't say since I don't use
it very much.
Comment 1 _ tboudreau 2009-09-30 23:36:32 UTC
Not sure if anything can be done about this, as NetBeans can take a while to shut down (the main window disappears immediately, but various things get 
written out to disk) - I suspect the OS-level shutdown process has a timer for each process it commands to shut down, and if the process takes longer than a 
certain amount of time, the OS assumes the process couldn't exit.  Bear in mind, that's a guess - would be worth asking about this on the Apple Java-Dev 
mailing list.
Comment 2 Stanislav Aubrecht 2009-10-02 15:09:18 UTC
i don't think it's a big problem as shutting down the computer isn't usually a frequent action.
pls feel free to readjust the issue priority if you disagree.
Comment 3 emi 2009-10-02 15:11:17 UTC
Indeed it's not a blocking issue, but on my machine NetBeans was the only application with this behavior.
Comment 4 jpallas 2011-07-19 01:47:46 UTC
(In reply to comment #2)
> i don't think it's a big problem as shutting down the computer isn't usually a
> frequent action.

It also applies to logout, not just shut down.

Apple documentation <http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Articles/BootProcess.html%23//apple_ref/doc/uid/20002130-114794-BAJIBGGI> says that a application has 45 seconds to reply to the shutdown request.  A simple test shows that the message about NetBeans canceling the logout or shutdown request appears right away, so it doesn't look like this is an issue with the time it takes for NetBeans to respond.