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 251905 - 8.0.2 Installer fails on Mac OS X 10.10.2 about 90% of way through
Summary: 8.0.2 Installer fails on Mac OS X 10.10.2 about 90% of way through
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 8.0.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-17 08:39 UTC by dgradwell
Modified: 2015-05-18 09:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Install log file (9.96 MB, application/octet-stream)
2015-04-20 08:13 UTC, dgradwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dgradwell 2015-04-17 08:39:35 UTC
NetBeans 8.0.2 (All) downloaded from https://netbeans.org/downloads/.

Mac disk image looks OK.

Java control panel indicates that the installed Java platform is 1.8.0_45.

Double clicking on installer and following through dialogues until installer starts is OK.  Installer runs to about 90% of install, appears to hang for 40 seconds and then reports "The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."

This is repeatable.

From system log – entries during installation period (repeatable):

17/04/2015 09:22:35.729 mdworker[20638]: iWork MDI raised an exception: Could not find the end of central directory record
17/04/2015 09:22:35.743 mdworker[20638]: iWork MDI raised an exception: Could not find the end of central directory record
17/04/2015 09:22:35.759 mdworker[20638]: iWork MDI raised an exception: Could not find the end of central directory record
17/04/2015 09:23:09.293 Installer[19835]: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.


The NetBeans App has appeared in Applications but will not start (repeatable).  Log file says:

17/04/2015 09:37:20.631 com.apple.xpc.launchd[1]: (org.netbeans.ide.baseide.8.0.2.206784[28587]) Service exited with abnormal code: 1

Insufficient diagnostics provided to enable me to work out what is wrong.

Happy to provide further diagnostic information (david@gradwell.com), run further tests and test fixes.
Comment 1 dgradwell 2015-04-20 08:13:20 UTC
Created attachment 153272 [details]
Install log file

Downloaded NetBeans 8.0.2 again.  Same byte count.  Re-ran install.  Same issue.
More detail:  Installer slows/stops whilst running package scripts - probably towards the end of the scripts.  Then after say 30 seconds says "Verifying packages" and then gives error message.

Log file attached.
Comment 2 dgradwell 2015-04-20 11:29:19 UTC
Further investigation:

There seem to be two issues:

1.  Installer does not recognise an existing Glassfish 4.1 installation and fails.  

2.  Even when that is fixed by removing the previous installation of galssfish, the install works OK but there is a failure to start the JVM during installation and NetBeans will not start (Unrecognized VM option 'PermSize=32m’).  This would appear to be because the default invocation of NetBeans sets PermSize.  Removing this in netbeans.conf resolves the problem.

Recommendations:

re (1):  Installer should check for an existing Glassfish 4.1 installation and offer replace/skip options.

re (2):  Netbeans should be tested aginst Java 8 and Java 9 as soon as possible.


Help for others investigating this problem:

https://www.igorkromin.net/index.php/2014/07/23/netbeans-712-does-not-work-with-jdk-8/

Finding netbeans.conf on Mac OS X:  Show contents of the NetBeans app.
Browse to /Contents/Resources/NetBeans.  Edit carefully to remove 

-J-XX:PermSize=32m

from (after edit)

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m  -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true"

Netbeans installation log on Mac OS X is at:  /var/log/ 

Quick way to find the NetBeans install log on Mac OS X.

Launch /Applications/Utilities/Console.app.
Scroll down the left hand list FILES section until you see /var/log.
Select install.log


Mac OS jdk locations (in case you want to mess with the jdk that Netbeans uses - but I only needed to remove the PermSize as above): 

/Library/Java/JavaVirtualMachines
Comment 3 Libor Fischmeistr 2015-04-21 09:18:16 UTC
Hi thanks for the report. Did you try the daily build? The issue with PermSize should be resolved there.

I'm going to investigate the issue with GF.