View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0037561||Lazarus||Debugger||public||2020-08-13 01:16||2021-01-13 19:44|
|Reporter||Derek Callaghan||Assigned To||Martin Friebe|
|Summary||0037561: hint on array crashes lazarus|
|Description||after breakpoint, putting cursor over the name of the array causes lazarus to crash|
|Steps To Reproduce||set breakpoint at showmessage|
put cursor over the first gStats name in i := gStats[4, 0].Left + gStats[4, 0].Width + 5;
|Tags||No tags attached.|
|Fixed in Revision|
bug.zip (378,679 bytes)
It actually does not crash. It comes back after (on a fast CPU) maybe 5 minutes....
But yes that needs to be fixed.
Note this returns the entire array (aprox 70 panels). To just get one panel, you need to put the cursor to the closing "]".
You can add either
as a watch.
And that wil work.
- With the default debugger.
- Using fpdebug will be slow on that too, even in watches (also needs fixing)
Note to myself:
function TCodeHelpManager.TextToHTML(Txt: string): string;
with an input string over 100Kb leads to too many string operations. (copy, expand, shrink....)
closing ] does not work for me, but period does.
I get different errors but should document one.
get "unable to load html stream" "url error access violation"
then "debugger experience and unknown condition"
I abort the latter, the former has changed to an access violation, I abort that and lazarus ends.
edit: It takes about 5 seconds for this to fail in my case.
Ok, the mouse can hover over the left or right half of a char.
The right of "[" and the left of "." should display the entire Panel.
The right of "." will only show the value for "Left"
Note-able, displaying the panel gives an unformatted plain-text hint. That is a different bug.
I could not get the "unable to load html stream".
However I can see how it would lead to the "oops debugger" error, and that can be prevented.
Then the hint would not show, but the debug session will survive.
For the "unable to load html stream" more info is needed.
Actually, it looks like the "unable to load html stream". happens when the date is too big
||See issue 0037574 for the "unable to load html stream" error|
There is still a part of this open. But I added a new bug report for it. (Likely to be fixed by someone else)
The speed issue is solved in https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=63741
The "Opps debugger" https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&root=lazarus&revision=63742
However, the remaining issue 0037574 still leaves this unusable. Hovering over gstats can cause the IDE to crash/exit immediately. It can also display an error, but then the IDE would be unstable, could report wrong values, and crash at any time later.
So this issue is basically transferred to 0037574
Patch for workaround-ish to prevent the crash: https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/turbopower_ipro/iphtml.pas?root=lazarus&r1=63746&r2=63745&pathrev=63746
Ensure to build the IDE without -gh / without Heaptrc => otherwise there is still some code that will be slow
|2020-08-13 01:16||Derek Callaghan||New Issue|
|2020-08-13 01:16||Derek Callaghan||Status||new => assigned|
|2020-08-13 01:16||Derek Callaghan||Assigned To||=> Martin Friebe|
|2020-08-13 01:16||Derek Callaghan||File Added: bug.zip|
|2020-08-13 18:09||Martin Friebe||Note Added: 0124849|
|2020-08-14 07:14||Derek Callaghan||Note Added: 0124863|
|2020-08-15 01:21||Derek Callaghan||Note Edited: 0124863||View Revisions|
|2020-08-15 03:56||Martin Friebe||Note Added: 0124888|
|2020-08-15 03:57||Martin Friebe||Note Edited: 0124888||View Revisions|
|2020-08-15 04:15||Martin Friebe||Note Added: 0124889|
|2020-08-15 04:40||Martin Friebe||Status||assigned => resolved|
|2020-08-15 04:40||Martin Friebe||Resolution||open => fixed|
|2020-08-15 04:40||Martin Friebe||LazTarget||=> -|
|2020-08-15 04:40||Martin Friebe||Note Added: 0124890|
|2020-08-15 13:56||Juha Manninen||Relationship added||related to 0037574|
|2020-08-15 15:19||Martin Friebe||Relationship added||related to 0037575|
|2020-08-15 15:23||Martin Friebe||Note Added: 0124902|
|2021-01-13 19:44||Martin Friebe||Relationship added||related to 0038311|