Author Topic: Codeblocks 25.03 crashes when I use Hex editor  (Read 2558 times)

Offline AntonyF

  • Single posting newcomer
  • *
  • Posts: 4
Codeblocks 25.03 crashes when I use Hex editor
« on: August 20, 2025, 11:25:03 am »
Hello to all users and administrators, this is my first post.

I have recently started learning C++ and was trying out the new IDE when I noticed that if I try to open an exe file with the internal Hex editor in Codeblocks, 9 times out of 10 it crashes.

I have the same problem on two PCs, a desktop and a laptop, both running Windows 10 2021 LTSC.

Otherwise, it seems to work fine, although my use is very basic, so I can't be sure.

Thanks for your help, and have a nice day.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1769
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #1 on: August 20, 2025, 06:58:44 pm »
Size of the exe?

Offline AntonyF

  • Single posting newcomer
  • *
  • Posts: 4
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #2 on: August 20, 2025, 11:41:12 pm »
Hi Miguel,
It's not a question of size. The same exe file opens occasionally, and when it works, I can open four or five at the same time without any problems. They are small test programs of varying sizes, but in the range of 60-120 Kbytes.
Then I close and reopen CodeBlocks or restart the PC, and it no longer opens the same files that it used to open without any problems, causing CodeBlocks to crash.
« Last Edit: Yesterday at 10:57:05 am by AntonyF »

Offline AntonyF

  • Single posting newcomer
  • *
  • Posts: 4
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #3 on: Yesterday at 11:06:07 am »
I ran some tests with the portable version of CodeBlocks 20.03 and the Hex Editor works perfectly.

I exported the Hex Editor from version 20.03 and tried to import it into version 25.03, but obviously it didn't work.

I gather that the problem is inherent in version 25.03. Searching the Internet, I saw that other users have the same problem.

Do you know if it is possible to report this problem?

Maybe someone will be able to solve it.


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1769
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #4 on: Yesterday at 03:03:32 pm »
AFAIK the code for the Hex Editor has not changed between releases. To fix this we need a way to reproduce, random crashes are hard to fix; I have not been able to reproduce the issue in my system.

You can post a ticket, of course.

Offline blauzahn

  • Almost regular
  • **
  • Posts: 199
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #5 on: Yesterday at 08:07:51 pm »
Maybe some low hanging fruit before trying to "reproduce" UB: cppcheck reports e.g. several uninitialized variables etc. The results are in its attached report.

The HexEditor plugin looks like it predates C++-11. I just gave it a quick glance. I do not use the plugin myself.


Offline AntonyF

  • Single posting newcomer
  • *
  • Posts: 4
Re: Codeblocks 25.03 crashes when I use Hex editor
« Reply #6 on: Yesterday at 11:38:37 pm »
Hello Blauzahn, Hello Miguel,

Thank you for your help.

I can add that I have detected the same issue on a third PC.

So, in total, there are three PCs with the same issue. It should be noted that the three PCs are completely different from each other in terms of hardware.

All PCs have the following things in common:

Operating system:

Windows 10 LTSC 2021

Antivirus:

Eset Internet Security

VPN:

Proton VPN

My first suspicion fell on the antivirus, but I have not yet had confirmation.

As soon as I have some free time, I will run tests on other operating systems, as well as other cross-tests.

I will keep you updated and thank you for everything.