perroabel 0 Posted February 12, 2023 Hello I was using Skia4Delphi only for GIF displaying, however when the Skia4Delphi team release version 4 and above, I installed but has a lot of troubles starting my App compiled with Alexandria 11.2, so I uninstalled the Skia4Delphi version 4 and reinstalled the 3 version. After back to Skia4Delphi 3 seems my App some times crashes, ran slows on rendering, also when I used standart teechart controls sometime my app shows the messages "external exception [1c, 9c]", so finally I found another GIF component solution so I uninstalled the Skia4Delphi version 3, but something happend with my Alexandra 11.2 installation. Nows my App still crashing, the external excepcion messages persist when I use teechart and a third party components like TMS UI Pack was affected on render his TMS table view because now it's shows without borders. This issues are presenting only in mobile platforms: iOS and Android but not in desktop platforms, why @vfbb ? Share this post Link to post
vfbb 285 Posted February 12, 2023 (edited) Let's do it by steps. Few users had problems when updating to version 4, but all who had problems were due to conflicts with older versions of Skia4Delphi installed on the machine. So, for a secure installation, follow these steps: Install running the setup (the manual installation is not recommended) with the IDE closed. You can choose always the same destination folder (prefer the default folder to avoid administrator permission), even if there is an old installation there. Delete old Skia4Delphi folders that you detect on your computer. Check in your "RAD Studio > Options > Language > Delphi > Library > Library Path >" if there is any other skia directory besides these: Check in your "RAD Studio > Component > Install Package" if there is any other skia package besides these: Never drop library files into the RAD Studio folder. The bpls in the bds folder are automatically loaded by the IDE, even though they are not in the Search Path / Registry. If you've ever done that, you should delete them. You should also understand that there are 2 enablements in the library: To add or remove the App library, right-click on the project and choose "Enable Skia" or "Disable Skia". You will only be able to use controls or any unit from the library after this enablement. You can enable replacing the FMX render with the Skia render by adding the line "GlobalUseSkia := True;" and "Skia.FMX" in dpr uses. This is a completely optional feature, as the library controls work fine without this feature. I also emphasize that some libraries are not compatible with Skia's rendering, such as Alcinoe. But we always recommend this feature as it improves the quality of the application's graphics, and fixes several issues that exist in the default FMX render. If you removed the library via step 1 ("Disable Skia" menu) and removed the library units / controls from your form, your application will not have any code from the library running and therefore the exception that remains has nothing to do with the library. About the lack of borders in the TMS controls, does this happen with the Skia render ("GlobalUseSkia := True;"), or without the Skia render? You can check at runtime which render is enabled by giving a simple ShowMessage: procedure TForm1.FormCreate(ASender: TObject); begin ShowMessage(TCanvasManager.DefaultCanvas.ClassName); end; There are 4 implementations of Skia rendering, so it will be Skia rendering if the ShowMessage returns one of the following classes: TSkRasterWindowsCanvas, TGlCanvas, TMtlCanvas, TSkRasterMacOSCanvas Edited February 12, 2023 by vfbb Share this post Link to post