EtheaDev / IconFontsImageList

Four advanced components to simplify use of Icon Fonts as images and ImageList: TIconFontImage, TIconFontsImageCollection, TIconFontsVirtualImageList, TIconFontsImageList (for VCL and FMX). Full support for High-DPI apps. Rendering optimized with GDI+
Apache License 2.0
218 stars 55 forks source link

Segmentation Fault in Android #46

Closed MarkBracey closed 2 years ago

MarkBracey commented 3 years ago

I can't really (yet) give you a way to duplicate the problem.

I only see this issue in Android, mostly in Android 11

I'm using IconFontImageList extensively in my Android App. I see the issue when I change tabs using TabControl.SetActiveTabWithTransitionAsync(ActiveTab,TTabTransition.Slide, Direction, AfterOpen);

And the page I am tabbing from has a lot of images on them.

Basically I'm just getting a Segmentation Fault on what appears to be a memory move.

I've attached a screenshot of the call stack. I will try to reproduce this in a smaller app but I am posting this in case this is an issue you are already familiar with.

image

carloBarazzetta commented 3 years ago

I'm sorry but I don't have a lot of experience with Android and I can't help you in this specific case. Most of the tests I did with FMX/Windows.

MarkBracey commented 3 years ago

It appears this has to do with AutoSizing of the image/bitmap. I unchecked the property and it has become a lot more stable.

carloBarazzetta commented 3 years ago

But the "autosize" of the bitmap is the best way to use the icons that resize automatically... https://youtu.be/7qbPQSn2qvM?t=1050 Probably there are too many requests of scaled bitmap, but I'm not an expert in Android...

MarkBracey commented 3 years ago

I agree but in doesn't do me much good if it makes the application unstable. In my case I have 64x64 icons that display smaller so I haven't seen an issue with the images looking distorted.

carloBarazzetta commented 3 years ago

Ok, in your context you can use "autosize" to false ;-)

carloBarazzetta commented 2 years ago

No feedback, issue closed.