Search Unity

mono.dll caused an Access Violation (0xc0000005) only on Standalone Build

Discussion in 'Windows' started by SwiftSkillz, Dec 11, 2019.

  1. SwiftSkillz

    SwiftSkillz

    Joined:
    Mar 3, 2013
    Posts:
    7
    Okay I have searched multiple hours on multiple forums. I have read the crashes related to the kerbal space game, shadow run returns etc. I still have yet to find a reason why this happens only on the standalone build. We have a kiosk running a unity interface. Its not very complex and only uses 2 plugins 1 for youtube and 1 for webrtc and in editor everything works fine through hours of testing. However, during long idle times between customers (usually overnight) we randomly get this crash. Any suggestions on where to start or how to fix. Thanks.
    Code (CSharp):
    1. [version: Unity 2017.4.34f1 (121f18246307)]
    2.  
    3. mono.dll caused an Access Violation (0xc0000005)
    4.   in module mono.dll at 0033:d8bca138.
    5.  
    6. Error occurred at 2019-12-06_100232.
    7. , run by GC5.
    8. 27% memory in use.
    9. 16274 MB physical memory [11786 MB free].
    10. 18706 MB paging file [13616 MB free].
    11. 134217728 MB user address space [134215578 MB free].
    12. Read from location 00000058 caused an access violation.
    13.  
    14. Context:
    15. RDI:    0x00000011  RSI: 0x889e94e7  RAX:   0x00000000
    16. RBX:    0x0a6f1ed0  RCX: 0x00000111  RDX:   0x00000005
    17. RIP:    0xd8bca138  RBP: 0x00000000  SegCs: 0x00000033
    18. EFlags: 0x00010206  RSP: 0x0086ede0  SegSs: 0x0000002b
    19. R8:    0xd8f94cb0  R9: 0x00001360  R10:   0x00000000
    20. R11:    0x00000206  R12: 0x00000100  R13:   0x00000100
    21. R14:    0x00000000  R15: 0x7b707000
    22.  
    23. Bytes at CS:EIP:
    24. 48 8b 44 d0 30 48 d3 e8 83 e0 01 48 83 c4 20 5f
    25.  
    26.  
    27.  
     
    MilenaRocha likes this.
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Could you share the .dmp file that the crash generates?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    I need the file itself - can you put it on Google Drive or Dropbox and send me the link to it?
     
  4. SwiftSkillz

    SwiftSkillz

    Joined:
    Mar 3, 2013
    Posts:
    7
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    This looks like something corrupted the heap...

    Are you using GCHandles anywhere in your project? Or ExplicitLayout attribute on structs/classes? Misusing them is a common way to cause corruption.

    Could you run your game under Application Verifier with Heaps/Memory checks enabled? Perhaps we can catch the culprit red handed.
     
  6. SwiftSkillz

    SwiftSkillz

    Joined:
    Mar 3, 2013
    Posts:
    7
    No, I do not grab or create any instances of handles or move bytes around. However, I am not 100% on everything that the webrtc asset store package does. I believe their is something with moving byte memory in itself. Due to the need for on demand live streaming from kiosk to office, this package remains on during the length of interaction. I personally have an inner argument on whether this crash seems to happen during the interaction or during a load scene call to reload the interaction after long idle times or previous use (more investigation needed to answer that). It might be a few days before I respond back as this is a very random event so to catch it in the act might take time.
     
  7. JulyYin

    JulyYin

    Joined:
    Oct 11, 2019
    Posts:
    9
    Hello,We really need your help。Our PC game crash ocassionally with log UnityPlayer.dll caused an Access Violation,here is the crash log and dmp file.It looks like a bug in Unity, thank u very much
     

    Attached Files:

  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    You seem to be on a really old (20 months) Unity release. Could you at least try to update to the latest 2017.4 patch?

    How often does this crash reproduce? Is this something you could have our QA to try reproducing?
     
  9. JulyYin

    JulyYin

    Joined:
    Oct 11, 2019
    Posts:
    9
    Hi,thank u for your reply。The crash happens really ocassionally,maybe about 1% ?We met the crash about 3-5 times and The log is obtained from players who bought our game,so we could not reproducing as well。We will try to update the Unity version,but there is no 2017.4 patch on the Unity website which you said,do you have some other versions to suggest?
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
  11. ashwaqznwar

    ashwaqznwar

    Joined:
    Dec 18, 2017
    Posts:
    1
    Hi Tautvydas-Zilys,

    I've been having this issue with my project for sometime now. It keeps crashing randomly especially after running the project multiple of times. At first i was suspecting it was just cache issue, but now I am not sure anymore. My project uses a Geomagic Touch haptic device and I used the plugin available on Unity store to program my project. I am also using networkmanager to link two players using haptic. I have no clue whatsoever on how to debug my system at the momemnt. I've tried changing/updating Unity versions but it is still causing the same crash. I'm attaching the crash log but not sure if it is of any help. I've also submitted a bug report Case # 1207030


    Hope to get any kind of response on what I should do next. Highly appreciated!

    Happy holidays
     

    Attached Files: