Recent

Author Topic: MacOS 10.15.5 Printer Class Crash?  (Read 4169 times)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
MacOS 10.15.5 Printer Class Crash?
« on: June 30, 2020, 02:56:10 pm »
Just tried the https://wiki.freepascal.org/Using_the_printer example and Printer unit error'd out and crashed at line 702.   What is status of printing on MacOS 10.15.5?   
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #1 on: July 01, 2020, 01:58:03 pm »
Is a Bounty needed to get printing working on MacOS?
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #2 on: July 01, 2020, 02:20:28 pm »
Is a Bounty needed to get printing working on MacOS?
Or file a Bug Report.

Are you using trunk? Otherwise it might already be solved.

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #3 on: July 01, 2020, 05:29:20 pm »
I am using 2.0.8 Release Build 2020-04-15.   Is printing supposed to work in this release?
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #4 on: July 01, 2020, 10:15:12 pm »
Filed Bug Report 0037291.
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #5 on: July 02, 2020, 12:22:15 am »
According to Status of features on each LCL Interface printing is not implemented in Cocoa and only partially implemented in Carbon.

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #6 on: July 02, 2020, 04:34:31 am »
So how to induce?  I saw article about bounties but see no link to set one up.
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #7 on: July 02, 2020, 06:36:23 am »
I thought printing under cocoa is continuously being worked on.

See the bugreports for the persons doing it.
At least the printers.pas unit should give an error during compile.

And https://forum.lazarus.freepascal.org/index.php/topic,48465.msg348965.html#msg348965

For bounties you can edit the wiki/bounty page yourself.
https://wiki.lazarus.freepascal.org/Bounties

I am using 2.0.8 Release Build 2020-04-15.   Is printing supposed to work in this release?
BTW, it's better to use the trunk version so you can get the fixes directly. Otherwise you might need to wait a long time for each fix to reach a release version of Lazarus.

The bugfixes are applied directly to trunk. After that it might take some time for them to be added to 'fixes' (if the fix is worthwhile). And even longer for it to reach final release version.

Chances are the printer-unit is already fixed (or at least doesn't error out) in trunk.
« Last Edit: July 02, 2020, 06:53:04 am by rvk »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #8 on: July 02, 2020, 09:45:07 am »
For Cocoa you might also want to support skalogryz directly on Patreon ;)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #9 on: July 02, 2020, 05:18:49 pm »
What's the best way to install Trunk version for a newbie?  Also, I see reference to a Fixes_2_0 that can be installed with fpcupdeluxe. 
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #10 on: July 02, 2020, 05:24:21 pm »
What's the best way to install Trunk version for a newbie?  Also, I see reference to a Fixes_2_0 that can be installed with fpcupdeluxe.
fpcupdeluxe would be the easiest way.
I would install trunk for cocoa development purposes (because the fixes some faster).
When one of the bug reports get fixed you can just update it and you have the fix. Otherwise you would need to wait.

When the fixed reach the fixes-branche you could use one of those for a more stable release.

(Sometimes trunk gets broken but usually it gets fixed right away)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #11 on: July 02, 2020, 05:45:37 pm »
OK, will try to install Trunk and 2.0.8 side by side and use fpcupdeluxe for Trunk.  Any gotchas I need to be aware of if following the documentation?  Thanks!
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #12 on: July 02, 2020, 06:12:46 pm »
OK, will try to install Trunk and 2.0.8 side by side and use fpcupdeluxe for Trunk.  Any gotchas I need to be aware of if following the documentation?  Thanks!
Not that I know of. I don't use fpcupdeluxe myself because I have my own Windows and Linux script to install it.

Make sure to choose secondary installation (if you can) so that it has its own config. That way it doesn't mess with you config from 2.0.8.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #13 on: July 03, 2020, 01:50:56 am »
Just tried the https://wiki.freepascal.org/Using_the_printer example and Printer unit error'd out and crashed at line 702.   What is status of printing on MacOS 10.15.5?
do you've printer4lazarus used by the project? (see attachments)
(note that "uses... printers" is not the use of printer4lazarus component)

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: MacOS 10.15.5 Printer Class Crash?
« Reply #14 on: July 03, 2020, 02:25:22 am »
According to Status of features on each LCL Interface printing is not implemented in Cocoa and only partially implemented in Carbon.

I only test on Sierra (on Mac) but with that, Coco printing works fine.  But I am printing only Text.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018