Microsoft.NetNative compile results in warning ILT0003 - xamarin.forms

I'm trying to build my first UWP app with Xamarin.Forms in it. But when I compile in release build I get always this bunch of errors and starting the app in this state results in a splash screen lock.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'FormsApp.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'DarkThemeResources.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'DefaultThemeResources.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'LightThemeResources.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'ContactPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'DataPrivacySettingsPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'HelpPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'ImageViewerPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'InAppPurchasingPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'InformationPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'LegalContentPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0005: Type 'Xamarin.Forms.CheckBox' from assembly 'Xamarin.Forms.Core' was not included in compilation, but was referenced in method 'MapDownloadPage.InitializeComponent()'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'MapPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'MasterPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'SettingsPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'StatisticPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'WebViewPage.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.2.3\tools\Microsoft.NetNative.targets(801,5): warning : ILTransform : warning ILT0003: Method 'MainMenuViewCell.InitializeComponent()' will always throw an exception due to the missing method 'ResourceLoader.ResourceLoadingQuery.set_Instance(object)' in assembly 'Xamarin.Forms.Core'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
3> Cleaning up unreferenced code
3> Generating native code
3> Generating fixups for native code
I have no clue what todo with this error. Can I avoid this error somehow? Or do I just have to avoid "Compile with .NET Native tool chain" option?

Related

After installing Rstudio and launching it, I get an rsession.exe system error saying "Rlapack.dll is missing from your computer"

I've just installed R x64 4.0.0 to my computer and have been trying to install RStudio.
When launching R by itself, I'm able to install packages and execute code no problem. However, when I open RStudio I get a system error saying that Rlapack.dll is missing from my computer and am prompted to reinstall the program which I have done several times to no avail. I have also tried reinstalling RStudio several times.
The following errors appear on the RStudio console after "oking" the system error popup:
Error: package or namespace load failed for ‘stats’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-4.0.0/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-4.0.0/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The specified module could not be found.
I have also searched for the supposed missing dll in the R installation and found it in this location "C:\Program Files\R\R-4.0.0\bin\x64"
I am unable to run scripts through the RStudio IDE - does anyone know how to fix this dll issue and get RStudio working?
After scouring the internet and spending the best part of a day trying to get to the bottom of this, I have found something that seems to work..
Copy Rlapack.dll from
C:\Program Files\R\R-4.0.0\bin\x64
and paste it into the following locations:
C:\Program Files\R\R-4.0.0\library\stats\libs\x64
C:\Program Files\R\R-4.0.0\library\Matrix\libs\x64

Unused package dependency not building when deploying shiny app

I'm attempting to deploy my shiny app to shinyapps.io but I'm getting a build error for gWidgetstcltk (0.0-55). gWidgets is a dependency for one of the packages I use in my app. However, I only use a few functions from this package that don't require gWidgets.
I tried deploying on Windows and Ubuntu with no success. I tried installing TK8.5 (required for gWidgetstcltk) but this did not help any. Ideally if there was a way I can force the app to build without this dependency the app should still work. Alternatively, is there a way I could remove this dependency from the package itself?
Error message:
Warning: no DISPLAY variable so Tk is not available
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] invalid command name "font".
Error : unable to load R code in package ‘gWidgetstcltk’
ERROR: lazy loading failed for package ‘gWidgetstcltk’
* removing ‘/opt/R/3.4.4/lib/R/library/gWidgetstcltk’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 643000037 failed: Error building image: Error building gWidgetstcltk (0.0-55). Build exited with non-zero status: 1

Error installing tensorflow in R: /Users/emmeran/.virtualenvs/r-reticulate/bin/pip: No such file or directory

After installing the tensorflow package for R from Github, and loading with library(tensorflow), when doing install_tensorflow(), I get the error message below. I don't know how to get it to find the file or where I can even know where the file is. Thanks
install_tensorflow()
Using virtual environment '~/.virtualenvs/r-reticulate' ...
sh: /Users/emmeran/.virtualenvs/r-reticulate/bin/pip: No such file or directory
Error: Error installing package(s): 'pip'
In addition: Warning message:
In system2(pip, args) : error in running command

Error in running R script in cmd window

I have a bat file that I have run successfully for some time from the command line, which calls R and then an R script. It has failed lately, and it feels like it has something to do with package loading. I have R version 3.2.3 (2015-12-10) and RStudio Version 0.99.489.
The errors occur apparently as packages are being loaded, but they are not R errors, but rather errors looking for a variety of .dll's, ending in an 0x7e error. Not sure why R/Windows is looking for dll's (?!).
I also tried to google the "LoadLibraryFromPath" function, but got nowhere.
Here is the cmd window output:
Warning message:
package 'ggplot2' was built under R version 3.1.3
Warning message:
package 'scales' was built under R version 3.1.3
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Warning message:
package 'rkt' was built under R version 3.1.2
Loading required package: methods
LoadLibraryFromPath: FQ Dll C:\Windows\system\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\oci.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\ProgramData\Oracle\Java\javapath\oci.dll is not f
ound, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\TIBCO\splus82\oci.dll is not
found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\app\product\11.2.0\client_1\bin\oci.dll found
LoadLibraryFromPath: FQ Dll C:\Windows\system\SQLLib80.dll is not found, error:
0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\ProgramData\Oracle\Java\javapath\SQLLib80.dll is
not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Program Files (x86)\TIBCO\splus82\SQLLib80.dll is
not found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\app\product\11.2.0\client_1\bin\SQLLib80.dll is n
ot found, error: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\system32\SQLLib80.dll is not found, error
: 0x7e
LoadLibraryFromPath: FQ Dll C:\Windows\SQLLib80.dll is not found, error: 0x7e
.
.
.
Any ideas?
I had the same issue, it was caused by windows update https://support.microsoft.com/en-us/kb/3126587
Although it is not a good solution and I don't recommend it, uninstallation of this update solves the problem.
As described in workaround of the update, reinstallation of oracle should solve it as well, but I haven't tried it yet.
I have been debugging this problem for a customer when I found this post. Now after working with the Microsoft product team I can confirm the issue you have described has been addressed and is now expected to be released through KB 3147071 on 4/12/16. Be on the lookout!

RPUD : cannot find a dll that exists

I am trying to use my GPU (GeForce GTX 770, CC 3.0) in R. I am using R 3.1.2. I have successfully installed CUDA that I use in non R projects. Now, I just installed rpud and rpudplus from the .zip file in my R environment.
install.packages("C:/Users/Windows/Desktop/R/rpux_0.5.0/rpud_0.5.0.zip",
repos = NULL)
package ‘rpud’ successfully unpacked and MD5 sums checked
And when I try to use it :
require(rpud)
Loading required package: rpud
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.1.2/library/rpud/libs/x64/rpud.dll':
LoadLibrary failure: Cannot find file (Le module spécifié est introuvable.)
However, the .dll is in the specified path!
The error message "cannot find file" is incomplete. It actually means that "cannot find all dependency lib of the file". In this case, it most likely means that the expected CUDA version is not found.
For rpud v0.5.0, it MUST have CUDA 6.5 installed in the system. For rpud v0.5.1, it MUST have CUDA 7.0 instead.

Resources