Recent

Author Topic: Cannot Specify Printer4Lazarus in Project Inspector  (Read 1441 times)

Dan3468298

  • Full Member
  • ***
  • Posts: 125
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #15 on: July 07, 2020, 05:02:55 pm »
Is this considered a Bug?  If so, who wants to file the report?
It must be specific to MacOS somehow. Can you please verify that it happens only on MacOS. Does widgetset (Carbon / Cocoa) make a difference?

I only have access to MacOS Catalina so Carbon will not run on my machine.
« Last Edit: July 07, 2020, 05:30:48 pm by Dan3468298 »
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 918
  • Former Delphi 1-7, 10.2 User
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #16 on: July 08, 2020, 12:33:47 pm »
I can confirm that the issue does not occur with FreebSD 12.1, FPC 3.3.1 snapshot from June 2019 and Lazarus 2.0.6 or 2.1.0 (trunk) using the GTK2 widget set.

[EDIT]
Lazarus v2.1.0 r61574 with GTK2 widget set, FPC v3.0.4, Ubuntu 18.04 is also OK.
[/EDIT]
« Last Edit: July 09, 2020, 02:08:29 pm by trev »
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46864, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3817
  • I like bugs.
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #17 on: July 11, 2020, 09:53:52 am »
Yes I believe it is a bug as many people can reproduce it in MacOS. I wonder what makes it OS or Widgetset dependent. I don't have a Mac and cannot test myself.
Please report in bug tracker with all details.
Mostly Lazarus trunk on Manjaro Linux.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 918
  • Former Delphi 1-7, 10.2 User
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #18 on: July 11, 2020, 10:34:27 am »
Verified it did not happen with Lazarus compiled with 32 bit Carbon, but does happen with Lazarus compiled with 64 bit Cocoa (tested on macOS 10.11.6).

Bug lodged: https://bugs.freepascal.org/view.php?id=37330
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46864, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

Dan3468298

  • Full Member
  • ***
  • Posts: 125
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #19 on: July 11, 2020, 02:13:29 pm »
Trev, thank you for your good work!
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3817
  • I like bugs.
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #20 on: July 12, 2020, 10:05:56 am »
This is fixed now. :)
It was a clear error of memory access caused by wrong typecasts. It was not specific to OS or Widgetset but it caused more trouble in some systems as memory bugs often do.
It is good for code to be tested in many systems. More bugs are revealed.
Mostly Lazarus trunk on Manjaro Linux.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 918
  • Former Delphi 1-7, 10.2 User
Re: Cannot Specify Printer4Lazarus in Project Inspector
« Reply #21 on: July 12, 2020, 10:43:28 am »
Thanks Juha!
o Lazarus v2.1.0 r63871, FPC v3.3.1 r46864, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware Fusion VM)
o FPC 3.0.4, FreeBSD 12.2-STABLE r365646 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

 

TinyPortal © 2005-2018