Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

Possible Postscriptcanvas/QT Bug

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

David Copeland

I have submitted a Mantis report (number 20354). When I rebuilt an app for QT I started getting access violations after a call to TPostscriptcanvas.GettextWidth.

TApplication.HandleException Access violation
Stack trace:
$000000000068FC1E line 3198 of qt/qtobjects.pas
$00000000005A78BD line 679 of qt/qtobject.inc
$000000000051554A line 176 of include/canvas.inc
$00000000005184CA line 1542 of include/canvas.inc
$00000000006B040F line 1142 of postscriptcanvas.pas $000000000051864A line 1609 of include/canvas.inc
$00000000006B04EE line 1193 of postscriptcanvas.pas $00000000006B6761 line 2086 of postscriptcanvas.pas $000000000051895D line 1683 of include/canvas.inc
$00000000005160B0 line 489 of include/canvas.inc
$0000000000528F8E
$000000000047A10F line 51 of main.pas
$000000000047A291 line 68 of main.pas
$00000000005D9CCF line 2319 of include/control.inc $00000000006067D6 line 62 of include/buttoncontrol.inc $0000000000606ED5 line 174 of include/buttons.inc
$000000000060748D line 339 of include/buttons.inc

I was able to reproduce this in a simple test app, which I supplied with the report. Using SVN 32519, FPC 2.4.4, Linux x86_86, Suse 11.4.

Dave Copeland.

Reply by email

zeljko
to David Copeland
David Copeland wrote 28 lines
I have submitted a Mantis report (number 20354). When I rebuilt an app for QT I started getting access violations after a call to TPostscriptcanvas.GettextWidth. TApplication.HandleException Access violation Stack trace: $000000000068FC1E line 3198 of qt/qtobjects.pas $00000000005A78BD line 679 of qt/qtobject.inc $000000000051554A line 176 of include/canvas.inc $00000000005184CA line 1542 of include/canvas.inc $00000000006B040F line 1142 of postscriptcanvas.pas $000000000051864A line 1609 of include/canvas.inc $00000000006B04EE line 1193 of postscriptcanvas.pas $00000000006B6761 line 2086 of postscriptcanvas.pas $000000000051895D line 1683 of include/canvas.inc $00000000005160B0 line 489 of include/canvas.inc $0000000000528F8E $000000000047A10F line 51 of main.pas $000000000047A291 line 68 of main.pas $00000000005D9CCF line 2319 of include/control.inc $00000000006067D6 line 62 of include/buttoncontrol.inc $0000000000606ED5 line 174 of include/buttons.inc $000000000060748D line 339 of include/buttons.inc I was able to reproduce this in a simple test app, which I supplied with the report. Using SVN 32519, FPC 2.4.4, Linux x86_86, Suse 11.4.

Thanks for issue reporting. I'll give my best to fix it soon.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110927/91a74846/attachment.html>

Reply by email

zeljko
to David Copeland: I have submitted a Mantis report (number 20354). When I rebuilt an app for QT I started…
David Copeland wrote
I have submitted a Mantis report (number 20354). When I rebuilt an app for QT I started getting access violations after a call to TPostscriptcanvas.GettextWidth.

btw. your test project is corrupted, missing main.lfm, but there's pstest.lfm which I copied into main.lfm ...

z.

Show quoted text 35 lines
TApplication.HandleException Access violation Stack trace: $000000000068FC1E line 3198 of qt/qtobjects.pas $00000000005A78BD line 679 of qt/qtobject.inc $000000000051554A line 176 of include/canvas.inc $00000000005184CA line 1542 of include/canvas.inc $00000000006B040F line 1142 of postscriptcanvas.pas $000000000051864A line 1609 of include/canvas.inc $00000000006B04EE line 1193 of postscriptcanvas.pas $00000000006B6761 line 2086 of postscriptcanvas.pas $000000000051895D line 1683 of include/canvas.inc $00000000005160B0 line 489 of include/canvas.inc $0000000000528F8E $000000000047A10F line 51 of main.pas $000000000047A291 line 68 of main.pas $00000000005D9CCF line 2319 of include/control.inc $00000000006067D6 line 62 of include/buttoncontrol.inc $0000000000606ED5 line 174 of include/buttons.inc $000000000060748D line 339 of include/buttons.inc I was able to reproduce this in a simple test app, which I supplied with the report. Using SVN 32519, FPC 2.4.4, Linux x86_86, Suse 11.4. Dave Copeland. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110927/e887e03f/attachment.html>

Reply by email

Unknown author
to zeljko: btw. your test project is corrupted, missing main.lfm, but there's pstest.lfm which I…
Show quoted text 9 lines
On Monday 26 of September 2011 22:17:10 David Copeland wrote: > I have submitted a Mantis report (number 20354). When I rebuilt an app > for QT I started getting access violations after a call to > TPostscriptcanvas.GettextWidth. btw. your test project is corrupted, missing main.lfm, but there's pstest.lfm which I copied into main.lfm ...

Thanks, but strange. I know when it happened. I somehow messed up renaming the unit. Strange because I was still able to use the project.

Reply by email