View Issue Details

IDProjectCategoryView StatusLast Update
0035583LazarusLCLpublic2019-05-17 10:22
ReporterhdrzAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx64OSwin10 homeOS Version1809
Product Version2.0Product BuildSVN REV 60307 
Target VersionFixed in Version 
Summary0035583: TTIGRID crashes on boolean properties
DescriptionUsing the TTIGrid example provided by lazarus, and adding a boolean property to the object, the grid crashes with SIGSEGV.
It should render a checkbox if I'm not mistaken.
Steps To ReproduceOpen RTTI example project 'exampleprojectgrid1', Add a boolean property to the object and run.

--- removed the copy/pasted code by Juha. ---
Additional InformationThe SIGSEGV is raised by the function 'TPropertyEditorHook.GetHandlerCount' in the file 'propedits.pp', specifically on line 7291 which reads: 'if FHandlers[HookType]<>nil then'. The array 'FHandlers' seems not to be in context for some reason...
TagsNo tags attached.
Fixed in Revision
LazTarget-
WidgetsetWin32/Win64
Attached Files

Activities

Juha Manninen

2019-05-14 19:46

developer   ~0116197

Could you please upload a compressed demo app instead of copying code to "Steps To Reproduce" field.

hdrz

2019-05-15 06:51

reporter   ~0116201

The sample project is attached here

examplesprojectgrid1.zip (2,559 bytes)

Juha Manninen

2019-05-17 10:22

developer   ~0116232

Yes I can reproduce.
The crash happens when changing LookupRoot for the properties. It is called before TForm1.Form1Create of the app.
Somehow the Boolean prop still messes it up. Interesting ...
You can also try to debug what is going on.

Issue History

Date Modified Username Field Change
2019-05-14 14:26 hdrz New Issue
2019-05-14 19:46 Juha Manninen Note Added: 0116197
2019-05-15 06:51 hdrz File Added: examplesprojectgrid1.zip
2019-05-15 06:51 hdrz Note Added: 0116201
2019-05-17 10:09 Juha Manninen Steps to Reproduce Updated View Revisions
2019-05-17 10:09 Juha Manninen LazTarget => -
2019-05-17 10:09 Juha Manninen Widgetset Win32/Win64 => Win32/Win64
2019-05-17 10:22 Juha Manninen Note Added: 0116232