Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

CT 6.7 freezes while debugging 5 years 2 months ago #13118

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13119

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1060
  • Thank you received: 149
More Info Sir
your project or a sample project with the problem, etc...
PilotLogic Core Programmer

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

Last edit: by Matis A..

CT 6.7 freezes while debugging 5 years 2 months ago #13122

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13123

  • Peter Heckert
  • Peter Heckert's Avatar
  • Visitor
  • Visitor
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%.

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

Last edit: by Peter Heckert.

CT 6.7 freezes while debugging 5 years 2 months ago #13124

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
Thanks for the hint, I'll check this.

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

CT 6.7 freezes while debugging 5 years 2 months ago #13125

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13129

  • Peter Heckert
  • Peter Heckert's Avatar
  • Visitor
  • Visitor
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:

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

Last edit: by Peter Heckert.

CT 6.7 freezes while debugging 5 years 2 months ago #13130

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
Thanks for your feedback any one from CT could test this?

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

CT 6.7 freezes while debugging 5 years 2 months ago #13171

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13172

  • Peter Heckert
  • Peter Heckert's Avatar
  • Visitor
  • Visitor
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.

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

Last edit: by Peter Heckert.

CT 6.7 freezes while debugging 5 years 2 months ago #13174

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13175

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

CT 6.7 freezes while debugging 5 years 2 months ago #13176

  • Peter Heckert
  • Peter Heckert's Avatar
  • Visitor
  • Visitor

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\"

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

Last edit: by Peter Heckert. Reason: Addendum

CT 6.7 freezes while debugging 5 years 2 months ago #13177

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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

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

Last edit: by universe.

CT 6.7 freezes while debugging 5 years 2 months ago #13178

  • Peter Heckert
  • Peter Heckert's Avatar
  • Visitor
  • Visitor
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.

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

Last edit: by Peter Heckert.

CT 6.7 freezes while debugging 5 years 2 months ago #13179

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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.

  • Page:
  • 1