User forums > Help

Code autocompletion hangs Code::Blocks

<< < (2/4) > >>

oBFusCATed:
I cannot reproduce it here.
Can you try to reproduce the problem using just base types?
The uintXXX_t types are typedefs defined in some header the compiler knows about.
For example use

--- Code: ---typedef int myint32;

--- End code ---

Also can you post a backtrace of the hang using gdb?

Totoxa:
Hi,

I cannot reproduce it using custom types. I was able to reproduce the problem using uint16_t and uint32_t types, with uint8_t nothing happens, No #includes.
It seems that codeblocks internally handle those types differently.

I made a screencast trying to reproduce the problem and attached a backtrace using the debian version (they had a -dbg package for codeblocks).
I made the screencast with factory settings, in the middle I disabled the symbol browser and the "parse documentation" checkbox in the editor settings.
If you cannot reproduce the problem make the edit pane smaller and try again.

Here is the screencast, please download it and play with vlc or other player, the webplayer doesn't owrk (at least for me)
https://www.dropbox.com/s/4khjd022ddv022f/Captura%20del%20escritorio%20de%2019-11-17%2022%3A00%3A37.webm?dl=0

Totoxa:
I compiled codeblocks from sources and found that it hangs in the following line

ccmanager.cpp

--- Code: ---bool UnfocusablePopupWindow::Show(bool show)
{
    bool rv = BaseClass::Show(show); // in this call C::B hangs

--- End code ---

with the following call stack

--- Code: ---#0  0x00007ffff2f9d7e3 in UnfocusablePopupWindow::Show(bool) (this=0x55555635f980, show=true) at /tmp/codeblocks-16.01.release/src/sdk/ccmanager.cpp:238
#1  0x00007ffff2fa435e in CCManager::DoShowDocumentation(cbEditor*) (this=0x5555592a7e00, ed=0x5555595c36f0) at /tmp/codeblocks-16.01.release/src/sdk/ccmanager.cpp:1241
#2  0x00007ffff2fa3952 in CCManager::OnTimer(wxTimerEvent&) (this=0x5555592a7e00, event=...) at /tmp/codeblocks-16.01.release/src/sdk/ccmanager.cpp:1127
#3  0x00007ffff385b2ce in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff385b6da in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff385b76f in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff385b823 in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7  0x00007ffff385b885 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8  0x00007ffff385b5e7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9  0x00007ffff37bfb41 in wxTimerImpl::SendEvent() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff41e7181 in  () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#11 0x00007ffff5e4f853 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff5e4edd5 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff5e4f1a0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007ffff5e4f4b2 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff78bf3b7 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#16 0x00007ffff41d44d5 in wxGUIEventLoop::DoRun() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#17 0x00007ffff3717b23 in wxEventLoopBase::Run() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#18 0x00007ffff36df046 in wxAppConsoleBase::MainLoop() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#19 0x00005555555ffd17 in CodeBlocksApp::OnRun() (this=0x555555a44940) at /tmp/codeblocks-16.01.release/src/src/app.cpp:850
#20 0x00007ffff3769e19 in wxEntry(int&, wchar_t**) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#21 0x00005555555fd0d9 in main(int, char**) (argc=8, argv=0x7fffffffe6e8) at /tmp/codeblocks-16.01.release/src/src/app.cpp:322
--- End code ---

ollydbg:
This sounds like a bug in UnfocusablePopupWindow under Linux.

Totoxa:

--- Quote from: ollydbg on November 21, 2017, 07:06:49 am ---This sounds like a bug in UnfocusablePopupWindow under Linux.

--- End quote ---

So I should write a bug report to wxWidgets, I don't think they will take me seriously with this use case, For now the workaround is to disable the feature.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version