Skip to content

Conversation

@grendello
Copy link
Contributor

libxamarin-debug-app-helper.so is a shared library used only for Debug
Xamarin.Android applications to set up the debugging environment, amongst others
to copy the fast-deployed shared libraries from the override directories to an
internal location where we're allowed to use dlopen to load the DSOs.

The library used to be built twice (like our runtime), but unlike the runtime it
was copied to the same location and, with Release being built second, the
release version replaced the debug one resulting in a library that does not
include the necessary code to set up the scenario described above.

Fix the issue by building the library only in Debug configuration.

@grendello grendello added the full-mono-integration-build For PRs; run a full build (~6-10h for mono bumps), not the faster PR subset (~2h for mono bumps) label Nov 8, 2019
@grendello grendello requested a review from jonpryor as a code owner November 8, 2019 15:48
`libxamarin-debug-app-helper.so` is a shared library used only for Debug
Xamarin.Android applications to set up the debugging environment, amongst others
to copy the fast-deployed shared libraries from the override directories to an
internal location where we're allowed to use `dlopen` to load the DSOs.

The library used to be built twice (like our runtime), but unlike the runtime it
was copied to the same location and, with Release being built second, the
release version replaced the debug one resulting in a library that does not
include the necessary code to set up the scenario described above.

Fix the issue by building the library only in Debug configuration.
@grendello grendello force-pushed the fix-debug-app-helper branch from 95a287a to c1711a5 Compare November 8, 2019 15:49
@grendello
Copy link
Contributor Author

grendello commented Nov 8, 2019

There are two failing tests:

  • CodeBehindUnitTests.BuildTests_CodeBehindBuildTests.SuccessfulBuildMany because of:
error ANDKT0000: keytool error: java.lang.Exception: Key pair not generated, alias <androiddebugkey> already exists [/Users/runner/runners/2.160.0/work/1/s/bin/TestRelease/temp/CodeBehind/SuccessfulBuildMany/Release/project/CodeBehindBuildTests.csproj]

None of them are caused by this PR, therefore I'm going to merge - I confirmed that the new libxamarin-debug-app-helper.so in the installers contains the required code.

@grendello grendello merged commit c3555ad into dotnet:master Nov 8, 2019
@grendello grendello deleted the fix-debug-app-helper branch November 8, 2019 21:02
jonpryor pushed a commit that referenced this pull request Nov 12, 2019
`libxamarin-debug-app-helper.so` is a shared library used only for Debug
Xamarin.Android applications to set up the debugging environment, amongst others
to copy the fast-deployed shared libraries from the override directories to an
internal location where we're allowed to use `dlopen` to load the DSOs.

The library used to be built twice (like our runtime), but unlike the runtime it
was copied to the same location and, with Release being built second, the
release version replaced the debug one resulting in a library that does not
include the necessary code to set up the scenario described above.

Fix the issue by building the library only in Debug configuration.
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

full-mono-integration-build For PRs; run a full build (~6-10h for mono bumps), not the faster PR subset (~2h for mono bumps)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants