Bug 51796 - Microsoft C++ exception: EEMessageException thrown in UWP app
Summary: Microsoft C++ exception: EEMessageException thrown in UWP app
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: Normal blocker
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-26 18:55 UTC by Mark Fredrickson
Modified: 2018-10-11 17:13 UTC (History)
8 users (show)

Tags: uwp, performance, exception ac
Is this bug a regression?: ---
Last known good build: 2.3.2.127


Attachments
Test app for re-creating the bug (386.83 KB, application/x-zip-compressed)
2017-01-26 18:59 UTC, Mark Fredrickson
Details
Screenshot with VS exception break FileNotFoundException (214.90 KB, image/png)
2017-06-07 20:15 UTC, Shimmy
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 51796 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Mark Fredrickson 2017-01-26 18:55:54 UTC
I'm getting the following exceptions in my Universal Windows App with Xamarin Forms versions 2.3.3 and 2.3.4 beta. No issues with Android or iOS, just UWP.  No problems with 2.3.2.127.

Exception thrown at 0x75D5A832 in UWPBug.Windows.exe: Microsoft C++ exception: EEMessageException at memory location 0x0757CDC4.
Exception thrown at 0x75D5A832 in UWPBug.Windows.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

There are many of these exceptions and they increase with the size of the form and greatly slow down the rendering of the form. They don't seem to have any negative impact on the form itself other than making the rendering time unacceptable.

I tried the 5.3.0-beta2 of Microsoft.NETCore.UniversalWindowsPlatform but that didn't help either.

I'm using VS 2015 and have created a test app to replicate the issue (UWPBug). The exceptions will be thrown once when the form BugTest is rendered by Xamarin and once again when it leaves the background. You can set a breakpoint in BugTest InitializeComponent(), clear the output window, release the breakpoint and the exceptions will be shown in the output window.
Comment 1 Mark Fredrickson 2017-01-26 18:59:12 UTC
Created attachment 19496 [details]
Test app for re-creating the bug
Comment 2 Brad Chase 2017-02-13 22:27:11 UTC
Thanks for reporting this Mark, I am getting the exact same issue.  Only problem is the exceptions make loading our views(massive) impossible as it slows it down so much it can take 10 minutes to load a view.
Comment 3 Jimmy [MSFT] 2017-03-07 23:28:15 UTC
I am able to reproduce the issue described with the attached project. I am confirming this report so the team can investigate further. As mentioned, the exceptions appear in the debug output but do not crash the app.

I am also still seeing the exceptions with Forms 2.3.2.127 and 2.3.1.114, however there are much fewer. As they exceptions still occur in recent versions of Forms, I don't believe this is a regression.

Debug output from both 2.3.4-pre2 and 2.3.2.127: https://gist.github.com/jimmgarrido/a304005226a9118482a39abbc9e02826

### Regression status
Forms 2.3.4-pre2    BAD
Forms 2.3.3.193     BAD
Forms 2.3.2.127     BAD
Forms 2.3.1.114     BAD
Comment 4 Shimmy 2017-06-04 00:43:00 UTC
I also have a gazillion of these exceptions, UI tremendously slow.
Comment 5 Brad Chase 2017-06-04 04:18:37 UTC
Shimmy, how is your speed with the debugger in release?
Comment 6 Brad Chase 2017-06-04 04:19:20 UTC
Err sorry debugger unattached
Comment 7 Shimmy 2017-06-05 03:03:22 UTC
I didn't see any evidence of the exception in Release mode.
Comment 8 Shimmy 2017-06-05 08:21:45 UTC
Thos looks like it's still slow. And the UI is slow, not my VMs.
Comment 9 Shimmy 2017-06-05 22:35:02 UTC
Any temporary workaround? Debugging is unbelievably slow
Comment 10 Shimmy 2017-06-06 02:37:46 UTC
It didn't always happened.
I think I played with the debug settings before it started to happen, but I'm not sure.
Comment 11 Shimmy 2017-06-06 03:40:25 UTC
@Brad, tried start without debugging, and the program wasn't slow.
Comment 12 Shimmy 2017-06-07 20:13:59 UTC
I've enabled break on all exception and I get a FileNotFoundException whilst that C++ exception appears in the output window, so I believe it might be related. Please check out attached screenshot.

I get a zillion of these anywhere I do some UI change.

Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x074F972C.
Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x074F972C.
Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Exception thrown at 0x7644A9F2 in App.UWP.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
Comment 13 Shimmy 2017-06-07 20:15:03 UTC
Created attachment 22755 [details]
Screenshot with VS exception break FileNotFoundException
Comment 14 Shimmy 2017-06-19 19:17:00 UTC
Related: https://bugzilla.xamarin.com/show_bug.cgi?id=57599