wxCrafter crashes CodeLite on orientation change

Post here wxCrafter related issues / features / bugs
pztrn
CodeLite Curious
Posts: 5
Joined: Mon Nov 12, 2018 8:13 pm
Genuine User: Yes
IDE Question: C++
Contact:

wxCrafter crashes CodeLite on orientation change

Post by pztrn »

When I'm trying to change orientation of splitter, boxsizer or other widgets that accepts wxVERTICAL or wxHORIZONTAL - wxCrafter and CodeLite crashes. I'm using wxCrafter as a plugin.

Versions:
OS: macOS Mojave 10.14.1
Codelite: 12.0.10 (downloaded from one of recent thread about fixing wxCrafter black background)
Compiler: Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Debugger: lldb-1000.11.38.2

Trace:

Code: Select all

Process:               CodeLite [7589]
Path:                  /Applications/codelite.app/Contents/MacOS/CodeLite
Identifier:            com.eranif.CodeLite
Version:               CodeLite IDE version 12.0.10 (CodeLite IDE version 12.0.10)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           CodeLite [7589]
User ID:               501

Date/Time:             2018-11-13 12:22:56.122 +0500
OS Version:            Mac OS X 10.14.1 (18B75)
Report Version:        12
Anonymous UUID:        607E9748-450C-049E-F684-5AD4076C4E4F

Sleep/Wake UUID:       8B31157C-F5E6-4D84-8AA4-D922D6F454B8

Time Awake Since Boot: 9900 seconds
Time Since Wake:       2800 seconds

System Integrity Protection: disabled

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

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000120
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x120:
--> 
    __TEXT                 000000010c678000-000000010cac9000 [ 4420K] r-x/rwx SM=COW  /Applications/codelite.app/Contents/MacOS/codelite

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff7428fb86 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff74345c50 pthread_kill + 285
2   libsystem_c.dylib             	0x00007fff741f91c9 abort + 127
3   libwx_osx_cocoau-3.1.dylib    	0x000000010ce75b71 wxFatalSignalHandler(int) + 33
4   libsystem_platform.dylib      	0x00007fff7433ab3d _sigtramp + 29
5   ???                           	0x0000600014000000 0 + 105553451810816
6   libwx_osx_cocoau-3.1.dylib    	0x000000010d2277b0 wxPGComboBox::OnMeasureItem(unsigned long) const + 112
7   libwx_osx_cocoau-3.1.dylib    	0x000000010d0c8659 wxVListBoxComboPopup::OnMeasureItem(unsigned long) const + 25
8   libwx_osx_cocoau-3.1.dylib    	0x000000010d0bfd12 wxVListBox::OnGetRowHeight(unsigned long) const + 18
9   libwx_osx_cocoau-3.1.dylib    	0x000000010d0beb31 wxVListBox::OnPaint(wxPaintEvent&) + 273
10  libwx_osx_cocoau-3.1.dylib    	0x000000010ce80ee0 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 368
11  libwx_osx_cocoau-3.1.dylib    	0x000000010ce81c3a wxEvtHandler::ProcessEventLocally(wxEvent&) + 90
12  libwx_osx_cocoau-3.1.dylib    	0x000000010ce81b30 wxEvtHandler::ProcessEvent(wxEvent&) + 96
13  libwx_osx_cocoau-3.1.dylib    	0x000000010d0c07c2 wxVarScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 34
14  libwx_osx_cocoau-3.1.dylib    	0x000000010ce81c71 wxEvtHandler::ProcessEventLocally(wxEvent&) + 145
15  libwx_osx_cocoau-3.1.dylib    	0x000000010ce81b30 wxEvtHandler::ProcessEvent(wxEvent&) + 96
16  libwx_osx_cocoau-3.1.dylib    	0x000000010ce8204c wxEvtHandler::SafelyProcessEvent(wxEvent&) + 12
17  libwx_osx_cocoau-3.1.dylib    	0x000000010ceb32dd wxWindow::MacDoRedraw(long) + 685
18  libwx_osx_cocoau-3.1.dylib    	0x000000010cf681e8 wxWidgetCocoaImpl::drawRect(void*, NSView*, void*) + 744
19  libwx_osx_cocoau-3.1.dylib    	0x000000010cf66006 wxOSX_drawRect(NSView*, objc_selector*, CGRect) + 86
20  com.apple.AppKit              	0x00007fff445ef755 _NSViewDrawRect + 66
21  com.apple.AppKit              	0x00007fff445ee00d -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:] + 1545
22  com.apple.AppKit              	0x00007fff445ee40b -[NSView(NSInternal) _recursive:displayRectIgnoringOpacity:inContext:shouldChangeFontReferenceColor:stopAtLayerBackedViews:] + 2567
23  com.apple.AppKit              	0x00007fff445ed9f2 __46-[NSView(NSLayerKitGlue) drawLayer:inContext:]_block_invoke + 192
24  com.apple.AppKit              	0x00007fff445ed751 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 1769
25  com.apple.QuartzCore          	0x00007fff51f2aa83 CABackingStoreUpdate_ + 577
26  com.apple.QuartzCore          	0x00007fff51f8b82d invocation function for block in CA::Layer::display_() + 53
27  com.apple.QuartzCore          	0x00007fff51f29c78 -[CALayer _display] + 1839
28  com.apple.AppKit              	0x00007fff445eccaa _NSBackingLayerDisplay + 531
29  com.apple.AppKit              	0x00007fff445d1219 -[_NSViewBackingLayer display] + 811
30  com.apple.QuartzCore          	0x00007fff51f291a4 CA::Layer::display_if_needed(CA::Transaction*) + 634
31  com.apple.QuartzCore          	0x00007fff51f1742f CA::Context::commit_transaction(CA::Transaction*) + 319
32  com.apple.QuartzCore          	0x00007fff51f16d00 CA::Transaction::commit() + 576
33  com.apple.AppKit              	0x00007fff445c7e41 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 274
34  com.apple.CoreFoundation      	0x00007fff46fcd6ad __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
35  com.apple.CoreFoundation      	0x00007fff46fcd5e2 __CFRunLoopDoObservers + 452
36  com.apple.CoreFoundation      	0x00007fff46f6f109 __CFRunLoopRun + 1166
37  com.apple.CoreFoundation      	0x00007fff46f6ea28 CFRunLoopRunSpecific + 463
38  com.apple.HIToolbox           	0x00007fff46207b35 RunCurrentEventLoopInMode + 293
39  com.apple.HIToolbox           	0x00007fff46207774 ReceiveNextEventCommon + 371
40  com.apple.HIToolbox           	0x00007fff462075e8 _BlockUntilNextEventMatchingListInModeWithFilter + 64
41  com.apple.AppKit              	0x00007fff444c3eb7 _DPSNextEvent + 997
42  com.apple.AppKit              	0x00007fff444c2c56 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
43  com.apple.AppKit              	0x00007fff444bccb9 -[NSApplication run] + 699
44  libwx_osx_cocoau-3.1.dylib    	0x000000010cf4925f wxGUIEventLoop::OSXDoRun() + 207
45  libwx_osx_cocoau-3.1.dylib    	0x000000010ce608e1 wxCFEventLoop::DoRun() + 49
46  libwx_osx_cocoau-3.1.dylib    	0x000000010cdc2255 wxEventLoopBase::Run() + 85
47  libwx_osx_cocoau-3.1.dylib    	0x000000010cd9af64 wxAppConsoleBase::MainLoop() + 116
48  libwx_osx_cocoau-3.1.dylib    	0x000000010cee7baa wxApp::OnRun() + 26
49  libwx_osx_cocoau-3.1.dylib    	0x000000010cdf1af8 wxEntry(int&, wchar_t**) + 56
50  com.eranif.CodeLite           	0x000000010c9d34a4 main + 20
51  libdyld.dylib                 	0x00007fff7415108d start + 1
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxCrafter crashes CodeLite on orientation change

Post by eranif »

Looking into wx-dev mailing list, I remembered I saw something similar:

https://trac.wxwidgets.org/ticket/18211#comment:1

The backtrace is looking similar and they do have a commit that fixes this.
I will re-base my wxWidgets build and will upload a new version
Make sure you have read the HOW TO POST thread
Post Reply