I'm running Lazarus from trunk (Lazarus 4.99 (rev main_4_99-2821-gcab4db5c42) FPC 3.3.1 x86_64-darwin-cocoa).
When closing one of the forms of my project I get a "
Read Error" - "
Access Violation" message, which also happend when I select "View source(lfm)".
I've narrowed it down to one specific form, so I suspect the LFM may be corrupted or something like that.
What can I do to debug this?
I've tried starting Lazarus straight from Terminal so I could hopefully see error messages (log file would have been great - not sure how to enable that), but they didn't show me anything helpful.
This is the error I see, from which I can only conclude that it failed to destroy a component:
Error: (lazarus) [LoadAncestorDependencyHidden] LoadComponentDependencyHidden failed ClsUnitInfo=/Users/hans/LazarusProjects/TestProject/mainunit.lfm ClsName="TForm1"
LoadLFM LoadAncestorDependencyHidden failed for /Users/hans/LazarusProjects/TestProject/mainunit.lfm
FoldState loading removed data for foldtype: 0
[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation
Stack trace:
$00000001044CF092
$000000010426BDD7
$00000001044C7609
$00000001044B590A
$0000000104367C06
$00000001044C765A
$00000001044B590A
$00000001044C9F9E
$00000001042D04AE
$00000001042D1B39
$000000010426BDD7
$00000001049DE338
$00000001049FF721
$00000001049F0EB4
$0000000104D3BCEA
$0000000104327C0E
$00000001042E063A
TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil
Note: I did a debug build of the IDE as well, and there the error keeps going for almost a minute with stack trace outputs that appear not very helpful.
Note: disabled and enabled hiding non-visual components, this didn't make a difference either (just to exclude that as an issue).
Any tips, tricks or insight would be most welcome.