Frequent "DebuggerHook" crashes when stepping thru code in the debugger

  1. 3 months ago

    Frequent enough that I feel the need to report this, stepping through a relatively simple app, mostly (I think) occurs when stepping OUT of a function before its last line (just an impression). This has been a frequent problem with RealStudio and I see it persists with Xojo. This is with today's release (2018r2). Crash log:

    Process: Stats Buddy.debug [97558]
    Path: /Volumes/VOLUME/*/Stats Buddy.debug.app/Contents/MacOS/Stats Buddy.debug
    Identifier: com.pkstys.statsbuddy
    Version: ??? (1.0.0.0.0)
    Code Type: X86-64 (Native)
    Parent Process: ??? [1]
    Responsible: Stats Buddy.debug [97558]
    User ID: 501

    Date/Time: 2018-08-07 12:22:36.732 -0600
    OS Version: Mac OS X 10.13.3 (17D47)
    Report Version: 12
    Anonymous UUID: F1EE18DB-1661-98B8-E3A6-D93C0B42532A

    Time Awake Since Boot: 600000 seconds

    System Integrity Protection: enabled

    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: EXC_I386_GPFLT
    Exception Note: EXC_CORPSE_NOTIFY

    Termination Signal: Segmentation fault: 11
    Termination Reason: Namespace SIGNAL, Code 0xb
    Terminating Process: exc handler [0]

    Application Specific Information:
    Performing @selector(performClick:) from sender XOJButton 0x60000015ce00

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 XojoFramework 0x0000000101ef736d 0x101d68000 + 1635181
    1 XojoFramework 0x0000000101ef43bf DSDelegate::DebuggerConnectionMessage(DebuggerPacketParser const&) + 17
    2 XojoFramework 0x0000000101ef27fb DebuggerConnection::ProcessMessage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) + 67
    3 XojoFramework 0x0000000101fbd3ea TCPSocketConnection::SocketDataReceived(TCPSocket*) + 370
    4 XojoFramework 0x0000000101e79db3 TCPSocket::FireEvents() + 123
    5 XojoFramework 0x0000000101e769d9 TCPSocketPosix::Poll() + 925
    6 XojoFramework 0x0000000101efb582 0x101d68000 + 1652098
    7 XojoFramework 0x0000000101efb39b DebuggerHook + 836
    8 Stats Buddy.debug 0x0000000101aea702 Window1.Window1.multipleDataFldsAsTableToString%s%o<Window1.Window1>A1o<Pair>&i8bs + 5458 (/Window1:6518)
    9 Stats Buddy.debug 0x00000001019e1c63 Window1.Window1.writeMultipleDataFldsAsTableToFile%i8%o<Window1.Window1>o<FolderItem>A1o<Pair>s + 611 (/Window1:3252)
    10 Stats Buddy.debug 0x00000001019a06f8 Window1.Window1.XYdotPlotRegressionBtn_Action%%o<Window1.Window1>o<PushButton> + 6952 (/Window1:1464)
    11 Stats Buddy.debug 0x0000000101b63f94 Delegate.IM_Invoke%%o<PushButton> + 52
    12 Stats Buddy.debug 0x0000000101b63f54 AddHandler.Stub.15%% + 52
    13 com.apple.AppKit 0x00007fff4fa0775a -[NSApplication(NSResponder) sendAction:to:from:] + 312
    14 com.apple.AppKit 0x00007fff4f4ad933 -[NSControl sendAction:to:] + 86
    15 com.apple.AppKit 0x00007fff4f4ad85b __26-[NSCell _sendActionFrom:]_block_invoke + 136
    16 com.apple.AppKit 0x00007fff4f4ad761 -[NSCell _sendActionFrom:] + 183
    17 com.apple.AppKit 0x00007fff4f4eea18 -[NSButtonCell _sendActionFrom:] + 97
    18 com.apple.AppKit 0x00007fff4f50879c -[NSButtonCell performClick:] + 714
    19 XojoFramework 0x0000000101e1aa2c CocoaPushButton::PressButton() + 224
    20 Stats Buddy.debug 0x000000010184d9b4 PushButton.Push%%o<PushButton> + 36
    21 Stats Buddy.debug 0x0000000101b5e224 Window1.Window1.repeatGraph%%o<Window1.Window1> + 3060 (/Window1:8172)
    22 Stats Buddy.debug 0x00000001019c6c25 Window1.Window1._GraphRepeatLastGraph_Action%b%o<Window1.Window1> + 149 (/Window1:2677)
    23 XojoFramework 0x0000000101f2082d RuntimeMenuItemClick(RunMenuItem*, unsigned char, Window*, unsigned char*) + 1063
    24 XojoFramework 0x0000000101e24540 CocoaMenu::_MenuItemAction(NSMenuItem*) + 72
    25 XojoFramework 0x0000000101e24ab0 0x101d68000 + 772784
    26 com.apple.AppKit 0x00007fff4fa0775a -[NSApplication(NSResponder) sendAction:to:from:] + 312
    27 com.apple.AppKit 0x00007fff4f49c5f7 -[NSMenuItem _corePerformAction] + 323
    28 com.apple.AppKit 0x00007fff4f49c37f -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
    29 com.apple.AppKit 0x00007fff4f49b1e3 -[NSMenu performKeyEquivalent:] + 363
    30 com.apple.AppKit 0x00007fff4fa063c1 routeKeyEquivalent + 884
    31 com.apple.AppKit 0x00007fff4fa038f5 -[NSApplication(NSEvent) sendEvent:] + 1041
    32 XojoFramework 0x0000000101e3bcaf 0x101d68000 + 867503
    33 Stats Buddy.debug 0x0000000101815dc5 Application._CallFunctionWithExceptionHandling%%o<Application>p + 181
    34 XojoFramework 0x0000000101fbc41b CallFunctionWithExceptionHandling(void (*)()) + 262
    35 XojoFramework 0x0000000101e3bc2a 0x101d68000 + 867370
    36 com.apple.AppKit 0x00007fff4f264d9d -[NSApplication run] + 812
    37 XojoFramework 0x0000000101fba747 RuntimeRun + 40
    38 Stats Buddy.debug 0x00000001018aa0f3 REALbasic._RuntimeRun + 19
    39 Stats Buddy.debug 0x0000000101bd33ee _Main + 846 (/#main:246)
    40 Stats Buddy.debug 0x0000000101bd1293 main + 19
    41 libdyld.dylib 0x00007fff795a4115 start + 1

  2. This is an all too frequent occurrence, I have filed a bug report: Feedback Case #52924
    Same as # 51857 by Bob Keeney in April of this year which was closed as not reproducible. I'm sure others see this so please sign on so this can be fixed once and for all.

    Process: Stats Buddy.debug [50212]
    Path: /Volumes/VOLUME/*/Stats Buddy.debug.app/Contents/MacOS/Stats Buddy.debug
    Identifier: com.pkstys.statsbuddy
    Version: ??? (1.0.0.0.0)
    Code Type: X86-64 (Native)
    Parent Process: ??? [1]
    Responsible: Stats Buddy.debug [50212]
    User ID: 501

    Date/Time: 2018-08-08 10:56:35.400 -0600
    OS Version: Mac OS X 10.13.3 (17D47)
    Report Version: 12
    Anonymous UUID: F1EE18DB-1661-98B8-E3A6-D93C0B42532A

    Time Awake Since Boot: 680000 seconds

    System Integrity Protection: enabled

    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: EXC_I386_GPFLT
    Exception Note: EXC_CORPSE_NOTIFY

    Termination Signal: Segmentation fault: 11
    Termination Reason: Namespace SIGNAL, Code 0xb
    Terminating Process: exc handler [0]

    Application Specific Information:
    Performing @selector(performClick:) from sender XOJButton 0x604000146ca0

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 XojoFramework 0x000000010f29b36d 0x10f10c000 + 1635181
    1 XojoFramework 0x000000010f2983bf DSDelegate::DebuggerConnectionMessage(DebuggerPacketParser const&) + 17
    2 XojoFramework 0x000000010f2967fb DebuggerConnection::ProcessMessage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) + 67
    3 XojoFramework 0x000000010f3613ea TCPSocketConnection::SocketDataReceived(TCPSocket*) + 370
    4 XojoFramework 0x000000010f21ddb3 TCPSocket::FireEvents() + 123
    5 XojoFramework 0x000000010f21a9d9 TCPSocketPosix::Poll() + 925
    6 XojoFramework 0x000000010f29f582 0x10f10c000 + 1652098
    7 XojoFramework 0x000000010f29f39b DebuggerHook + 836
    8 Stats Buddy.debug 0x000000010ee80e68 Window1.Window1.getNumberOfValidDataColumns%i8%o<Window1.Window1>&A1i8b + 2584 (/Window1:6854)
    9 Stats Buddy.debug 0x000000010eee10c5 Window1.Window1.getColumnHeaders%A1s%o<Window1.Window1>b + 981 (/Window1:8215)
    10 Stats Buddy.debug 0x000000010eeeb37a Window1.Window1.plot_XYdotPlot%%o<Window1.Window1> + 5466 (/Window1:8413)
    11 Stats Buddy.debug 0x000000010ed19146 Window1.Window1.XYdotPlotBtn_Action%%o<Window1.Window1>o<PushButton> + 166 (/Window1:1373)
    12 Stats Buddy.debug 0x000000010ef024f4 Delegate.IM_Invoke%%o<PushButton> + 52
    13 Stats Buddy.debug 0x000000010ef024b4 AddHandler.Stub.15%% + 52
    14 com.apple.AppKit 0x00007fff4fa0775a -[NSApplication(NSResponder) sendAction:to:from:] + 312
    15 com.apple.AppKit 0x00007fff4f4ad933 -[NSControl sendAction:to:] + 86
    16 com.apple.AppKit 0x00007fff4f4ad85b __26-[NSCell _sendActionFrom:]_block_invoke + 136
    17 com.apple.AppKit 0x00007fff4f4ad761 -[NSCell _sendActionFrom:] + 183
    18 com.apple.AppKit 0x00007fff4f4eea18 -[NSButtonCell _sendActionFrom:] + 97
    19 com.apple.AppKit 0x00007fff4f4abfca -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2438
    20 com.apple.AppKit 0x00007fff4f4ee75f -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 777
    21 com.apple.AppKit 0x00007fff4f4aaa64 -[NSControl mouseDown:] + 965
    22 XojoFramework 0x000000010f1e4a1b 0x10f10c000 + 887323
    23 com.apple.AppKit 0x00007fff4fba6959 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5891
    24 com.apple.AppKit 0x00007fff4fba35b0 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2359
    25 com.apple.AppKit 0x00007fff4fba285c -[NSWindow(NSEventRouting) sendEvent:] + 497
    26 XojoFramework 0x000000010f1f0229 0x10f10c000 + 934441
    27 com.apple.AppKit 0x00007fff4fa03617 -[NSApplication(NSEvent) sendEvent:] + 307
    28 XojoFramework 0x000000010f1dfcaf 0x10f10c000 + 867503
    29 Stats Buddy.debug 0x000000010eb92fa5 Application._CallFunctionWithExceptionHandling%%o<Application>p + 181
    30 XojoFramework 0x000000010f36041b CallFunctionWithExceptionHandling(void (*)()) + 262
    31 XojoFramework 0x000000010f1dfc2a 0x10f10c000 + 867370
    32 com.apple.AppKit 0x00007fff4f264d9d -[NSApplication run] + 812
    33 XojoFramework 0x000000010f35e747 RuntimeRun + 40
    34 Stats Buddy.debug 0x000000010ec272d3 REALbasic._RuntimeRun + 19
    35 Stats Buddy.debug 0x000000010ef7903e _Main + 846 (/#main:258)
    36 Stats Buddy.debug 0x000000010ef76ee3 main + 19
    37 libdyld.dylib 0x00007fff795a4115 start + 1

  3. this keeps happening, and I would add to the case were it not for Feedback losing server connections that just adds to my frustration:
    https://www.dropbox.com/s/0fhbd9r201jlox9/xojo_feedback_disconnect.png?dl=0

  4. Michael D

    Aug 8 Pre-Release Testers, Xojo Pro

    Peter, I don't doubt your experience, but as a datapoint, I'm having much fewer of these DebuggerHook crashes in the 2017 2018 2018R2 IDEs. I am however having some other weird stuff which may be Debugger related:

    https://forum.xojo.com/49275-cocoa-exceptions-pre-and-post-mojave/0#p399879

    and

    https://forum.xojo.com/49276-2018r2-jsonitem-in-the-debugger

  5. Beatrix W

    Aug 8 Pre-Release Testers Europe (Germany)

    Wasn't this the bug where you have to inspect a value in the debugger, step out of the method and everything blows up? I can't find the issue in Feedback.

  6. Sascha S

    Aug 8 Pre-Release Testers, Xojo Pro Germany/W'haven

    @Beatrix W Wasn't this the bug where you have to inspect a value in the debugger, step out of the method and everything blows up? I can't find the issue in Feedback.

    I am experiencing the same everyday... :/

  7. I'm glad I'm not alone, so pls sign on to the case so we can get this fixed.

  8. Beatrix W

    Aug 9 Pre-Release Testers Europe (Germany)

    Your Feedback issue is private.

  9. Ah yes, Robin changed it to private because of the project attachment, we'll change this.

  10. Here is the revised public version of this report: Feedback Case #52946

or Sign Up to reply!