Search Unity

  1. Engage, network and learn at Unite Austin 2017, Oct 3 - 5. Get your ticket today!
    Dismiss Notice
  2. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  3. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice
  4. Unity 2017.1 is now released.
    Dismiss Notice
  5. Unity 2017.2 beta is now available for download.
    Dismiss Notice

unity uwp activate deactivate app (KernelBase.dll).

Discussion in 'Windows' started by BorisMulev, Sep 13, 2017.

  1. BorisMulev

    BorisMulev

    Joined:
    May 23, 2017
    Posts:
    15
    When I activate/deactivate the application, I get an error(exception text below),
    In the deactivation process, work is in progress:

    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 5637. Operation took 69.278259 ms.

    System memory in use: 77.9 MB.
    Unloading 0 Unused Serialized files (Serialized files now loaded: 2)
    Unloading 0 Unused Serialized files (Serialized files now loaded: 2)
    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 5637. Operation took 71.242279 ms.

    System memory in use: 77.9 MB.
    Unloading 0 Unused Serialized files (Serialized files now loaded: 2)
    Unloading 0 Unused Serialized files (Serialized files now loaded: 2)

    Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 8615. Operation took 133.512909 ms.
    System memory in use: 90.3 MB.



    after which I get a lot of problems, for example, there is no call event OnComplete DOTWeen
    Code (CSharp):
    1. DOTween.To(() => _spriteBg.color, x => _spriteBg.color = x, new Color(_colorBg.r, _colorBg.g, _colorBg.b, 0), 0.3f).SetEase(Ease.InQuad).OnComplete(onHideComplete);

    StartCoroutine after
    Code (CSharp):
    1. yield return new WaitForSeconds(1.5f); //wait a few seconds
    2. ShowToolTip();
    is not called ShowToolTip


    if you do not deactivate the application, everything is normal (called OnComplete DOTWeen, run ShowToolTip() etc.)

    I did not find anything by mistake number.


    Code (CSharp):
    1. 7.648121 / 121.293856] - OnWindowActivated event - Deactivated.
    2. [10.028862 / 131.322718] - OnWindowActivated event - CodeActivated.
    3. Exception thrown at 0x00007FFC38363C58 (KernelBase.dll) in myapp.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000C34FEFE680).
    4. Exception thrown at 0x00007FFC38363C58 (KernelBase.dll) in myapp.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000C34FEFE4A0).
    5.  
    6. [3.688471 / 135.011189] - OnWindowActivated event - Deactivated.
    7. Exception thrown at 0x00007FFC38363C58 (KernelBase.dll) in myapp.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000C34FEFE970).
    8. Exception thrown at 0x00007FFC38363C58 (KernelBase.dll) in myapp.exe: 0x40080201: WinRT originate error (parameters: 0x000000008004006A, 0x000000000000001A, 0x000000C34FEFE790).
     
    Last edited: Sep 13, 2017
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,468
    I don't think those exceptions are relevant. Clipboard APIs throw the exceptions when you lose focus for the window, but we catch them and they shouldn't affect anything.

    Is this the only script that gets stuck? Did you try placing breakpoints and figuring out why it doesn't execute?
     
  3. BorisMulev

    BorisMulev

    Joined:
    May 23, 2017
    Posts:
    15
    While I saw only on the download scene (after deactivation activation) the script stops working
    Code (CSharp):
    1.   public void StartTutorial()
    2.     {
    3.         Reset();
    4.         StartCoroutine("TutorialProcess");
    5.     }
    6.  
    7.     private IEnumerator TutorialProcess()
    8.     {
    9.         Debug.Log("TutorialProcess called");  is called
    10.         yield return new WaitForSeconds(1.5f);
    11.         Debug.Log("WaitForSeconds 1.5 TutorialProcess called"); is not called
    12.     }
    as a result, the scene does not start working. (But if after evoke the TutorialProcess function by pressing the button it works)

    But if after pressing the button (call function TutorialProcess) it works. If skip WaitForSeconds then problem with load texture (texture is null).

    If you do not cause deactivation on the scene loading, everything is working fine
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    4,468
    Can we get a bug report on this? It's not entirely clear what's happening, and we can't really investigate it without have a repro.