Forum > Linux

Can't debug with KDE Plasma, desktop freezes

(1/1)

MementoMojito:
Hi,

Am I the only experiencing issues with KDE Plasma when debugging?
It totally freezes the desktop when an error is meant to be raised. The only way to get back to it is to open another TTY and kill Lazarus from it.
It happens on my Debian stable and Arch. It looks like Lazarus is displaying a window but because this windows is not visible the whole desktop is out of focus, if it makes sense?
This happens on Arch on both 1.9.0 and 1.8.4 with KDE 5.13.0 and on my Debian with KDE 5.8.6 with Lazarus 1.8.0rc4 (less often).
I basically can't debug on Arch because it's automatic, it happens every times.
If anyone has a workaround?

Thanks!

soerensen3:
I don't use KDE but with Gnome there is a similar issue. When I debug it sometimes shows a message that my apllication is not responding, when it is paused (because of breakpoints or exceptions). When that happens I have to click away the message because even Lazarus is not responding until I do so. However the message might reappear after a few seconds. This is really annoying and hasn't been fixed for years.

For Gnome this is also true for other languages and IDE's. It could be that KDE is also showing a similar message window. I wonder how the developers of gnome do their debugging.
By the way, you probably don't have to kill Lazarus. For me it is often enough to kill gdb.

Leledumbo:
Try running lazarus from terminal. When debugging starts and lazarus freezes, look what the terminal outputs. Probably a miscommunication between Lazarus and GDB due to GDB changes.

MementoMojito:
Thanks a lot both for the suggestions.
To kill gdb indeed does the trick. Still not usable tho.
So I was suspecting it and it seems to be the case, it happens when debugging a thread. The few testings I have done on main thread seems to be ok.

Error displayed by Lazarus after killing gdb

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---The GDB command:"-thread-info"did not return any result. 
Terminal output when it happens:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Hint: (lazarus) [TMainIDE.DoRunProject] INITError: (lazarus) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done[TCmdLineDebugger] Debug PID: 6418Hint: (lazarus) [TMainIDE.DoRunProject] Debugger=TGDBMIDebuggerHint: (lazarus) [TMainIDE.DoRunProject] ENDTGDBMIDebugger.StartDebugging WorkingDir="/project/lpath/"NOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventNOTE: Window with stalled focus found!, faking focus-out eventHint: (lazarus) [TMainIDE.DoRunProject] INITHint: (lazarus) [TMainIDE.DoRunProject] Debugger=TGDBMIDebuggerHint: (lazarus) [TMainIDE.DoRunProject] ENDHint: (lazarus) [TMainIDE.DoRunProject] INITHint: (lazarus) [TMainIDE.DoRunProject] Debugger=TGDBMIDebuggerHint: (lazarus) [TMainIDE.DoRunProject] END[TCmdLineDebugger.SendCmdLn] Unable to send <-thread-info>. No process running. 

Martin_fr:

--- Quote from: MementoMojito on June 16, 2018, 12:01:51 pm ---Am I the only experiencing issues with KDE Plasma when debugging?
It totally freezes the desktop when an error is meant to be raised. The only way to get back to it is to open another TTY and kill Lazarus from it.

--- End quote ---

There are some tips for that: http://wiki.lazarus.freepascal.org/IDE_tricks#My_application_freezes_my_linux_desktop_while_debugging

No idea if they are still valid.

Navigation

[0] Message Index

Go to full version