Opened 10 years ago

Closed 8 years ago

#90 closed defect (fixed)

Gestalt selector error in Console

Reported by: Iritscen Owned by: Iritscen
Priority: trivial Component: XmlTools
Keywords: Cc:

Description

When testing the AE in the upcoming OS X 10.10 Yosemite, I got the follow message in Console:

XmlTools: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.0 instead of 10.10.0. Use NSProcessInfo's operatingSystemVersion property to get correct system version number. Call location:
XmlTools: 0 CarbonCore 0x00007fff94d08dc3 ___Gestalt_SystemVersion_block_invoke + 113
XmlTools: 1 libdispatch.dylib 0x00007fff9395ec13 _dispatch_client_callout + 8
XmlTools: 2 libdispatch.dylib 0x00007fff9395eb26 dispatch_once_f + 117
XmlTools: 3 CarbonCore 0x00007fff94cb14da _Gestalt_SystemVersion + 987
XmlTools: 4 CarbonCore 0x00007fff94cb10c7 Gestalt + 144
XmlTools: 5 QtCore 0x0000000100257836 _ZN9QInternal17activateCallbacksENS_8CallbackEPPv + 2582
XmlTools: 6 ??? 0x00007fff62f25ceb 0x0 + 140734853438699

I don't know why or when this is being called. Are you calling the Gestalt() function directly or is Mono doing that for you? I also don't know if this affects anything adversely because I don't know if you are actually looking at the OS version.

The program still seemed to work fine in 10.10, so I'm just filing this as a trivial bug so that you're aware of it. I suspect it's actually a Mono bug that we can't do anything about.

Change History (4)

comment:1 Changed 10 years ago by s10k

It can't be mono, because I don't use it all.

XmlTools is fully native.

I also don't remember calling that function it may be just Qt libraries checking that in the background (which means a simple recompilation with latest libraries would solve it).

Does the application fully work? I mean do all the patches get successful installed?

Thanks.

Edit:

Seems to be just a warning and seems that a lot of programs are getting that one with this new version of the macos (after a quick google search).

Also the call stack does indeed confirm that it comes from Qt libraries:

"
XmlTools: 4 CarbonCore 0x00007fff94cb10c7 Gestalt + 144
XmlTools: 5 QtCore 0x0000000100257836 _ZN9QInternal17activateCallbacksENS_8CallbackEPPv + 2582
"

So I may be calling some getOS function in Qt library which then call some MacOS specific functions ending with that gestalt deprecated function.

Last edited 10 years ago by s10k (previous) (diff)

comment:2 Changed 9 years ago by Iritscen

Oops, I forgot that XmlTools is natively compiled, sorry. Yes, I suppose you just need to wait for Qt to get their act together. It seems that since Apple deprecated Gestalt back in 10.8, it does not support the new two-digit minor version numbers starting with 10.10. The proper call is now [[NSProcessInfo processInfo] operatingSystemVersion], but you shouldn't need to know that.

Last edited 9 years ago by Iritscen (previous) (diff)

comment:3 Changed 9 years ago by s10k

  • Owner changed from s10k to Iritscen
  • Status changed from new to assigned

Please try now Iritscen I have recompiled it with the latest Qt libraries.

comment:4 Changed 8 years ago by Iritscen

  • Resolution set to fixed
  • Status changed from assigned to closed

Seems that I forgot to test this or close this bug back when it was assigned to me. It has been fixed.

Note: See TracTickets for help on using tickets.