Declined
Last Updated: 27 Mar 2019 14:22 by ADMIN
Lance
Created on: 13 Feb 2019 15:57
Category: PdfProcessing
Type: Feature Request
1
Refactor Telerik.Documents.Fixed to allow for easier LLVM compilation


This request is to ask that the development team review the code inside the Documents for refactoring to see if certain things can be reduced (like Generics).

 

When using the Telerik UI for Xamarin and referencing the UI.for.Xamarin NuGet package, the assembly reference for the Telerik.Documents.Fixed.dll is added to the project. This increases the amount of code that is compiled when the Linker is only set to SDK only, thus breaking AOT compilation with LLVM enabled.

 

A few addition insights:

 

- When the project cannot set the Linker to SDK and User Assemblies

- When individually referencing DLLs for only what the project uses is an insufficient solution

- When installing sub-packages like Telerik.UI.for.Xamarin.DataGrid is an insufficient solution.

 

 

Thank you.

5 comments
ADMIN
Tanya
Posted on: 27 Mar 2019 14:22
Hello Ewan,

I hope that you managed to move forward with the project.

Since there is no activity on this request, I am marking it as Declined. Please, let us know if there is something additional we could assist with.

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Tanya
Posted on: 22 Feb 2019 16:47
Hello Ewan,

I hope that the change in the latest release helped you move forward with the project.

In regards to the other question, yes - you have access to the source code for Telerik Document Processing. At this point, it is not shipped with the UI for Xamarin suite but you can obtain it from the other suites distributing Telerik Document Processing included in your license. I am attaching an image showing the Downloads page for UI for WinForms and where you can find the source code for the libraries.

Hope this is helpful.

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Ewan
Posted on: 20 Feb 2019 12:41

Hi Ves,

Thanks for looking at this. I'll look forward to getting the release today.

I supplied a repro project in the first post of my original ticket (1387099) if you have access to that? The problem with it though, is that it only seems to replicate on certain computers (including all of my colleagues, but not Lance; we have pretty under-powered computers so maybe find something similar to try it on).

I found different libraries which have run into this issue before:

https://github.com/louthy/language-ext/issues/537

https://forums.xamarin.com/discussion/457/error-could-not-aot-the-assembly-servicestack-text-monotouch-dll

https://github.com/mono/SkiaSharp/pull/275

and quite a few more ...

A further Google can reveal some potential causes of this (including the over-use of Generics, as mentioned; or passing a managed object to an unmanaged method). In order to fix this it will require some significant research I think. Do I have access to the source code of this library as part of my subscription? Perhaps I could help.

Thanks again.

Ewan

ADMIN
Ves
Posted on: 20 Feb 2019 12:21
Hi Ewan, Lance,

Let me start with what we can do immediately. We are shipping a service pack release today where we have removed the Xamarin.Android.v8.RenderScript dependencies so individual NuGet packages will work for API level 28. I hope this will let you go on with the project.

As for refactoring the code in Telerik.Documents.Fixed assembly, this looks quite loosely defined at the moment. We have no clear vision how we can be satisfied with certain result. The best approach would be if we had a repro project, which would allow us to evaluate the result of a certain effort. It would still be somewhat undefined, as there might be other frameworks in the app or it might work at some moment and break later when (possibly) other dependencies are added. So Ewan, if you can provide such a project, it might help us get started on the matter.

Best regards,
Ves
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ewan
Posted on: 13 Feb 2019 16:12
Just to add something that may be helpful, the change which made this library incompatible with LLVM was introduced somewhere between version 2018.3 and 2019.1.