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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Application crash on windows phone (Lumia 650)

Discussion in 'Windows' started by jijieciprian, Sep 22, 2016.

  1. jijieciprian

    jijieciprian

    Joined:
    Dec 18, 2015
    Posts:
    7
    I use WebCamTexture and a RowImage to start camera to take screenshot in my application. In start I create an new webCamTexture and a rowImage where mainTexture of rowImage send to webcamText, and Play.
    When I want to go to another view I stop camera. If I want to take another screenshot my application stop, crash, exit and give me some error . Any ideea why happening that? and any solution to solve ?

    Error: Operation has failed with error 0x8007000e: Not enough storage is available to complete this operation.
    (C:\buildslave\unity\build\PlatformDependent/MetroPlayer/MetroWebCamTexture.cpp:WebCamTexture::Update at 582)
     
    Last edited: Sep 22, 2016
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    I remember WebCamTexture to be leaky on Windows Store, calling Play() & Pause() multiple times used to increate memory usage.
    What I don't understand is what does webcam have to do with taking screenshots?
     
  3. jijieciprian

    jijieciprian

    Joined:
    Dec 18, 2015
    Posts:
    7
    Last edited: Sep 22, 2016
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
  5. jijieciprian

    jijieciprian

    Joined:
    Dec 18, 2015
    Posts:
    7
    I try to do with that but give me some errors. Therefore I used WebCamTexture .But problem I think is not when take screenshot. When try navigate in X and Y view multiple times includes stop and play camera, crash my aplication...

    MissRef.png
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,642
    Can you type the same code in MainPage.xaml.cs?
    In Unity scripts you have to wrap such code behind appropriate defines, because it's not compatible with editor.
     
  7. jijieciprian

    jijieciprian

    Joined:
    Dec 18, 2015
    Posts:
    7
    No can't write in MainPage.xaml.cs . Is any way to reduce memory when start and stop camera?