• 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
Crashes while reordering columns in a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crashes while reordering columns in a NSTableView


  • Subject: Crashes while reordering columns in a NSTableView
  • From: Tim Schmidt <email@hidden>
  • Date: Mon, 20 Jul 2009 15:38:26 PDT

Hi all,

I am having a lot of problems with NSTableView crashing my application, when reordering (dragging) columns.

The crashes either take down the whole app and all I get is the following message:
<Error>: __CGPixelAccessDataInitialize: vm_copy failed: status 1.


or, it manages to break into the debugger with stack-traces like the following (nearly all crashes happen in CGBlt_copyBytes with an "EXC_BAD_ACCESS" signal.

Thread 1:

#0 0x90ec0fb9 in CGBlt_copyBytes ()
#1 0x90ef7e70 in __CGPixelAccessDataInitialize ()
#2 0x9144b010 in __CGPixelAccessAccessBitmapData ()
#3 0x90f2eab8 in __CGPixelAccessCreateImageFromRect ()
#4 0x90f2e916 in CGPixelAccessCreateImageFromRect ()
#5 0x90720ec5 in -[NSCGImageRep initWithFocusedViewRect:] ()
#6 0x906544cc in -[NSTableView _captureReorderResizeColumnImageCaches] ()
#7 0x90653261 in -[NSTableView drawRect:] ()
#8 0x9072c75a in -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:topView:] ()
#9 0x90cc7f08 in -[NSView(NSLayerKitGlue) drawLayer:inContext:] ()
#10 0x96c7bf00 in -[CALayer drawInContext:] ()
#11 0x96e7036c in tiled_layer_render ()
#12 0x96e2a267 in source_perform ()
#13 0x9737b595 in CFRunLoopRunSpecific ()
#14 0x9737bc78 in CFRunLoopRunInMode ()
#15 0x939b928c in RunCurrentEventLoopInMode ()
#16 0x939b8fde in ReceiveNextEventCommon ()
#17 0x939b8f19 in BlockUntilNextEventMatchingListInMode ()
#18 0x9061ad0d in _DPSNextEvent ()
#19 0x9061a5c0 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#20 0x90b91d59 in -[NSTableHeaderView _lastDraggedOrUpEventFollowing:canceled:] ()
#21 0x90b92426 in -[NSTableHeaderView _reorderColumn:withEvent:] ()
#22 0x908d6c63 in -[NSTableHeaderView mouseDown:] ()
#23 0x906e9133 in -[NSWindow sendEvent:] ()
#24 0x906b5cd9 in -[NSApplication sendEvent:] ()
#25 0x9061362f in -[NSApplication run] ()
#26 0x905e0834 in NSApplicationMain ()
#27 0x00002af2 in main (argc=1, argv=0xbffff640) at <XXXXXXXXX>/main.m: 13



Thread 2: #0 0x9368446e in __semwait_signal () #1 0x936af3e6 in _pthread_cond_wait () #2 0x936aedcd in pthread_cond_wait$UNIX2003 () #3 0x931d9329 in CVDisplayLink::runIOThread () #4 0x936ae155 in _pthread_start () #5 0x936ae012 in thread_start ()


Thread 3: #0 0x9368446e in __semwait_signal () #1 0x936af3e6 in _pthread_cond_wait () #2 0x936aedcd in pthread_cond_wait$UNIX2003 () #3 0x964beb32 in glvmDoWork () #4 0x936ae155 in _pthread_start () #5 0x936ae012 in thread_start ()


Reordering columns also leads to strange artifacts (it works for a few seconds before it crashes...). Said table is programmatically manipulated at runtime (i.e. columns are removed | added). The superview uses CG. Xcode also occasionally dumps the following to console if gdb manages to break:
Xcode could not locate source file: cpu_capabilities.h (line: 246)


Is there any way to work around this, as Column reordering is a pretty important feature for this tool

Very best regards,
Tim Schmidt



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Crashes while reordering columns in a NSTableView
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: UIButton image disables "shows touch on highlight"?
  • Next by Date: NSBrowser's current selection
  • Previous by thread: UIButton image disables "shows touch on highlight"?
  • Next by thread: Re: Crashes while reordering columns in a NSTableView
  • Index(es):
    • Date
    • Thread