Recent

Author Topic: IDE freezes on SelectDirectory  (Read 3704 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: IDE freezes on SelectDirectory
« Reply #15 on: February 17, 2023, 02:52:24 pm »
FpcUpDeluxe use git. But I don't know how to configure it to import....

Anyway, I managed to IFDEF the entire code. I have pushed the IFDEFed version to the official fixes_2_2 branch.
So you can download this and build it.

You do need to define FpDebugNewWinStepping

Or you open  lazarus\components\fpdebug\fpdbgwinclasses.pas
and activate (remove the "off " / so it becomes "{$DEFINE ..." )
{off $DEFINE FpDebugNewWinStepping}


totya

  • Hero Member
  • *****
  • Posts: 722
Re: IDE freezes on SelectDirectory
« Reply #16 on: February 17, 2023, 03:25:40 pm »
Anyway, I managed to IFDEF the entire code. I have pushed the IFDEFed version to the official fixes_2_2 branch.
So you can download this and build it.
{off $DEFINE FpDebugNewWinStepping}

Thanks, Laz 2.2 fixes (+fpc fixes) install started via fpcupdeluxe...

totya

  • Hero Member
  • *****
  • Posts: 722
Re: IDE freezes on SelectDirectory
« Reply #17 on: February 17, 2023, 04:12:36 pm »
Or you open  lazarus\components\fpdebug\fpdbgwinclasses.pas
and activate (remove the "off " / so it becomes "{$DEFINE ..." )
{off $DEFINE FpDebugNewWinStepping}

Hi

See picture, source edited.

Configure bulid lazarus - clean all - build. The result is does not changed anything, the test dir open app is freeze. I need logout from user andback...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: IDE freezes on SelectDirectory
« Reply #18 on: February 17, 2023, 04:54:52 pm »
If that does not fix it, then the fix must be in another commit. And then I don't know which one. So the issue will only be fixed in 2.3 upwards. Sorry about that. It was worth a try...

I never had that particular issue myself, I only knew from feedback that it is fixed in 2.3. The changes in that last commit seemed the most likely candidate...

totya

  • Hero Member
  • *****
  • Posts: 722
Re: IDE freezes on SelectDirectory
« Reply #19 on: February 17, 2023, 05:35:09 pm »
If that does not fix it, then the fix must be in another commit. And then I don't know which one. So the issue will only be fixed in 2.3 upwards. Sorry about that. It was worth a try...
I never had that particular issue myself, I only knew from feedback that it is fixed in 2.3. The changes in that last commit seemed the most likely candidate...

Thank you for your job!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: IDE freezes on SelectDirectory
« Reply #20 on: February 26, 2023, 10:13:34 pm »
Ok, so I got myself Win11 set up. Installed Lazarus 2.2.4 with the official installer.
I forgot to test before I installed packages => so I did rebuild the IDE (only installed "Cody" which is not debug related).

But your code into a ButtonClick event (though using c:\ ).
Run, clicked enable Dwarf 3
Pressed the button -> dialog was shown, I selected a folder -> no freeze.
Set a breakpoint on the line of code, and used F8 to step over -> no freeze.

I can't reproduce.



However one important note.

FPC 3.2.2 has a bug in the optimizer. If you compile the IDE with -O2 or higher, then FpDebug will not work. Waiting for fpc 3.2.4 to fix that (or use Fpc 3.2.3)

totya

  • Hero Member
  • *****
  • Posts: 722
Re: IDE freezes on SelectDirectory
« Reply #21 on: February 27, 2023, 08:18:35 am »
Ok, so I got myself Win11 set up. Installed Lazarus 2.2.4 with the official installer.
I can't reproduce.

I have Windows 10, and Windows 11 wouldn't even run on this machine. This bug does not appear with 2.3.0. Thanks.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: IDE freezes on SelectDirectory
« Reply #22 on: February 27, 2023, 08:48:18 am »
Ups, sorry... Someone had reported this with Win 11 before.

Anyway, I know it is fixed. I just had an idle Sunday evening to spent and I thought maybe I can spot what causes it.

 

TinyPortal © 2005-2018