View Issue Details

IDProjectCategoryView StatusLast Update
0034462LazarusIDEpublic2018-10-27 12:36
ReporterValdas JankūnasAssigned ToJuha Manninen 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinux 64 bitOSKubuntu 18.04.1 LTSOS Version
Product Version2.1 (SVN)Product Build59352 
Target VersionFixed in Version 
Summary0034462: Exception and access violation when adding include files and updating includes search path
DescriptionHow I get that error:
 - prepare INC file;
 - create a New project;
 - in Object Inspector: Add -> Files from file system..;
 - in File dialog choose INC file;
 - "add dir to include search path" dialog appears -> click YES;
 - exception "TCheckListBox Index 0 out of bounds 0 .. -1." pops -> click Abort -> "Access violation" occurs;

 If I choose not to update include files search path then all went without errors.

Additional InformationAttached log of Lazarus (Lazarus compiled with Debug option).
Attached test files.
TagsNo tags attached.
Fixed in Revisionr59357
LazTarget-
Widgetset
Attached Files
  • log.txt (3,179 bytes)
    Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 FPC=True LCL=False
    [TCustomSynEdit.CommandProcessor] 511 AChar=C Data=0000000000000000
    [WARNING] SetImageList called without handle for lbMacroView(TListView)
    [WARNING] SetImageList called without handle for lbMacroView(TListView)
    [WARNING] SetImageList called without handle for lbMacroView(TListView)
    TApplication.HandleException: Exception
    TCheckListBox Index 0 out of bounds 0 .. -1
      Stack trace:
      $00000000006716DB  RAISEINDEXOUTOFBOUNDS,  line 202 of include/customlistbox.inc
      $000000000067320D  CHECKINDEX,  line 624 of include/customlistbox.inc
      $0000000000680328  GETSTATE,  line 281 of checklst.pas
      $0000000000680188  GETCHECKED,  line 258 of checklst.pas
      $0000000000AAB7C7  ISSELECTED,  line 890 of buildmodesmanager.pas
      $0000000000AA8676  ADDPATHTOBUILDMODES,  line 236 of buildmodesmanager.pas
      $0000000000AA9474  CHECKDIRISINSEARCHPATH,  line 419 of buildmodesmanager.pas
      $00000000004EE491  PROJINSPECTORADDUNITTOPROJECT,  line 12372 of main.pp
      $0000000000AD9A8C  ADDONEFILE,  line 461 of projectinspector.pas
      $0000000000AD951B  MNUADDBITBTNCLICK,  line 366 of projectinspector.pas
      $000000000065A0E1  CLICK,  line 83 of include/menuitem.inc
      $000000000065AC7F  DOCLICKED,  line 293 of include/menuitem.inc
      $00000000004380B8  DISPATCH,  line 684 of ../inc/objpas.inc
      $000000000083F9E0  DELIVERMESSAGE,  line 114 of lclmessageglue.pas
      $0000000000709A0B  DELIVERMESSAGE,  line 3780 of gtk2/gtk2proc.inc
      $00000000008D4AE0  GTK2MENUITEMACTIVATE,  line 139 of gtk2/gtk2wsmenus.pp
      $00007F999E90910D
    WARNING: TMenuItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
    WARNING: TToolBar.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
    [TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation
      Stack trace:
      $0000000000B3B3FD  SETCUSTOMFORM,  line 1167 of ../designer/controlselection.pp
      $0000000000B3EFA1  DELETE,  line 2293 of ../designer/controlselection.pp
      $0000000000B3EEC8  REMOVE,  line 2274 of ../designer/controlselection.pp
      $0000000000B3C3BB  NOTIFICATION,  line 1455 of ../designer/controlselection.pp
      $0000000000554DFE  DESTROY,  line 482 of ../objpas/classes/compon.inc
      $000000000075283C  DESTROY,  line 134 of lclclasses.pp
      $0000000000607D59  DESTROY,  line 5125 of include/control.inc
      $00000000005EFCCF  DESTROY,  line 6658 of include/wincontrol.inc
      $000000000060B10B  DESTROY,  line 40 of include/customcontrol.inc
      $00000000004924EB  DESTROY,  line 316 of include/scrollingwincontrol.inc
      $0000000000494581  DESTROY,  line 212 of include/customform.inc
      $000000000043779E  FREE,  line 336 of ../inc/objpas.inc
      $0000000000B0D6D9  DESTROYJITCOMPONENT,  line 777 of ../designer/jitforms.pp
      $0000000000B0D3DB  DESTROY,  line 728 of ../designer/jitforms.pp
      $000000000043779E  FREE,  line 336 of ../inc/objpas.inc
      $000000000048457C  FREEANDNIL,  line 160 of ../objpas/sysutils/sysutils.inc
      $0000000000B2FD43  DESTROY,  line 526 of customformeditor.pp
    TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil
    
    log.txt (3,179 bytes)
  • test_files.zip (456 bytes)

Activities

Valdas Jankūnas

2018-10-26 12:05

reporter  

log.txt (3,179 bytes)
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 FPC=True LCL=False
[TCustomSynEdit.CommandProcessor] 511 AChar=C Data=0000000000000000
[WARNING] SetImageList called without handle for lbMacroView(TListView)
[WARNING] SetImageList called without handle for lbMacroView(TListView)
[WARNING] SetImageList called without handle for lbMacroView(TListView)
TApplication.HandleException: Exception
TCheckListBox Index 0 out of bounds 0 .. -1
  Stack trace:
  $00000000006716DB  RAISEINDEXOUTOFBOUNDS,  line 202 of include/customlistbox.inc
  $000000000067320D  CHECKINDEX,  line 624 of include/customlistbox.inc
  $0000000000680328  GETSTATE,  line 281 of checklst.pas
  $0000000000680188  GETCHECKED,  line 258 of checklst.pas
  $0000000000AAB7C7  ISSELECTED,  line 890 of buildmodesmanager.pas
  $0000000000AA8676  ADDPATHTOBUILDMODES,  line 236 of buildmodesmanager.pas
  $0000000000AA9474  CHECKDIRISINSEARCHPATH,  line 419 of buildmodesmanager.pas
  $00000000004EE491  PROJINSPECTORADDUNITTOPROJECT,  line 12372 of main.pp
  $0000000000AD9A8C  ADDONEFILE,  line 461 of projectinspector.pas
  $0000000000AD951B  MNUADDBITBTNCLICK,  line 366 of projectinspector.pas
  $000000000065A0E1  CLICK,  line 83 of include/menuitem.inc
  $000000000065AC7F  DOCLICKED,  line 293 of include/menuitem.inc
  $00000000004380B8  DISPATCH,  line 684 of ../inc/objpas.inc
  $000000000083F9E0  DELIVERMESSAGE,  line 114 of lclmessageglue.pas
  $0000000000709A0B  DELIVERMESSAGE,  line 3780 of gtk2/gtk2proc.inc
  $00000000008D4AE0  GTK2MENUITEMACTIVATE,  line 139 of gtk2/gtk2wsmenus.pp
  $00007F999E90910D
WARNING: TMenuItem.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
WARNING: TToolBar.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation
  Stack trace:
  $0000000000B3B3FD  SETCUSTOMFORM,  line 1167 of ../designer/controlselection.pp
  $0000000000B3EFA1  DELETE,  line 2293 of ../designer/controlselection.pp
  $0000000000B3EEC8  REMOVE,  line 2274 of ../designer/controlselection.pp
  $0000000000B3C3BB  NOTIFICATION,  line 1455 of ../designer/controlselection.pp
  $0000000000554DFE  DESTROY,  line 482 of ../objpas/classes/compon.inc
  $000000000075283C  DESTROY,  line 134 of lclclasses.pp
  $0000000000607D59  DESTROY,  line 5125 of include/control.inc
  $00000000005EFCCF  DESTROY,  line 6658 of include/wincontrol.inc
  $000000000060B10B  DESTROY,  line 40 of include/customcontrol.inc
  $00000000004924EB  DESTROY,  line 316 of include/scrollingwincontrol.inc
  $0000000000494581  DESTROY,  line 212 of include/customform.inc
  $000000000043779E  FREE,  line 336 of ../inc/objpas.inc
  $0000000000B0D6D9  DESTROYJITCOMPONENT,  line 777 of ../designer/jitforms.pp
  $0000000000B0D3DB  DESTROY,  line 728 of ../designer/jitforms.pp
  $000000000043779E  FREE,  line 336 of ../inc/objpas.inc
  $000000000048457C  FREEANDNIL,  line 160 of ../objpas/sysutils/sysutils.inc
  $0000000000B2FD43  DESTROY,  line 526 of customformeditor.pp
TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil
log.txt (3,179 bytes)

Valdas Jankūnas

2018-10-26 12:05

reporter  

test_files.zip (456 bytes)

Valdas Jankūnas

2018-10-26 12:12

reporter   ~0111571

Using FPC v3.3.1 (r40023)

Juha Manninen

2018-10-26 21:26

developer   ~0111585

Yes, I forgot to test with a single build mode. Now it should work. Please test.

Issue History

Date Modified Username Field Change
2018-10-26 12:05 Valdas Jankūnas New Issue
2018-10-26 12:05 Valdas Jankūnas File Added: log.txt
2018-10-26 12:05 Valdas Jankūnas File Added: test_files.zip
2018-10-26 12:12 Valdas Jankūnas Note Added: 0111571
2018-10-26 18:55 Juha Manninen Assigned To => Juha Manninen
2018-10-26 18:55 Juha Manninen Status new => assigned
2018-10-26 21:26 Juha Manninen Fixed in Revision => r59357
2018-10-26 21:26 Juha Manninen LazTarget => -
2018-10-26 21:26 Juha Manninen Note Added: 0111585
2018-10-26 21:26 Juha Manninen Status assigned => resolved
2018-10-26 21:26 Juha Manninen Resolution open => fixed
2018-10-27 12:36 Valdas Jankūnas Status resolved => closed