A rant about the sad state of UWP in Unity 2018.2 and 2018.3b

Hi.
I’ve been working on my game for UWP on both Windows and Xbox One, and i’ll use this thread to rant a bit about my experience so far.

Issues i found with 2018.2:

  • LWRP crashes (Unity Issue Tracker - [LWRP][UWP] Project with Lightweight RP on UWP platform trigger an exception). This literally makes the LWRP unusable on UWP right now. I get it’s “experimental”, but i’m annoyed that even though it’s been fixed, the fix has not been backported in a stable version of Unity. “Well, i guess we could switch to the 2018.3 beta”, i thought. How silly i was.

  • Crash on controller disconnects - This is a big one and it is a major issue if trying to get certified for the store. I’m using Rewired Input manager across all platforms. It is very well supported, and i don’t think the issue is on their side, the stack trace i managed to retrieve puts the blame on Unity:

  • The exact same issue has also been reported here two months ago: Working Around A Bug In Unity’s Input System By Building For Release – bool shadowDevBlog=true;. Even though a fix was in the works since two months ago, 2018.2.15 still has the issue, and i don’t see it in the 2018.2.16 release notes.

Issues with 2018.3:

TL;DR:
Cannot ship UWP IL2CPP on any recent versions of Unity.
Unity pls fix

Are you shipping on HoloLens/Windows Mixed reality? If not, there’s a workaround posted for the first issue. And I don’t think LWRP was supported for VR in 2018.2 in the first place.

I’ll find out what happened with the controllers issue - I know there was a fix somewhere, I reviewed the code change personally. I’ll get back to you.

The fix for the animation issue is in flight and is coming to 2018.3. It turned out to be a bug in Microsoft’s C++ compiler generating bad code with all optimizations enabled - we changed the code a little bit to make it happy.

By the way, none of these issues are related to IL2CPP in any way.

No, i’m not shipping on HoloLens / Mixed reality, and i still had the LWRP crash. I never touched anything in the XR settings, and the issue went away when i removed the render pipeline. Chose to avoid render pipelines on UWP for the time being, although it would be nice to be synced across platforms. The bigger issue for me here though was the controller crash.

I finally rolled back to 2018.1.9 and the game refused to shut down properly, although everything else seems to be stable, but i found a workaround:

I’m just super annoyed fixes for bugs like these don’t make it back to older versions. When i’m not on a cutting edge beta i expect things like exiting the application to work properly.

I retract my statement about IL2CPP.

To make sure about the LWRP issue, made an empty project with LWRP on Unity 2018.2.15, ran it and it crashed.
Here’s a stacktrace with loaded symbols:

Here’s the project:

Just got confirmation from QA that the note on the issue is incorrect, it happens on regular UWP apps.

You’re very right, it reproduces without VR. I’m chasing the fixes now and I will make sure they land in 2018.2.

The fixes landed to 2018.2.19f1.

Good to hear! Can’t wait to try it out!

Still having LWRP crashes ? Because my users still do in latest package @-@
case 1108269