Jump to content
perroabel

Crashing and slow speed after uninstall Skia4Delphi

Recommended Posts

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 ?

 

 

bd9910825d5387e046d8685535b20e9f2039a7ec.png

Sin título.png

Share this post


Link to post

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:

  1. 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.
  2. Delete old Skia4Delphi folders that you detect on your computer.
  3. Check in your "RAD Studio > Options > Language > Delphi > Library > Library Path >" if there is any other skia directory besides these:
    215127012-f0a5ddb2-f695-4647-bfe4-6b4fe1486f06.png.643b7b6f2bf2249fe7486b1534fb373e.png
  4. Check in your "RAD Studio > Component > Install Package" if there is any other skia package besides these:
    215127048-cf53705d-09c2-41d7-869f-6366fd1cb2db.thumb.png.c23f3bf879eef0d1d8ba5b4a102f6189.png
  5. 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:

  1. 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.
  2. 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 by vfbb

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×