Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Unity 2018.2.7f1 Windows standalone crash on first run - UnityPlayer.dll caused an Access Violation

Discussion in 'Editor & General Support' started by Twice-Circled, Sep 17, 2018.

  1. Twice-Circled

    Twice-Circled

    Joined:
    Sep 29, 2013
    Posts:
    8
    Hi there, I've had this crash report from a single customer. Here's the top bit of the output_log.txt. The entire crash report including dump and error.log is attached.

    UnityPlayer.dll caused an Access Violation (0xc0000005)
    in module UnityPlayer.dll at 0033:4904a1de.

    Error occurred at 2018-09-14_201350.
    C:\Program Files (x86)\Steam\steamapps\common\Megaquarium\Megaquarium.exe, run by tempe.

    24% physical memory in use.
    32702 MB physical memory [24693 MB free].
    86 MB process peak paging file [81 MB used].
    63 MB process peak working set [59 MB used].
    System Commit Total/Limit/Peak: 12376MB/37566MB/23849MB
    System Physical Total/Available: 32702MB/24693MB
    System Process Count: 220
    System Thread Count: 3349
    System Handle Count: 102130
    Disk space data for 'C:\Users\tempe\AppData\Local\Temp\Twice Circled\Megaquarium\Crashes\Crash_2018-09-15_001348747\': 279661469696 bytes free of 1049620377600 total.

    Read from location 000000000000000E caused an access violation.

    I've tried all the usual things: check folder permissions, disable antivirus, update graphics drivers, check folder permissions but nothing has worked so far.

    I'm not that experienced looking into .dump files, wonder if someone from the Unity team could point me in the right direction.

    I haven't upgraded to Unity 2018.2.8 yet because I've just released the game and I'm a firm believer in if it ain't broke don't fix it. However if you think it might help let me know.

    Thanks for any light you can shed on the issue,

    Tim
     

    Attached Files:

  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    "This is a bug in Unity. Here's the reconstructed callstack:

    Code (csharp):
    1.      UnityPlayer.dll!__crt_strtox::parse_integer<unsigned long,__crt_strtox::c_string_character_source<wchar_t> >(__crt_locale_pointers * const locale, __crt_strtox::c_string_character_source<wchar_t> source, int base, const bool is_signed) Line 208   C++
    2.      [Inline Frame] UnityPlayer.dll!__crt_strtox::parse_integer_from_string(const wchar_t * const) Line 1828   C++
    3.      UnityPlayer.dll!wcstoul(const wchar_t * string, wchar_t * * end_ptr, int base) Line 262   C++
    4. >   UnityPlayer.dll!GetDisplayAdapterPropertyWMI(const DXGI_ADAPTER_DESC & adapterDesc, const wchar_t * attribName, tagVARIANT * retValue) Line 140   C++
    5.      UnityPlayer.dll!windriverutils::GetDisplayDriverVersionString(int adapter, core::basic_string<char,core::StringStorageDefault<char> > & driverVersion) Line 202   C++
    6.      UnityPlayer.dll!GraphicsCaps::InitD3D11() Line 227   C++
    7.      UnityPlayer.dll!CreateD3D11GfxDevice() Line 652   C++
    8.      UnityPlayer.dll!CreateClientGfxDevice(GfxDeviceRenderer renderer, GfxCreateDeviceFlags flags) Line 104   C++
    9.      UnityPlayer.dll!CreateGfxDevice(GfxDeviceRenderer api, GfxCreateDeviceFlags flags) Line 493   C++
    10.      [Inline Frame] UnityPlayer.dll!CreateGfxDeviceFromAPIList(GfxCreateDeviceFlags) Line 542   C++
    11.      UnityPlayer.dll!InitializeGfxDevice() Line 607   C++
    12.      UnityPlayer.dll!InitializeEngineGraphics(bool batch) Line 280   C++
    13.      UnityPlayer.dll!PlayerInitEngineGraphics(bool batchmode) Line 431   C++
    14.      UnityPlayer.dll!UnityMainImpl(HINSTANCE__ * hInst, HINSTANCE__ * hPrev, wchar_t * szCmdLine, int nCmdShow) Line 1309   C++
    15.      UnityPlayer.dll!UnityMain(HINSTANCE__ * hInst, HINSTANCE__ * hPrev, wchar_t * szCmdLine, int nCmdShow) Line 1471   C++
    Looks like we are trying to extract driver version from WMI, and we crash while parsing "PNPDeviceID" property of the graphics card. We expect "SUBSYS_" string to be part of that device id and it's not, so we crash when indexing a null pointer (0xE is 14, which means we're accessing the 8th character).

    Unfortunately I don't know if this can be worked around on your side. I'd advice the user to reinstall graphics drivers (that might fix it).

    In either case, could we get a bug report on this? Repro project isn't necessary, just attach the dump file. It's more than enough to see where the bug lies. When you report the bug, include a link to my post in it.
     
    mrleerman likes this.
  3. Twice-Circled

    Twice-Circled

    Joined:
    Sep 29, 2013
    Posts:
    8
    Thank you very much for the swift and informative reply. I will let the user know what the state of things is. They have already tried updating their drivers, but I will advise a full reinstall to see if that helps.
     
  4. pawfessor-fluff

    pawfessor-fluff

    Joined:
    Feb 7, 2016
    Posts:
    41
    For what it's worth: I just had this problem today and it was because of a second (virtual) video adapter, used by a remote access application. I removed that virtual adapter from DeviceManager/Display adaptors and this has fixed my issue.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    Can you by any chance share the name of the remote access application that installed that adapter? It would help us confirm the issue is actually fixed when we go in there and fix it.
     
    mrleerman likes this.
  6. pawfessor-fluff

    pawfessor-fluff

    Joined:
    Feb 7, 2016
    Posts:
    41
    Matt_J_Harris and Francis89074 like this.
  7. gcoulby_unity

    gcoulby_unity

    Joined:
    Oct 6, 2018
    Posts:
    1
    Can confirm I have had this issue, but it actually caused every game that uses UnityPlayer.dll to crash. Uninstalled Citrix Workspace and it worked immediately!
     
  8. Francis89074

    Francis89074

    Joined:
    Feb 5, 2015
    Posts:
    3
    Uninstalling Citrix Workspace worked for me, I guess I'm not working from home anymore :)
     
  9. Matt_J_Harris

    Matt_J_Harris

    Joined:
    Oct 8, 2018
    Posts:
    1
    This problem bit me shortly after midnight. Citrix updated on Friday; I rebooted this morning and got the error message.

    Spent 2 1/2 on the phone with Dell trying to fix this in addition to all of the time I spent on my own.

    Thank you very much for posting this.
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    By way, we're working on fixing this. This is 100% on us, and I'll make sure we backport the fix to all supported releases.
     
  11. bryku78

    bryku78

    Joined:
    Oct 23, 2018
    Posts:
    1
    I had this problem since updating to workspace, all my games that where unity start crashing. I have used citrix receiver remover utility as I could not uninstall it, but all the games where still crashing. only when I discovered this post it took me in to right direction as I had secondary display installed in device manager. I have uninstalled it and all games are working now.
     
  12. rtm223

    rtm223

    Joined:
    Apr 12, 2017
    Posts:
    4
    We've just had this same crash reported by a user on 2017.4.8f1. Will the fix be backported to the 2017 LTS release and is there a convenient way to subscribe to the bug and see more info (i.e. affected hardware / system setups) and get notified when it is fixed? Thanks!
     
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    I am in process of backporting it. I'll post in this thread once I'm done.

    I will backport it to 2017 LTS.
     
  14. Andrew-Garrison

    Andrew-Garrison

    Joined:
    Oct 3, 2012
    Posts:
    12
    Will this make it into 2018.2 as well? If so, what version? Thanks!
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    Yes, it actually landed to 2018.2.17f1 on Friday. Still not sure which 2017.4 version it will land in.
     
  16. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    It also just landed to 2017.4.16f1.
     
  17. TheDakk

    TheDakk

    Joined:
    Nov 28, 2018
    Posts:
    1
    Came across this issue today when installing Legends of Aria. This issue is due to Citrix Casting in the new Workspace Hub feature added to the Citrix Workspace recently.

    Uninstall Citrix Workspace and Re-Install it from Command Prompt using the following command:

    CitrixWorkspaceApp.exe ADDLOCAL=ReceiverInside,ICA_Client,AM,SELFSERVICE,DesktopViewer,Flash,Vd3d,WebHelper,BrowserEngine

    (there's a space after the executable name like a typical parameter)

    This will install Citrix Workspace without Workspace Hub which has the Citrix Casting driver causing the crashing.

    I have 10+ years Citrix Engineering experience. Happy Gaming!
     

    Attached Files:

    taclane, jandd661 and A-Thomas like this.
  18. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    28
    For me its still crashing on a build from 2018.2.17f1. No Citrix installed.
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    Are you sure you're facing the same crash?
     
  20. abarancy

    abarancy

    Joined:
    Feb 14, 2018
    Posts:
    1
    Hm..Please understand that my English is not enough. My test PC had two monitors. And of course, when you look at the window display settings, the main monitor is designated as 1, and the extended monitor as 2. At this time, there was no crash of UnityPlayer.dll. Then I tried to update Windows this time, and then there was a crash. I tried several ways, but I could not solve it, so I looked at the display settings by chance. I removed the extended monitor and ran the window again, and the crash was gone again. It seems that the expended monitor does not support graphics card support. I hope it helps.
     
  21. joe78man

    joe78man

    Joined:
    Jan 1, 2019
    Posts:
    1
    Hello. This is the crash log of Terratech:

    TerraTech [version: Unity 2017.4.1f1 (9231f953d9d3)]

    UnityPlayer.dll caused an Access Violation (0xc0000005)
    in module UnityPlayer.dll at 0033:d5fa1d56.

    Error occurred at 2019-01-01_154250.
    D:\Steam\steamapps\common\TerraTech Beta\TerraTechWin64.exe, run by FX-8350.
    72% memory in use.
    8093 MB physical memory [2246 MB free].
    16183 MB paging file [7483 MB free].
    8388608 MB user address space [8384294 MB free].
    Read from location ffffffff caused an access violation.

    Context:
    RDI: 0x000000f5 RSI: 0x00000005 RAX: 0x000002b9
    RBX: 0x0a659710 RCX: 0x0a659780 RDX: 0xd6a8d348
    RIP: 0xd5fa1d56 RBP: 0x002dd760 SegCs: 0x00000033
    EFlags: 0x00010246 RSP: 0x002dd5f0 SegSs: 0x0000002b
    R8: 0x00000000 R9: 0x002de0f0 R10: 0xd6a0a004
    R11: 0x002de0f8 R12: 0x002de868 R13: 0x002de0f0
    R14: 0x04943740 R15: 0x00000000
    ...

    I don't have citrix installed so I wonder if there is anything I can do from my end. I'm willing to try anything you guys think might be interesting to try, I work at IT so I'm open to test or check anything

    Thanks
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    5,929
    Can you try opening the generated dump in Visual Studio and paste the callstack?
     
  23. A-Thomas

    A-Thomas

    Joined:
    May 12, 2017
    Posts:
    3
    TerraTech doesn't use a version of Unity that includes the fix mentioned in this thread. They'd have to update to a newer version of the engine to include it. I have mentioned this to them on their forums already, though.
     
  24. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    269
    Have similar issue on different machines. Is there any updates on this?
     
  25. jandd661

    jandd661

    Joined:
    Jun 25, 2017
    Posts:
    12
    My hero! +1
     
  26. taclane

    taclane

    Joined:
    Jan 24, 2019
    Posts:
    1
    Thanks TheDakk! That's a much more elegant solution than downgrading or manually deleting the conflicting drivers.