Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-03

Object inspector bug - exception

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hello,
Can you reproduce this? In Lazarus, execute this key sequence: F11, Ctrl+Tab, Tab, o, n, k
Then this exception is raised:
[Window Title]
Lazarus IDE v1.9.0 - project1

[Content]
List index (-1) out of bounds.

Press OK to ignore and risk data corruption.
Press Abort to kill the program.

[OK] [Abort]
Version doesn't matter, I believe this exists for a very long time, although I have fairly fresh version, several days old.

Reply by email

Torsten Bonde Christiansen
to Lubos Pintes
Lubos Pintes wrote 17 lines
Hello, Can you reproduce this? In Lazarus, execute this key sequence: F11, Ctrl+Tab, Tab, o, n, k Then this exception is raised: [Window Title] Lazarus IDE v1.9.0 - project1 [Content] List index (-1) out of bounds. Press OK to ignore and risk data corruption. Press Abort to kill the program. [OK] [Abort] Version doesn't matter, I believe this exists for a very long time, although I have fairly fresh version, several days old.

I can reproduce here:
Lazarus 1.9.0 r57449M FPC 3.0.0 x86_64-linux-gtk2

I already get the A/V on pressing the "n" key.

Regards,
Torsten.

Reply by email

Bart
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 10 lines
> Can you reproduce this? In Lazarus, execute this key sequence: > F11, Ctrl+Tab, Tab, o, n, k > Then this exception is raised: > List index (-1) out of bounds. > I can reproduce here: Lazarus 1.9.0 r57449M FPC 3.0.0 x86_64-linux-gtk2 I already get the A/V on pressing the "n" key.

I get it on "o" already.

TApplication.HandleException List index (-1) out of bounds Stack trace:
$0048587F
$006F5663 FINDPROPERTYBYSEARCHTEXT, line 2526 of objectinspector.pp $006F5584 HANDLEUNSHIFTED, line 1492 of objectinspector.pp $006F51E8 TOICUSTOMPROPERTYGRID__HANDLESTANDARDKEYS, line 2590 of objectinspector.pp
$006FE4D8 TOBJECTINSPECTORDLG__KEYDOWN, line 5562 of objectinspector.pp $005532C5 TWINCONTROL__KEYDOWNBEFOREINTERFACE, line 5679 of ./include/wincontrol.inc
$00553520 TWINCONTROL__DOKEYDOWNBEFOREINTERFACE, line 5810 of ./include/wincontrol.inc
$00553485 TWINCONTROL__DOKEYDOWNBEFOREINTERFACE, line 5791 of ./include/wincontrol.inc
$00555987 TWINCONTROL__CNKEYDOWN, line 7183 of ./include/wincontrol.inc $0040F4D8
$00552BF1 TWINCONTROL__WNDPROC, line 5406 of ./include/wincontrol.inc $00601B39 DELIVERMESSAGE, line 112 of lclmessageglue.pas $0053AD1B TWINDOWPROCHELPER__DOWINDOWPROC, line 2534 of ./win32/win32callback.inc
$0053B39B WINDOWPROC, line 2696 of ./win32/win32callback.inc $7563E0BB
$75648849
$7564B145
LAZARUS END - cleaning up ...
Hint: (lazarus) [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE

Bart

Reply by email

Rik van Kekem
to Bart

Op 06-03-2018 12:24 schreef Bart via Lazarus:

Show quoted text 9 lines
On Tue, Mar 6, 2018 at 11:22 AM, Torsten Bonde Christiansen via Lazarus wrote: >> Can you reproduce this? In Lazarus, execute this key sequence: >> F11, Ctrl+Tab, Tab, o, n, k >> Then this exception is raised: >> List index (-1) out of bounds. >>

On Windows Lazarus 1.9 trunk too.
You can shorten it to:
- in a new project click on filter in the object inspector
- press tab
- press o
- wait 1 second
*) List index (-1) out of bounds.

It's only a problem if you press Tab in the filter-edit and then press any key.

Rik

Reply by email

Bart
to Rik van Kekem
Rik van Kekem wrote 10 lines
On Windows Lazarus 1.9 trunk too. You can shorten it to: - in a new project click on filter in the object inspector - press tab - press o - wait 1 second *) List index (-1) out of bounds. It's only a problem if you press Tab in the filter-edit and then press any key.

Can someone file a bugreport please.
I am unable to do so ATM.

Bart

Reply by email

Rik van Kekem
to Rik van Kekem
Rik van Kekem wrote 5 lines
> Can someone file a bugreport please. > I am unable to do so ATM. Done. https://bugs.freepascal.org/view.php?id=33344

The exception is fixed in trunk.

But I was under the impression that using TAB in the Component-filter in Object Inspector would set the focus on the TreeView with the components. It doesn't. I never use it but apparently it sets the focus directly on the Property view.

Is this the proper behavior (it was always this way) or is it supposed to go to the treeview?

Again, I never use the keyboard there so maybe it's supposed to be that way. In Delphi you can "Tab" into the Component Treeview but it hasn't a Component-filter-edit.

Rik

Reply by email

Juha Manninen
to Rik van Kekem
Rik van Kekem wrote
But I was under the impression that using TAB in the Component-filter in Object Inspector would set the focus on the TreeView with the components. It doesn't. I never use it but apparently it sets the focus directly on the Property view.

The key handling in OI is a little complicated. Now the TAB is also handled in TObjectInspectorDlg.KeyDown().
I added commens etc. in r57490. Please debug and experiment with the code. Maybe you can fix it.

Juha

Reply by email