Recent

Author Topic: [SOLVED] Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)  (Read 2710 times)

tudi_x

  • Hero Member
  • *****
  • Posts: 532
hi,
i am running Lazarus 1.8.4 64b on Linux Mint 19 XFCE.
when exiting debug mode with ctrl + F2 Lazarus crashes without any exception or does not exit.
anybody else experiencing the same?
thank you
« Last Edit: July 18, 2018, 04:49:50 pm by tudi_x »
Lazarus 2.0.2 64b on Debian LXDE 10

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9869
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #1 on: July 18, 2018, 11:55:51 am »
Can you please:
- rebuild the IDE with -gw -O- -Criot
  Go to menu: Tools > Option > Configure build Lazarus
  In custom options enter: -gw -O- -Criot
  build.
- then start the IDE as described here (to get a log file)
  http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

Also do you have any extra packages installed?

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #2 on: July 18, 2018, 12:51:44 pm »
please find attached the log and exported list of installed packages.
first time i am using flags to recompile - any issues please let me know.

the log was created for the IDE that did not crash on ctrl + F2 but did not exit debug mode.
Lazarus 2.0.2 64b on Debian LXDE 10

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #3 on: July 18, 2018, 01:58:47 pm »
do not know if it helps but ctrl + F9 does not compile also.
ctrl + D works for JEDI so the keyboard works...
Lazarus 2.0.2 64b on Debian LXDE 10

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9869
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #4 on: July 18, 2018, 03:42:59 pm »
The log unfortunately did not reveal any clues.
It would be good to keep your IDE running with --debug-log, so that if it crashes again there will be a logfile and hopefully a stacktrace.

The option for the recompile are to add debug info, so a stacktrace (hopefully) will have line numbers.

   I forgot: attach a -gl to the options: -gw -Criot -O- -gl
But that only matters, if there is a crash, so it did not affect the current log.

-O- disables optimization. There is a slight change that this "hides" the crash, so you may change the options to -gw -Criot -O2 -gl

====
Quote
but did not exit debug mode.
To be precise:
- Your app kept running ?
- The IDE icons for run kept being disabled, as if there was a running app, and the stop button kept being active?

The latter would explain, why you could not compile. (Because if the IDE thinks the debugger still runs....)
In this case you can try from the Run menu: Reset Debugger

According to the log, you started your app twice in the debugger.
Both times I see a 'reason="exited-normally"' => that would indicate the app run to its normal end (no killing via ctrl F2). So if you pressed ctrl-F2 this was after the app had exited (thats ok, that should do no damage)


====
Do you use the new "Desktop" feature of the IDE?


tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #5 on: July 18, 2018, 04:30:44 pm »
sorry, it is my bad.
it looks like in Linux Mint with ctrl + F2 i change the workspaces.
ctrl + F1 - workspace 1
ctrl + F2 - workspace 2

please advise how to change the key combination for exit debug mode for this Linux system.
sorry again.
« Last Edit: July 18, 2018, 04:32:55 pm by tudi_x »
Lazarus 2.0.2 64b on Debian LXDE 10

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9869
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #6 on: July 18, 2018, 04:43:05 pm »
You may be able to tell your desktop manager, not to use those keys.

In the IDE, go to menu Tools > Options >> Editor > Key Mappings:
Expand the section for "run menu commands"  (Or search for "Stop")
Double click the entry, and choose a new key combo.

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Lazarus 1.8.4 crashing on exit debugging (ctrl + F2)
« Reply #7 on: July 18, 2018, 04:49:32 pm »
i successfully changed the keys.
thank you!
Lazarus 2.0.2 64b on Debian LXDE 10

 

TinyPortal © 2005-2018