Search Unity

UWPPlayerLauncher failed to launch - InteropServices.COMException

Discussion in 'Windows' started by FixItFelix, Feb 25, 2021.

  1. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    54
    Hey guys,

    I tried so many things and I can not find the problem. Yesterday I made a uwp build with Excetuably Only and I could start the game through the UWPPLayerLauncher.exe.

    But since today I can not do that anymore even after creating a new build. The app tries to start and you can see the splash screen flickering for some time. (In some runs only once) And then the App is closed and the windows cmd promt has a message like: (sorry for German)

    upload_2021-2-25_19-6-30.png

    Does anyone has an idea how to fix that? A PC restart did not help.
    Thanks.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Do other UWP apps work on your machine (like the calculator)? Can you double check that the developer mode hasn't been disabled on the machine? Any chance the folder permissions got modified in any way since you built the app?

    Lastly, can you try launching it from Visual Studio by opening it without any project and doing Debug -> Other Debug Targets -> Installed App Package and choosing your app? Is there any additional information in the "Output"?
     
  3. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    54
    Other apps like calculator are working.
    Developer mode is still on.

    I will try to launch from visual studio.
     
  4. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    54
    Update: Building over visual studios works.
    But I notices that I got a warning that I will overwrite an already exisitng installion when I started the Programm in VS.
    Maybe this is usual but I wanted to mention it.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Did it by any chance start working after you ran it from VS?
     
  6. FixItFelix

    FixItFelix

    Joined:
    Mar 27, 2017
    Posts:
    54
    Hi, indeed after the d3d build is works now again on executable only.
    But I de-installed an installation of the game which I discored in my start menu as well.
    I have the feeling that this could have caused the problem. An already installed version can not be overwritten or something like this?
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It should overwrite the installation if it already exists in a different path.
     
  8. therobby3

    therobby3

    Joined:
    Jan 30, 2019
    Posts:
    131
    Had this same exact program. For anybody else that may get it eventually, uninstalling the my game did the trick.
     
  9. ickydime

    ickydime

    Joined:
    Nov 20, 2012
    Posts:
    110
    Thanks! uninstall did the trick for me as well