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 73132 - NB crashes on startup (msvcrt.dll)
Summary: NB crashes on startup (msvcrt.dll)
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Jan Chalupa
URL:
Keywords:
: 73040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-01 14:38 UTC by m_potociar
Modified: 2008-12-22 18:28 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error screen shot (79.32 KB, image/jpeg)
2006-03-01 14:41 UTC, m_potociar
Details
The crash log.. (4.59 KB, text/plain)
2006-03-02 16:39 UTC, m_potociar
Details
Fixed version of the NB 5.0 .exe launchers. (20.09 KB, application/x-compressed)
2006-03-08 08:36 UTC, Jan Chalupa
Details
Launcher patch for release55. (1.03 KB, patch)
2006-04-03 18:51 UTC, Jan Chalupa
Details | Diff
New launcher binaries for release55. (20.16 KB, application/x-compressed)
2006-04-03 18:51 UTC, Jan Chalupa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m_potociar 2006-03-01 14:38:16 UTC
NB fails to load with a crash report (see picture)
Comment 1 m_potociar 2006-03-01 14:41:42 UTC
Created attachment 29066 [details]
Error screen shot
Comment 2 Petr Nejedly 2006-03-01 14:45:52 UTC
Looks like a problem with either the native launcher or JVM.
Hard to diagnose from the screen shot.
Are you running a 64bit windows?
Comment 3 m_potociar 2006-03-02 16:39:22 UTC
Created attachment 29100 [details]
The crash log..
Comment 4 Marian Mirilovic 2006-03-06 08:38:38 UTC
*** Issue 73040 has been marked as a duplicate of this issue. ***
Comment 5 Jan Chalupa 2006-03-07 21:41:52 UTC
Interestingly, the HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders\Desktop registry key value may be empty under some circumstances. The
reporter and his co-workers can reproduce the problem reliably by plugging their
laptops into docking stations. The problem seems to go away after a while
without any user intervention. It must be some USERPROFILE handling magic on
Windows. I read before HKCU\S\M\W\CV\E\SF\Desktop was considered unreliable, but
I had no idea the registry value could change dynamically for no obvious reason. :-(

I can make the algorithm more robust and check the USERPROFILE system property
first. It's supposed to be a more reliable way to determine the user "home dir"
on Windows.
Comment 6 Jan Chalupa 2006-03-07 21:48:48 UTC
Supposedly fixed. Works fine for me on Win XP and also on the reporter's system.
I can't test on all Windows flavors.

If no problems are reported in the near future, the fix is a candidate for
merging into release55.

--------------------------------%<--------------------------------
/cvs/ide/launcher/windows/nb.exe,v  <--  nb.exe
new revision: 1.21; previous revision: 1.20

/cvs/ide/launcher/windows/netbeans.cpp,v  <--  netbeans.cpp
new revision: 1.22; previous revision: 1.21

/cvs/ide/launcher/windows/netbeans.exe,v  <--  netbeans.exe
new revision: 1.21; previous revision: 1.20
--------------------------------%<--------------------------------

Note: the code in the generic app.exe launcher in the harness is already
slightly different and may not suffer from this bug.

Comment 7 Jan Chalupa 2006-03-07 22:04:09 UTC
A workaround for NB 5.0 users:

Modify the 'netbeans_default_userdir' property in the etc/netbeans.conf file to
be a specific absolute path. In other words, remove the ${HOME} variable
reference and replace it with a real path, e.g.

  C:\Documents and Settings\kaos\.netbeans\5.0

Comment 8 Jan Chalupa 2006-03-08 08:36:23 UTC
Created attachment 29161 [details]
Fixed version of the NB 5.0 .exe launchers.
Comment 9 Jan Chalupa 2006-03-08 08:57:01 UTC
The attached Windows launchers (fixed-nb50-launchers.zip) can be used to replace
original launchers found in the stock NB 5.0 distribution.

If someone has problems with the launcher crashing in NB 5.0, we can refer to
this attachment. I don't know of any other way to deliver the patch to the users
as the .exe launchers cannot be auto updated.
Comment 10 Marian Mirilovic 2006-04-03 13:48:45 UTC
Honza,
please merge the fix to the NB 5.5 , thanks in advance.
Comment 11 Jan Chalupa 2006-04-03 18:51:04 UTC
Created attachment 29566 [details]
Launcher patch for release55.
Comment 12 Jan Chalupa 2006-04-03 18:51:37 UTC
Created attachment 29567 [details]
New launcher binaries for release55.
Comment 13 Jan Chalupa 2006-04-03 18:52:29 UTC
Going to merge into release55. Source diff and new launcher binaries attached.
Comment 14 Jan Chalupa 2006-04-04 17:23:48 UTC
Fixed in release55.

/cvs/ide/launcher/windows/nb.exe,v  <--  nb.exe
new revision: 1.15.2.3.2.4; previous revision: 1.15.2.3.2.3

/cvs/ide/launcher/windows/netbeans.cpp,v  <--  netbeans.cpp
new revision: 1.17.2.2.2.4; previous revision: 1.17.2.2.2.3

/cvs/ide/launcher/windows/netbeans.exe,v  <--  netbeans.exe
new revision: 1.15.2.3.2.4; previous revision: 1.15.2.3.2.3
Comment 15 Marian Mirilovic 2006-04-10 11:41:55 UTC
*** Issue 74663 has been marked as a duplicate of this issue. ***
Comment 16 Marian Mirilovic 2006-04-24 10:50:56 UTC
kaos,
could you please verify the fix? 

http://www.netbeans.info/downloads/download.php?a=n&p=1

Select 5.5 / Daily / Windows ....

Thanks in advance.
Comment 17 m_potociar 2006-04-25 08:56:56 UTC
Thanks. The fix works on my PC without a problem.