Issue #285 resolved

P3D3::Vertical Display + MacHg = Crash

Anonymous created an issue

Hello,

I have a vertical display here and it's resolution is 1200*1920 I find it really useful for documentation or long listing such as long changelists. Unfortunately, the first time I tried and the subsequents I tried to re-dimention the MacHG window to fit to that resolution and ended having MacHg taking 100% of my cpu, not responding, forcing me to kill it.

Hope this makes sense to you. Ronan

Comments (6)

  1. Jason Harris repo owner
    • changed status to open

    Hi, could you give me detailed instructions to reproduce this bug? I tried clicking the Window > Zoom menu option but things still seem to be working fine for me...

  2. Anonymous

    On my 1920*1200 display, no problem but If i do that with my 1200*1920 it crashes.

    Now I've discovered that if I maximize the welcome screen, there was no crash anymore. So after digging a little more I found out that the crash occurred when using the history view.

    Here's a repro:

    • Open MacHg
    • Move it on a display that has more than 1300 pixels height
    • drag the macHg window onto that display and set the view to "History"
    • start resizing up the MacHg window until it hangs. This should occur when the window size is around 1290 pixels height

    here is some more information on my system, and next is the call stack I get when I kill the MacHg process. If I can do anything to help, please let me know.

    Model: Macmini3,1, BootROM MM31.0081.B06, 2 processors, Intel Core 2 Duo, 2 GHz, 8 GB, SMC 1.35f0
    Graphics: NVIDIA GeForce 9400, NVIDIA GeForce 9400, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x8394, 0x393731363434412028393736363434412900
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x8394, 0x393731363434412028393736363434412900
    
    
    Date/Time:       2011-09-22 18:53:42 -0400
    OS Version:      10.7 (Build 11A511)
    Architecture:    x86_64
    Report Version:  8
    
    Command:         MacHg
    Path:            /Applications/MacHg.app/Contents/MacOS/MacHg
    Version:         0.9.24 (0.9.24)
    Parent:          launchd [105]
    
    PID:             1621
    Event:           hang
    Duration:        2.33s
    Steps:           24 (100ms sampling interval)
    
    Pageins:         0
    Pageouts:        0
    
    
    Process:         MacHg [1621]
    Path:            /Applications/MacHg.app/Contents/MacOS/MacHg
    Architecture:    x86_64
    UID:             501
    
      Thread 0x84b5       DispatchQueue 1
      User stack:
        24 start + 52 (in MacHg) [0x100001904]
          24 NSApplicationMain + 867 (in AppKit) [0x7fff953f952a]
            24 -[NSApplication run] + 548 (in AppKit) [0x7fff9517b42b]
              24 -[NSApplication sendEvent:] + 5665 (in AppKit) [0x7fff951e4f19]
                24 -[NSWindow sendEvent:] + 6280 (in AppKit) [0x7fff9524c66e]
                  24 -[_NSThemeWidget mouseDown:] + 257 (in AppKit) [0x7fff957adc3a]
                    24 -[NSControl mouseDown:] + 786 (in AppKit) [0x7fff95281786]
                      24 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489 (in AppKit) [0x7fff9530257c]
                        24 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2014 (in AppKit) [0x7fff95282b7a]
                          24 -[NSCell _sendActionFrom:] + 137 (in AppKit) [0x7fff952836af]
                            24 -[NSControl sendAction:to:] + 88 (in AppKit) [0x7fff95283784]
                              24 -[NSApplication sendAction:to:from:] + 139 (in AppKit) [0x7fff95283852]
                                24 -[NSObject performSelector:withObject:] + 61 (in CoreFoundation) [0x7fff91cb811d]
                                  24 -[NSWindow zoom:] + 794 (in AppKit) [0x7fff95811868]
                                    24 -[NSWindow setFrame:display:animate:] + 1301 (in AppKit) [0x7fff953123cd]
                                      24 -[NSMoveHelper _resizeWindow:toFrame:display:] + 459 (in AppKit) [0x7fff9581866d]
                                        24 -[NSMoveHelper _doAnimation] + 1399 (in AppKit) [0x7fff95819114]
                                          24 CFRunLoopRunSpecific + 230 (in CoreFoundation) [0x7fff91c5d216]
                                            24 __CFRunLoopRun + 1617 (in CoreFoundation) [0x7fff91c5dba1]
                                              24 __CFRunLoopDoTimer + 534 (in CoreFoundation) [0x7fff91c7d1e6]
                                                24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 (in CoreFoundation) [0x7fff91c7d694]
                                                  24 __-[NSMoveHelper _doAnimation]_block_invoke_1 + 1162 (in AppKit) [0x7fff9581bdad]
                                                    24 -[NSWindow setFrame:display:] + 60 (in AppKit) [0x7fff9527c019]
                                                      24 -[NSWindow _setFrameCommon:display:stashSize:] + 1948 (in AppKit) [0x7fff9527c7bb]
                                                        24 -[NSWindow _oldPlaceWindow:] + 1551 (in AppKit) [0x7fff952d1899]
                                                          24 -[NSView setFrameSize:] + 955 (in AppKit) [0x7fff951be5e5]
                                                            24 -[NSView resizeSubviewsWithOldSize:] + 200 (in AppKit) [0x7fff95299d15]
                                                              24 -[NSView resizeWithOldSuperviewSize:] + 1040 (in AppKit) [0x7fff9529a1a0]
                                                                24 -[NSView setFrame:] + 268 (in AppKit) [0x7fff951bde9a]
                                                                  24 -[NSView setFrameSize:] + 955 (in AppKit) [0x7fff951be5e5]
                                                                    24 -[NSSplitView resizeSubviewsWithOldSize:] + 678 (in AppKit) [0x7fff952d5df4]
                                                                      24 -[BWSplitView splitView:resizeSubviewsWithOldSize:] + 105 (in BWToolkitFramework) [0x1001ba391]
                                                                        24 -[BWSplitView resizeAndAdjustSubviews] + 5770 (in BWToolkitFramework) [0x1001bba8a]
                                                                          24 -[NSView setFrame:] + 268 (in AppKit) [0x7fff951bde9a]
                                                                            24 -[NSView setFrameSize:] + 955 (in AppKit) [0x7fff951be5e5]
                                                                              24 -[NSView resizeSubviewsWithOldSize:] + 200 (in AppKit) [0x7fff95299d15]
                                                                                24 -[NSView resizeWithOldSuperviewSize:] + 1040 (in AppKit) [0x7fff9529a1a0]
                                                                                  24 -[NSView setFrame:] + 268 (in AppKit) [0x7fff951bde9a]
                                                                                    24 -[NSBox setFrameSize:] + 110 (in AppKit) [0x7fff952bdef1]
                                                                                      24 -[NSBox _tile:] + 3241 (in AppKit) [0x7fff952a1b3c]
                                                                                        24 -[NSView setFrame:] + 268 (in AppKit) [0x7fff951bde9a]
                                                                                          24 -[NSView setFrameSize:] + 955 (in AppKit) [0x7fff951be5e5]
                                                                                            24 -[NSView resizeSubviewsWithOldSize:] + 200 (in AppKit) [0x7fff95299d15]
                                                                                              24 -[NSView resizeWithOldSuperviewSize:] + 1040 (in AppKit) [0x7fff9529a1a0]
                                                                                                24 -[NSView setFrame:] + 268 (in AppKit) [0x7fff951bde9a]
                                                                                                  24 -[NSView setFrameSize:] + 955 (in AppKit) [0x7fff951be5e5]
                                                                                                    24 -[NSSplitView resizeSubviewsWithOldSize:] + 678 (in AppKit) [0x7fff952d5df4]
                                                                                                      4 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1217 (in MacHg) [0x10006be61]
                                                                                                      3 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 937 (in MacHg) [0x10006bd49]
                                                                                                      2 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1007 (in MacHg) [0x10006bd8f]
                                                                                                      2 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1209 (in MacHg) [0x10006be59]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1053 (in MacHg) [0x10006bdbd]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1027 (in MacHg) [0x10006bda3]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1226 (in MacHg) [0x10006be6a]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1238 (in MacHg) [0x10006be76]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1035 (in MacHg) [0x10006bdab]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1201 (in MacHg) [0x10006be51]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1125 (in MacHg) [0x10006be05]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 660 (in MacHg) [0x10006bc34]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1097 (in MacHg) [0x10006bde9]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 632 (in MacHg) [0x10006bc18]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 991 (in MacHg) [0x10006bd7f]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1221 (in MacHg) [0x10006be65]
                                                                                                      1 -[JHAccordionView splitView:resizeSubviewsWithOldSize:] + 1061 (in MacHg) [0x10006bdc5]
    
    
    
  3. Jason Harris repo owner

    Thanks for the extra information. I have a 2560 X 1440 screen and I have not seen this behavior at least on 10.7.1 (Lion) and MacHg 0.9.24 which I am now using.

    However, I was going to tweak this JHAccordionView code in any case. Thanks for the stack trace and I will look into this soonish...

    Cheers, Jas

  4. Log in to comment