Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    7
    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,772
    "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:
    7
    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,772
    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,772
    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,772
    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,772
    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,772
    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:

  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,772
    Are you sure you're facing the same crash?