[Mono-bugs] [Bug 656155] New: NSComboBox cells get GC

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 26 18:52:44 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=656155

https://bugzilla.novell.com/show_bug.cgi?id=656155#c0


           Summary: NSComboBox cells get GC
    Classification: Mono
           Product: MonoMac
           Version: GIT
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Bindings
        AssignedTo: gnorton at novell.com
        ReportedBy: jclancey at resdat.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=402341)
 --> (http://bugzilla.novell.com/attachment.cgi?id=402341)
Test Case

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7

When you subclass NSComboBox. The Cells seem to get GC.  The same thing happens
to the NSTableView.


Stacktrace:

  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
  at MonoMac.AppKit.NSApplication.Main (string[]) [0x00000] in
/Users/Clancey/Projects/monomacTrunk/src/AppKit/NSApplication.cs:74
  at testmm.MainClass.Main (string[]) [0x00005] in
/Users/Clancey/Projects/testmm/testmm/Main.cs:14
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00049, 0x0012b>

Native stacktrace:

    0   testmm                              0x000c8f5a
mono_handle_native_sigsegv + 343
    1   testmm                              0x0000ffa5
mono_sigsegv_signal_handler + 306
    2   libSystem.B.dylib                   0x98cbf46b _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   AppKit                              0x95ebdbff -[NSCell
setObjectValue:] + 169
    5   AppKit                              0x95f9c47f -[NSTableView
preparedCellAtColumn:row:] + 484
    6   AppKit                              0x95fb68bc -[NSTableView
_drawContentsAtRow:column:withCellFrame:] + 56
    7   AppKit                              0x95fb592a -[NSTableView
drawRow:clipRect:] + 1131
    8   AppKit                              0x95fb5362 -[NSTableView
drawRowIndexes:clipRect:] + 360
    9   AppKit                              0x95fb3d3b -[NSTableView drawRect:]
+ 1144
    10  AppKit                              0x95fa982a -[NSView
_drawRect:clip:] + 3510
    11  AppKit                              0x95fa84c8 -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600
    12  AppKit                              0x95fa87fd -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
    13  AppKit                              0x95fa87fd -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
    14  AppKit                              0x95fa87fd -[NSView
_recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
    15  AppKit                              0x95fa69e7 -[NSView
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 711
    16  AppKit                              0x96045aa3 -[NSNextStepFrame
_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
+ 311
    17  AppKit                              0x95fa2ea2 -[NSView
_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
    18  AppKit                              0x95f03a57 -[NSView
displayIfNeeded] + 818
    19  AppKit                              0x95eb7661 -[NSNextStepFrame
displayIfNeeded] + 98
    20  AppKit                              0x95eccd40 -[NSWindow
displayIfNeeded] + 204
    21  AppKit                              0x95ecb7db -[NSWindow
_reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1085
    22  AppKit                              0x95ecb33d -[NSWindow
orderWindow:relativeTo:] + 105
    23  AppKit                              0x961f65de -[NSComboBoxWindow
orderWindow:relativeTo:] + 150
    24  AppKit                              0x960c4cdd -[NSWindow
addChildWindow:ordered:] + 768
    25  AppKit                              0x961fa295 -[NSComboBoxCell popUp:]
+ 384
    26  AppKit                              0x95f12c46 -[NSApplication
sendAction:to:from:] + 112
    27  AppKit                              0x95ff2465 -[NSControl
sendAction:to:] + 108
    28  AppKit                              0x95fedf12 -[NSCell
_sendActionFrom:] + 169
    29  AppKit                              0x95fece53 -[NSCell
trackMouse:inRect:ofView:untilMouseUp:] + 858
    30  AppKit                              0x960428a1 -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] + 524
    31  AppKit                              0x961f990d -[NSComboBoxCell
trackMouse:inRect:ofView:untilMouseUp:] + 607
    32  AppKit                              0x961f42bf -[NSComboBox mouseDown:]
+ 520
    33  AppKit                              0x95fe9c68 -[NSWindow sendEvent:] +
5549
    34  AppKit                              0x95f02817 -[NSApplication
sendEvent:] + 6431
    35  AppKit                              0x95e962a7 -[NSApplication run] +
917
    36  AppKit                              0x95e8e2d9 NSApplicationMain + 574
    37  ???                                 0x01ffe30b 0x0 + 33547019
    38  ???                                 0x01ffe10b 0x0 + 33546507
    39  ???                                 0x004cef45 0x0 + 5041989
    40  ???                                 0x004cf0a4 0x0 + 5042340
    41  testmm                              0x0000fd70 mono_jit_runtime_invoke
+ 1339
    42  testmm                              0x001de701 mono_runtime_invoke +
138
    43  testmm                              0x001e08ac mono_runtime_exec_main +
669
    44  testmm                              0x001dfc96 mono_runtime_run_main +
814
    45  testmm                              0x0009c762 mono_jit_exec + 200
    46  testmm                              0x0009c99c main_thread_handler +
558
    47  testmm                              0x0009ecd3 mono_main + 7577
    48  testmm                              0x00003a95 mono_main_with_options +
539
    49  testmm                              0x00003b1c main + 49
    50  testmm                              0x0000384e start + 54

Debug info from gdb:

/tmp/mono-gdb-commands.w9Kz2p:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================


Reproducible: Always

Steps to Reproduce:
1.Run the test case
2.Click on the ComboBox

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list