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 248429 - IDE NOT remembering previous settings!!!
Summary: IDE NOT remembering previous settings!!!
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 15:41 UTC by capey0
Modified: 2014-12-02 18:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (54.75 KB, text/plain)
2014-11-05 15:41 UTC, capey0
Details
NetBeans 801 config file (2.86 KB, application/octet-stream)
2014-11-11 16:58 UTC, capey0
Details
messages log file (153.77 KB, application/octet-stream)
2014-11-11 16:59 UTC, capey0
Details
thread dump (24.79 KB, text/plain)
2014-11-11 17:07 UTC, capey0
Details
config file (2.86 KB, application/octet-stream)
2014-11-13 16:01 UTC, capey0
Details
messages (23.25 KB, application/octet-stream)
2014-11-13 16:03 UTC, capey0
Details
userdir zip (365.53 KB, application/x-zip-compressed)
2014-11-14 14:38 UTC, capey0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description capey0 2014-11-05 15:41:38 UTC
Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) Client VM 23.21-b01

I like NetBeans IDE but it is driving me carzy!!! The IDE starts up in random places on the screen and with random window sizes!!! Why does is not remember the size and position of the window from the previous session?!?!?! It's insane!
Comment 1 capey0 2014-11-05 15:41:40 UTC
Created attachment 150299 [details]
IDE log
Comment 2 capey0 2014-11-05 15:43:04 UTC
By the way, it did this on the previous version as well!
Comment 3 Geertjan Wielenga 2014-11-10 09:00:25 UTC
Can you remove the userdir (http://wiki.netbeans.org/FaqWhatIsUserdir) and restart? Maybe something is corrupted in your user directory and this might fix it.
Comment 4 capey0 2014-11-10 14:49:18 UTC
(In reply to Geertjan Wielenga from comment #3)
> Can you remove the userdir (http://wiki.netbeans.org/FaqWhatIsUserdir) and
> restart? Maybe something is corrupted in your user directory and this might
> fix it.

The directory is:
C:\Users\ahellyer\AppData\Roaming\NetBeans\8.0\
There is no userdir at the said location - there was a cachedir under the "local" but not roaming
Comment 5 Geertjan Wielenga 2014-11-10 15:29:08 UTC
In the IDE, go to Help | About and you'll see the location of the user directory.
Comment 6 capey0 2014-11-10 15:56:49 UTC
(In reply to Geertjan Wielenga from comment #5)
> In the IDE, go to Help | About and you'll see the location of the user
> directory.

User directory: C:\Users\ahellyer\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\ahellyer\AppData\Local\NetBeans\Cache\8.0

There is no "userdir" in either location - are you saying delet ALL folders and files in that location?
Comment 7 Geertjan Wielenga 2014-11-10 15:58:00 UTC
Yes, that 8.0 is a folder. Delete it. (Also, I'd recommend using the latest version of NetBeans, i.e., 8.0.1.)
Comment 8 capey0 2014-11-10 16:07:00 UTC
(In reply to Geertjan Wielenga from comment #7)
> Yes, that 8.0 is a folder. Delete it. (Also, I'd recommend using the latest
> version of NetBeans, i.e., 8.0.1.)

Ok, done. I have been using 8.0.1 since it came out - I try to keep NB as up-to-date as possible. ;)

Please keep this issue open. I will report back in a few days after using NB repeatedly. Thanks.
Comment 9 capey0 2014-11-11 15:32:03 UTC
(In reply to capey0 from comment #8)
> (In reply to Geertjan Wielenga from comment #7)
> > Yes, that 8.0 is a folder. Delete it. (Also, I'd recommend using the latest
> > version of NetBeans, i.e., 8.0.1.)
> 
> Ok, done. I have been using 8.0.1 since it came out - I try to keep NB as
> up-to-date as possible. ;)
> 
> Please keep this issue open. I will report back in a few days after using NB
> repeatedly. Thanks.

Well, that was a dismal failure. :(

It starts up at random locations and window sizes - as it was before only now it has become a terrible memory hog - yesterday it went up to 700+MB in memory.

This doesn't bode well.
Comment 10 Geertjan Wielenga 2014-11-11 15:44:08 UTC
Will you attach a thread dump? http://wiki.netbeans.org/GenerateThreadDump
Comment 11 Geertjan Wielenga 2014-11-11 15:45:22 UTC
Will you also attached your netbeans.conf file in your installation directory and the messages.log file in your user directory? (Go to Help | About to see where these are.)
Comment 12 capey0 2014-11-11 16:58:54 UTC
Created attachment 150436 [details]
NetBeans 801 config file
Comment 13 capey0 2014-11-11 16:59:33 UTC
Created attachment 150437 [details]
messages log file
Comment 14 capey0 2014-11-11 17:07:16 UTC
Created attachment 150438 [details]
thread dump
Comment 15 capey0 2014-11-11 17:11:33 UTC
(In reply to Geertjan Wielenga from comment #11)
> Will you also attached your netbeans.conf file in your installation
> directory and the messages.log file in your user directory? (Go to Help |
> About to see where these are.)

Files attached.

Update: Prior to receiving your requests I had to get some work done and was frustrated with the IDE so did a complete uninstall and reinstall.

I am working on a web app - we use GlassFish as our application server. I have GF running locally. Prior to the reinstallation NB would use the currently running GF server. The new installation attempts to start another GF server - this did NOT happen with the previous installation! It then proceeds to crash.

Irritating doesn't begin to describe this.
Comment 16 Geertjan Wielenga 2014-11-11 17:21:58 UTC
There's never any point in uninstalling and then reinstalling NetBeans. That's why there's a user directory, i.e., if you want to reset to factory settings, just remove the user directory.

GlassFish is registered in the Services window, can you go there and register the GlassFish instance you want to use?

Look in your messages.log file and you'll see this is a problem:

INFO [org.netbeans.modules.cordova.CordovaPlatform$Version]: Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified

I.e., have you registered git somewhere and then deleted it on disk or something like that?
Comment 17 Geertjan Wielenga 2014-11-11 17:23:20 UTC
Also, from this it seems there's something wrong with your GlassFish registration, i.e., this is again in your messages.log file:

WARNING [org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider]: Wrong Classpath entry file:/C:/NB_glassfish41/mq/lib/jaxm-api.jar in Library: Java-EE-GlassFish-v3-Prelude
Comment 18 capey0 2014-11-11 17:40:53 UTC
(In reply to Geertjan Wielenga from comment #17)
> Also, from this it seems there's something wrong with your GlassFish
> registration, i.e., this is again in your messages.log file:
> 
> WARNING
> [org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider]:
> Wrong Classpath entry file:/C:/NB_glassfish41/mq/lib/jaxm-api.jar in
> Library: Java-EE-GlassFish-v3-Prelude

As for GIT, we have never used it since I've been here (2+ years). It may have been on this machine before but I don't see any evidence of it.

Seems this whole process is going to be moot.

The "powers that be" have decided to upgrade my machine! :)

Thanks very much for your help so far. Go ahead and close this issue.

If the problem raises it's head again after the upgrade, I will create a new issue (unless you'd prefer me re-open this one?)
Comment 19 capey0 2014-11-13 16:01:05 UTC
Update: NetBeans is up to it's tricks again - opening in random places with random sizes. I also noticed that if I run another windowed java application prior to opening NetBeans, NB will sometimes assume the same window size as the java application! I will attach the config and messages files again ...
Comment 20 capey0 2014-11-13 16:01:35 UTC
Created attachment 150471 [details]
config file
Comment 21 capey0 2014-11-13 16:03:31 UTC
Created attachment 150472 [details]
messages
Comment 22 Stanislav Aubrecht 2014-11-14 08:45:06 UTC
There's nothing interesting in your log file.
Reporter, do you switch resolution on your display? Do you have multi-display setup?
Can you make a ZIP of your userdir and attach it here?
Is it just window position that is not being restored from the previous session or are there any other settings that are reset after restart?
Comment 23 capey0 2014-11-14 14:38:59 UTC
Created attachment 150489 [details]
userdir zip
Comment 24 capey0 2014-11-14 14:40:59 UTC
(In reply to Stanislav Aubrecht from comment #22)
> There's nothing interesting in your log file.
> Reporter, do you switch resolution on your display? Do you have
> multi-display setup?
> Can you make a ZIP of your userdir and attach it here?
> Is it just window position that is not being restored from the previous
> session or are there any other settings that are reset after restart?

No switching of resolutions.
I use multi-display (2 identical monitors) - NB is used on the 2nd display.
userdir has beem attached.
Window position AND size are not being restored. Other settings seem to be intact.
Comment 25 Stanislav Aubrecht 2014-11-14 15:15:48 UTC
Thanks for the user dir, nothing interesting there either.

Do you maximize the IDE on your secondary screen? If so, do you use the maximize button in window title or do you snap it to top of screen? In the latter case it could be a duplicate of #248609
Comment 26 capey0 2014-11-14 15:36:25 UTC
(In reply to Stanislav Aubrecht from comment #25)
> Thanks for the user dir, nothing interesting there either.
> 
> Do you maximize the IDE on your secondary screen? If so, do you use the
> maximize button in window title or do you snap it to top of screen? In the
> latter case it could be a duplicate of #248609

No, I don't maximize the screen
Comment 27 Stanislav Aubrecht 2014-11-14 15:38:36 UTC
(In reply to capey0 from comment #26)
> (In reply to Stanislav Aubrecht from comment #25)
> > Thanks for the user dir, nothing interesting there either.
> > 
> > Do you maximize the IDE on your secondary screen? If so, do you use the
> > maximize button in window title or do you snap it to top of screen? In the
> > latter case it could be a duplicate of #248609
> 
> No, I don't maximize the screen

Ok, can you please give an example what the IDE window size and position is after restart? Also what is the resolution of your screens?
Comment 28 capey0 2014-11-14 18:11:30 UTC
(In reply to Stanislav Aubrecht from comment #27)
> (In reply to capey0 from comment #26)
> > (In reply to Stanislav Aubrecht from comment #25)
> > > Thanks for the user dir, nothing interesting there either.
> > > 
> > > Do you maximize the IDE on your secondary screen? If so, do you use the
> > > maximize button in window title or do you snap it to top of screen? In the
> > > latter case it could be a duplicate of #248609
> > 
> > No, I don't maximize the screen
> 
> Ok, can you please give an example what the IDE window size and position is
> after restart? Also what is the resolution of your screens?

Both monitors are 1920x1200

Like I said it's random, but here are a couple of examples:
1) 
position: top left corner is at top left of screen 1
size: W: size of icon+title+min/max/close buttons, H: title+border height
only a line is visible of the work area

2)
position: top left corner is about 1/3 diagonally down screen 1
size: W: about 1/3 screen width, H: about 1/2 screen height
work area "view-ports" are sized to fit this

3) SOMETIMES this happens: if I run some other windowed java application, then NB will open in the position and with the same size as the previous java application
Comment 29 capey0 2014-11-17 16:28:07 UTC
Question: One of my co-workers has suggested that perhaps this is a permissions issue. I dispute that since it's me using NetBeans, but do you think it is possible? Does NetBeans need permissions other than mine to access the persistent preferences file(s)?
Comment 30 Geertjan Wielenga 2014-11-17 16:30:44 UTC
Permissions shouldn't be a problem. But seems to me that the only unique aspect of your setup is the multi-display. Could you not use multi-display for a while, to see if the problem occurs there too? I suspect it's related specifically to multi-display in some way.
Comment 31 capey0 2014-11-17 18:41:19 UTC
(In reply to Geertjan Wielenga from comment #30)
> Permissions shouldn't be a problem. But seems to me that the only unique
> aspect of your setup is the multi-display. Could you not use multi-display
> for a while, to see if the problem occurs there too? I suspect it's related
> specifically to multi-display in some way.

This could well be the case. I use single display at home with the same "preferences" (manually setup, not imported) and don't have the problem there. Not using multi-display quickly gets old, due to having to switch between the runtime and dev windows. 

Just to add some more info. My co-worker is also uses multi-monitor, BUT has only 1 video card, which drives both his monitors. My setup has 2 video cards, each driving a monitor. He does not have the problem on his setup. I'm thinking NB possibly has a problem with dual video cards.
Comment 32 capey0 2014-12-02 18:39:15 UTC
Here's an update:

I have tried disabling the second video card and this seems to prevent the issue from happening. Although this is not the solution as it is a major efficiency/productivity hit. So I have re-enabled it and the issue returned.

I have also updated the IDE to 802 and it still does the same thing.

Very frustrating but nothing I can do about it at this time - especially since I have no control over hardware specs etc here.