User forums > Help
Compiling Codeblocks / MacOS 10.11 - Wx 3.0.2
JanW:
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:
--- Code: ---
../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
--- End code ---
I also added a screenshot. The popupwindow also doesn't appear right ..
Thank you,
Jan
ollydbg:
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.
JanW:
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
--- Code: ---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
--- End code ---
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) :
--- Code: ---#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Hello!");
return EXIT_SUCCESS;
}
--- End code ---
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:
--- Code: ---./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
--- End code ---
also the output from the console :
--- Code: ---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...
--- End code ---
Thank you
Jan
ollydbg:
Can you edit all your posts, and put all the code or log snippet inside the
--- Code: ---put your code and logs here
--- End code ---
tags? Thanks.
oBFusCATed:
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?
Navigation
[0] Message Index
[#] Next page
Go to full version