Pelles C forum

Pelles C => Bug reports => Topic started by: Akko on February 26, 2025, 10:30:33 AM

Title: POIDE freezing
Post by: Akko on February 26, 2025, 10:30:33 AM
I am not sure if this is a bug or just caused by my work environment. Anyhow:

Pelles C 12.00.2 IDE freezes sporadically and I have to kill its process via the task manager.
This happens particularly often when I am accessing files on a USB drive. My OS is Windows 11.
It is a real pain because work is lost.

Pelles C 11.0 did not have this problem.

Title: Re: POIDE freezing
Post by: TimoVJL on February 26, 2025, 12:46:48 PM
poide.exe make backup files under profile.

Like C:\Users\xxxx\AppData\Local\Temp
Title: Re: POIDE freezing
Post by: Vortex on February 26, 2025, 03:27:20 PM
Hi Akko,

QuoteMy OS is Windows 11

Could you provide more details? Is it Win11 2022 H2 or 2023 H2 or 2024 H2?
Title: Re: POIDE freezing
Post by: Akko on February 26, 2025, 08:17:19 PM
Windows 11 Home
Version 24H2
Build 26100.3194
Title: Re: POIDE freezing
Post by: Vortex on February 26, 2025, 09:50:14 PM
Hi Akko,

To fix the compilation issue on Win11 2024 H2, could you try the patches mentioned in this thread?

https://forum.pellesc.de/index.php?topic=11474.msg40710#msg40710
Title: Re: POIDE freezing
Post by: Akko on February 27, 2025, 06:51:15 AM
Thanks a lot, Vortex !!
I did the patching and everything seems smooth. My "bug" appeared sporadically so I'll continue being extra careful. But way better now! :-)
Title: Re: POIDE freezing
Post by: Akko on February 28, 2025, 01:05:28 PM
Wellll ... when I start the debugger, poide crashes regularly after a few seconds ...
Title: Re: POIDE freezing
Post by: Vortex on February 28, 2025, 01:14:20 PM
No any issues here with Pelles debugger. Not easy to make comments at this point.
Title: Re: POIDE freezing
Post by: John Z on February 28, 2025, 08:41:28 PM
H Akko,

Quote from: Akko on February 28, 2025, 01:05:28 PM
Wellll ... when I start the debugger, poide crashes regularly after a few seconds ...

The symptoms you describe are different than anyone else has reported with Win 24H2.

The typical suggestions in your case start with disabling all optimizations and trying that way.
If that does not help then the typical next step if to try disabling all Add-ins.
The next step would be to re-install PelleC which is fairly safe - no work product is lost.

More details would help the forum help you.  When Pelle C hangs is it consuming cpu, or like infinite loop, or just dead.  Does the debugger crash for other programs you have or just one in particular?
Things like that can help understanding.  What was done to the system just before this started.

Anyway just some thoughts on how to proceed,

John Z
Title: Re: POIDE freezing
Post by: sunshine on March 11, 2025, 05:50:57 AM
Quote from: Akko on February 28, 2025, 01:05:28 PM
Wellll ... when I start the debugger, poide crashes regularly after a few seconds ...
I also encountered the same problem. It seems that the latest 12.0 version also has some problems in generating debug symbols, but I am not sure about this yet. However, using the 12.0 version of the IDE to debug a program compiled with the 11.0 version will not crash.

It seems that starting from version 10.0, pocc has introduced a lot of optimizations, including the one we recently encountered that caused PellesC to not work properly on Windows 11 24H2. I also patched version 10.0, since it seems to have fewer problems than version 11.0, and the compilation speed seems to be faster than version 9.0. You can try it:
Setup: http://www.smorgasbordet.com/pellesc/1000/setup.exe (http://www.smorgasbordet.com/pellesc/1000/setup.exe)
Patcher: https://github.com/fengyoulin/pellesc/blob/main/patcher10/patcher10.c (https://github.com/fengyoulin/pellesc/blob/main/patcher10/patcher10.c).

The even better thing is that version 9.0 does not require patching to work well on Windows 11 24H2, and its project file format is compatible with subsequent versions. If your project does not depend on the latest C standard, this version should basically meet your needs.
Setup: http://www.smorgasbordet.com/pellesc/900/setup.exe (http://www.smorgasbordet.com/pellesc/900/setup.exe)
Title: Re: POIDE freezing
Post by: Akko on March 11, 2025, 07:45:49 AM
Quote from: John Z on February 28, 2025, 08:41:28 PM
H Akko,

Quote from: Akko on February 28, 2025, 01:05:28 PM
Wellll ... when I start the debugger, poide crashes regularly after a few seconds ...

The symptoms you describe are different than anyone else has reported with Win 24H2.

The typical suggestions in your case start with disabling all optimizations and trying that way.
If that does not help then the typical next step if to try disabling all Add-ins.
The next step would be to re-install PelleC which is fairly safe - no work product is lost.

More details would help the forum help you.  When Pelle C hangs is it consuming cpu, or like infinite loop, or just dead.  Does the debugger crash for other programs you have or just one in particular?
Things like that can help understanding.  What was done to the system just before this started.

You are right, of course. I reinstalled a fresh 12.0, the bug is still there: start debugger while in debug mode, freeze for about 2 seconds, then all windows disappear, nada.

It is a simple 32-bit project with only one C source file, no fancy programming tricks.
PS. I can't set breakpoints either
Title: Re: POIDE freezing
Post by: John Z on March 11, 2025, 10:23:57 AM
Hi Akko,

Wow, sorry to hear still an issue.  Is the project your personal one that you could zip and post here?
If not is there another computer you can try it on?
Have you tried other projects (many are posted in the forum) and do they have the same issue?

You possibly could have a corrupt Debug mode in the .ppj file.  Suggest using the 'Copy Mode' feature to copy the Release Mode to a new Debug mode call it Debug2, then set the debug2 options/parameters and see if it works with Mode set to Debug2.

You might consider disabling any and all antivirus programs and then try the program.  I usually shutdown the computers WiFi and Ethernet when I do this to be safer...

John Z
Title: Re: POIDE freezing
Post by: Akko on March 11, 2025, 11:04:30 AM
Quote from: John Z on March 11, 2025, 10:23:57 AM
Hi Akko,

Wow, sorry to hear still an issue.  Is the project your personal one that you could zip and post here?
If not is there another computer you can try it on?
Have you tried other projects (many are posted in the forum) and do they have the same issue?

You possibly could have a corrupt Debug mode in the .ppj file.  Suggest using the 'Copy Mode' feature to copy the Release Mode to a new Debug mode call it Debug2, then set the debug2 options/parameters and see if it works with Mode set to Debug2.

You might consider disabling any and all antivirus programs and then try the program.  I usually shutdown the computers WiFi and Ethernet when I do this to be safer...

John Z

Thanks for your ideas and suggestions!

I just deleted all the PellesC specific files and rebuilt the project. So the ppj file should not cause the problem. No improvement. Some older projects of mine (pre 12.0 and pre 24H2) compile and run fine at first, but the debugger still crashes.

There's no one to blame here, because Pelle explicitly stated that he had tested the compiler on Windows 10 only, which is abandonware by Microsoft now. Fortunately there are plenty of alternative compilers.

Title: Re: POIDE freezing
Post by: John Z on March 11, 2025, 12:37:03 PM
Quote from: sunshine on March 11, 2025, 05:50:57 AM

It seems that starting from version 10.0, pocc has introduced a lot of optimizations, including the one we recently encountered that caused PellesC to not work properly on Windows 11 24H2. I also patched version 10.0, since it seems to have fewer problems than version 11.0, and the compilation speed seems to be faster than version 9.0. You can try it:
Setup: http://www.smorgasbordet.com/pellesc/1000/setup.exe (http://www.smorgasbordet.com/pellesc/1000/setup.exe)
Patcher: https://github.com/fengyoulin/pellesc/blob/main/patcher10/patcher10.c (https://github.com/fengyoulin/pellesc/blob/main/patcher10/patcher10.c).

The even better thing is that version 9.0 does not require patching to work well on Windows 11 24H2, and its project file format is compatible with subsequent versions.

Thanks Master Sunshine!  Very interesting discovery....especially the Version 9 information!

John Z
Title: Re: POIDE freezing
Post by: Vortex on March 12, 2025, 11:27:52 AM
Hi Akko,

QuotePelle explicitly stated that he had tested the compiler on Windows 10 only, which is abandonware by Microsoft now.

That's not true at the moment. The retirement date of Windows 10 is 14 October 2025.

https://learn.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro