Search Unity

Question UWP App crashes when uploaded to Partner Center

Discussion in 'Windows' started by darren_unity135, May 17, 2023.

  1. darren_unity135

    darren_unity135

    Joined:
    Nov 11, 2021
    Posts:
    4
    Hello,

    We are trying to submit a build to publish on the MS Partner Center for Xbox using UWP.

    When we were initially doing our QA passes, we tested by sideloading the application and it passed without crashing. However, when we upload to Partner Center and test from there, the app launches and displays the Splash image icon and then immediately crashes.
    We've reached out to Microsoft and have been getting support from them, but they have not been able to provide us with any working solutions.

    I've attached a log trace that the failure report provided.
    We're looking to see if this is something that people have run into before and if there are any steps we can take to further troubleshoot. We are unsure if this is an issue with the application, with Unity, or with Xbox.

    Thanks!
     

    Attached Files:

  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    There is a check that will result in a fatal engine exit if it fails on startup with that callstack. It checks for existence of "Data\nativePlugins.txt" in the game folder. If that file exists but we fail to load it, we report a fatal error and crash. I assume you have this file in your build? I have no idea why it would fail to load.
     
  3. darren_unity135

    darren_unity135

    Joined:
    Nov 11, 2021
    Posts:
    4
    Hi,

    We have this file in the Visual Studio solution project/data folder. The contents are empty (0 Kb). We then publish the project in Visual Studio as an appxbundle. So I don't know how to make sure it exists in the bundle?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Can you try deleting it and removing it from the project files? It's weird that Unity is creating an empty file, it could be a bug...

    If it doesn't exist, the code path is skipped altogether.
     
  5. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    Hi,

    We tried removing the file from the Visual Studio project Data folder and that fails the Create App Packages build process with the following error:

    Payload file '[obfuscated]\Data\nativePlugins.txt' does not exist.
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Did you remove it from the project files as well? something in the project seems to think that file should exist.
     
  7. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    Not sure what that means, we removed the
    \Data\nativePlugins.txt
    file from the folder on the file system and then tried compiling. Is "project files" some internal list in the solution?

    Sorry, new to the whole Visual Studio environment so not up to date with the terminology.
     
  8. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    We are not removing it from the "build" as there's no way (that we know of) to access it, the build is an .appxbundle file, with some dependency and resource files all packaged up, there's no "nativePlugins.txt" exposed anywhere there.
     
  9. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    Just for clarity:

    Unity builds the Visual Studio Project, creates the nativePlugins.txt in the Data folder of the Visual Studio Project.

    We delete the nativePlugins.txt from the Data folder.

    We then open the Visual Studio Project and try to create the package (.appxbundle). It is this process that complains and fails when the nativePlugins.txt file is removed.
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It's an XML file with ".vcxproj" file extension. NativePlugins.txt will either be mentioned in "Unity Data.vcxproj" or "<ProjectName>.vcxproj". You can either edit it manually with a text editor, or open solution explorer in Visual Studio and remove the file through that.
     
  11. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    Thanks a bunch, trying it now!
     
  12. UrosJoksimovic

    UrosJoksimovic

    Joined:
    May 22, 2013
    Posts:
    12
    This seems to have resolved the crashing. Oddly enough, it's only happening once the build is uploaded to a sandbox and not when sideloading. Any thoughts on what might be different in the two environments? Is this a Unity bug or an environment bug?
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    I think it's a combination of both. Unity shouldn't be creating that file if it's going to be empty. But then also I don't know why reading it in that environment fails.
     
  14. darren_unity135

    darren_unity135

    Joined:
    Nov 11, 2021
    Posts:
    4