On Mon, 8 May 2017, Juha Manninen via Lazarus wrote:

Can you please create a proper backtrace with gdb using the latest
Lazarus trunk.
It shows also function names and parameter values etc.

I was actually able to reproduce the access violation once but not
more however much I tried.

The stack trace I posted earlier for this issue will have to do.

It's simply *impossible* to debug lazarus using GDB.

I get exceptions from the code tools *ALL THE TIME* because it is timer
triggered. because of this, the working process becomes simply impossible.

And so, every *$รงยง1@#!!! stacktrace looks like this:

#1  0x0000000000c4dcf0 in RAISEEXCEPTIONINSTANCE (this=0x7fffdbad3390, 
THEEXCEPTION=0x7fffdb508a40, CLEARNICEPOS=true) at customcodetool.pas:2439
#2  0x0000000000c4dd67 in RAISEEXCEPTIONCLASS (this=0x7fffdbad3390, 
ID=20170421200105, AMESSAGE=0x7fffe0128698 'identifier not found: Name',
    EXCEPTIONCLASS=0x2225010, CLEARNICEPOS=true) at customcodetool.pas:2450
#3  0x0000000000c47dc0 in RAISEEXCEPTION (this=0x7fffdbad3390, 
ID=20170421200105, AMESSAGE=0x7fffe0128698 'identifier not found: Name', 
CLEARNICEPOS=true)
    at customcodetool.pas:399
#4  0x0000000000c47e62 in RAISEEXCEPTIONFMT (this=0x7fffdbad3390, 
ID=20170421200105, AMESSAGE=0x1a6e038 'identifier not found: %s', ARGS=..., 
highARGS=0,
    CLEARNICEPOS=true) at customcodetool.pas:405
#5  0x0000000000861726 in RAISENOTFOUND (parentfp=0x7fffffffcf50) at 
finddeclarationtool.pas:4071
#6  0x000000000086159e in CHECKRESULT (parentfp=0x7fffffffcfe0, 
NEWRESULT=false, CALLONIDENTIFIERFOUND=false) at finddeclarationtool.pas:4177
#7  0x000000000085fd3d in FINDIDENTIFIERINCONTEXT (this=0x7fffdbad3390, 
PARAMS=0x7fffe927b4e0, IDENTFOUNDRESULT=(unknown: 3685561232))
    at finddeclarationtool.pas:4998
#8  0x0000000000867d05 in FINDIDENTIFIERINCONTEXT (this=0x7fffdbad3390, 
PARAMS=0x7fffe927b4e0) at finddeclarationtool.pas:7163
#9  0x00000000008595f7 in FINDDECLARATION (this=0x7fffdbad3390, CURSORPOS=..., 
SEARCHSMARTFLAGS=4, NEWEXPRTYPE=..., NEWPOS=..., NEWTOPLINE=-610849184)
    at finddeclarationtool.pas:2409
#10 0x0000000000859f54 in FINDDECLARATION (this=0x7fffdbad3390, CURSORPOS=..., 
SEARCHSMARTFLAGS=4, NEWTOOL=0x7fffdbad3390, NEWNODE=0x7fffdb972e60,
    NEWPOS=..., NEWTOPLINE=-610849184) at finddeclarationtool.pas:2468
#11 0x00000000009b6c13 in GETHTMLHINTFOREXPR (this=0x7fffe9787540, 
CTEXPRTYPE=..., XYPOS=..., OPTIONS=0, BASEURL=0x1a98e20 'lazdoc://', 
HTMLHINT=0x0,
    CACHEWASUSED=false) at codehelp.pas:2601
#12 0x00000000009b6267 in GETHTMLHINT (this=0x7fffe9787540, 
CODE=0x7fffe82367e0, X=14, Y=1872, OPTIONS=0, BASEURL=0x1a98e20 'lazdoc://', 
HTMLHINT=0x0,
    PROPDETAILS=0x0, CACHEWASUSED=false) at codehelp.pas:2469
#13 0x00000000004d96a6 in OICHANGEDTIMERTIMER (this=0x7ffff7f99550, 
SENDER=0x7fffe80448c0) at main.pp:12191
#14 0x0000000000752b94 in DOONTIMER (this=0x7fffe80448c0) at customtimer.pas:175
#15 0x0000000000752ae5 in TIMER (this=0x7fffe80448c0) at customtimer.pas:150

This error is obviously bogus, since the compiler processes the program fine.

So the original stack trace which I posted should suffice to diagnose the
problem:

ObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
TObjectInspectorDlg.FillPersistentComboBox: Updating ComboBox with components
Hint: (lazarus) TMainIDE.DesignerRenameComponent Old=MenuItem37:TMenuItem 
New=MIResize Owner=FPReportDesignerForm:TFPReportDesignerForm
WARNING: TShadowItem.Destroy with LCLRefCount>0. Hint: Maybe the component is 
processing an event?
TApplication.HandleException Access violation
   Stack trace:
   $0000000000000000
   $00000000009FD49D line 1617 of ../designer/menueditor.pp
   $0000000000A02673 line 2590 of ../designer/menueditor.pp
   $00000000005B29F8 line 2242 of include/control.inc
   $00000000005B2E61 line 2375 of include/control.inc
   $0000000000436562 line 602 of ../inc/objpas.inc
   $00000000005B28FD line 2202 of include/control.inc
   $00000000005A580C line 5396 of include/wincontrol.inc
   $00000000007722AC line 112 of lclmessageglue.pas
   $000000000066C191 line 3702 of gtk2/gtk2proc.inc
   $000000000067AEC6 line 2137 of gtk2/gtk2callback.inc
   $000000000067A5C8 line 1899 of gtk2/gtk2callback.inc
   $00007F04FDB6EAFC


The 2 following lines should tell you everything you need, IMHO:
   $00000000009FD49D line 1617 of ../designer/menueditor.pp
   $0000000000A02673 line 2590 of ../designer/menueditor.pp

The GDB stack trace will give you little more useful information.

Michael.
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to