Openning .po file from Search Results causes crash
Original Reporter info from Mantis: skalogryyz
-
Reporter name: Dmitry Boyarintsev
Original Reporter info from Mantis: skalogryyz
- Reporter name: Dmitry Boyarintsev
Description:
Start IDE
open Search in file dialog
enter search string "msgid" (it present in all .po files)
set the directory lazarus\languages
set file mask .po
Search. Once some files are found stop the search.
Go to Search Result window and double click on any .po file (with UTF-8 characters preferably).
Opening it causes the crash.
Opening .po file from File->Open dialog doesn't cause any problems.
(tested on Trunk Carbon)
Additional information:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x005909d5 in TEDITOROPTIONS__SETMARKUPCOLOR (SYN=0x0, ADDHILIGHTATTR=AHAERRORLINE, AMARKUP=0x1ec9ff60, this=0x876d290) at editoroptions.pp:4063
4063 SynColorScheme := ReadColorScheme(Syn.LanguageName);
(gdb) backtrace
#0 0x005909d5 in TEDITOROPTIONS__SETMARKUPCOLOR (SYN=0x0, ADDHILIGHTATTR=AHAERRORLINE, AMARKUP=0x1ec9ff60, this=0x876d290) at editoroptions.pp:4063
#1 0x00562450 in TSOURCEEDITOR__ONEDITORSPECIALLINECOLOR (SENDER=0x8751bd0, LINE=11533, SPECIAL=true, MARKUP=0x1ec9ff60, this=0x86e53a0) at sourceeditor.pp:3591
#2 0x00429a71 in TSYNEDITMARKUPSPECIALLINE__PREPAREMARKUPFORROW (AROW=11533, this=0x1ec95f90) at syneditmarkupspecialline.pp:144
#3 0x00419cd7 in TSYNEDITMARKUPMANAGER__PREPAREMARKUPFORROW (AROW=11533, this=0x1ec9fba0) at syneditmarkup.pp:471
#4 0x0040000c in PAINTLINES (parentfp=0xbfffd3b8) at synedit.pp:3653
#5 0x003ffd5f in SYNEDIT_TCUSTOMSYNEDIT_$__PAINTTEXTLINES$TRECT$LONGINT$LONGINT$LONGINT$LONGINT ()
#6 0x003ff89a in TCUSTOMSYNEDIT__PAINT (this=0x8751bd0) at synedit.pp:2955
#7 0x001ba367 in TCUSTOMCONTROL__PAINTWINDOW (DC=522702336, this=0x8751bd0) at ./include/customcontrol.inc:133
#8 0x001a73a6 in TWINCONTROL__PAINTHANDLER (THEMESSAGE={MSG = 15, DC = 522702336, PAINTSTRUCT = 0x1f27ce50, RESULT = 0}, this=0x8751bd0) at ./include/wincontrol.inc:4648
#9 0x001aacbe in TWINCONTROL__WMPAINT (MSG={MSG = 15, DC = 522702336, PAINTSTRUCT = 0x1f27ce50, RESULT = 0}, this=0x8751bd0) at ./include/wincontrol.inc:6484
#10 0x001ba2b2 in TCUSTOMCONTROL__WMPAINT (MESSAGE={MSG = 15, DC = 522702336, PAINTSTRUCT = 0x1f27ce50, RESULT = 0}, this=0x8751bd0) at ./include/customcontrol.inc:113
#11 0x0002079a in SYSTEM_TOBJECT_$__DISPATCH$formal ()
#12 0x001a85a0 in TWINCONTROL__WNDPROC (MESSAGE={MSG = 15, WPARAM = 522702336, LPARAM = 522702416, RESULT = 0, WPARAMLO = 52736, WPARAMHI = 7975, LPARAMLO = 52816, LPARAMHI = 7975, RESULTLO = 0, RESULTHI = 0}, this=0x8751bd0) at ./include/wincontrol.inc:5179
#13 0x0040654e in TCUSTOMSYNEDIT__WNDPROC (MSG={MSG = 15, WPARAM = 522702336, LPARAM = 522702416, RESULT = 0, WPARAMLO = 52736, WPARAMHI = 7975, LPARAMLO = 52816, LPARAMHI = 7975, RESULTLO = 0, RESULTHI = 0}, this=0x8751bd0)
#14 0x002196f9 in DELIVERMESSAGE (TARGET=0x8751bd0, AMESSAGE=void) at lclmessageglue.pas:112
#15 0x00219ecc in LCLSENDPAINTMSG (TARGET=0x8751bd0, DC=522702336, PAINTSTRUCT=0x1f27ce50) at lclmessageglue.pas:827
Mantis conversion info:
- Mantis ID: 16796
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 26304 (#8a4ade1c)
- Target version: 0.9.30