Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

IL2CPP Windows 10 Universal - Does not works!

Discussion in 'Windows' started by sevensails, Mar 15, 2016.

  1. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    I cannot even make an empty project work. Just 1 scene with a Sphere on it.

    Generated a Build. Windows - Universal 10 XAML from it.

    Master Configuration - X86.

    It crashs on startup with the following error :

    Code (csharp):
    1.  
    2. Exception thrown at 0x00007FFF2BBBD7B8 in WSA Test.exe: Microsoft C++ exception: Platform::AccessDeniedException ^ at memory location 0x00000061F95FF780. HRESULT:0x80070005 Acesso negado.
    3.  
    4. WinRT information: Acesso negado.
    5.  
    6. Stack trace:
    7. combase.dll!00007fff2cb40694()
    8. vccorlib140_app.dll!00007fff1ccba4c9()
    9. vccorlib140_app.dll!00007fff1ccbb8a7()
    10. WSA Test.exe!__abi_WinRTraiseException(long __hrArg) Line 1099
    11. WSA Test.exe!UnityPlayer::AppCallbacks::AppCallbacks()
    12. WSA Test.exe!WSA_Test::App::App() Line 28
    13. WSA Test.exe!Platform::Details::__abi_FunctorCapture<<lambda_e96e0aa7fe23ffc50483b86f65d6187d>,void,Windows::UI::Xaml::ApplicationInitializationCallbackParams ^ __ptr64>::Invoke(Windows::UI::Xaml::ApplicationInitializationCallbackParams ^ <__args_0>) Line 881
    14. WSA Test.exe!Windows::UI::Xaml::ApplicationInitializationCallback::[Windows::UI::Xaml::ApplicationInitializationCallback::__abi_IDelegate]::__abi_Windows_UI_Xaml_ApplicationInitializationCallback___abi_IDelegate____abi_Invoke(Windows::UI::Xaml::ApplicationInitializationCallbackParams ^ __param0)
    15. Windows.UI.Xaml.dll!00007fff0fc3082b()
    16. Windows.UI.Xaml.dll!00007fff0fb8e8e5()
    17. twinapi.appcore.dll!00007fff29c1f188()
    18. twinapi.appcore.dll!00007fff29c76dff()
    19. SHCore.dll!00007fff2b914c07()
    20. kernel32.dll!00007fff2be2c902()
    21. ntdll.dll!00007fff2ea6bf94()
    22.  
    23. If there is a handler for this exception, the program may be safely continued.
    24.  
    All my other projects fails with the same error.

    Any advice?
     
  2. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    The same build with .NET instead of IL2CPP fails to compiles with the error :

    Code (csharp):
    1.  
    2. Severity    Code    Description    Project    File    Line    Suppression State
    3. Error        Internal compiler error: MCG0018:TypeExpected Expected Windows.Foundation.Metadata.ActivatableAttribute to exist. Check that Windows.winmd is referenced by your build system.    WSA Test          
    4.  
     
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,647
    What Unity version is this?

    Are you saying both il2cpp and .NET backends don't work with empty scene?

    Can you create Universal 10 App from Visual Studio menu and see if that works. It's strange it cannot find Windows.winmd file.

    Additionally, what Visual Studio 2015 version are using, hopefully it's Update 1?
     
  4. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    Yes... An empty scene with a sphere on it.

    Unity 5.3.3 p3!

    Visual Studio Enterprise 2015 Update 1.

    I'm updating to Unity 5.3.4 and 5.4 to try it again.

    Do I need to update the SDK somehow?
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,647
    Well from the error that it cannot locate "Windows.winmd", I would ask if you even have the SDK. Did you try to create Universal 10 App from VS 2015 menu?
     
  6. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    I think I found the problem.

    The Exported Project must be on the Same Drive that Visual Studio and the SDK are installed! It seems a Visual Studio Problem, I found some others users reporting this. The problem occurs even with an Empty Universal 10 App Project.

    I will try with my other projects now and will report here if they worked.
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
    Hi,

    this actually happens on my machine too - I thought it had something to do with the way I had my machine setup. I'll dig around and see if I can figure out why this happens.
     
    sevensails likes this.
  8. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    I'm having a similar problem except the application runs; however, I get the crash with twainapi.appcore.dll when selecting an input box when running the app on a Surface Pro 3.

    There are no errors in the unity player log, but the event log shows:

    Unity version 5.3.2p4 with Visual Studio 2015 Update 2, and Windows 10 SDK 10.0.10586.212
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
    Does it happen under a debugger? Got a stacktrace?
     
  10. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    I've been trying to get a debug to run remote, having troubles.. keep getting an error in Visual Studio:

    MakePRI : warning 0xdef00520: Invalid qualifier: DLL-RESOURCES

    I'll keep trying, been having tons of troubles with the Windows 10 SDK as it is...
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
    That's a warning so shouldn't interfere with running. Can you paste VS output from when you fail to attach the debugger? What does it say?
     
  12. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    I've since update to Unity 5.3.5p5 and looks like I was missing the actual message perhaps... I caught this before MakePRI warnings:

    we're still able to deploy via remote debugger with IL2CPP builds yes?

    btw.. it looks like it does actually build, just doesn't deploy:

    (note: I currently have debug set to x86)

    oh, as for it crashing now in 5.3.5p5.. that has atleast stopped, but now this... (in other thread)

    http://forum.unity3d.com/threads/un...oard-appears-but-input-does-not-works.411841/
     
    Last edited: Jun 24, 2016
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
    That is super weird - it doesn't seem to print any error message whatsoever. Does deploying to the local machine work? Did you try deploying a newly created barebone visual studio project (not related to Unity) to confirm/deny it could be a networking issue?
     
  14. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    super weird pretty much sums up my experience with Universal 10 builds :D

    yep, deploying locally works fine...

    I created a clean Universal app (blank app) with .net 4.6.1 in VS2015, and had no issues deploying remotely to the device.

    matter of fact, when I select to do run for debug to the remote machine.. I immediately get the prompt to select the device, or manually enter an address:


    this doesn't happen on the IL2CPP project from Unity.... I get prompted to rebuild everything, then it errors out (even though it builds ok).. >.<
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,478
    Hah it's probably C++ vs C# thing (I bet you created a C# app in VS right?).

    You can bring up that dialog in C++ projects by going into VS project properties like this:

    upload_2016-6-27_11-16-23.png
     
    tswalk likes this.
  16. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    lol.. ya, it was c#, ok.. i'll double check this and get back to you. thanks for the extended support! :)
     
  17. tswalk

    tswalk

    Joined:
    Jul 27, 2013
    Posts:
    1,109
    ok.. works now :)