android: dlopen fails on FireOS 7.3 (fire hd 10 9th gen)
Steps to Reproduce
- Create Android Xamarin project with correct libs directory
- Use dlopen(libnname,RTLD_LAZY) to load lib
Expected Behavior
Linked library loads correctly - same project appears to work on many, many android devices and versions.
Actual Behavior
Fails with console message:
[linker] library "/data/app/com.app-ZKMGKBJll0P0FdhrTdxKyQ==/lib/arm/libopenal32.so" ("/data/app/com.app-ZKMGKBJll0P0FdhrTdxKyQ==/lib/arm/libopenal32.so") needed or dlopened by "(unknown)" is not accessible for the namespace: [name="(anonymous)", ld_library_paths="", default_library_paths="/system/lib", permitted_paths=""]
It appears using [DLLImport] works fine still. However, my project uses monogame which relies on dlopen.
Version Information
Visual Studio Community 2019 for Mac Version 8.3.10 (build 2) Installation UUID: 6590125c-d565-4d7a-847a-ac3931c963b7 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 5.16.1.24 (d16-3 / 08809f5b)
Package version: 604000208
Mono Framework MDK Runtime: Mono 6.4.0.208 (2019-06/07c23f2ca43) (64-bit) Package version: 604000208
NuGet Version: 5.3.0.6192
.NET Core SDK SDK: /usr/local/share/dotnet/sdk/3.0.100/Sdks SDK Versions: 3.0.100 2.1.701 2.1.700 2.1.505 2.1.504 2.1.302 2.1.301 2.1.4 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin/Sdks
.NET Core Runtime Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 3.0.0 2.1.13 2.1.12 2.1.11 2.1.9 2.1.8 2.1.2 2.1.1 2.0.5
Xamarin.Profiler Version: 1.6.12.26 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater Version: 11
Apple Developer Tools Xcode 11.2.1 (15526.1) Build 11B500
Xamarin Designer Version: 16.3.0.256 Hash: 8a223bfd7 Branch: remotes/origin/d16-3 Build date: 2019-11-01 21:02:02 UTC
Xamarin.Mac Xamarin.Mac not installed. Can’t find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Xamarin.iOS Version: 13.6.0.12 (Visual Studio Community) Hash: e3c2b406d Branch: xcode11.2 Build date: 2019-11-01 00:12:08-0400
Xamarin.Android Version: 10.0.6.2 (Visual Studio Community) Commit: xamarin-android/d16-3/c407838 Android SDK: /Users/shim/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 4.4 (API level 19) 8.1 (API level 27)
SDK Tools Version: 26.1.1 SDK Platform Tools Version: 28.0.2 SDK Build Tools Version: 29.0.1
Build Information: Mono: mono/mono/2019-06@476d72b9e32 Java.Interop: xamarin/java.interop/d16-3@5836f58 LibZipSharp: grendello/LibZipSharp/d16-3@71f4a94 LibZip: nih-at/libzip/rel-1-5-1@b95cf3fd ProGuard: xamarin/proguard/master@905836d SQLite: xamarin/sqlite/3.27.1@8212a2d Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-3@cb41333
Microsoft Mobile OpenJDK Java SDK: /Users/shim/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager Version: 1.4.0.65 Hash: c33b107 Branch: remotes/origin/d16-3 Build date: 2019-11-19 20:33:22 UTC
Android Device Manager Version: 1.2.0.116 Hash: d2b2af0 Branch: remotes/origin/d16-3 Build date: 2019-11-19 20:33:42 UTC
Xamarin Inspector Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09 Jul 2018 21:20:18 GMT Client compatibility: 1
Build Information Release ID: 803100002 Git revision: add3a4998a5cb5b081e0404e1fe13acfecb7801d Build date: 2019-11-20 13:35:15+00 Build branch: release-8.3 Xamarin extensions: 79c69708816813b498283eeda7bcb4d464433a04
Operating System Mac OS X 10.14.6 Darwin 18.7.0 Darwin Kernel Version 18.7.0 Sat Oct 12 00:02:19 PDT 2019 root:xnu-4903.278.12~1/RELEASE_X86_64 x86_64
Log File
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 29 (14 by maintainers)
@dellis1972 - I can confirm Fire OS 7.3.1.2 fixed the issue for us. It has nothing to do with VS 2019 vs VS 2017.
It seems right when we were all experiencing the problem and trying to figure out a fix Amazon pushed this OS update which fixed it.
I think it is safe to say this is the right fix for now.