Regression, Can not start Lazarus build with rangechecks: System/Screen-Font has wrong value for quality
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
This happens under Windows (at least Vista), if your Screen-font uses Quality="clear type"
It happens for TQuestionDlg, but I believe I have seen it for various hint-painting too.
So any lazarus build with range-checks will crash either at start-up, or very shortly after.
I haven't got clear instructions yet how to reproduce.
One way it happens to me, if lazarus tries to display a TQuestionDlg, such as "An error occurred at last startup while loading"
- It's on Vista, and my system is using "ClearType font"
- I GUESS it is related to revision 20285 / but it probably was there
before, just never happened
#0 HANDLEERRORADDRFRAME(136051660, 0xc9, 0x81bfbcc) at system.inc:863
#1 HANDLEERRORFRAME(201, 0xc9) at system.inc:891
#2 ?? at :0
#3 ?? at :0
#4 ?? at :0
#5 ?? at :0
#6 fpc_rangeerror at system.inc:590
#7 TFONT__REFERENCENEEDED(0xa6b1f20) at font.inc:1102
lfQuality := LF_QUALITY[FQuality];
// FQuality has a value of 5
// the Array LF_QUALITY has only 5 values (0 to 4)
#8 (closed) TFONT__GETREFERENCE(0xa6b1f20, {&LtPos;TWSGDIOBJREFERENCE> =
{&LtPos;TWSREFERENCE> = {FREF = {PTR = 0x3b6, HANDLE = 950}}, }, }) at
font.inc:1233
#9 TQUESTIONDLG__LAYOUTDIALOG(0xa6cbfe8) at promptdialog.inc:605
SelectObject(Canvas.Handle, Screen.SystemFont.Reference.Handle);
// Screen.SystemFont causes the problem
#10 TQUESTIONDLG__SHOWMODAL(0xa6cbfe8) at promptdialog.inc:669
#11 QUESTIONDLG(0xcd8980 'Open project', 0xa6b7140 'An error occured at
last startup while loading
C:\lazarus_latest\ide\lazarus.lpi!'#13#13'Load this project again?',
MTWARNING, 0x81bfcf4, 0, 3) at promptdialog.inc:879
#12 ASKIFLOADLASTFAILINGPROJECT(0x81bfebc) at main.pp:1928
#13 TMAINIDE__SETUPSTARTPROJECT(0x99852a8) at main.pp:1971
#14 TMAINIDE__STARTIDE(0x99852a8) at main.pp:1250
#15 main at lazarus.pp:106
Mantis conversion info:
- Mantis ID: 14164
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 20907 (#e93e11b1)
- Target version: 0.9.28