Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-17 Thread Uli Kusterer

Am 15.05.2008 um 11:24 schrieb Apparao Mulpuri:

2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has
recorded the following exception:
NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0)



 The last time I got an internal inconsistency exception was when I  
was accidentally messing with views and windows from another thread  
than the main thread. That was what created the inconsistency that  
later caused this exception on a completely unrelated thread.


 You wouldn't perhaps be messing with the GUI from the wrong thread  
by accident?


Cheers,
-- Uli Kusterer
The Witnesses of TeachText are everywhere...
http://www.zathras.de





___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Here is the Stacktrace:

2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has
recorded the following exception:
NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0)
lockFocus] failed with window=0x145b30, windowNumber=340, [self
isHiddenOrHasHiddenAncestor]=0
Stack trace:  0x34dbc  0x9416676c  0x95df9e04  0x9112cde4  0x9569235c
0x956914c8  0x955e5498  0x955e52f8  0x95d8b018  0x95d8c1c8  0x92d823a8
 0x92d82134  0x92d8200c  0x955e33c0  0x955e2d88  0x955dca44
0x955ad448  0x251c  0x2220  0x1
2008-05-15 14:45:33.470 MyCocoaApp[554:10b]
-[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30,
windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0
2008-05-15 14:45:33.508 MyCocoaApp[554:10b] *** Assertion failure in
-[NSNextStepFrame lockFocus],
/SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751


On Thu, May 15, 2008 at 10:01 AM, Jens Alfke [EMAIL PROTECTED] wrote:

 On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote:

 ** Assertion failure in -[NSNextStepFrame lockFocus],
 /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]:
 -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60,
 windowNumber=62, [self isHiddenOrHasHiddenAncestor]

 What's the backtrace?
 Set a breakpoint at objc_exception_throw to find out.

 —Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Here is the complete stacktrace:

2008-05-15 15:58:53.730 MyCocoaApp[618:10b] *** Assertion failure in
-[NSNextStepFrame lockFocus],
/SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
2008-05-15 15:58:53.737 MyCocoaApp[618:10b] NSExceptionHandler has
recorded the following exception:
NSInternalInconsistencyException -- -[NSNextStepFrame(0x146050)
lockFocus] failed with window=0x1457e0, windowNumber=230, [self
isHiddenOrHasHiddenAncestor]=0
Stack trace:  0x34dbc  0x9416676c  0x95df9e04  0x9112cde4  0x9569235c
0x956914c8  0x9568610c  0x956d0650  0x95809cdc  0x9587d248  0x956bb1fc
 0x47b4  0x9569f3bc  0x9573aabc  0x9573a7ec  0x9571bfac  0x92d58f6c
0x92d58104  0x92d750e4  0x92daafd4  0x92dd183c  0x92dd1728  0x92e239dc
 0x92e233b0  0x957f14a4  0x958257d4  0x95acfb74  0x95acf52c
0x9569da7c  0x9569c340  0x95792338  0x9566f79c  0x955dca6c  0x955ad448
 0x224c  0x1f50  0x1
NSExceptionHandlerExceptionRaiser (in ExceptionHandling)
objc_exception_throw (in libobjc.A.dylib)
+[NSException raise:format:] (in CoreFoundation)
-[NSAssertionHandler
handleFailureInMethod:object:file:lineNumber:description:] (in
Foundation)
-[NSView lockFocus] (in AppKit)
-[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
(in AppKit)
-[NSWindow _setFrameCommon:display:stashSize:] (in AppKit)
-[NSMoveHelper _stopAnimation] (in AppKit)
-[NSMoveHelper _doAnimation] (in AppKit)
-[NSMoveHelper _resizeWindow:toFrame:display:] (in AppKit)
-[NSWindow setFrame:display:animate:] (in AppKit)
-[MyController changeGridType:] (in MyCocoaApp)
-[NSApplication sendAction:to:from:] (in AppKit)
-[NSMenu performActionForItemAtIndex:] (in AppKit)
-[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (in AppKit)
AppKitMenuEventHandler (in AppKit)
DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*,
HandlerCallRec*) (in HIToolbox)
SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*,
HandlerCallRec*) (in HIToolbox)
SendEventToEventTarget (in HIToolbox)
SendHICommandEvent(unsigned long, HICommand const*, unsigned long,
unsigned long, unsigned char, OpaqueEventTargetRef*,
OpaqueEventTargetRef*, OpaqueEventRef**) (in HIToolbox)
SendMenuItemSelectedEvent (in HIToolbox)
FinishMenuSelection(MenuData*, MenuData*, MenuResult*, MenuResult*,
unsigned long, unsigned long, unsigned long, unsigned char) (in
HIToolbox)
PopUpMenuSelectCore(MenuData*, Point, double, Point, unsigned short,
unsigned int, Rect const*, unsigned short, unsigned long, Rect const*,
Rect const*, __CFString const*, OpaqueMenuRef**, unsigned short*) (in
HIToolbox)
_HandlePopUpMenuSelection7 (in HIToolbox)
_NSPopUpCarbonMenu3 (in AppKit)
-[NSCarbonMenuImpl
popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:]
(in AppKit)
+[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] (in AppKit)
-[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] (in AppKit)
-[NSControl mouseDown:] (in AppKit)
-[NSWindow sendEvent:] (in AppKit)
-[NSStatusBarWindow sendEvent:] (in AppKit)
-[NSApplication sendEvent:] (in AppKit)
-[NSApplication run] (in AppKit)
NSApplicationMain (in AppKit)
_start (in MyCocoaApp)
start (in MyCocoaApp)


On Thu, May 15, 2008 at 2:54 PM, Apparao Mulpuri
[EMAIL PROTECTED] wrote:
 Here is the Stacktrace:

 2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has
 recorded the following exception:
 NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0)
 lockFocus] failed with window=0x145b30, windowNumber=340, [self
 isHiddenOrHasHiddenAncestor]=0
 Stack trace:  0x34dbc  0x9416676c  0x95df9e04  0x9112cde4  0x9569235c
 0x956914c8  0x955e5498  0x955e52f8  0x95d8b018  0x95d8c1c8  0x92d823a8
  0x92d82134  0x92d8200c  0x955e33c0  0x955e2d88  0x955dca44
 0x955ad448  0x251c  0x2220  0x1
 2008-05-15 14:45:33.470 MyCocoaApp[554:10b]
 -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30,
 windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0
 2008-05-15 14:45:33.508 MyCocoaApp[554:10b] *** Assertion failure in
 -[NSNextStepFrame lockFocus],
 /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751


 On Thu, May 15, 2008 at 10:01 AM, Jens Alfke [EMAIL PROTECTED] wrote:

 On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote:

 ** Assertion failure in -[NSNextStepFrame lockFocus],
 /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]:
 -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60,
 windowNumber=62, [self isHiddenOrHasHiddenAncestor]

 What's the backtrace?
 Set a breakpoint at objc_exception_throw to find out.

 —Jens

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Jens Alfke


On 15 May '08, at 2:24 AM, Apparao Mulpuri wrote:


Here is the Stacktrace:


The binary backtrace is hard to decipher (and it has to be deciphered  
on the same computer, or at least one with the exact same system  
version and frameworks.) Instead follow my directions about setting a  
breakpoint.


—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Jens Alfke


On 15 May '08, at 3:41 AM, Apparao Mulpuri wrote:


Here is the complete stacktrace:


Thanks. This looks like a pretty normal backtrace (up until the  
exception), with only minimal involvement of your code, so it does  
seem like an AppKit bug. You should file a bug report, definitely  
including the backtrace, ideally including your program.


—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
On Thu, May 15, 2008 at 11:10 AM, Jens Alfke [EMAIL PROTECTED] wrote:
 Thanks. This looks like a pretty normal backtrace (up until the exception),
 with only minimal involvement of your code, so it does seem like an AppKit
 bug. You should file a bug report, definitely including the backtrace,
 ideally including your program.

And do this regardless of whether or not you think anyone else has
done so already.  If your bug gets marked as a dup, so be it; it lets
the engineers know that this issue is affecting multiple users.

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Thanks Jens and Kyle Sluder.

Actually my application is primarily targeted for Leopard OS, which is
not working due to this Exception. I am creating a new window and
setting window frame, where exception occurs.

Is there any other way for setting the Window frame?

- Apparao.

On 5/15/08, Kyle Sluder [EMAIL PROTECTED] wrote:
 On Thu, May 15, 2008 at 11:10 AM, Jens Alfke [EMAIL PROTECTED] wrote:
  Thanks. This looks like a pretty normal backtrace (up until the exception),
  with only minimal involvement of your code, so it does seem like an AppKit
  bug. You should file a bug report, definitely including the backtrace,
  ideally including your program.

 And do this regardless of whether or not you think anyone else has
 done so already.  If your bug gets marked as a dup, so be it; it lets
 the engineers know that this issue is affecting multiple users.

 --Kyle Sluder

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
On Fri, May 16, 2008 at 1:26 AM, Apparao Mulpuri
[EMAIL PROTECTED] wrote:
 Actually my application is primarily targeted for Leopard OS, which is
 not working due to this Exception. I am creating a new window and
 setting window frame, where exception occurs.

What bothers me is that it looks like you're doing this in response to
a menu item being selected, which means this will be happening in the
run loop's event-tracking mode.  Perhaps you should defer this to the
next standard run of the run loop?

--Kyle Sluder
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Apparao Mulpuri
HI,

   I have a Cocoa based multi monitor application,which will run on
Mac OS X 10.3.9 onwards.

   It is working as expected in 10.3.9  and Tiger os versions. But, in
Leopard 10.5.2, its giving following exception:

** Assertion failure in -[NSNextStepFrame lockFocus],
/SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]:
-[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60,
windowNumber=62, [self isHiddenOrHasHiddenAncestor]

  For single monitor with Leopard its working fine. With secondary
monitor, its throwing above exception. In Secondary monitor case, i am
doing window(which is custom class of NSWindow and created in IB) copy
operation(using achieving and unarchieving) and displaying it on
secondary monitor.

  I am not getting any idea from the above exception. By google, i
found that, some one is experienced the same exception with custom
window creation on Leopard.

  Any pointers on this is really appreciated.

Thanks,
- Apparao.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Apparao Mulpuri
Is it a known issue on Leopard. Is there any fix?

I am planning to file a bug in apple bugreporter. Is any one filed it already?.

- Apparao.

On Wed, May 14, 2008 at 7:00 PM, Apparao Mulpuri
[EMAIL PROTECTED] wrote:
 HI,

   I have a Cocoa based multi monitor application,which will run on
 Mac OS X 10.3.9 onwards.

   It is working as expected in 10.3.9  and Tiger os versions. But, in
 Leopard 10.5.2, its giving following exception:

 ** Assertion failure in -[NSNextStepFrame lockFocus],
 /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
 May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]:
 -[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60,
 windowNumber=62, [self isHiddenOrHasHiddenAncestor]

  For single monitor with Leopard its working fine. With secondary
 monitor, its throwing above exception. In Secondary monitor case, i am
 doing window(which is custom class of NSWindow and created in IB) copy
 operation(using achieving and unarchieving) and displaying it on
 secondary monitor.

  I am not getting any idea from the above exception. By google, i
 found that, some one is experienced the same exception with custom
 window creation on Leopard.

  Any pointers on this is really appreciated.

 Thanks,
 - Apparao.

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-14 Thread Jens Alfke


On 14 May '08, at 9:17 PM, Apparao Mulpuri wrote:


** Assertion failure in -[NSNextStepFrame lockFocus],
/SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751
May 14 17:37:39 apparao-power-mac-g5 MyCocoaApp[123]:
-[NSNextStepFrame(0x143610) lockFocus] failed with window=0x142e60,
windowNumber=62, [self isHiddenOrHasHiddenAncestor]


What's the backtrace?
Set a breakpoint at objc_exception_throw to find out.

—Jens

smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]