Recent

Author Topic: Broken Icon Display on macOS  (Read 1946 times)

msintle

  • Full Member
  • ***
  • Posts: 135
Broken Icon Display on macOS
« on: September 10, 2024, 09:40:17 pm »
Try the attached icon (for example), it does not display correctly with Trunk, Stable, 3.4, or Fixes (FPCUPDLX).

Used to work in earlier versions (pre-3.4 timeline).

Any thoughts?
« Last Edit: September 11, 2024, 01:11:42 am by msintle »

paweld

  • Hero Member
  • *****
  • Posts: 1213
Re: Broken Icon Display on macOS
« Reply #1 on: September 11, 2024, 06:48:05 am »
And can you specify what according to you is wrong with this icon in Lazarus trunk? I checked with myself on the trunk version and according to me everything is fine
Best regards / Pozdrawiam
paweld

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #2 on: September 11, 2024, 12:35:53 pm »
macOS.

circular

  • Hero Member
  • *****
  • Posts: 4348
    • Personal webpage
Re: Broken Icon Display on macOS
« Reply #3 on: September 11, 2024, 12:45:49 pm »
How do you use the icon? It would help to provide a test project.
Conscience is the debugger of the mind

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #4 on: September 11, 2024, 12:49:04 pm »
Just load it into a TImage, and you will see the problem.

circular

  • Hero Member
  • *****
  • Posts: 4348
    • Personal webpage
Conscience is the debugger of the mind

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #6 on: September 11, 2024, 02:42:54 pm »
Done:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41131

Upvotes appreciated, given the severity of the issue.

wp

  • Hero Member
  • *****
  • Posts: 12345
Re: Broken Icon Display on macOS
« Reply #7 on: September 11, 2024, 03:26:40 pm »
Try the attached icon (for example), it does not display correctly [...]
What do you expect? Are you aware that an icon file can contain several images, and maybe you just see one of them that you do not expect? Load the ico file as icon of a test application ("Project options" > "Load icon"; there is a scroller below the displayed icon which you can use to look at the other images in the ico.

circular

  • Hero Member
  • *****
  • Posts: 4348
    • Personal webpage
Re: Broken Icon Display on macOS
« Reply #8 on: September 11, 2024, 09:16:49 pm »
Done:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41131

Upvotes appreciated, given the severity of the issue.
Thank you very much for posting the bug report. The bug is now correctly identified and being fixed.

As the developer taking care of it says, it is helpful to have a screenshot when it comes to visual bugs. Is it that you have difficulty making a screenshot? On MacOS, this can be achieved by pressing Shift+Cmd+4 and selecting an area of the screen.
Conscience is the debugger of the mind

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #9 on: September 12, 2024, 01:08:59 am »
Didn't realize it would be such a big deal to nail down the appearance.

I have attached both appearances herewith, hope it helps.

First image is incorrect, the second is correct.

Edit: The bug report has already reproduced the exact issue I am seeing.
« Last Edit: September 12, 2024, 01:11:31 am by msintle »

circular

  • Hero Member
  • *****
  • Posts: 4348
    • Personal webpage
Re: Broken Icon Display on macOS
« Reply #10 on: September 12, 2024, 08:40:02 am »
That's great! We can clearly see what part is not drawn.

It reduces the ambiguity about what the problem is and whether it will be solved.

Thank you very much indeed.  :)
Conscience is the debugger of the mind

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #11 on: September 12, 2024, 01:36:17 pm »
That's great! We can clearly see what part is not drawn.

It reduces the ambiguity about what the problem is and whether it will be solved.

Thank you very much indeed.  :)

You are absolutely very welcome, can we be hopeful for any fix ETA?

wp

  • Hero Member
  • *****
  • Posts: 12345
Re: Broken Icon Display on macOS
« Reply #12 on: September 12, 2024, 01:59:36 pm »
ETA = estimated time of arrival?

Don't ask, we're all volunteers without payment. You could help by working on the issue yourself and send a patch. That's "open source".

msintle

  • Full Member
  • ***
  • Posts: 135
Re: Broken Icon Display on macOS
« Reply #13 on: September 12, 2024, 04:22:30 pm »
ETA = estimated time of arrival?

Don't ask, we're all volunteers without payment. You could help by working on the issue yourself and send a patch. That's "open source".

Yeah I know. We've sponsored some bug bounties for the aarch64 build of Lazarus on Windows, and we could also sponsor bug bounties here too, I suppose.

It's just disappointing to have to deal with so many regressions all at once, on top of actually shipping our own code, if you know what I mean?

I mean this - and https://forum.lazarus.freepascal.org/index.php/topic,68506.0.html - are regressions pure and simple.

One would hope it'd be a matter of just rolling back the errant changes, but what do I know, right?

There could be many underlying reasons of which I am currently totally unaware.

wp

  • Hero Member
  • *****
  • Posts: 12345
Re: Broken Icon Display on macOS
« Reply #14 on: September 12, 2024, 04:25:18 pm »
If you use Lazarus/FPC in production you should not base your software on the main (trunk) versions. They are in active development, and it is always possible that bugs creep in.

 

TinyPortal © 2005-2018