[Lazarus] Res leaks on exiting gtk2 app

Michael Van Canneyt michael at freepascal.org
Wed Jun 14 11:42:41 CEST 2017



On Wed, 14 Jun 2017, Mattias Gaertner via Lazarus wrote:

> On Wed, 14 Jun 2017 12:02:34 +0300
> Alexey via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> CudaText app, gtk2 WS. I run it from terminal, it loads dir to Treeview 
>> [only top level of /usr], i exit.
>
> Why do you think this is a bug in the LCL, and not in cudatext?

Well, seeing it is GTK2, for example I consistently get this when exiting the IDE:

TApplication.HandleException Access violation
   Stack trace:
   $0000000000000000
   $000000000062406E line 69 of include/toolbutton.inc
   $0000000000623FF6 line 116 of include/toolbutton.inc
   $00000000005B3468 line 2278 of include/control.inc
   $00000000005B38F1 line 2416 of include/control.inc
   $00000000004369E2 line 602 of ../inc/objpas.inc
   $00000000005B336D line 2238 of include/control.inc
   $00000000005B19F6 line 1560 of include/control.inc
   $00000000005A486C line 4734 of include/wincontrol.inc
   $00000000005A5EA1 line 5361 of include/wincontrol.inc
   $000000000077341C line 112 of lclmessageglue.pas
   $000000000066D0A1 line 3702 of gtk2/gtk2proc.inc
   $000000000067BDE9 line 2141 of gtk2/gtk2callback.inc
   $000000000067B4D8 line 1899 of gtk2/gtk2callback.inc
   $00007F74A6B9BAFC
Exception at 0000000000000000: EAccessViolation:
Access violation.

(lazarus:12951): GLib-GObject-CRITICAL **: g_object_get_data: assertion 'G_IS_OBJECT (object)' failed
TApplication.HandleException Access violation
   Stack trace:
   $00000000004368BC line 539 of ../inc/objpas.inc
   $00000000004359E6 line 42 of ../inc/objpas.inc
   $000000000067B3F5 line 1767 of gtk2/gtk2callback.inc
   $000000000067B53E line 1914 of gtk2/gtk2callback.inc
   $00007F74A6B9BAFC
Exception at 00000000004368BC: EAccessViolation:
Access violation.
LAZARUS END - cleaning up ...
[FORMS.PP] ExceptionOccurred
   Sender=EAccessViolation
   Exception=Access violation
   Stack trace:
   $00007F74A6837820
TApplication.HandleException Access violation
   Stack trace:
   $00007F74A6837820
Exception at 00007F74A6837820: EAccessViolation:
Access violation.




More information about the Lazarus mailing list