Recent Posts

Pages: 1 ... 3 4 5 6 7 [8] 9 10
71
Help / code::blocks hangs at startup
« Last post by ChrisK on September 25, 2025, 03:20:40 am »
Hi,

Firstly, I have been using code::blocks for years, thank you to all involved.

A few days ago, the IDE locked up on the splash screen at start up, and has been like that ever since. I would appriciate any pointers to help me fix this.

I am running Arch Linux & Plasma with all updates done.

Code
$ uname -a
Linux XPS13 6.16.8-arch3-1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000 x86_64 GNU/Linux
$ codeblocks -h
Starting Code::Blocks Release 25.03  rev 13644 Jun  7 2025, 18:00:35 - wxWidgets 3.2.8 - gcc 15.1.1 (Linux, unicode) - 64 bit

If I do an strace, it always hangs at the same "futex" line...

Code
$ strace codeblocks
...
...
...
openat(AT_FDCWD, "/usr/share/codeblocks/images/wxsmith/wxTreeCtrl32.png", O_RDONLY) = 17
fstat(17, {st_mode=S_IFREG|0644, st_size=1055, ...}) = 0
read(17, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0 \0\0\0 \10\2\0\0\0\374\30\355"..., 4096) = 1055
read(17, "", 4096)                      = 0
lseek(17, 0, SEEK_SET)                  = 0
getpid()                                = 2789
readlink("/proc/2789/fd/17", "/usr/share/codeblocks/images/wxs"..., 256) = 53
futex(0x7f5be561f5c0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x55bc86995120, FUTEX_WAIT_BITSET_PRIVATE, 16, NULL, FUTEX_BITSET_MATCH_ANY) = 0
socketpair(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0, [23, 24]) = 0
ioctl(23, FIONBIO, [1])                 = 0
ioctl(24, FIONBIO, [1])                 = 0
memfd_create("seccomp-bpf-filter", 0)   = 25
write(25, " \0\0\0\4\0\0\0\25\0\0f>\0\0\300 \0\0\0\0\0\0\0005\0\0\1\0\0\0@"..., 840) = 840
lseek(25, 0, SEEK_SET)                  = 0
mmap(NULL, 2101248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f5bb03ff000
madvise(0x7f5bb03ff000, 4096, MADV_GUARD_INSTALL) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f5bb05ff990, parent_tid=0x7f5bb05ff990, exit_signal=0, stack=0x7f5bb03ff000, stack_size=0x1ff280, tls=0x7f5bb05ff6c0} => {parent_tid=[2827]}, 88) = 2827
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
futex(0x55bc86995120, FUTEX_WAIT_BITSET_PRIVATE, 17, NULL, FUTEX_BITSET_MATCH_ANY

I have tried deleting all config and also tried with the "--safe-mode" command line parameters, neither helped.

72
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by blauzahn on September 24, 2025, 03:40:49 pm »
Swap header / source    F11

see https://wiki.codeblocks.org/index.php/Keyboard_Shortcuts

It is one of my favourite nifty little features of Code::Blocks besides F2 for opening/closing the log info pane.
73
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by ccdric on September 24, 2025, 03:28:04 pm »
first of all : something like "Hello" !!! and ending by something like "thank-you ...." would be nice

but as I'm in a good mood :
- switch quickly : for me shift-ctrl-tab works
- side by side :  open 2 file, drag and drop one of them on the right side .. works fine for me too 
74
Using Code::Blocks / How to switch between files in Code::Blocks editor window
« Last post by FrankPeelo on September 24, 2025, 01:49:06 pm »
What is the best way to go between two files, e.g. between the header file and the code file, in Code::Blocks?

Ideally I would like to have them side by side, but "Split View" seems only to show the same file in both views. I want to check/modify the declaration of my function (or the documentation there) in the .hpp file when I am working on the definition in the .cpp file. Is it possible to split the view and have different files in the two views?

Alternatively, can I switch quickly between files without losing my train of thought?

I found a thread (https://forums.codeblocks.org/index.php?topic=19589.0) saying that ctrl-Tab should let me switch between windows. Maybe it worked in 2014; I can't quite get it to work properly, now. It only switches between editor tabs if I first click on the tab. If the focus is on the code, ctrl-tab gets me into the "Management" sidebar to the left of the editor window, and then starts bringing me through the tabs in there. Unless I put ctrl-TAB as the binding in Settings|Editor... ->Keyboard shortcuts -> View -> Switch tabs, but then I get the "tab-switcher window" discussed in that thread.

The setup is, Code::Blocks 25.03 installed from codeblocks_25.03_amd64_debian11.tar.xz on Ubuntu 22.04 LTS with Mate as the desktop environment.

75
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by FrankPeelo on September 24, 2025, 01:08:41 pm »
I am new, I am here.

That was one seriously hard capcha image that you had there for registration! Took me a few attempts to distinguish 'a' from 'o' and 'g' from '9'! (I know it said letters, but I been doing C for so long that 'letter', 'char' and 8-bit integers get mixed up in my head  ;D) Thanks for not having the registration cancelled after 3 wrong attempts!
76
Announcements / Re: Strengths, Limitations & Use Cases
« Last post by Miguel Gimenez on September 24, 2025, 09:13:53 am »
AI-generated trash with badly hidden spam link reported to moderator.
77
Announcements / Strengths, Limitations & Use Cases
« Last post by seraphina on September 24, 2025, 04:13:26 am »
Code::Blocks is a free, open-source, cross-platform integrated development environment focused on C, C++, and Fortran. It is built in C++ and uses wxWidgets for its graphical interface. The architecture is plugin-based, meaning most features (editor, compiler support, debugger, GUI designer) can be added or removed as plugins, making it highly extensible. Internally, it also provides a custom build system for fast dependency generation, parallel builds, and build queues.

One of the strong points of Code::Blocks is its flexibility and low overhead. Because it is modular, you can enable just the features you need, which helps keep it light and responsive even on modest hardware. Its debugger support includes breakpoints, watches, call stacks, memory dumps, disassembly, and more. On the downside, when dealing with very large projects, some users report lag or slowdowns. Also, its user interface and tooling may feel less polished compared to more modern IDEs. But for learners, hobbyists, or medium-sized C/C++ projects, Code::Blocks offers a solid balance of power and simplicity.   Baseball Bros IO
78
General (but related to Code::Blocks) / Re: Alphanumeric Keys ingnored
« Last post by Spare Time Hacker on September 21, 2025, 04:26:11 pm »
Thank you very much!

Starting C::B from command line with "GDK_BACKEND=x11 codeblocks" it sucessfully passes first testing.
79
Thank you Pecan
80
Patch with modification applied rev 13735 and 13736.
Thanks.
Pages: 1 ... 3 4 5 6 7 [8] 9 10