Hello!
Our C++ project became rather large and Code::Blocks started to crash regularly just after saving modified source code files. The files are saved without any errors, but some C::B crash occurs in ~50% of all cases.
Generated debug report contains:
...........................................
<stack>
<frame level="0" function="wxFatalSignalHandler" offset="00000026"/>
<frame level="1"/>
<frame level="2" function="wxGenericTreeCtrl::ItemHasChildren(wxTreeItemId const&) const" offset="0000000e"/>
<frame level="3" function="ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl*, wxTreeItemId)" offset="000000b3"/>
<frame level="4" function="ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl*, wxTreeItemId)" offset="000001a6"/>
<frame level="5" function="ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl*, wxTreeItemId)" offset="000001a6"/>
<frame level="6" function="ClassBrowserBuilderThread::RemoveInvalidNodes(wxTreeCtrl*, wxTreeItemId)" offset="000001a6"/>
<frame level="7" function="ClassBrowserBuilderThread::BuildTree()" offset="0000021f"/>
</stack>
...........................................
I searched at
https://developer.berlios.de and found bug 12261: "Random crash while editing"
(
https://developer.berlios.de/bugs/?func=detailbug&bug_id=12261&group_id=5358).
I think I encounter the bug described here.
As far as I understand, this bug is related to the Code Completion C::B plugin and this bug is rather old and well-known.
Are there any recommendations for avoiding this very annoying error?Besides disabling Code Completion plugin, of course... Sometimes this plugin is very useful and it's not very nice to disable it completely!
Thank you for your attention.
P.S.: The problem began to occur after the C++ project has achieved some level of code complexity (many files, many classes, many templates...).