-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fastdev library side loading #3927
Conversation
4cfe903
to
1ea6cf2
Compare
6b78b0a
to
ba58934
Compare
ba58934
to
bae0dec
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
2a5f0ad
to
c8b1e6e
Compare
Override directories must be set up both in the debug app helper and the monodroid runtime as both of them are loaded separately and they do not depend on each other. This fixes loading of the side loaded shared libraries from the internal location where they are copied from the override directories. Add a pipeline step to run tests with fast dev enabled
c8b1e6e
to
ab47a74
Compare
So the Mac error is interestingly there is a warning further up
Which is new. I wonder if this Microsoft version of java has been hardened for FIPS like we had too, or has had something else done to it. |
I've been seeing that ANDKT0000 error a lot of late. I'd love to know why. |
|
||
for (uint32_t i = 0; i < BasicAndroidSystem::MAX_OVERRIDES; ++i) { | ||
const char *p = androidSystem.get_override_dir (i); | ||
if (!utils.directory_exists (p)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slightly concerning, in that it's imaginable that externalStorageDirs
may be null at some point -- especially when we're looking into shared runtime removal/etc. -- in which case it's imaginable that p
will be nullptr
here, which would (eventually) result in stat(nullptr, &buf)
, which is....probably "fine"? But not desirable?
Check if override directory is null before passing it to `stat`
Override directories must be set up in both `libxamarin-debug-app-helper.so` and `libmonodroid.so`, as both of them are loaded separately and they do not depend on each other. This fixes loading of the side loaded shared libraries from the internal location where they are copied from the override directories. Add a pipeline step to run tests with `$(AndroidFastDeploymentType)` set to `Assemblies:Dexes`, which should side-load native libs.
Override directories must be set up both in the debug app helper and the
monodroid runtime as both of them are loaded separately and they do not depend
on each other. This fixes loading of the side loaded shared libraries from the
internal location where they are copied from the override directories.