Commit 4d6898f
committed
Bump to jonpryor/java.interop@ceada6c7
Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=3998131&view=logs&j=db00894d-3ef4-5d97-073c-254fbd613a41&t=379a81d4-3138-5f28-ec7b-ce4074947b64
The xamarin-android integration PR is experiencing integration test
failures with the Android Designer:
Renderer >> 4 [monodroid] Calling into managed runtime init
Renderer (error) >>
Renderer (error) >> Unhandled Exception:
Renderer (error) >> System.EntryPointNotFoundException: java_interop_jnienv_get_java_vm assembly:<unknown assembly> type:<unknown type> member:(null)
Renderer (error) >> at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jnienv_get_java_vm(intptr,intptr&)
Renderer (error) >> at Java.Interop.JniEnvironment+References.GetJavaVM (System.IntPtr jnienv, System.IntPtr& vm) [0x00000] in <0f003a4904fd44d0a8cc6a63962ab40b>:0
Renderer (error) >> at Java.Interop.JniEnvironmentInfo.set_EnvironmentPointer (System.IntPtr value) [0x00037] in <0f003a4904fd44d0a8cc6a63962ab40b>:0
Renderer (error) >> at Java.Interop.JniEnvironmentInfo..ctor (System.IntPtr environmentPointer, Java.Interop.JniRuntime runtime) [0x00006] in <0f003a4904fd44d0a8cc6a63962ab40b>:0
Renderer (error) >> at Java.Interop.JniRuntime..ctor (Java.Interop.JniRuntime+CreationOptions options) [0x0017b] in <0f003a4904fd44d0a8cc6a63962ab40b>:0
Renderer (error) >> at Android.Runtime.AndroidRuntime..ctor (System.IntPtr jnienv, System.IntPtr vm, System.Boolean allocNewObjectSupported, System.IntPtr classLoader, System.IntPtr classLoader_loadClass, System.Boolean jniAddNativeMethodRegistrationAttributePresent) [0x00000] in /Users/builder/azdo/_work/4/s/xamarin-android/src/Mono.Android/Android.Runtime/AndroidRuntime.cs:25
The question is, *why*.
@jonpryor still isn't sure, but has a conjecture: among the changes
involved is a "forced" change to always use `RTLD_LAZY | RTLD_LOCAL`,
no matter what the calling code actually specified.
For test purposes, update `java_interop_load_library()` to "pass
through" the flags value on Unix, so that the calling code can
continue to use e.g. `RTLD_GLOBAL`, if desired.
Let's see if that fixes anything?
Additionally, add MOAR LOGGING MESSAGES to help see what's happening.1 parent 482a3f5 commit 4d6898f
File tree
4 files changed
+31
-11
lines changed- external
- src/monodroid/jni
4 files changed
+31
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | | - | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
90 | | - | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| 163 | + | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
163 | | - | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| |||
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
172 | | - | |
| 177 | + | |
173 | 178 | | |
174 | 179 | | |
175 | 180 | | |
| |||
1071 | 1076 | | |
1072 | 1077 | | |
1073 | 1078 | | |
1074 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1075 | 1086 | | |
1076 | 1087 | | |
1077 | 1088 | | |
| |||
1191 | 1202 | | |
1192 | 1203 | | |
1193 | 1204 | | |
| 1205 | + | |
1194 | 1206 | | |
1195 | 1207 | | |
1196 | 1208 | | |
| |||
1372 | 1384 | | |
1373 | 1385 | | |
1374 | 1386 | | |
1375 | | - | |
| 1387 | + | |
1376 | 1388 | | |
1377 | 1389 | | |
1378 | 1390 | | |
| |||
1607 | 1619 | | |
1608 | 1620 | | |
1609 | 1621 | | |
1610 | | - | |
| 1622 | + | |
1611 | 1623 | | |
1612 | 1624 | | |
1613 | 1625 | | |
| |||
1617 | 1629 | | |
1618 | 1630 | | |
1619 | 1631 | | |
1620 | | - | |
| 1632 | + | |
1621 | 1633 | | |
1622 | 1634 | | |
1623 | 1635 | | |
1624 | | - | |
| 1636 | + | |
1625 | 1637 | | |
1626 | 1638 | | |
1627 | 1639 | | |
| |||
0 commit comments