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

Crashes during build process

Discussion in 'PSM' started by youarebritish2, Apr 27, 2014.

  1. youarebritish2

    youarebritish2

    Joined:
    Nov 7, 2013
    Posts:
    29
    I've been trying to build for PSM but Unity consistently crashes shortly after I start. At first, I was getting an out of memory error message, so I tried deleting some assets to see if that would help, but now it still crashes, but it does so without providing an error message now.

    Any suggestions?
     
  2. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    377
    Try:
    • Blank project with just a simple 3d text or image on ONE scene (if the below doesn't help)
    • Untick all your scenes in build settings except the startup/first one, this will also help speed up builds for testing
    • Check console, log editor or the unity cmd debugger thats available somewhere
    • Hide all objects and scripts on that first scene you have, except for the move onto next scene script
     
  3. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Is this a device crash (i.e. the PS Vita crashes, and returns to the DevAssistant and/or hangs), or a host PC crash (i.e. the Unity Editor crashes)?
    If it's a device crash, you can have a look at the console output from the PsmDeviceForUnity.exe from command line (see here).
    It it's the editor crashes, you can have a look at the editor.log ("Open Editor Log" from the editor console).

    Or, in either case - report a bug (Help menu -> "Report a Bug") and attach the project causing the crash, and we can have a look at it.
     
  4. PeterD

    PeterD

    Joined:
    Feb 6, 2013
    Posts:
    120
    Just a few questions.

    What specifications does your computer have?
    Are you running anything else in the background?
    What GPU have you got?

    I am able to run unity fine on a surface pro 2 with just 4gb but, I will get an out of memory error if I also happen to have something like Visual studio compiling in the background and then try to build in unity.
     
  5. youarebritish2

    youarebritish2

    Joined:
    Nov 7, 2013
    Posts:
    29
    I've tried the above, including a completely blank scene, and still get the crash.

    It's a host PC crash while building. I took a log at the editor.log and here's what I'm seeing:

    -I'm on a 64-bit Windows 7 desktop with 6 gigs of RAM.
    -I tried building with nothing else in the background and had the same problem. I also tried building a Webplayer version and that built properly. It only crashes when I try building for PSM.
    -I have some integrated GPU.
     
  6. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    377
    I've got integrated so its not that you don't have a graphics card, so that can be ruled out.
    A completely blank new project for PSM didn't work? O_O wow
    Theres some direct 11 shader issues, but the blank project you tried didn't have them in anyway right?
    All i can suggest is running windows update, have latest unity version, latest 'onboard' graphics drivers.
    Otherwise its upto one of the more 'advanced' guys to help you out :D
     
    Last edited: Apr 29, 2014
  7. IanStanbridge

    IanStanbridge

    Joined:
    Aug 26, 2013
    Posts:
    334
    Those errors are saying it is failing to compile directx 11 compute shaders because it is running out of memory. The shaders are flagged as hidden which is perhaps why you can't see them in your build. There is no reason a blank project should have them included though, are you sure you haven't attached a camera image effect or have the image effects folder in your project ? If you haven't then I would just uninstall unity and reinstall it as it shouldn't always try to include directx11 shaders. What cpu do you have ? If it's integrated gpu doesn't support directx11 then the errors might actually be referring to that.. Have you tried forcing unity to use directx 9 mode in the preferences to force unity to ignore anything related to directx 11 ?