Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query button doesn't work at all after upgrading to 3.0.2 #157

Closed
mbrowne opened this issue Oct 22, 2014 · 12 comments
Closed

Query button doesn't work at all after upgrading to 3.0.2 #157

mbrowne opened this issue Oct 22, 2014 · 12 comments

Comments

@mbrowne
Copy link

mbrowne commented Oct 22, 2014

I just upgraded to version 3.0.2 and can no longer query any databases. When I click on a collection and then click the "Query" button in the toolbar, nothing happens. It does not bring up the query window like it used to.

@mbrowne
Copy link
Author

mbrowne commented Oct 22, 2014

Here are some messages from the console that might be relevant:

10/21/14 10:07:41.704 PM MongoHub: Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x7fc25d821130 h=--& v=--& V:[NSView:0x7fc2584a8900(0)]>",
    "<NSLayoutConstraint:0x7fc2584e7710 V:[NSPopUpButton:0x7fc2584b4aa0]-(0)-|   (Names: '|':NSView:0x7fc2584a8900 )>",
    "<NSLayoutConstraint:0x7fc2584e76b0 V:|-(0)-[NSScrollView:0x7fc2584a21f0]   (Names: '|':NSView:0x7fc2584a8900 )>",
    "<NSLayoutConstraint:0x7fc258481400 V:[NSPopUpButton:0x7fc2584b4aa0(21)]>",
    "<NSLayoutConstraint:0x7fc2584e8b60 V:[NSScrollView:0x7fc2584a21f0]-(-1)-[NSPopUpButton:0x7fc2584b4aa0]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fc258481400 V:[NSPopUpButton:0x7fc2584b4aa0(21)]>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
10/21/14 10:07:47.089 PM MongoHub: -[NSBundle loadNibNamed:owner:topLevelObjects:]: unrecognized selector sent to instance 0x7fc2584213c0
10/21/14 10:07:47.089 PM MongoHub: -[NSBundle loadNibNamed:owner:topLevelObjects:]: unrecognized selector sent to instance 0x7fc2584213c0
10/21/14 10:07:47.090 PM MongoHub: (
    0   CoreFoundation                      0x00007fff8f236f56 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff889fcdee objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8f2c31be -[NSObject doesNotRecognizeSelector:] + 190
    3   CoreFoundation                      0x00007fff8f223e23 ___forwarding___ + 371
    4   CoreFoundation                      0x00007fff8f223c38 _CF_forwarding_prep_0 + 232
    5   MongoHub                            0x0000000107120891 -[MHQueryWindowController(UpdateTab) updateAddOperatorAction:] + 209
    6   MongoHub                            0x0000000107119c47 -[MHQueryWindowController awakeFromNib] + 119
    7   AppKit                              0x00007fff935fb389 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1311
    8   AppKit                              0x00007fff9371ae6b -[NSNib instantiateNibWithExternalNameTable:] + 606
    9   AppKit                              0x00007fff9371abd8 -[NSNib instantiateNibWithOwner:topLevelObjects:] + 251
    10  AppKit                              0x00007fff9371a11f -[NSViewController loadView] + 186
    11  AppKit                              0x00007fff93715dfe -[NSViewController view] + 41
    12  MongoHub                            0x0000000107142fb1 -[MHTabViewController addTabItemViewController:] + 401
    13  MongoHub                            0x0000000107148dfd -[MHConnectionWindowController query:] + 845
    14  CoreFoundation                      0x00007fff8f22670d -[NSObject performSelector:withObject:] + 61
    15  AppKit                              0x00007fff93c37ef0 -[NSToolbarButton sendAction:to:] + 82
    16  AppKit                              0x00007fff93c37f3e -[NSToolbarButton sendAction] + 68
    17  AppKit                              0x00007fff9378a627 -[NSToolbarItemViewer mouseDown:] + 4995
    18  AppKit                              0x00007fff936b5c98 -[NSWindow sendEvent:] + 6306
    19  AppKit                              0x00007fff9364f3a5 -[NSApplication sendEvent:] + 5593
    20  AppKit                              0x00007fff935e5a0e -[NSApplication run] + 555
    21  AppKit                              0x00007fff93861eac NSApplicationMain + 867
    22  MongoHub                            0x000000010710cf92 main + 34
    23  MongoHub                            0x0000000107109754 start + 52
    24  ???                                 0x0000000000000002 0x0 + 2
)

@jeromelebel
Copy link
Owner

which version of macos x do you have?

@jeromelebel
Copy link
Owner

So you have 10.7 I guess. I think I know what is wrong.

@jeromelebel
Copy link
Owner

Can you try: https://mongohub.s3.amazonaws.com/MongoHub-NSBundle2.zip ?
Let me know what is going on in the console. Thanks

@mbrowne
Copy link
Author

mbrowne commented Oct 22, 2014

Yes, 10.7.5.

10/22/14 9:26:51.613 AM MongoHub: Unable to simultaneously satisfy constraints:
(
    "<NSAutoresizingMaskLayoutConstraint:0x7f8e6bb9d3f0 h=--& v=--& V:[NSView:0x7f8e6bba1940(0)]>",
    "<NSLayoutConstraint:0x7f8e6bba14f0 V:[NSPopUpButton:0x7f8e6bb96230]-(0)-|   (Names: '|':NSView:0x7f8e6bba1940 )>",
    "<NSLayoutConstraint:0x7f8e6bb9a640 V:|-(0)-[NSScrollView:0x7f8e6bb72ad0]   (Names: '|':NSView:0x7f8e6bba1940 )>",
    "<NSLayoutConstraint:0x7f8e6bb7b370 V:[NSPopUpButton:0x7f8e6bb96230(21)]>",
    "<NSLayoutConstraint:0x7f8e6bbae160 V:[NSScrollView:0x7f8e6bb72ad0]-(-1)-[NSPopUpButton:0x7f8e6bb96230]>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7f8e6bb7b370 V:[NSPopUpButton:0x7f8e6bb96230(21)]>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.

10/22/14 9:26:55.432 AM MongoHub: -[NSBundle loadNibNamed:owner:]: unrecognized selector sent to instance 0x7f8e6a422950
10/22/14 9:26:55.433 AM MongoHub: -[NSBundle loadNibNamed:owner:]: unrecognized selector sent to instance 0x7f8e6a422950
10/22/14 9:26:55.435 AM MongoHub: (
    0   CoreFoundation                      0x00007fff94459f56 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8dc1fdee objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff944e61be -[NSObject doesNotRecognizeSelector:] + 190
    3   CoreFoundation                      0x00007fff94446e23 ___forwarding___ + 371
    4   CoreFoundation                      0x00007fff94446c38 _CF_forwarding_prep_0 + 232
    5   CoreFoundation                      0x00007fff9444befc __invoking___ + 140
    6   CoreFoundation                      0x00007fff9444bd94 -[NSInvocation invoke] + 132
    7   MongoHub                            0x0000000101064de3 -[MHQueryViewController(UpdateTab) updateAddOperatorAction:] + 1123
    8   MongoHub                            0x000000010105e0f7 -[MHQueryViewController awakeFromNib] + 119
    9   AppKit                              0x00007fff9881e389 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1311
    10  AppKit                              0x00007fff9893de6b -[NSNib instantiateNibWithExternalNameTable:] + 606
    11  AppKit                              0x00007fff9893dbd8 -[NSNib instantiateNibWithOwner:topLevelObjects:] + 251
    12  AppKit                              0x00007fff9893d11f -[NSViewController loadView] + 186
    13  AppKit                              0x00007fff98938dfe -[NSViewController view] + 41
    14  MongoHub                            0x0000000101086ff1 -[MHTabViewController addTabItemViewController:] + 401
    15  MongoHub                            0x000000010108ce3d -[MHConnectionWindowController query:] + 845
    16  CoreFoundation                      0x00007fff9444970d -[NSObject performSelector:withObject:] + 61
    17  AppKit                              0x00007fff98e5aef0 -[NSToolbarButton sendAction:to:] + 82
    18  AppKit                              0x00007fff98e5af3e -[NSToolbarButton sendAction] + 68
    19  AppKit                              0x00007fff989ad627 -[NSToolbarItemViewer mouseDown:] + 4995
    20  AppKit                              0x00007fff988d8c98 -[NSWindow sendEvent:] + 6306
    21  AppKit                              0x00007fff988723a5 -[NSApplication sendEvent:] + 5593
    22  AppKit                              0x00007fff98808a0e -[NSApplication run] + 555
    23  AppKit                              0x00007fff98a84eac NSApplicationMain + 867
    24  MongoHub                            0x0000000101051442 main + 34
    25  MongoHub                            0x000000010104dc14 start + 52
    26  ???                                 0x0000000000000002 0x0 + 2
)

Then I tried it again and got:

10/22/14 9:28:02.477 AM MongoHub: *** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]
10/22/14 9:28:02.479 AM MongoHub: (
    0   CoreFoundation                      0x00007fff94459f56 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff8dc1fdee objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff943e7392 -[__NSArrayM objectAtIndex:] + 274
    3   MongoHub                            0x0000000101086763 -[MHTabViewController _tabItemViewControllerWithIndex:] + 419
    4   MongoHub                            0x00000001010878b8 -[MHTabViewController setSelectedTabIndex:] + 120
    5   Foundation                          0x00007fff936fa9d2 _NSSetUnsignedLongLongValueAndNotify + 261
    6   MongoHub                            0x0000000101087960 -[MHTabViewController selectTabItemViewController:] + 128
    7   MongoHub                            0x00000001010889fa -[MHTabItemViewController select] + 58
    8   MongoHub                            0x000000010105ec96 -[MHQueryViewController select] + 54
    9   MongoHub                            0x000000010108ce50 -[MHConnectionWindowController query:] + 864
    10  CoreFoundation                      0x00007fff9444970d -[NSObject performSelector:withObject:] + 61
    11  AppKit                              0x00007fff98e5aef0 -[NSToolbarButton sendAction:to:] + 82
    12  AppKit                              0x00007fff98e5af3e -[NSToolbarButton sendAction] + 68
    13  AppKit                              0x00007fff989ad627 -[NSToolbarItemViewer mouseDown:] + 4995
    14  AppKit                              0x00007fff988d8c98 -[NSWindow sendEvent:] + 6306
    15  AppKit                              0x00007fff988723a5 -[NSApplication sendEvent:] + 5593
    16  AppKit                              0x00007fff98808a0e -[NSApplication run] + 555
    17  AppKit                              0x00007fff98a84eac NSApplicationMain + 867
    18  MongoHub                            0x0000000101051442 main + 34
    19  MongoHub                            0x000000010104dc14 start + 52
    20  ???                                 0x0000000000000002 0x0 + 2
)

@jeromelebel
Copy link
Owner

Should be fixed in 3.0.3. I let you close this issue if it is the case.

@mbrowne
Copy link
Author

mbrowne commented Oct 22, 2014

Just upgraded to 3.0.4 and it's working great, thank you! BTW, I love how you don't have to put quotes around the JSON property names anymore.

@mbrowne mbrowne closed this as completed Oct 22, 2014
@jeromelebel
Copy link
Owner

I will stop doing support for 10.7 very soon. They are already glitches that won't fix.

@jeromelebel
Copy link
Owner

Sorry for 10.7

@mbrowne
Copy link
Author

mbrowne commented Oct 22, 2014

That's fine, I should upgrade soon anyway. Thanks for the warning. In addition to my main computer I also have a first generation Mac Pro and I don't know if it will work with Mavericks; will you continue supporting Mountain Lion? If not, it's not that big of a deal, I'd just like to know. Thanks.

@jeromelebel
Copy link
Owner

I try to support os x current, current - 1 and current - 2. So I will try to support 10.8 until 10.11

@jeromelebel
Copy link
Owner

(So probably until next year :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants