Steps to reproduce: Copy some text to your clipboard in a different application (such as a terminal). Open a file in Code::Blocks. Press Control-A to select all text. Press Control-V to paste the new text.
In my experience, Code::Blocks pretty reliably crashes, unless the data has been copied from a Code::Blocks editor. For example, Ctrl-A Ctrl-C Ctrl-V does not reproduce this issue. The issue does not require an entire project to be open; a single, plain-text file will have this issue.
In my case, I was copying data out of gnome-terminal.
OS and Codeblocks version please?
How have you installed codeblock?
Can you provide a backtrace?
For me it works perfectly fine...
Version 17.12; Build: Jan 20, 2018, 10:29:55 - wx3.0.3 (Linux, unicode) - 64 bit
Installed through Pacman.
Backtrace: https://pastebin.com/93J88b1e
Can you try if the fix from rev11280 fixes the problem for you? I'm not sure it is good idea to use the wxgtk-3 when targeting gtk3. It is hightly untested and as far as I know there are many bugs in wxwidgets 3.0.x when targeting gtk3.
I built the current SVN trunk (11319), and the issue persists.
The issue affects a selection of any size, not just the full-page selection.
OK, I can reproduce.
Can you try if the patch below solves the problem for you?
Oh, and gtk3 is so ugly and broken...
Seems to do the trick. I can no longer reproduce it after applying that patch. Thanks!
Perhaps I should just build Code::Blocks against GTK2. It's unclear to me why it's built against GTK3 in the official package. I don't have anything nice to say about the GTK3 transition, myself, so I'll leave it at that.
Cheers
Because GTK people wil try to deprecate GTK2 and Arch follows upstream closly, so they've switchted your wxgtk to use GTK3...
Fixed in trunk.