Thank for coming back on this issue. I created a log file now as suggested, started Lazarus with said parameters und it did me the favour of starting the project blank and dead on first try. App was then killed via Linux Task Manager, not Lazarus Halt (Ctrl+F2). File attached. Odd thing is still that projects that have been created earlier still run without problems, still no blank forms, no hanging.
I can see you killing it:
"*stopped,reason="exited-signalled",signal-name="SIGKILL",signal-meaning="Killed""
Unfortunately nothing else suspicious before.
All that happens is, that libraries are loaded. (There is a very tiny change that DisableLoadLibrarySymbols (or similar) in the gdb debugger settings may affect that. But I would not count on it.
If it works in fpdebug, then keep using this. FpDebug is meant to take over eventually. (except for remote debug).
Otherwise you can look at the other thread I linked. It says to install some package and that would help the problem in the other thread. However I can't comment much on this, as that is more of a gtk issues than a debug issue (and outside my scope of expertise)
As for crash on app closing I mentioned it mainly because trouble seems(!) to have started after this happened for the first time. But as I said this 'unfortunate' behaviour can be prevented by just adding if not Application.Terminated. Changing creation/destruction order seems not to be possible, and switching positions of objects in *.lfm also didn't help. It's not he only 'unfortunate' issue with TTreeView/TShellTreeView but that is indeed a different topic.
Label is a GrapicsControl, so its in a different bucket when it comes to creation order. But a need to change the order IMHO should not be there.
IMHO that even should not fire. Anyway that should be a different thread. Or maybe try reporting it on the bugtracker.
I looked at the stack, and the node for which the event is fired, is in its destructor. So no point to fire the event.
The debug trouble seems to have no connection with them either. It also happens with the most simple projects with just a TButton on the form.
Indeed, those are 2 different issues.