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
[Bug] "typemap: module matching MVID [xxxxxxx] not found." A lot of android logs #4791
Comments
The fix for Issue #4727 in 755a521 was to turn the messages from warning messages, which were always written, to info messages, which would only be shown if "assembly" messages were enabled. By running This is By Design™. If you don't want all messages shown, then don't enable them all, which can be done by clearing the
|
@jonpryor below message can change to info level?
this message shown in large number of logs.
|
Just to make sure I am not missing something. I never had any monodroid warning error in my Release build before this most recent Visual Studio upgrade to 16.6.2. Now I get these errors every few seconds. Why did this just start? How can I prevent this from logging in a production device if its a benign warning? |
Context: xamarin#4791 Make a couple of messages related to MVID use `log_info` instead of `log_warn` so that they are not shown by default (even though they are useful for diagnostic purposes)
Fixes: xamarin#4791 Make a couple of messages related to MVID use `log_info` instead of `log_warn` so that they are not shown by default (even though they are useful for diagnostic purposes)
Thanks for the questions. There is a new candidate change now in progress to make these other typemap messages informational also, like the previous messages that were changed for #4727. I will reopen this issue for to help track when that candidate change is merged, and then, as in #4727, I will update this item with version information when the changes are available in a published version of Xamarin.Android. Thanks! |
thanks grendello and Brendan! |
Fixes: #4791 Context: 755a521 The following kind of messages were printed as *warning* messages, meaning they were *always* printed, and apparently printed often: monodroid-assembly typemap: module matching MVID […] not found. monodroid-assembly typemap: managed type '…' (mapped from Java type '…') could not be loaded As with commit 755a521, reduce the importance of these messages from *warning* messages to *informational* messages, via `log_info()`.
@kuramochia, the new fix grendello added in #4831 is specifically targeting the following message:
That fix should take care of the majority of the messages you are seeing, but as I was discussing this more with grendello and the team, a question came up about the second message you mentioned:
If you might be able to share your project or a trimmed down sample project that produces that second message, the team would be interested to take a look. If the project contains private information, one option is to attach it on a new Visual Studio Developer Community feedback item via Help > Send Feedback > Report a Problem in Visual Studio. Another option would be to put the sample in a private GitHub repository and add brendanzagaeski or grendello with view permissions. Thanks in advance! One idea is that this second message could appear in cases where adjusting the app code to use a .NET base class library type instead of a binding for a Java type code would improve performance, so the team would be interested to find out if that case matches your app or if there's another scenario that Xamarin.Android might need to handle differently. |
A weird thing about this code as I was trying to find exactly where this is happening in code I found a couple of interesting things. When I am in Debug mode I have no errors at all. Its an Android 9 app running Services. Our main service is essentially using an AudioRecord and raising that buffer to a third party that is waiting for a wake word to be spoken. We also have another service that manages the devices LEDs. This service would sometimes get raised on the UI thread causing a delay between the third party responding to the wake word because it had a Task Delay which paused everything on the top. I changed this to execute on ThreadPool |
Thanks @brendanzagaeski ! Second message shown only below command.
I thinks this message is good without change.
|
Fixes: #4791 Context: 755a521 The following kind of messages were printed as *warning* messages, meaning they were *always* printed, and apparently printed often: monodroid-assembly typemap: module matching MVID […] not found. monodroid-assembly typemap: managed type '…' (mapped from Java type '…') could not be loaded As with commit 755a521, reduce the importance of these messages from *warning* messages to *informational* messages, via `log_info()`.
Ah, perfect. Thanks roninstar and kuramochia for the additional information and sanity checks! The other team members and I will stay attentive for any other reports of unexpectedly verbose typemap messages that might need additional adjustments, but so far, it sounds like the next fix from #4831 will work well. I'll update this issue as the new Preview and then Release versions become available with the fix. |
@roninstar |
Release status update A new Preview version of Xamarin.Android has now been published that includes the fix for this item to prevent showing the extra "module matching MVID ... not found" messages unless assembly logging as been explicitly enabled. The fix is not yet included in a Release version. I will update this again when a Release version is available that includes the fix. Fix included in Xamarin.Android 11.0.0.3. Fix included on Windows in Visual Studio 2019 version 16.7 Preview 4. To try the Preview version that includes the fix, check for the latest updates in Visual Studio Preview. Fix included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 4. To try the Preview version that includes the fix, check for the latest updates on the Preview updater channel. |
Release status update A new Release version of Xamarin.Android has now been published that includes the fix for this item to prevent showing the extra "module matching MVID ... not found" messages unless assembly logging as been explicitly enabled. Fix included in Xamarin.Android SDK version 11.0.0.3. Fix included on Windows in Visual Studio 2019 version 16.7. To get the new version that includes the fix, check for the latest updates or install the most recent release from https://visualstudio.microsoft.com/downloads/. Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stable updater channel. |
Awesome! Thanks so much!!
Mark Lane
Director of Software Engineering
HandsFree Health
mlane@handsfreehealth.com
phone 484-645-0677
www.handsfreehealth.com
On Aug 5, 2020, at 6:30 PM, Brendan Zagaeski <notifications@github.com> wrote:
Release status update
A new Release version of Xamarin.Android has now been published that includes the fix for this item to prevent showing the extra "module matching MVID ... not found" messages unless assembly logging as been explicitly enabled.
Fix included in Xamarin.Android SDK version 11.0.0.3.
Fix included on Windows in Visual Studio 2019 version 16.7. To get the new version that includes the fix, check for the latest updates<https://docs.microsoft.com/visualstudio/install/update-visual-studio?view=vs-2019> or install the most recent release from https://visualstudio.microsoft.com/downloads/.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stable updater channel<https://docs.microsoft.com/visualstudio/mac/update>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#4791 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACVZ7A2HTFETVNAW4WFGLYDR7HMPHANCNFSM4NZENYSQ>.
|
Release build using Xamarin Android SDK v10.3.1.4, I will see a large number of logs below.
The following command was executed.
And when you view the log, it became the following log.
I think its same issue with #4727. I want you to fix this, too.
Originally posted by @kuramochia in #4727 (comment)
The text was updated successfully, but these errors were encountered: