Popup hint with function reference can cause application to freeze (probably infinite loop; no error messages at console).
Steps to reproduce:
#include <vector> using namespace std; int main() { std::vector<int> v; /* some spaces to move cursor to right side of the window ---------------------------- */ v return 0; }
Note that if popup becomes when your cursor is at left side of the window (somewhere at beginning of line), bug doesn't appear. If you can't catch the bug, try inserting more or less spaces to find 'bug-causing' cursor position for your window dimentions and font size.
I catched this bug only for end() method for std::vector. Many other methods doesn't cause Codeblocks to freeze, maybe end() is the only one, maybe not.
I try to reproduce this bug on my Windows, and on my selfbuild SVN version, but I can't reproduce the crash. I believe this belong to the CodeCompletion plugin. Can you catch a call stack?
Please post os/distro and which wx version is used to build C::B and a call stack/backtrace.
CodeBlocks 16.01 rev 10692
Build: 2016-06-15, 06:57:50 - wx3.0.2 (Linux, unicode) - 64 bit
SDK Version: 1.29.0
I've launched
After catching the bug, I hit Ctrl+C and typed "backtrace". Result is
P.S. Hints for std::vector::begin (second variant in list) and ::cbegin (also second variant) and ::cend cause the bug to appear.
Bug also can be catched by writing "v." and choosing different methods from list by mouse or up/down arrow keys.
Can you try with the latest night build?
Check this page for details: https://apt.jenslody.de/
Can't install latest version. Synaptic refuses to set package version, I don't know why.
Is there easiest way to get compiled Codeblocks binary without .deb packages?
Only manual compilation...
Successfully installed SVN version from DEBs via
dpkg -i *.deb
.But "About" dialog shows
Is that correct? Debs timestamp is 20 Nov 2016.
Anyway, bug is still here. I can reproduce it on nightly Codeblocks build.
Backtrace is
Are you sure you can't reproduce the bug using my instructions? Code completion hint should popup at right side side and HTML reference box should be at left of functions list. As shown on screenshot in first message.
Yes, I cannot reproduce this bug. Sorry.
Can you try to reproduce it with code that doesn't include anything?
It might be possible that your and mine versions of std::vector are different.
Almost catched without std, but it looks like this bug is VERY sentitive to window size. I catched bug even for other functions and without moving cursor to right, but after I resized CodeBlocks window the bug is gone. I don't know how to catch it again.
Here is my last (almost minimum) test code. Window size was somewhere in between 1000px and 1920px. (Maybe not only window size affect appearing the bug, I don't know).
Last edit: Roman Shuvalov 2016-11-22
I continue to fail to reproduce it. Can you record a video?
Another option is to try to build the latest wx3.1.x and try to rebuild Code::Blocks against this version of wxWidgets.