IDE crashes on opening a specific file - seems synedit related
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
When I open a specific file from the fpGUI project the IDE crashes. No matter how I open the file (File menu, double click on file in package window etc) the IDE always crashes - which it didn't do before.
From the backtrace it seems related to the synedit syntax highlighting code - I think.
I'm using Lazarus 1.1 r41676 FPC 2.6.3 x86_64-freebsd-gtk 2
The fpGUI file in question is the fpg_constants.pas file (attached). This unit mainly contains the resource constants for translation support. I didn't attach all the *.inc files that the fpg_constants.pas refers to.
------------------[ backtrace ]----------------------------
$ ./lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/graemeg/.lazarus"
SecondaryConfigPath="/etc/lazarus"
******** Highlighter.NeedScan ************
################# NodeStateForPeer: NodeType <> APeerType
1 Line=1 ScannedTo=49 Cnt=0 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
2 Line=51 ScannedTo=2 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=1 D-Close=0
# 34576669568 x1-x2= 1 - 18 idnIfdef idnDisabled flg=[idnStateByUser] >>p1: - >>p2: 54/ 1 (34576668672)
3 Line=54 ScannedTo=2 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=1
# 34576668672 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: 51/ 1 (34576669568) >>p2: 57/ 1 (34576669952)
4 Line=57 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576669952 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: 54/ 1 (34576668672) >>p2: -
5 Line=60 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576668800 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
6 Line=63 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576666496 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
7 Line=66 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576667008 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
8 Line=69 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576669824 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
9 Line=72 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid, idlNotInCodeToUnknown, idlNotInCodeToUnknownReq] D-Open=0 D-Close=0
# 34576666752 x1-x2= 1 - 8 idnElse idnEnabled flg=[idnStateByUser] >>p1: - >>p2: -
TApplication.HandleException NodeStateForPeer: NodeType <> APeerType (syneditmarkupifdef.pp, line 1199)
Stack trace:
$0000000000FBD6E2 line 1055 of syneditmarkupifdef.pp
$0000000000FC1040 line 1915 of syneditmarkupifdef.pp
$0000000000FC59E8 line 2659 of syneditmarkupifdef.pp
$0000000000FC5143 line 2760 of syneditmarkupifdef.pp
$0000000000FC763E line 3059 of syneditmarkupifdef.pp
$000000000070EB35 line 163 of lazmethodlist.pas
$0000000000FC7123 line 2993 of syneditmarkupifdef.pp
$0000000000FCAE5A line 3825 of syneditmarkupifdef.pp
$0000000000EAB866 line 510 of syneditmarkup.pp
$0000000000BF66E8 line 8022 of sourceeditor.pp
$000000000085D8AF line 274 of include/customnotebook.inc
$000000000085E397 line 553 of include/customnotebook.inc
$0000000000BF00B6 line 6394 of sourceeditor.pp
$0000000000BF1D9D line 6820 of sourceeditor.pp
$0000000000BF1F0C line 6841 of sourceeditor.pp
$0000000000D9C131 line 4034 of sourcefilemanager.pas
$0000000000D8F1F8 line 1633 of sourcefilemanager.pas
################# NodeStateForPeer: NodeType <> APeerType
1 Line=1 ScannedTo=49 Cnt=0 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
2 Line=51 ScannedTo=2 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=1 D-Close=0
# 34576669568 x1-x2= 1 - 18 idnIfdef idnDisabled flg=[idnStateByUser] >>p1: - >>p2: 54/ 1 (34576668672)
3 Line=54 ScannedTo=2 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=1
# 34576668672 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: 51/ 1 (34576669568) >>p2: 57/ 1 (34576669952)
4 Line=57 ScannedTo=2 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576669952 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: 54/ 1 (34576668672) >>p2: 60/ 1 (34576668800)
5 Line=60 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576668800 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: 57/ 1 (34576669952) >>p2: -
6 Line=63 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576666496 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
7 Line=66 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576667008 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
8 Line=69 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid] D-Open=0 D-Close=0
# 34576669824 x1-x2= 1 - 22 idnElseIf idnInvalid flg=[idnStateByUser] >>p1: - >>p2: -
9 Line=72 ScannedTo=0 Cnt=1 EndLine=0 Flags=[idlValid, idlNotInCodeToUnknown, idlNotInCodeToUnknownReq] D-Open=0 D-Close=0
# 34576666752 x1-x2= 1 - 8 idnElse idnEnabled flg=[idnStateByUser] >>p1: - >>p2: -
TApplication.HandleException: there was another exception during showing the first exception
Stack trace:
$0000000000FBD6E2 line 1055 of syneditmarkupifdef.pp
$0000000000FC1040 line 1915 of syneditmarkupifdef.pp
$0000000000FC59E8 line 2659 of syneditmarkupifdef.pp
$0000000000FC5143 line 2760 of syneditmarkupifdef.pp
$0000000000FC763E line 3059 of syneditmarkupifdef.pp
$0000000000FC9CBD line 3650 of syneditmarkupifdef.pp
$0000000000FC9D70 line 3661 of syneditmarkupifdef.pp
$0000000000FC9DE8 line 3666 of syneditmarkupifdef.pp
$0000000000EAA5AE line 306 of syneditmarkup.pp
$0000000000EAC94D line 665 of syneditmarkup.pp
$0000000000E74D8C line 7460 of synedit.pp
$0000000000E72F29 line 6967 of synedit.pp
$000000000070EB35 line 163 of lazmethodlist.pas
$0000000000EFF2DA line 498 of syngutterbase.pp
$0000000000EFF3AC line 515 of syngutterbase.pp
$0000000000EFE99D line 309 of syngutterbase.pp
$0000000000E6512A line 4568 of synedit.pp
[TMainIDE.Destroy] A
----------------------[ end ]------------------------------
Mantis conversion info:
- Mantis ID: 24581
- OS: FreeBSD
- OS Build: 9.1
- Build: r41676
- Platform: x86_64
- Version: 1.1 (SVN)
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 41677 (#c1b253f6)
- Target version: 1.2.0
- LazTarget: 1.2