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

Access violation error...

Discussion in 'Editor & General Support' started by lmbarns, Oct 4, 2014.

  1. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    How can I track this down?? Everything works fine in the editor, only in builds does it crash and says check the log in folder where build is which is partly quoted below.

    Brand new computer, built this week, installed all drivers, etc. I am using oculus rift dk2, the scene was building just fine for a while....nothing added between the time it worked and broke...

     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Anything written into the Player.log file?
     
  3. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    Where's that located on win8.1?

    This is the full error log (error.log) from the folder created when it crashes:

    Edit:: It opened for a few seconds before freezing in game, then crashed for same reason above....I could see the environment in the rift.

    Edit2:: After disabling one section of the scene, it works fine....when I enable the gameobject, it crashes upon launch........the game object is a holder for a section of a dungeon...

    Guess I'll delete it and set it up again and see if I can get it sorted out...
     
    Last edited: Oct 6, 2014
  4. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
  5. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    I would highly recommend downloading memtest86 (I believe it's http://www.memtest86.com/) and do a system test on your RAM. Just in case you have a bad stick, just to rule it out. The exception is happening because it's trying to read from an address location in memory that doesn't exist or is protected and the app doesn't have access to it.

    This is a bit that makes me scratch my head a bit:

    Why is it claiming that there's no physical memory or page file?
     
  6. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    No idea, it's a brand new, custom built, $3k desktop, I should hope nothing's bad. I believe it started when I made a transition to an animation in mecanim. Both animations were made within Unity's animation panel, basically moving the camera around a scene. One animation was above ground, then it transitioned underground into a cave. I had the cave disabled, simply enabling it and replacing the underground animation made it work again.
     
  7. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Interesting. I was basing my guesses on the "Nothing added in between..." comment but I guess there was a change. Wonder if you can reproduce it.
     
  8. ElectricMonk

    ElectricMonk

    Joined:
    Sep 3, 2014
    Posts:
    5
    Hi There,
    Just wanted to chime in and say I've been getting this and a number of other similar errors. thought it was the DK2 installation (i used 0.4.3.1) but after doing a clean install, its been creeping back in. Mine isn't the exe but is firing on msvcrt.dll but all the other stuff is the same. I ran a memory check and it came back clean. It just crashed on me in the middle of a debug session and since then has crashed every time I load unity. It looks like the same error but am getting it on 3 different scripts. libpsmoveapi.dll , msvcrt.dll , and ntdll.dll. ntdll.dll is in every stack trace and the signature otherwise looks the same. I added some typical crash reports if you want to have a look. I've seen recommendations that that file is related to the visual C++ runtime so I reinstalled that, but it doesn't seem to help. Would love to get this fixed, thanks in advance,

    Dylan
     

    Attached Files:

    Last edited: Dec 1, 2014