Just as an aside about the "Database Error" when posting on the forum.
It usually means that there is an utf-8 character in the post that does not map into a regular ascii character and the forum parser has a fit about it. The forum parser is old and and refuses to deal with the modern world.
I'll look into the crash.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@lcs
Do you ever get this message:
"You have changed the C/C++ parser search paths for this project.\n"
"These paths will be taken into account for next parser runs.\n"
"If you want them to take effect immediately, you will have to close "
"and re-open your project."
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i've spent 16 hours on this and cannot re-create the problem.
I've done my best to clone a matching environment using wx332.
Whatever the problem it occurs here (see attached). The posted RPT file shows the crash at line 128. Hard to believe, but possible with such a buggy wx library.
wx3.3.2 is really buggy. Especially within wxAUI.
Attached: Video of non-crashing function.
You might want to re-install wx 3.3.2 to see if they've fixed anything.
I'm using a download from yesterday.
You might also re-download clangd_client. I had to make changes
before it would cleanly compile. It had an "OVERRIDE" macro that wx 3.3.2 did not like. (Ref: commit 13835). The changes might help.
Since this is an un-stable version of wxWidgets, I'll close this ticket soon, but I
hope that won't discourage you from reporting in the future.
I used Claude Sonnet 4.6 to analyze the RPT file, and the LLM guided me through GDB debugging. In the end, the LLM concluded that the problem is in wxXmlResource::DoGetXRCID inside wxmsw332u_xrc_gcc_custom.dll.
I am using the package provided by MSYS2 UCRT64.
The report it generated is attached, for reference only. (I don't understand assembly, so I don't know if the AI's analysis is correct.)
OK.
I used wxWidgets 3.3 under MSYS2 UCRT (because I wanted Dark Mode) and clangd (mingw-w64-ucrt-x86_64-clang-tools-extra). All other dependencies were also provided by MSYS2.
In the file src/src/Makefile.am, I added the line codeblocks_LDFLAGS = -mwindows before line 74.
I built Code::Blocks using autotools with this configure command:
I've spent another day on this, and I'm calling it quits.
I cannot get a clean compile of CodeBlocks using the AutoMake system from Msys2 ucrt64.
I strongly suggest that you download a nightly version of CodeBlocks and use that to compile CodeBlocks with wx33 and the compiler in Msys2.
I've done that and CodeBlocks does not crash using that method.
Correction: I meant “I wanted to post a topic, but I got a Database Error when I submitted it.” Sorry for the typo.
Last edit: lcs 2026-04-27
Just as an aside about the "Database Error" when posting on the forum.
It usually means that there is an utf-8 character in the post that does not map into a regular ascii character and the forum parser has a fit about it. The forum parser is old and and refuses to deal with the modern world.
I'll look into the crash.
@lcs
Do you ever get this message:
"You have changed the C/C++ parser search paths for this project.\n"
"These paths will be taken into account for next parser runs.\n"
"If you want them to take effect immediately, you will have to close "
"and re-open your project."
No. CodeBlocks crashed immediately.
I just did a quick 23-second screen recording.
i've spent 16 hours on this and cannot re-create the problem.
I've done my best to clone a matching environment using wx332.
Whatever the problem it occurs here (see attached). The posted RPT file shows the crash at line 128. Hard to believe, but possible with such a buggy wx library.
Last edit: pecan 2026-04-29
wx3.3.2 is really buggy. Especially within wxAUI.
Attached: Video of non-crashing function.
You might want to re-install wx 3.3.2 to see if they've fixed anything.
I'm using a download from yesterday.
You might also re-download clangd_client. I had to make changes
before it would cleanly compile. It had an "OVERRIDE" macro that wx 3.3.2 did not like. (Ref: commit 13835). The changes might help.
Since this is an un-stable version of wxWidgets, I'll close this ticket soon, but I
hope that won't discourage you from reporting in the future.
It's just that there is nothing else I see do.
Last edit: pecan 2026-04-29
I got it. Many thanks for your work on this.
I used Claude Sonnet 4.6 to analyze the RPT file, and the LLM guided me through GDB debugging. In the end, the LLM concluded that the problem is in wxXmlResource::DoGetXRCID inside wxmsw332u_xrc_gcc_custom.dll.
I am using the package provided by MSYS2 UCRT64.
The report it generated is attached, for reference only. (I don't understand assembly, so I don't know if the AI's analysis is correct.)
Could it be possible that m_parser is not null but invalid?. The OP has just enabled clangd_client, may be m_parser is not initialized yet.
Quote: "Could it be possible that m_parser is not null but invalid?. The OP has just enabled clangd_client, may be m_parser is not initialized yet."
Ah... Excellent suggesting. I'll have a look at this.
@lcs
Please attach the project that invokes the crash so I can be as close to your environment as I can. Thanks.
Last edit: pecan 2026-05-01
OK.
I used wxWidgets 3.3 under MSYS2 UCRT (because I wanted Dark Mode) and clangd (mingw-w64-ucrt-x86_64-clang-tools-extra). All other dependencies were also provided by MSYS2.
In the file src/src/Makefile.am, I added the line codeblocks_LDFLAGS = -mwindows before line 74.
I built Code::Blocks using autotools with this configure command:
Last edit: lcs 2026-05-02
I've spent another day on this, and I'm calling it quits.
I cannot get a clean compile of CodeBlocks using the AutoMake system from Msys2 ucrt64.
I strongly suggest that you download a nightly version of CodeBlocks and use that to compile CodeBlocks with wx33 and the compiler in Msys2.
I've done that and CodeBlocks does not crash using that method.
https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows
I'll close this ticket soon.
OK. Thank you for your hard work on this.