• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Console littered by Xcode 3.1.1 garbage collection messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Console littered by Xcode 3.1.1 garbage collection messages


  • Subject: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • From: Philip Aker <email@hidden>
  • Date: Sun, 26 Oct 2008 21:45:49 -0700

On 2008-10-26, at 17:00:15, Jens Ayton wrote:

On Oct 23, 2008, at 08:11, Markus Spoettl wrote:

Hello List,

ever since upgrading to 3.1.1 (from 3.0) Xcode litters the console with hundreds of these messages each session:

10/22/08 11:04:07 PM [0x0-0x5ab5ab].com.apple.Xcode[17320] Xcode(17320,0xb0103000) malloc: free_garbage: garbage ptr = 0x25e5a70, has non-zero refcount = 1

They're created all the time but the highest frequency occurs when starting a debug session or just running the application making it extremely difficult to see the debug log output that my own applications generate.

I suppose the Xcode dev team must see this too and I can't see any benefit to me having to wade through this kind of stuff. Is there a way to make Xcode stop writing this to the console? Preferably just this one message.

Workaround: put the following in a file named “Console minus Xcode.aslquery” or similar:
(
   {
       key = Facility;
       op = 1;
       value = "com.apple.console";
   },
   {
       key = Sender;
       op = 70;
       value = Xcode;
   }
)

and stick it in ~/Library/Application Support/Console/ASLQueries. You can then select this filter from the sidebar in Console. (Op 70 is ASL_QUERY_OP_NOT_EQUAL | ASL_QUERY_OP_SUFFIX, a combination not selectable in Console’s in-build query editor – it doesn’t support any negative queries. My bug on this was duped to rdar://5039022.)

Credit to Peter Hosey, see http://boredzo.org/blog/archives/2008-01-24/asl-console

Thanks a bunch Jens and BoredZo,

I put the following in ~/Library/Application Support/Console/ASLQueries as NoXcode.aslquery and it works. 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>key</key>
<string>Sender</string>
<key>op</key>
<integer>76</integer>
<key>value</key>
<string>Xcode</string>
</dict>
</array>
</plist>


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Console littered by Xcode 3.1.1 garbage collection messages
      • From: Markus Spoettl <email@hidden>
    • Re: Console littered by Xcode 3.1.1 garbage collection messages
      • From: Chris Espinosa <email@hidden>
References: 
 >Console littered by Xcode 3.1.1 garbage collection messages (From: Markus Spoettl <email@hidden>)
 >Re: Console littered by Xcode 3.1.1 garbage collection messages (From: Jens Ayton <email@hidden>)

  • Prev by Date: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • Next by Date: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • Previous by thread: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • Next by thread: Re: Console littered by Xcode 3.1.1 garbage collection messages
  • Index(es):
    • Date
    • Thread