Thank you all for helping, I managed to fix the issue. I removed everything and reinstalled wxWidgets this time with the version 2.8.12 and codeblocks from the subversion repo. And somehow it works now.
Thank you @BlueHazzard for being willing to invest so much time, sadly i don't have enough myself. (If you still want to know, I installed 3.0.4 via Opensuse download website, added the rpm, then zypper and yast; I got codeblocks from a tar file, installed it via /bootstrap, /configure, etc..
Now it would be easy to help us
1) Open the CodeBlocks_wx30-unix.cbp file
2) It probably will ask you about the global variable "cb_release_type" enter
in the base field...
3) If it did not ask about the "cb_release_type" global variable, then Settings->global variables..->Current variable->New->Name: cb_release_type->ok
3.1) proceed with step 2
4) Build->Rebuild. This will need some time...
5) Hit Alt+G and type "encodingdetector" and double click or enter the encodingdetector.cpp file
6) Git Ctrl+g and type "149" to go to line 149
7) Set a breakpoint to this line by klicking between the line number and line text until a red circle appears, or hit F5
Start the debugger with Debug->Start
9) A new Codeblocks (we will call it debugee from now on) will open. Open your faulty file in the debugee.
10) The codeblocks window from where you are debugging will pop up, or blink or whatever... It will display the line 149 with a yellow arrow
11) Open the watches with Debugg->Debugging windows->Watches
12) Now go back to the code and make a right click on "buffer"->Add watch
13) Now go back to the code and make a right click on "size"->Add watch
14) Now this two values will appear in the watches dialog. Please tell us the values
15) Now step trought the program and tell us what functions are called:
15.1) To step one line hit the F7 key. The yellow arrow will make a step. Please note us the path the yellow arrow makes until the end of this function....
16) If the yellow arrow is at line 247 you can abort the debugee by hiting the red button in the toolbars