Search Unity

  1. Unity 2019.2 is now released.
    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:
    6,518
    "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.
     
    Mauri and mrleerman like 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:
    6,518
    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:
    6,518
    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:
    6,518
    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:
    16
    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:
    6,518
    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:
    6,518
    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:
    35
    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:
    6,518
    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:
    6,518
    Can you try opening the generated dump in Visual Studio and paste the callstack?
     
  23. KingofBeast

    KingofBeast

    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:
    273
    Have similar issue on different machines. Is there any updates on this?
     
  25. jandd661

    jandd661

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

    taclane

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

    rukkulakki

    Joined:
    Feb 21, 2019
    Posts:
    1
    You my friend are a life saver! I need the Citrix for some of my clients, so I had settled on just not being allowed to play some of the games. Now I can do both :)


    @Tautvydas-Zilys You can recreate the problem by installing the Citrix Workspace1812, and then install Fallout Shelter from Steam. It will crash on startup with a regular Citrix install, but works with TheDakk's solution
     
  28. hanklord

    hanklord

    Joined:
    May 2, 2017
    Posts:
    5
    Is this bug fixed in Unity 2017.4.20f2 ? I meet the same bug after a long time play of our build game.

    here is the log

    UnityPlayer.dll caused an Access Violation (0xc0000005)
    in module UnityPlayer.dll at 0033:ddf5ced0.
    Error occurred at 2019-02-20_062912.
    .
    41% memory in use.
    16337 MB physical memory [9556 MB free].
    16337 MB paging file [8 MB free].
    134217728 MB user address space [134205725 MB free].
    Read from location fffffff0 caused an access violation.
     
    Last edited: Feb 22, 2019
  29. raziel974

    raziel974

    Joined:
    Mar 6, 2019
    Posts:
    14
    i have the same bug and can't found a fix... (in all unity game)
     
  30. billlagr

    billlagr

    Joined:
    Apr 16, 2019
    Posts:
    1
    I was having this issue as well - I tried a few Unity games (eg Cities - Skylines, Fallout Shelter, etc) and they all crashed. After removing Citrix, they worked as normal. I require Citrix for work, so uninstalling was not an option. What I did find though is that there's a Citrix Workspace in the Windows Store - to quote the Citrix website -

    "Universal Citrix Workspace App is a new Citrix Workspace App client build on the Universal Windows Platform. With that single Citrix Workspace App package available in the Windows Store, we can reach a variety of users using Windows 10 PCs, tablets, phones, Surface Hub and even LoT devices like the Raspberry Pi
    It is available via the Windows Store."

    I installed this Windows Store version, and no more crashes, and Citrix works just as expected as well.

    As with all these things, YMMV
     
    taclane likes this.
  31. taclane

    taclane

    Joined:
    Jan 24, 2019
    Posts:
    2
    The Windows Store version doesn't install the virtual display drivers because it doesn't have the Casting feature the uses them.

    Uninstalling, and then reinstalling the UWP version from the Windows Store may be the best solution for now, and shouldn't require additional fixing next time Citrix pushes an update.

    Source: Citrix Workspace app for Windows - Configure
     
  32. raziel974

    raziel974

    Joined:
    Mar 6, 2019
    Posts:
    14
    well when you don't have citrix install idk where to found a fix^^