Forum
× CodeTyphon MS Windows (XP, Vista, Win7, Win8.x and Win10) OS Development, discussions and problems

Question CT 6.7 freezes while debugging

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #13118 by universe
CT 6.7 freezes while debugging was created by universe
Hello all,
I noticed that CT6.7 freezes randomly after debugging the application (Still I can see the application launched in process manager). But the IDE won't execute any further action while the Pause Button is disabled.
Any hints?
CT6.7 32bit on Windows 7 64bit
Thanks.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #13119 by Matis A.
Replied by Matis A. on topic CT 6.7 freezes while debugging
More Info Sir
your project or a sample project with the problem, etc...

PilotLogic Core Programmer
Last edit: 1 month 1 week ago by Matis A..

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #13122 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Thanks for your reply,
I am not able to reproduce it, meanwhile I was looking for a hint, a log message generated by the IDE while debugger has been launched. I see the IDE displaying (debugging...) and the stop button is red and that's all. There is no crash or anything else, it just stops this way.

Please Log in or Create an account to join the conversation.

  • Peter Heckert
  • Peter Heckert's Avatar
  • Away
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago - 1 month 1 week ago #13123 by Peter Heckert
Replied by Peter Heckert on topic CT 6.7 freezes while debugging
I have seen this behaviour when a window Event method generates a message that indirectly calls the same event method in an endless loop.
(I dont remember if this was with Typhon or another (C++) IDE.)
This overloads the windows message pump.
As a result neither the debugger nor the debugee can process input events, they "freeze".

If it happens again watch the CPU usage in Task Manager, possibly one Core is at 100%.
Last edit: 1 month 1 week ago by Peter Heckert.

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #13124 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Thanks for the hint, I'll check this.

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #13125 by universe
Replied by universe on topic CT 6.7 freezes while debugging
CPUs are working normal but I figured out how to reproduce, steps below:
1. Start new project.
1. Add
raise exception.Create('test');
in FormCreate.
2. Start debugging
3. When IDE raise the exception click on break.
4. Click on Stop button.
5. Start debugging, IDE will freeze.

Please Log in or Create an account to join the conversation.

  • Peter Heckert
  • Peter Heckert's Avatar
  • Away
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago - 1 month 1 week ago #13129 by Peter Heckert
Replied by Peter Heckert on topic CT 6.7 freezes while debugging
I tested this here on Win7 32 Bit.
It didnt freeze, but after some singlesteps a warning message appears.
See Attachment.



Addendum: I use CTLAB 6.8, not 6.7

There are debugging problems in 6.8, (and in 6.7) such as the assembler window popping up.
These problems appear preferrably but not exclusively if a breakpoint is set in a routine that is called before the main loop of the program is entered.

Addendum2:
I tested this again with CTLAB6.8 32 Bit on 64 Bit Windows 10. Same Result.
Attachments:
Last edit: 1 month 1 week ago by Peter Heckert.
The following user(s) said Thank You: universe

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 1 week ago #13130 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Thanks for your feedback any one from CT could test this?

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 17 hours ago #13171 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Please find attached a sample project, The IDE still freezes. After killing the IDE (as there is no other way to stop it) sometimes the gbd.exe is still running and won't stop only after killing it.
Attachments:

Please Log in or Create an account to join the conversation.

  • Peter Heckert
  • Peter Heckert's Avatar
  • Away
  • Junior Boarder
  • Junior Boarder
More
1 month 16 hours ago - 1 month 16 hours ago #13172 by Peter Heckert
Replied by Peter Heckert on topic CT 6.7 freezes while debugging
I tested this on Windows 10 64 Bit in both Typhon 6.8 64 bit and 32 bit.

After the exception was raised and ignored by me, the window appeared, and debugging was possible as usual.
No freeze and no crash here.
Last edit: 1 month 16 hours ago by Peter Heckert.

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 7 hours ago #13174 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Thanks for the test did you press on the stop while the exception is raised by IDE then start debugging again?

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 5 hours ago #13175 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Here a print screen, the second time the project tries to start gives < TDebuggerIntf.UnlockRelease 1 message in IDE logger and the debug output is empty.
Attachments:

Please Log in or Create an account to join the conversation.

  • Peter Heckert
  • Peter Heckert's Avatar
  • Away
  • Junior Boarder
  • Junior Boarder
More
1 month 4 hours ago - 1 month 4 hours ago #13176 by Peter Heckert
Replied by Peter Heckert on topic CT 6.7 freezes while debugging

universe wrote: Thanks for the test did you press on the stop while the exception is raised by IDE then start debugging again?


I am on Win7 32 Bit this morning and tried again with CT6.8.

When the exception window pops up then I have two options, Break and Continue.

I tried both, I clicked the red stop button, I tried various forms of singlestep and restarted the debugger several times.
I was not able to reproduce the problem.

BTW, I have seen a directoryname "ct bug" in this screenshot. Could there be a problem with spaces in paths or unusual characters? The GNU tools do not like this.


Here the log from today morning.
Hint: (IDE) [TMainIDE.DoRunProject] INIT
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
Note: (IDE) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done
Hint: (IDE) [TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
Hint: (IDE) [TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="C:\Users\peter\Desktop\TestProj\"
Hint: (IDE) [TMainIDE.DoRunProject] INIT
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
Note: (IDE) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done
Hint: (IDE) [TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
Hint: (IDE) [TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="C:\Users\peter\Desktop\TestProj\"
Hint: (IDE) [TMainIDE.DoRunProject] INIT
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
TGlassDesktopOpt.SaveMainLayoutToTree AForm=MainIDE:TMainIDEBar
TGlassDesktopOpt.SaveMainLayoutToTree AForm=GlassDockSite7:TGlassDockHostSite
Note: (IDE) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done
Hint: (IDE) [TMainIDE.DoRunProject] Debugger=TGDBMIDebugger
Hint: (IDE) [TMainIDE.DoRunProject] END
TGDBMIDebugger.StartDebugging WorkingDir="C:\Users\peter\Desktop\TestProj\"
Last edit: 1 month 4 hours ago by Peter Heckert. Reason: Addendum
The following user(s) said Thank You: universe

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 hours ago - 1 month 4 hours ago #13177 by universe
Replied by universe on topic CT 6.7 freezes while debugging
Really strange I can reproduce the bug at 100%, btw the bug exists for directory name without spaces too. Thanks for the hint.
Edit: I think I have to test with CT6.8
Last edit: 1 month 4 hours ago by universe.

Please Log in or Create an account to join the conversation.

  • Peter Heckert
  • Peter Heckert's Avatar
  • Away
  • Junior Boarder
  • Junior Boarder
More
1 month 3 hours ago - 1 month 3 hours ago #13178 by Peter Heckert
Replied by Peter Heckert on topic CT 6.7 freezes while debugging
I did not use the debug output window before.
I tried now and it worked when the debug output window was undocked.
When I docked the debug output window, then sometimes I get longer delays, up to 20 seconds in some situations.
But it did not freeze forever or crash here.
This all on CT6.8. I know, they work on the debugger currently.
Possibly try this.
Possibly try it without debug outpt window or with this window undocked.
Last edit: 1 month 3 hours ago by Peter Heckert.

Please Log in or Create an account to join the conversation.

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 2 hours ago #13179 by universe
Replied by universe on topic CT 6.7 freezes while debugging
The problem does not exist in CT6.8, only the exception is sometimes delayed. Thanks for your help and time.

Please Log in or Create an account to join the conversation.