Code::Blocks Release 16.01 rev 10692 - wx2.8.12 (Linux, unicode) - 64 bit
Reproducibility: always.
Open the window "Replace", tab "Replace in files", scope: workspace files (about 400 files in my case). Execute "Replace" -> "Replace this occurrence?: All".
The band shows up to about 50% and the application hangs. (If instead of "All", I click "All in this file" many times (four time in my case), the replacement is done well.)
perf report after hangup:
# Overhead Command Shared Object Symbol 35.55% codeblocks libwx_gtk2u_core-2.8.so.0.8.0 [.] wxGUIAppTraits::WaitForChild | ---wxGUIAppTraits::WaitForChild 0x77198f0 32.52% codeblocks libwx_baseu-2.8.so.0.8.0 [.] wxPipeInputStream::CanRead | ---wxPipeInputStream::CanRead | |--20.57%-- 0x77198f0 | --11.95%-- 0 wxPipeInputStream::~wxPipeInputStream 0x1de907894810c083 14.59% codeblocks libwx_gtk2u_core-2.8.so.0.8.0 [.] wxApp::Yield | ---wxApp::Yield | |--10.18%-- 0x77198f0 | --4.41%-- 0 5.51% codeblocks libwx_baseu-2.8.so.0.8.0 [.] wxYield | ---wxYield 0x77198f0 2.82% codeblocks libwx_gtk2u_core-2.8.so.0.8.0 [.] _Z7wxYieldv@plt | ---_Z7wxYieldv@plt 0x77198f0 1.88% codeblocks codeblocks [.] _ZN5wxApp5YieldEb@plt | ---_ZN5wxApp5YieldEb@plt 0x77198f0
Care to post a sample project that can be used to reproduce the problem?
Cmake support codeblocks project generation, so any opensource project that uses cmake will do.
I'll try to find a suitable set. The hang occurs in some specific conditions (in it always), as if to change the template for a replacement, the error can not reproduced. Generally, the more items need to be replaced, the higher the probability.