Search Issue Tracker

Fixed in Unity 2019.2

Votes

0

Found in

2018.2.15f1

Issue ID

1104540

Regression

No

[UWP] ContentDialog throws an exception on IL2CPP backend

Universal Windows Platform

-

-

Priority: 4Not yet prioritized for a release

-

Severity: 3Secondary functionality broken

Steps to reproduce:
1. Download 1104540_repro.zip
2. Switch platform to UWP
3. Set build type to XAML
4. Build a "test" scene on IL2CPP backend
5. Open Visual Studio and build the solution (Debug, x64, Local machine)
6. Click on the button

Expected results: Two pop-ups show up
Actual results: One pop-up show up other throws an exception

Reproduced with: 2019.1.0a12, 2018.3.0f1, 2018.2.20f1, 2017.4.17f1

Note: Not reproducible with .NET backend
Exception:
InvalidCastException: Specified cast is not valid.
at Windows.UI.Xaml.Controls.ContentControl.put_Content (System.Object value) [0x00000] in <00000000000000000000000000000000>:0
at Test..ctor () [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0

Response avatar

Resolution Note:

Fixed in 2019.2.0a2. Backported to 2019.1.0b1, 2018.3.6f1, 2017.4.19f1

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.