Hi Mattias,
Here is the backtrace you asked for. I can reproduce this crash on demand. Simply open the IDE, change between compiler versions (2.2.5 -> 2.3.1) in the Environment options and close the dialog. I have no idea why that affects things, but this help the crash. :) Then in Project Inspector, right click on the package and select the remove option. Now the IDE crashes. After a restart of the IDE, I can remove the package using the "-" (minus) button in the Project Inspector.
Below is the console output I get - without running in through GDB. I have also attached the output when i do run it through the GDB debugger. Make your pick. ;-)
I'm using Lazarus r22462 with FPC 2.3.1 (latest fixes_2.4 revision) under Linux 64-bit Ubuntu. Lazarus IDE is compiled with GTK2 widgetset.
-----------------------------------
$ ./lazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned [WARNING] Out of unassigned VK codes, assigning $FF TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/graemeg/.config/lazarus/" SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Access violation
Stack trace:
$00000000007072DC line 411 of ../inc/objpas.inc
$00007F82E0BAC20A
[TMainIDE.Destroy] A
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
[TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END
[TGtkWidgetSet.Destroy] WARNING: There are 2 unreleased DCs, a detailed dump follows:
[TGtkWidgetSet.Destroy] DCs: 00007F82D9773E40 00007F82D97733C0 [TGtkWidgetSet.Destroy] WARNING: There are 25 unreleased GDIObjects, a detailed dump follows:
[TGtkWidgetSet.Destroy] GDIOs: 00007F82D9251840 00007F82D9251E40 00007F82D922B440 00007F82D9256CC0 00007F82D92517C0 00007F82D9251D40 00007F82D9248840
[TGtkWidgetSet.Destroy] gdiBitmap: 22
[TGtkWidgetSet.Destroy] gdiBrush: 1
[TGtkWidgetSet.Destroy] gdiFont: 1
[TGtkWidgetSet.Destroy] gdiPen: 1
lazarus(work) $
-----------------------------------
Regards,
- Graeme -
