Hi,
after I managed to compile CodeBlocks 15.12 (svn 10629, branches 15.xx) succesfully with MacOS 10.11 - Wx 3.0.2
I have some minor problems with it.
When I use the codecompletion plugin I get some errors:
../src/generic/listctrl.cpp(4091): assert "index >= 0 && (size_t)index < GetItemCount()" failed in EnsureVisible(): invalid index in EnsureVisible
Call stack:
[00] wxGenericListCtrl::EnsureVisible(long) listctrl.cpp:509
[01] ListBoxImpl::Select(int)
[02] AutoComplete::Show(bool)
[03] ScintillaBase::AutoCompleteStart(int, char const*)
[04] ScintillaBase::WndProc(unsigned int, unsigned long, long)
[05] ScintillaWX::WndProc(unsigned int, unsigned long, long)
[06] wxScintilla::SendMsg(unsigned int, unsigned long, long) const
[07] wxScintilla::AutoCompShow(int, wxString const&)
[08] CCManager::OnCompleteCode(CodeBlocksEvent&)
[09] cbEventFunctor<CCManager, CodeBlocksEvent>::Call(CodeBlocksEvent&)
[10] Manager::ProcessEvent(CodeBlocksEvent&)
[11] CCManager::OnEditorHook(cbEditor*, wxScintillaEvent&)
[12] EditorHooks::HookFunctor<CCManager>::Call(cbEditor*, wxScintillaEvent&) const
[13] EditorHooks::CallHooks(cbEditor*, wxScintillaEvent&)
[14] cbEditor::OnScintillaEvent(wxScintillaEvent&)
[15] cbEditor::OnEditorCharAdded(wxScintillaEvent&)
[16] wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const appbase.cpp:61
[17] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const appbase.cpp:62
[18] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) event.cpp:139
[19] wxEvtHandler::SearchDynamicEventTable(wxEvent&) event.cpp:175
[20] wxEvtHandler::TryHereOnly(wxEvent&) event.cpp:158
I also added a screenshot. The popupwindow also doesn't appear right ..
Thank you,
Jan
This sounds like an wxScintilla issue, but since wxScintilla is maintained in our C::B repo, it is also an C::B issue. Is there any steps to reproduce this issue? Thanks.
Compile C::B with MacOs 10.11 :
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
Run ./configure as
CC=clang CXX=clang++ CXXFLAGS='-v -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -mmacosx-version-min=10.10 -stdlib=libc++' LDFLAGS='-dylib' ./configure --enable-debug --enable-fortran --with-platform=macosx
Run: make && make install
start C::B with no Plugins -> no problem.
Install 'Code completion 1.0' plugin.
start C:B load a test c file (hello.c) :
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Hello!");
return EXIT_SUCCESS;
}
add a new line above the puts command
now define a new integer variable with "int a;"
type int, now the autocomplete popupwindow will appear but
instead a grey popwindows comes and a error message:
./src/generic/listctrl.cpp(4091): assert "index >= 0 && (size_t)index < GetItemCount()" failed in EnsureVisible(): invalid index in EnsureVisible
Call stack:
[00] wxGenericListCtrl::EnsureVisible(long) listctrl.cpp:509
[01] ListBoxImpl::Select(int)
[02] AutoComplete::Show(bool)
[03] ScintillaBase::AutoCompleteStart(int, char const*)
[04] ScintillaBase::WndProc(unsigned int, unsigned long, long)
[05] ScintillaWX::WndProc(unsigned int, unsigned long, long)
[06] wxScintilla::SendMsg(unsigned int, unsigned long, long) const
[07] wxScintilla::AutoCompShow(int, wxString const&)
[08] CCManager::OnCompleteCode(CodeBlocksEvent&)
[09] cbEventFunctor<CCManager, CodeBlocksEvent>::Call(CodeBlocksEvent&)
[10] Manager::ProcessEvent(CodeBlocksEvent&)
[11] CCManager::OnEditorHook(cbEditor*, wxScintillaEvent&)
[12] EditorHooks::HookFunctor<CCManager>::Call(cbEditor*, wxScintillaEvent&) const
[13] EditorHooks::CallHooks(cbEditor*, wxScintillaEvent&)
[14] cbEditor::OnScintillaEvent(wxScintillaEvent&)
[15] cbEditor::OnEditorCharAdded(wxScintillaEvent&)
[16] wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const appbase.cpp:61
[17] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const appbase.cpp:62
[18] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) event.cpp:139
[19] wxEvtHandler::SearchDynamicEventTable(wxEvent&) event.cpp:175
[20] wxEvtHandler::TryHereOnly(wxEvent&) event.cpp:158
also the output from the console :
Project '*NONE*' parsing stage done (1 total parsed files, 1 tokens in 0 minute(s), 0.001 seconds).
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/Users/jan/Desktop' for: hello.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /Users/jan/Desktop/hello.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
../src/generic/listctrl.cpp(4091): assert "index >= 0 && (size_t)index < GetItemCount()" failed in EnsureVisible(): invalid index in EnsureVisible
Collecting stack trace information, please wait...../src/generic/listctrl.cpp(3386): assert "litem >= 0 && (size_t)litem < GetItemCount()" failed in SetItemState(): invalid list ctrl item index in SetItem
Collecting stack trace information, please wait...../src/generic/listctrl.cpp(4091): assert "index >= 0 && (size_t)index < GetItemCount()" failed in EnsureVisible(): invalid index in EnsureVisible
Collecting stack trace information, please wait...../src/generic/listctrl.cpp(3386): assert "litem >= 0 && (size_t)litem < GetItemCount()" failed in SetItemState(): invalid list ctrl item index in SetItem
Collecting stack trace information, please wait...
Thank you
Jan
Can you edit all your posts, and put all the code or log snippet inside the put your code and logs here tags? Thanks.
Doesn't happen on linux, so I can help much.
Can you rebuild with symbols on debug and use a debugger to get a proper backtrace?
Hi,
I compiled C::B again an added the -g flag.
I am not quite shure how to generate a backtrace for this.
Can you guide me, how I have to use gdb?
Thanks,
Jan
I loaded C::B into lldb and when the assert window appears I innterrupt and generate a backtrace:
(lldb) target create "/usr/local/bin/codeblocks"
Current executable set to '/usr/local/bin/codeblocks' (x86_64).
(lldb) run
Process 51583 launched: '/usr/local/bin/codeblocks' (x86_64)
Starting Code::Blocks svn build rev 10627 Jan 9 2016, 14:21:08 - wx3.0.2 (Mac OS X, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
CodeCompletion: loaded
Code completion plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
Initializing plugins...
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/Users/jan/Desktop' for: tect.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /Users/jan/Desktop/tect.c
NativeParser::CreateParser(): Finish creating a new parser for project '*NONE*'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project '*NONE*'...
NativeParser::OnParserEnd(): Project '*NONE*' parsing stage done!
Project '*NONE*' parsing stage done (0 total parsed files, 0 tokens in 0 minute(s), 0.004 seconds).
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/Users/jan/Desktop' for: tect.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /Users/jan/Desktop/tect.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
../src/generic/listctrl.cpp(4091): assert "index >= 0 && (size_t)index < GetItemCount()" failed in EnsureVisible(): invalid index in EnsureVisible
Collecting stack trace information, please wait...Process 51583 stopped
* thread #1: tid = 0x118a2f, 0x00007fff9bf53386 libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff9bf53386 libsystem_kernel.dylib`mach_msg_trap + 10
libsystem_kernel.dylib`mach_msg_trap:
-> 0x7fff9bf53386 <+10>: retq
0x7fff9bf53387 <+11>: nop
libsystem_kernel.dylib`mach_msg_overwrite_trap:
0x7fff9bf53388 <+0>: movq %rcx, %r10
0x7fff9bf5338b <+3>: movl $0x1000020, %eax
this is the first part
Thanks,
Jan
and this is the second part:
(lldb) bt
error: app.o DWARF DIE at 0x0002180d for class 'wxAppConsoleBase' has a base class 'wxEventFilter' that is a forward declaration, not a complete definition.
Please file a bug against the compiler and include the preprocessed output for /Users/jan/Desktop/codeblocks/trunk/src/src/app.cpp
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
* thread #1: tid = 0x118a2f, 0x00007fff9bf53386 libsystem_kernel.dylib`mach_msg_trap + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff9bf53386 libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff9bf527c7 libsystem_kernel.dylib`mach_msg + 55
frame #2: 0x00007fff8e13b624 CoreFoundation`__CFRunLoopServiceMachPort + 212
frame #3: 0x00007fff8e13aaec CoreFoundation`__CFRunLoopRun + 1356
frame #4: 0x00007fff8e13a338 CoreFoundation`CFRunLoopRunSpecific + 296
frame #5: 0x00007fff9c6ed935 HIToolbox`RunCurrentEventLoopInMode + 235
frame #6: 0x00007fff9c6ed76f HIToolbox`ReceiveNextEventCommon + 432
frame #7: 0x00007fff9c6ed5af HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 71
frame #8: 0x00007fff9aea30ee AppKit`_DPSNextEvent + 1067
frame #9: 0x00007fff9b26f943 AppKit`-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
frame #10: 0x00007fff9b057d22 AppKit`-[NSApplication _realDoModalLoop:peek:] + 653
frame #11: 0x00007fff9b0542d4 AppKit`-[NSApplication runModalForWindow:] + 153
frame #12: 0x00007fff9b0fef50 AppKit`-[NSAlert runModal] + 175
frame #13: 0x0000000100f7d7ad libwx_osx_cocoau-3.0.dylib`wxMessageDialog::ShowModal(this=0x00007fff5fbf9410) + 3245 at msgdlg.mm:161
frame #14: 0x0000000100e5b0b4 libwx_osx_cocoau-3.0.dylib`wxMessageBox(message=0x00007fff5fbf9a30, caption=0x00007fff5fbf99d0, style=538, parent=0x0000000000000000, (null)=-1, (null)=-1) + 180 at utilscmn.cpp:1367
frame #15: 0x0000000100fab8c4 libwx_osx_cocoau-3.0.dylib`wxGUIAppTraitsBase::ShowAssertDialog(this=0x0000000102628250, msg=0x00007fff5fbf9bd8) + 324 at appcmn.cpp:475
frame #16: 0x0000000100cddc14 libwx_osx_cocoau-3.0.dylib`ShowAssertDialog(file=0x00007fff5fbf9ce8, line=4091, func=0x00007fff5fbf9cc0, cond=0x00007fff5fbf9c88, msgUser=0x00007fff5fbf9c60, traits=0x0000000102628250) + 900 at appbase.cpp:1302
frame #17: 0x0000000100cdd7d5 libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::OnAssertFailure(this=0x0000000103822a00, file=L"../src/generic/listctrl.cpp", line=4091, func=L"EnsureVisible", cond=L"index >= 0 && (size_t)index < GetItemCount()", msg=L"invalid index in EnsureVisible") + 197 at appbase.cpp:781
frame #18: 0x0000000100cde763 libwx_osx_cocoau-3.0.dylib`wxDefaultAssertHandler(file=0x00007fff5fbf9f40, line=4091, func=0x00007fff5fbf9f18, cond=0x00007fff5fbf9ee0, msg=0x00007fff5fbf9eb8) + 611 at appbase.cpp:1092
frame #19: 0x0000000100cdbee6 libwx_osx_cocoau-3.0.dylib`wxOnAssert(file="../src/generic/listctrl.cpp", line=4091, func="EnsureVisible", cond="index >= 0 && (size_t)index < GetItemCount()", msg=L"invalid index in EnsureVisible") + 166 at appbase.cpp:1178
frame #20: 0x0000000100f4b5f8 libwx_osx_cocoau-3.0.dylib`wxListMainWindow::EnsureVisible(this=0x0000000103b11000, index=0) + 136 at listctrl.cpp:4090
frame #21: 0x0000000100f4e764 libwx_osx_cocoau-3.0.dylib`wxGenericListCtrl::EnsureVisible(this=0x0000000103b0c400, item=0) + 36 at listctrl.cpp:5093
frame #22: 0x00000001005fcafc libcodeblocks.0.dylib`ListBoxImpl::Select(int) + 76
frame #23: 0x00000001004cc34d libcodeblocks.0.dylib`AutoComplete::Show(bool) + 77
frame #24: 0x000000010060c162 libcodeblocks.0.dylib`ScintillaBase::AutoCompleteStart(int, char const*) + 2610
frame #25: 0x000000010060e4cf libcodeblocks.0.dylib`ScintillaBase::WndProc(unsigned int, unsigned long, long) + 815
frame #26: 0x000000010061313a libcodeblocks.0.dylib`ScintillaWX::WndProc(unsigned int, unsigned long, long) + 1498
frame #27: 0x00000001006245b2 libcodeblocks.0.dylib`wxScintilla::SendMsg(unsigned int, unsigned long, long) const + 82
frame #28: 0x000000010062721e libcodeblocks.0.dylib`wxScintilla::AutoCompShow(int, wxString const&) + 94
frame #29: 0x00000001003562dd libcodeblocks.0.dylib`CCManager::OnCompleteCode(this=0x0000000108d928f0, event=0x00007fff5fbfb080) + 2573 at ccmanager.cpp:538
frame #30: 0x000000010066baed libcodeblocks.0.dylib`cbEventFunctor<CCManager, CodeBlocksEvent>::Call(this=0x0000000108d98060, event=0x00007fff5fbfb080) + 141 at cbfunctor.h:49
frame #31: 0x00000001003ffac7 libcodeblocks.0.dylib`Manager::ProcessEvent(this=0x0000000102790210, event=0x00007fff5fbfb080) + 1223 at manager.cpp:263
frame #32: 0x0000000100357689 libcodeblocks.0.dylib`CCManager::OnEditorHook(this=0x0000000108d928f0, ed=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 3769 at ccmanager.cpp:757
frame #33: 0x000000010066bc92 libcodeblocks.0.dylib`EditorHooks::HookFunctor<CCManager>::Call(this=0x0000000108d980c0, editor=0x0000000103a2a400, event=0x00007fff5fbfc2c0) const + 178 at editor_hooks.h:61
frame #34: 0x00000001003a49cb libcodeblocks.0.dylib`EditorHooks::CallHooks(editor=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 715 at editor_hooks.cpp:122
frame #35: 0x000000010031bee4 libcodeblocks.0.dylib`cbEditor::OnScintillaEvent(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 68 at cbeditor.cpp:3424
frame #36: 0x000000010031ac92 libcodeblocks.0.dylib`cbEditor::OnEditorCharAdded(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 66 at cbeditor.cpp:3158
frame #37: 0x0000000100cdd00b libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::HandleEvent(this=0x0000000103822a00, handler=0x0000000103a2a400, func=0x000000010031ac50, event=0x00007fff5fbfc2c0)(wxEvent&), wxEvent&) const + 139 at appbase.cpp:611
frame #38: 0x0000000100cdd0b7 libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::CallEventHandler(this=0x0000000103822a00, handler=0x0000000103a2a400, functor=0x000000010993aa30, event=0x00007fff5fbfc2c0) const + 151 at appbase.cpp:623
frame #39: 0x0000000100e48447 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEventIfMatchesId(entry=0x000000010993cde0, handler=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 231 at event.cpp:1392
frame #40: 0x0000000100e4a027 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::SearchDynamicEventTable(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 343 at event.cpp:1751
frame #41: 0x0000000100e49e20 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::TryHereOnly(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 80 at event.cpp:1585
frame #42: 0x0000000100e4ca1d libwx_osx_cocoau-3.0.dylib`wxEvtHandler::TryBeforeAndHere(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 77 at event.h:3671
frame #43: 0x0000000100e49c4f libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEventLocally(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 47 at event.cpp:1522
frame #44: 0x0000000100e49bc0 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEvent(this=0x0000000103a2a400, event=0x00007fff5fbfc2c0) + 336 at event.cpp:1495
frame #45: 0x00000001010e2b0f libwx_osx_cocoau-3.0.dylib`wxWindowBase::TryAfter(this=0x0000000108e82430, event=0x00007fff5fbfc2c0) + 175 at wincmn.cpp:3427
frame #46: 0x0000000100e49bf6 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEvent(this=0x0000000108e82430, event=0x00007fff5fbfc2c0) + 390 at event.cpp:1508
frame #47: 0x000000010063316f libcodeblocks.0.dylib`wxScintilla::NotifyParent(SCNotification*) + 1855
frame #48: 0x0000000100610d60 libcodeblocks.0.dylib`ScintillaWX::NotifyParent(SCNotification) + 32
frame #49: 0x0000000100505b10 libcodeblocks.0.dylib`Editor::NotifyChar(int) + 192
frame #50: 0x0000000100505966 libcodeblocks.0.dylib`Editor::AddCharUTF(char const*, unsigned int, bool) + 4134
frame #51: 0x000000010060a2b1 libcodeblocks.0.dylib`ScintillaBase::AddCharUTF(char const*, unsigned int, bool) + 145
frame #52: 0x00000001006141a8 libcodeblocks.0.dylib`ScintillaWX::DoAddChar(int) + 232
frame #53: 0x0000000100623ce4 libcodeblocks.0.dylib`wxScintilla::OnChar(wxKeyEvent&) + 276
frame #54: 0x0000000100cdd00b libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::HandleEvent(this=0x0000000103822a00, handler=0x0000000108e82430, func=0x0000000100623bd0, event=0x00007fff5fbfd120)(wxEvent&), wxEvent&) const + 139 at appbase.cpp:611
frame #55: 0x0000000100cdd0b7 libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::CallEventHandler(this=0x0000000103822a00, handler=0x0000000108e82430, functor=0x0000000102756280, event=0x00007fff5fbfd120) const + 151 at appbase.cpp:623
frame #56: 0x0000000100e48447 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEventIfMatchesId(entry=0x00000001008e5330, handler=0x0000000108e82430, event=0x00007fff5fbfd120) + 231 at event.cpp:1392
frame #57: 0x0000000100e48223 libwx_osx_cocoau-3.0.dylib`wxEventHashTable::HandleEvent(this=0x00000001008df570, event=0x00007fff5fbfd120, self=0x0000000108e82430) + 243 at event.cpp:998
frame #58: 0x0000000100e49e56 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::TryHereOnly(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 134 at event.cpp:1589
frame #59: 0x0000000100e4ca1d libwx_osx_cocoau-3.0.dylib`wxEvtHandler::TryBeforeAndHere(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 77 at event.h:3671
frame #60: 0x0000000100e49c4f libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEventLocally(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 47 at event.cpp:1522
frame #61: 0x0000000100e49bc0 libwx_osx_cocoau-3.0.dylib`wxEvtHandler::ProcessEvent(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 336 at event.cpp:1495
frame #62: 0x0000000100e4a07d libwx_osx_cocoau-3.0.dylib`wxEvtHandler::SafelyProcessEvent(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 29 at event.cpp:1613
frame #63: 0x00000001010da345 libwx_osx_cocoau-3.0.dylib`wxWindowBase::HandleWindowEvent(this=0x0000000108e82430, event=0x00007fff5fbfd120) const + 37 at wincmn.cpp:1525
frame #64: 0x0000000100e97391 libwx_osx_cocoau-3.0.dylib`wxWindow::OSXHandleKeyEvent(this=0x0000000108e82430, event=0x00007fff5fbfd120) + 545 at window_osx.cpp:2791
frame #65: 0x0000000100fa3fd4 libwx_osx_cocoau-3.0.dylib`wxWidgetCocoaImpl::DoHandleCharEvent(this=0x0000000108e829a0, event=0x000000010c406780, text=0x0000000108e8d570) + 356 at window.mm:2744
frame #66: 0x0000000100f9f031 libwx_osx_cocoau-3.0.dylib`wxWidgetCocoaImpl::insertText(this=0x0000000108e829a0, text=0x0000000108e8d570, slf=0x0000000108e8f9b0, _cmd=0x00007fff9b885962) + 433 at window.mm:1404
frame #67: 0x0000000100f9d4b7 libwx_osx_cocoau-3.0.dylib`wxOSX_insertText(self=0x0000000108e8f9b0, _cmd="insertText:", text=0x0000000108e8d570) + 103 at window.mm:1022
frame #68: 0x0000000100f9d443 libwx_osx_cocoau-3.0.dylib`-[wxNSView(self=0x0000000108e8f9b0, _cmd="insertText:replacementRange:", aString=0x0000000108e8d570, replacementRange=location=9223372036854775807, length=0) insertText:replacementRange:] + 51 at window.mm:880
frame #69: 0x00007fff9b0d9a3c AppKit`-[NSTextInputContext(NSInputContext_WithCompletion) insertText:replacementRange:completionHandler:] + 79
frame #70: 0x00007fff9b7057b7 AppKit`__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2250 + 127
frame #71: 0x00007fff9b0d99dd AppKit`-[NSTextInputContext do_HandleTSMEvent_insertFixLenTextLoop:whileCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 181
frame #72: 0x00007fff9b70348f AppKit`-[NSTextInputContext tryHandleTSMEvent_insertFixLenText_withContext:dispatchCondition:setupForDispatch:nestedWorkaroundCondition:nestedWorkaroundDispatchWork:loopCondition:dispatchWorkEach:afterEachInsertText:continuation:] + 428
frame #73: 0x00007fff9b705337 AppKit`__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke176 + 4253
frame #74: 0x00007fff9b0d95b4 AppKit`__55-[NSTextInputContext handleTSMEvent:completionHandler:]_block_invoke_2 + 95
frame #75: 0x00007fff9b0d9527 AppKit`-[NSTextInputContext tryHandleTSMEvent_HasMarkedText_withDispatchCondition:dispatchWork:continuation:] + 101
frame #76: 0x00007fff9b0d9217 AppKit`-[NSTextInputContext handleTSMEvent:completionHandler:] + 3173
frame #77: 0x00007fff9b0d8546 AppKit`_NSTSMEventHandler + 324
frame #78: 0x00007fff9c6c57be HIToolbox`DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1231
frame #79: 0x00007fff9c6c4c48 HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 404
frame #80: 0x00007fff9c6c4aab HIToolbox`SendEventToEventTargetWithOptions + 43
frame #81: 0x00007fff9c719f7d HIToolbox`SendTSMEvent_WithCompletionHandler + 417
frame #82: 0x00007fff9c71a46c HIToolbox`__SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 400
frame #83: 0x00007fff9c71a2bf HIToolbox`__SendFilterTextEvent_WithCompletionHandler_block_invoke + 189
frame #84: 0x00007fff9c719fcd HIToolbox`SendTSMEvent_WithCompletionHandler + 497
frame #85: 0x00007fff9c719daf HIToolbox`SendFilterTextEvent_WithCompletionHandler + 236
frame #86: 0x00007fff9c719a88 HIToolbox`SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 284
frame #87: 0x00007fff9c719838 HIToolbox`__utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 296
frame #88: 0x00007fff9c7196dc HIToolbox`__utDeliverTSMEvent_WithCompletionHandler_block_invoke + 437
frame #89: 0x00007fff9c7194cf HIToolbox`TSMKeyEvent_WithCompletionHandler + 721
frame #90: 0x00007fff9c7191c5 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 251
frame #91: 0x00007fff9c719033 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 325
frame #92: 0x00007fff9c718d71 HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 261
frame #93: 0x00007fff9c718b3a HIToolbox`__TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 253
frame #94: 0x00007fff9c7181f0 HIToolbox`TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 3199
frame #95: 0x00007fff9b70af33 AppKit`__61-[NSTextInputContext _handleEvent:options:completionHandler:]_block_invoke955 + 131
frame #96: 0x00007fff9b0d6d81 AppKit`-[NSTextInputContext tryTSMProcessRawKeyEvent:dispatchCondition:setupForDispatch:furtherCondition:dispatchWork:continuation:] + 131
frame #97: 0x00007fff9b0d6ad3 AppKit`-[NSTextInputContext _handleEvent:options:completionHandler:] + 1266
frame #98: 0x00007fff9b0d65a6 AppKit`-[NSTextInputContext handleEvent:] + 109
frame #99: 0x00007fff9b0d64af AppKit`-[NSView interpretKeyEvents:] + 204
frame #100: 0x0000000100fa4411 libwx_osx_cocoau-3.0.dylib`wxWidgetCocoaImpl::DoHandleKeyEvent(this=0x0000000108e829a0, event=0x000000010c406780) + 913 at window.mm:2776
frame #101: 0x0000000100f9ee2a libwx_osx_cocoau-3.0.dylib`wxWidgetCocoaImpl::keyEvent(this=0x0000000108e829a0, event=0x000000010c406780, slf=0x0000000108e8f9b0, _cmd=0x00007fff9b85f7bc) + 218 at window.mm:1380
frame #102: 0x0000000100f9da77 libwx_osx_cocoau-3.0.dylib`wxOSX_keyEvent(self=0x0000000108e8f9b0, _cmd="keyDown:", event=0x000000010c406780) + 103 at window.mm:1013
frame #103: 0x00007fff9b611715 AppKit`-[NSWindow _reallySendEvent:isDelayedEvent:] + 2108
frame #104: 0x00007fff9af69735 AppKit`-[NSWindow sendEvent:] + 517
frame #105: 0x0000000100f80c01 libwx_osx_cocoau-3.0.dylib`-[wxNSWindow sendEvent:](self=0x00000001071728a0, _cmd="sendEvent:", event=0x000000010c406780) + 257 at nonownedwnd.mm:171
frame #106: 0x00007fff9af6657b AppKit`-[NSApplication sendEvent:] + 4382
frame #107: 0x0000000100e5e3da libwx_osx_cocoau-3.0.dylib`-[wxNSApplication sendEvent:](self=0x0000000102612f50, _cmd="sendEvent:", anEvent=0x000000010c406780) + 170 at utils.mm:328
frame #108: 0x00007fff9ae9903a AppKit`-[NSApplication run] + 796
frame #109: 0x0000000100f70876 libwx_osx_cocoau-3.0.dylib`wxGUIEventLoop::OSXDoRun(this=0x00000001070bf720) + 166 at evtloop.mm:300
frame #110: 0x0000000100e17047 libwx_osx_cocoau-3.0.dylib`wxCFEventLoop::DoRun(this=0x00000001070bf720) + 39 at evtloop_cf.cpp:340
frame #111: 0x0000000100d2c24b libwx_osx_cocoau-3.0.dylib`wxEventLoopBase::Run(this=0x00000001070bf720) + 235 at evtloopcmn.cpp:78
frame #112: 0x0000000100cdc1a2 libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::MainLoop(this=0x0000000103822a00) + 194 at appbase.cpp:334
frame #113: 0x0000000100cdbd59 libwx_osx_cocoau-3.0.dylib`wxAppConsoleBase::OnRun(this=0x0000000103822a00) + 25 at appbase.cpp:259
frame #114: 0x0000000100fab16e libwx_osx_cocoau-3.0.dylib`wxAppBase::OnRun(this=0x0000000103822a00) + 62 at appcmn.cpp:304
frame #115: 0x0000000100ee9aa5 libwx_osx_cocoau-3.0.dylib`wxApp::OnRun(this=0x0000000103822a00) + 37 at app.cpp:915
frame #116: 0x00000001000087e1 codeblocks`CodeBlocksApp::OnRun(this=0x0000000103822a00) + 49 at app.cpp:850
frame #117: 0x0000000100d6e19a libwx_osx_cocoau-3.0.dylib`wxEntry(argc=0x0000000101a90100, argv=0x0000000102767770) + 298 at init.cpp:495
frame #118: 0x0000000100d6e2ef libwx_osx_cocoau-3.0.dylib`wxEntry(argc=0x00007fff5fbffcc8, argv=0x00007fff5fbffcf0) + 63 at init.cpp:507
frame #119: 0x0000000100001626 codeblocks`main(argc=1, argv=0x00007fff5fbffcf0) + 38 at app.cpp:322
frame #120: 0x00007fff912f35ad libdyld.dylib`start + 1
(lldb)
Does this help you ?
Thanks,
Jan
Not much, but at least we know that the listbox is empty when EnsureVisible is called.
I don't know the reason for this. It has to be debugged.
Can you open an issue about this problem on the sf.net?
You might workaround it by adding a check if the list is not empty in the ListBoxImpl::Select method.
I added a bug report on sf.net
Thanks,
Jan