Bug 277939 - NSCFArray autoreleased with no pool in place - just leaking
Summary: NSCFArray autoreleased with no pool in place - just leaking
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Scott Kovatch CLA
QA Contact: Silenio Quarti CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 15:49 EDT by David Green CLA
Modified: 2020-06-25 04:20 EDT (History)
10 users (show)

See Also:


Attachments
a small sampling of leaks from my log (58.98 KB, text/plain)
2009-05-29 12:44 EDT, David Green CLA
no flags Details
similar leaks from my console (68.59 KB, text/plain)
2009-08-21 05:08 EDT, Tomasz Zarna CLA
no flags Details
another log sample (99.63 KB, text/plain)
2009-08-26 11:37 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2009-05-26 15:49:34 EDT
Running Eclipse causes this error on the console:

pre. 
2009-05-26 09:53:43.928 java[11994:613] *** _NSAutoreleaseNoPool(): Object 0x8ab98180 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x9509cf0f 0x94fa9442 0x93591098 0x8735293e 0x1e367c6 0x1da9f85 0x1da9fc7 0x1da9fc7)

using eclipse-SDK-I20090522-1710-macosx-cocoa
Comment 1 Steve Northover CLA 2009-05-26 15:57:59 EDT
Not for 3.5
Comment 2 Steve Northover CLA 2009-05-26 15:58:36 EDT
Interesting that others don't see this ...
Comment 3 David Green CLA 2009-05-26 16:10:03 EDT
(In reply to comment #1)
> Not for 3.5

fine by me

(In reply to comment #2)
> Interesting that others don't see this ...

the only reason that I noticed is because I was running Eclipse in a console... it was output on stderr (or stdout, I'm not sure which).  Most users would never see that output even if it did happen for them.
Comment 4 David Green CLA 2009-05-29 12:44:15 EDT
Created attachment 137682 [details]
a small sampling of leaks from my log

Using Console.app I looked at the system log.  It's shocking how much is leaking!
Comment 5 Steve Northover CLA 2009-05-29 12:56:00 EDT
Yikes!  Kevin?
Comment 6 David Green CLA 2009-05-29 13:02:51 EDT
(In reply to comment #5)
> Yikes!  Kevin?

I've got more from today if you want those too ;)
Comment 7 Kevin Barnes CLA 2009-05-29 13:05:04 EDT
We've tried to reproduce this and can't reliably. 
It may be related to the launcher and it seems to happen when you restart after an update or maybe switch workspace.
Playing with the auto release pools in RC4 doesn't sound like a good idea to me. Unless this affects usability, I'd suggest this is not for 3.5.
Comment 8 David Green CLA 2009-05-29 13:07:56 EDT
(In reply to comment #7)
> We've tried to reproduce this and can't reliably.
> It may be related to the launcher and it seems to happen when you restart after
> an update or maybe switch workspace.

I often use the workspace chooser dialog on startup or switch workspaces after startup.
Comment 9 David Green CLA 2009-06-22 12:14:55 EDT
I don't know if it's related -- after running Cocoa for awhile I get a lot of pinwheels when switching focus between editors, views and perspectives.  In fact, eventually it becomes so bad that I have to restart Eclipse.  The heap monitor indicates that I've got a good 800MB+ free on my heap (I run with a big heap) and my machine is not swapping (other apps remain responsive).  After restarting Eclipse the pinwheels go away.
Comment 10 Leo Dos Santos CLA 2009-06-22 16:56:59 EDT
(In reply to comment #9)
> I don't know if it's related -- after running Cocoa for awhile I get a lot of
> pinwheels when switching focus between editors, views and perspectives.  In
> fact, eventually it becomes so bad that I have to restart Eclipse.  The heap
> monitor indicates that I've got a good 800MB+ free on my heap (I run with a big
> heap) and my machine is not swapping (other apps remain responsive).  After
> restarting Eclipse the pinwheels go away.

I've noticed as well that towards the end of the day I have to restart Eclipse, because things like expanding tree items or popping up a context menu on a selection takes several seconds to perform.
Comment 11 David Green CLA 2009-07-03 12:14:25 EDT
What would it take to have this one scheduled for 3.5.1?  I'm finding that two to three times a day I'm having to restart Eclipse due to increasingly long beach ball delays.
Comment 12 Kevin Barnes CLA 2009-07-06 11:49:00 EDT
I'm not sure the beach ball is related to this bug. When I've seen this, it happens on startup, but once eclipse is running the NSAutoreleasePool are created and we stop leaking (Console.app stops printing the error message). Does eclipse leak forever for you?

I've run apple's 'leaks' tool on eclipse quite a bit and haven't seen large leaks of memory for some time. It could be that my Eclipse set up is different from yours and it's not exposing the memory leaks in the same way that your is.

Also the beach ball doesn't necessarily mean that there is a memory leak. It just means that something is slow. Maybe Apple's 'Spin Control' application can help us here. It's supposed to sample the application whenever an application hangs. 
Comment 13 David Green CLA 2009-07-06 19:01:17 EDT
Of course it's all too easy to point the finger.  Sorry about that.  
I'll do some more investigation into the beachball issue.
Comment 14 Leo Dos Santos CLA 2009-07-06 21:17:39 EDT
Thanks for leaks tip. I just ran it on a self-hosted Eclipse process that I've been running for ~8 hours and it's only reporting 1 leak for 16 bytes.
Comment 15 Tomasz Zarna CLA 2009-08-21 05:08:11 EDT
Created attachment 145243 [details]
similar leaks from my console

eclipse-SDK-I20090818-0800-macosx-cocoa

Observed when I closed Eclipse just after I asked it to open a bunch of Compare Editors from the Sync View (see bug 273951, comment 26).
Comment 16 David Green CLA 2009-08-26 11:37:36 EDT
Created attachment 145691 [details]
another log sample

Attached another log sample of the problem, using Eclipse Java EE IDE for Web Developers.

Build id: 20090621-0832
Comment 17 David Green CLA 2009-09-25 17:25:48 EDT
(In reply to comment #9)
> I don't know if it's related -- after running Cocoa for awhile I get a lot of
> pinwheels when switching focus between editors, views and perspectives.  In

issue moved to bug 290449
Comment 18 Boris Bokowski CLA 2010-05-28 22:26:01 EDT
I am seeing these messages in my console when running an inner (using an RC2 build). Scott, this bug is still assigned to Kevin, is that intentional?
Comment 19 Scott Kovatch CLA 2010-05-31 18:40:15 EDT
(In reply to comment #18)
> I am seeing these messages in my console when running an inner (using an RC2
> build). Scott, this bug is still assigned to Kevin, is that intentional?

No, I haven't moved all of Kevin's bugs over to me yet. If you have steps to reproduce let me know. These are usually pretty easy to solve.
Comment 20 ekkehard gentz CLA 2011-02-07 03:21:06 EST
just run into this:

Eclipse Modeling EPP Helios SR1
running an OSGI launch config with only some bundles

from time to time - not always I'm getting this error in OSGI console
Comment 21 Scott Kovatch CLA 2011-02-07 16:41:30 EST
(In reply to comment #20)
> Eclipse Modeling EPP Helios SR1
> running an OSGI launch config with only some bundles
> 
> from time to time - not always I'm getting this error in OSGI console

Are you using the SWT? That would help isolate it. The Equinox launcher has some Cocoa in it -- could be coming from there.
Comment 22 Lars Vogel CLA 2019-09-24 13:59:11 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 23 Lakshmi P Shanmugam CLA 2020-06-25 04:20:06 EDT
Closing, I've not seen this error or any reports on this. Please reopen if it still happens.