Spatialite_gui crashes on Mac OS X right clicking on virtual PG table

33 views
Skip to first unread message

carlob

unread,
Aug 5, 2016, 6:27:24 AM8/5/16
to SpatiaLite Users
Maybe it's due to the interaction with WxWindow menus.
When using SQL statements it works as expected.
It dies with this error:

2016-08-05 11:42:57.018 spatialite_gui[8192:507] *** Assertion failure in -[wxNSMenu insertItem:atIndex:], /SourceCache/AppKit/AppKit-1265.21/Menus.subproj/NSMenu.m:635

2016-08-05 11:42:57.021 spatialite_gui[8192:507] Item to be inserted into menu already is in another menu

2016-08-05 11:42:57.033 spatialite_gui[8192:507] (

0   CoreFoundation                      0x00007fff8c65325c __exceptionPreprocess + 172

1   libobjc.A.dylib                     0x00007fff84dece75 objc_exception_throw + 43

2   CoreFoundation                      0x00007fff8c653038 +[NSException raise:format:arguments:] + 104

3   Foundation                          0x00007fff8a8e5361 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189

4   AppKit                              0x00007fff85808979 -[NSMenu insertItem:atIndex:] + 288

5   libwx_osx_cocoau_core-3.0.dylib     0x0000000102325b5a _ZN15wxMenuCocoaImpl14InsertOrAppendEP10wxMenuItemm + 220

6   libwx_osx_cocoau_core-3.0.dylib     0x00000001022b3708 _ZN6wxMenu16DoInsertOrAppendEP10wxMenuItemm + 36

7   libwx_osx_cocoau_core-3.0.dylib     0x00000001022b3a91 _ZN6wxMenu8DoAppendEP10wxMenuItem + 41

8   spatialite_gui                      0x0000000101bf2a50 _ZN11MyTableTree12OnRightClickER11wxTreeEvent + 42456

9   libwx_baseu-3.0.dylib               0x0000000102849306 _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent + 88

10  libwx_baseu-3.0.dylib               0x0000000102849d91 _ZN12wxEvtHandler23SearchDynamicEventTableER7wxEvent + 85

11  libwx_baseu-3.0.dylib               0x0000000102849ce6 _ZN12wxEvtHandler11TryHereOnlyER7wxEvent + 40

12  libwx_baseu-3.0.dylib               0x0000000102849c2c _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent + 40

13  libwx_baseu-3.0.dylib               0x0000000102849bbd _ZN12wxEvtHandler12ProcessEventER7wxEvent + 87

14  libwx_osx_cocoau_core-3.0.dylib     0x000000010244cd96 _ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent + 34

15  libwx_osx_cocoau_core-3.0.dylib     0x000000010245a17c _ZN17wxGenericTreeCtrl7OnMouseER12wxMouseEvent + 1408

16  libwx_baseu-3.0.dylib               0x0000000102849306 _ZN12wxEvtHandler23ProcessEventIfMatchesIdERK21wxEventTableEntryBasePS_R7wxEvent + 88

17  libwx_baseu-3.0.dylib               0x0000000102849216 _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler + 108

18  libwx_baseu-3.0.dylib               0x0000000102849d07 _ZN12wxEvtHandler11TryHereOnlyER7wxEvent + 73

19  libwx_baseu-3.0.dylib               0x0000000102849c2c _ZN12wxEvtHandler19ProcessEventLocallyER7wxEvent + 40

20  libwx_baseu-3.0.dylib               0x0000000102849bbd _ZN12wxEvtHandler12ProcessEventER7wxEvent + 87

21  libwx_osx_cocoau_core-3.0.dylib     0x000000010244cd96 _ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent + 34

22  libwx_baseu-3.0.dylib               0x0000000102849db5 _ZN12wxEvtHandler18SafelyProcessEventER7wxEvent + 15

23  libwx_osx_cocoau_core-3.0.dylib     0x000000010233bbf0 _ZN17wxWidgetCocoaImpl18DoHandleMouseEventEP7NSEvent + 100

24  libwx_osx_cocoau_core-3.0.dylib     0x00000001023382f9 _ZN17wxWidgetCocoaImpl10mouseEventEP7NSEventP6NSViewPv + 173

25  AppKit                              0x00007fff85a0ccc1 -[NSWindow sendEvent:] + 3721

26  libwx_osx_cocoau_core-3.0.dylib     0x0000000102328e0c -[wxNSWindow sendEvent:] + 117

27  AppKit                              0x00007fff859ad5d4 -[NSApplication sendEvent:] + 2021

28  libwx_osx_cocoau_core-3.0.dylib     0x00000001022929c6 -[wxNSApplication sendEvent:] + 136

29  AppKit                              0x00007fff857fd9f9 -[NSApplication run] + 646

30  libwx_osx_cocoau_core-3.0.dylib     0x000000010232065c _ZN14wxGUIEventLoop8OSXDoRunEv + 106

31  libwx_baseu-3.0.dylib               0x000000010282db35 _ZN13wxCFEventLoop5DoRunEv + 39

32  libwx_baseu-3.0.dylib               0x00000001027a4ed8 _ZN15wxEventLoopBase3RunEv + 88

33  libwx_baseu-3.0.dylib               0x000000010277ea04 _ZN16wxAppConsoleBase8MainLoopEv + 128

34  libwx_osx_cocoau_core-3.0.dylib     0x00000001022ce778 _ZN5wxApp5OnRunEv + 26

35  libwx_baseu-3.0.dylib               0x00000001027d33ae _Z7wxEntryRiPPw + 71

36  spatialite_gui                      0x0000000101b2acb0 main + 20

37  libdyld.dylib                       0x00007fff8eabf5fd start + 1

38  ???                                 0x0000000000000002 0x0 + 2

)


By the way, could it be possible to add a menu somewhere to load this extension (in my case "SELECT load_extension('/usr/local/lib/mod_virtualpg.dylib');")? I would prefer it to load the extension at start (if it finds the library), but I see it's not a good thing (I don't remember why, but I trust you).


Reply all
Reply to author
Forward
0 new messages