Search Unity

Unity 4.2 Crash on Startup

Discussion in 'Editor & General Support' started by McMayhem, Aug 12, 2013.

  1. McMayhem

    McMayhem

    Joined:
    Aug 24, 2011
    Posts:
    443
    Program crashes on startup when loading or creating a new project. This only occurs when upgrading to 4.2. I have tried doing this with a fresh install with no results. I've also tried adding the execution commands to the end of the target shortcut -force-d3d11, -force-opengl. I've tried everything I can think of and it still won't start.

    I have filed an error report detailing the issues with this problem. I'm not sure if anyone else is having this issue, but it keeps throwing an access violation no matter what I try. (Error Report Below)

    This issue puts me dead in the water as there are asset store purchases I need to download to complete critical parts of my project that now require Unity 4.2.

    I don't see many others having this issue, but it might be a computer issue.

    My specs:

    OS: Windows 7 Professional 64-bit (6.1, Build 7601)
    Processor: Intel Core i7-3930K CPU @ 3.20GHz (12 CPUs), ~3.2GHz
    Memory: 16384MB RAM
    DirectX Version: DirectX 11
    Display: NVIDIA GeForce GTX 560 Ti x2 (SLI)
    Total Mem: 4047MB

     
  2. bufo

    bufo

    Joined:
    Aug 16, 2013
    Posts:
    1
    I am experiencing this issue as well. I'm right in the middle of my Trial for 4.2 so I'm losing days to this horrible crash.

    I've tried various fixes, DEP, force d3dll/opengl, reinstalled multiple times, no luck.

    Can anyone respond with additional tips or verify this is an actual bug whether it will be fixed soon or not.

    Cheers.
     
  3. Aurore

    Aurore

    Director of Real-Time Learning

    Joined:
    Aug 1, 2012
    Posts:
    3,106
  4. McMayhem

    McMayhem

    Joined:
    Aug 24, 2011
    Posts:
    443
    Hey Aurore. Thank you for the reply!

    I do have a ticket open for this: 557207

    As far as the options in the other reply, I believe that is only a case for Mac users, as I couldn't find any of those files on my computer, nor any other plugins in directories matching those of that poster's. I tried doing some of my own debugging on the matter, but I don't have the necessary files it seems (dynamicfontfreetype.cpp).

    Hope that helps narrow things down.
     
  5. McMayhem

    McMayhem

    Joined:
    Aug 24, 2011
    Posts:
    443
    Has there been any update on this? I'm willing to work with you guys one-on-one to figure out what my problem is. I can definitely relate to odd crashing errors that don't seem to make any sense across systems.
     
  6. PMB

    PMB

    Joined:
    Sep 17, 2013
    Posts:
    2
    In the same boat, access violation c0000005 on all unity game/demo's compiled under 4.2.0x/4.2.1x. No issues with games/demos compiled under unity 4.1 or earlier on win 7 x64.
    In one case (Shadowrun Returns) the game worked fine until they updated it with their 1.04 patch, (which involved compiling under the 4.2.0f stream).

    Since then it also crashes at startup, all crashes are variations of
    _________________________________
    Unity Player [version: Unity 4.2.0f4_38efbd14869d]

    Shadowrun.exe caused an Access Violation (0xc0000005)
    in module Shadowrun.exe at 0023:00526e50.

    Error occurred at 2013-10-02_125828.
    I:\Games\Steam\steamapps\common\Shadowrun Returns\Shadowrun.exe, run by Ben.
    35% memory in use.
    0 MB physical memory [0 MB free].
    0 MB paging file [0 MB free].
    0 MB user address space [3884 MB free].
    Read from location 00000000 caused an access violation.

    Context:
    EDI: 0x0018fd38 ESI: 0x00000001 EAX: 0x00000000
    EBX: 0x00000000 ECX: 0x00000000 EDX: 0x043f3660
    EIP: 0x00526e50 EBP: 0x0018fc40 SegCs: 0x00000023
    EFlags: 0x00010287 ESP: 0x0018fbf8 SegSs: 0x0000002b

    Bytes at CS:EIP:
    8a 10 40 84 d2 75 f9 2b c6 50 51 8b 4d 10 e8 5d
    ______________________________

    One thing I have noticed is that no output.log is generated in the xxxx_data directory , just the crash.dmp,error.log and report.ini files. Not sure if that helps?
    Turning off DEP (as suggested in linked thread) didn't help, neither did changing nvidia drivers (tried 314.22, 320.18 , 327.23, 331.40).
    I can reproduce this 100% of the time, if theres anything I can do to help you get to the bottom of this incredibly frustrating bug please contact me (dxdiags, testing, etc).
     
    Last edited: Oct 7, 2013
  7. yotingo

    yotingo

    Joined:
    Jul 10, 2013
    Posts:
    44
    I'm having this problem too, with all the same symptoms.

    > Same error (every build crashes right after the Unity splash screen)
    > I can reproduce it 100% of the time
    > No errors while playing in the editor
    > Started after updating to 4.2

    Here's my info to add to our collection:

    Specs:
    OS: Windows 7 Professional 64-bit (Service Pack 1)
    Processor: Intel Core i5-2500K CPU @ 3.30GHz
    Memory: 8 GB RAM
    DirectX Version: DirectX 11
    Display: NVIDIA GeForce GTX 660
    Video Memory: 2 GB



    If anybody comes up with a solution, please let me know. I'm willing to help any way I can!
     
  8. Aurore

    Aurore

    Director of Real-Time Learning

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    Is this still the case with 4.2.2?
     
  9. yotingo

    yotingo

    Joined:
    Jul 10, 2013
    Posts:
    44
    Thanks for the quick response!
    Unfortunately 4.2.2 didn't solve the issue for me. Same exact problem and it happens on multiple systems. My Laptop and Desktop (both Windows 7 64-bit).
     
    Last edited: Oct 21, 2013
  10. Aurore

    Aurore

    Director of Real-Time Learning

    Joined:
    Aug 1, 2012
    Posts:
    3,106
    Even after forcing directx?
     
  11. yotingo

    yotingo

    Joined:
    Jul 10, 2013
    Posts:
    44
    Yeah still now luck, even with directx.
     
  12. malosal

    malosal

    Joined:
    Jun 22, 2013
    Posts:
    151
    When I start up unity, sometimes it just closes immediately. I bought a brand new top of the line alienware, and i have another desktop and the same happens with both. the alienware is windows 8.1 and the desktop is windows 7. Help please?!!
     
  13. yotingo

    yotingo

    Joined:
    Jul 10, 2013
    Posts:
    44
    I've made some progress and have an update for anyone else still having trouble.

    It seems to be a problem with PlayMaker (for me at least). I have been able to successfully launch my project after disabling EVERY asset with a PlayMaker script/component attached. However, creating a new project and adding PlayMaker interaction did NOT cause a crash. I have the latest version of PlayMaker and tried re-importing it but that didn't fix anything. Any suggestions?

    Looking through the call stacks the crash appears to happen in Resources.Load if that helps pinpoint the issue. I'll try contacting the PlayMaker devs and report back if they have any info.

    Thanks again for all the help!
     
  14. Yrka

    Yrka

    Joined:
    Oct 30, 2013
    Posts:
    3
    Hello, if you will find solution please post it here.
    I have exact same issue with SpaceHulk and ShadowrunReturn games, i tried alot of recommendations from forums without success.
    Regards!
     
  15. gilley033

    gilley033

    Joined:
    Jul 10, 2012
    Posts:
    1,191
    I am guessing this was a problem with 4.2.0 and 4.2.1 only? At least, I faced this same exact issue, and after upgrading Unity to 4.2.2f1 (as well as the project itself), the problem disappeared.

    So, anyone else facing this issue, try upgrading to the latest version of Unity and see if it disappears. Report the results back here, so we can figure out if the issue is fully resolved or not. Cheers!
     
  16. jocyf

    jocyf

    Joined:
    Jan 30, 2007
    Posts:
    288
    It could be the antivirus or the firewall? At least that was what i've been told in this forum in the past (pre Unity v4.x).
     
  17. S_Darkwell

    S_Darkwell

    Joined:
    Oct 20, 2013
    Posts:
    320
    I too had crashing issues beginning with Unity3D v4.2 and above. None of the typical solutions (DX/GL modes, DEP/UAC, etc.) solved my crashes. After MUCH investigation, I located the issue:

    - Corrupt fonts

    Seriously. Corrupt fonts.

    I discovered it referenced on the Unity-engine HearthStone's forum from a user named Omrakos. That particular post references one particular font. These fonts were not the same.

    My solution was to backup my "c:/windows/fonts" folder, delete all of the fonts that windows would allow, then copy them back a section at a time until Unity crashed again.

    In fact, Unity never crashed again, but windows refused to install a handful of the fonts. I suspect these were the corrupt ones.

    As I'd searched for weeks without finding a solution, I thought I would share this one with the community.

    Hope it helps!

    Be well, always!
    - Arismeir
     
  18. Yrka

    Yrka

    Joined:
    Oct 30, 2013
    Posts:
    3
    Thank you!!! work for me too.
     
  19. Yrka

    Yrka

    Joined:
    Oct 30, 2013
    Posts:
    3
    In my case broken font was:
    UNCL.TTF
    i just remove it from c:/windows/fonts and now Space Hulk and Shadowrun Returns runs fine.
     
  20. PMB

    PMB

    Joined:
    Sep 17, 2013
    Posts:
    2
    Wasn't the fonts for me, still have the same problem :(
     
  21. tmanallen

    tmanallen

    Joined:
    Nov 8, 2009
    Posts:
    395
    Haven't tried the fonts but in my compatibility, I just unchecked everything and then it worked for me, but if it crashes again I am going to check the fonts.
     
  22. smallbit

    smallbit

    Joined:
    Oct 3, 2013
    Posts:
    60
    So in my case (not for the first time) backup saved my work :). Very close to finish the game while configuring build settings adding package name logo etc I build game worked fine. But than in editor it crashed after 30 seconds after launching it I have noticed strange lighting in my scene so it could be something related to drivers or whatsoever. happily I am making daily backups of the project directory so I lost 20 minutes of work. After I remade all these changes in new project (from backup) no problems.
     
  23. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    Ok, this might be unrelated, but what is PlayMaker? The corrupt fronts thing is actually pointed out in the unity manual, so i suggest checking there for other solutions too.

    When all else fails... Google is your friend :)
     
    Last edited: Nov 11, 2013
  24. Xeonproc

    Xeonproc

    Joined:
    Nov 17, 2013
    Posts:
    1
    This worked for me as well. Thank you Arismeir!! You saved me a lot of time and frustration!!!
     
  25. matiasup

    matiasup

    Joined:
    Feb 22, 2013
    Posts:
    5
    I have the same problem. The game crashed and the report log wasn't so helpful.
    Making the build as x86 instead of x64 solved my problem.
     
  26. Ghosthowl

    Ghosthowl

    Joined:
    Feb 2, 2014
    Posts:
    228
    Just ran into this issue.

    Went to Start -> Control Panel -> Fonts -> Font Settings (Left hand Panel) and then 'Restore default font settings' and this seemed to have fixed the problem for me fingers crossed! Thanks @Arismeir
     
  27. Danzig

    Danzig

    Joined:
    Aug 18, 2014
    Posts:
    5
    Just in case anyone coming across this thread via search engine is unable to find UNCL.tff in their fonts folder (I've seen people say so elsewhere), it's worth noting that it's tagged as a Windows OS file, and by default such files are set to be hidden both in their folders and from system searches.

    Open up a folder window, press alt -> tools -> folder options -> view -> uncheck "hide protected operating system files" (it's checked by default). The file should now be visible and with any luck, killing it will solve your issue.
     
  28. 2pass

    2pass

    Joined:
    Dec 7, 2014
    Posts:
    12
    Bonjour à tous.
    Je relance le sujet car je viens d'acquérir la licence Pro Unity 5 et malheureusement j'ai perdu tous mes cheveux car le logiciel crash à chaque fois que je veux ouvrir un projet.
    J'ai fais la manipulation des typos, l'ouverture en mode Administrateur, le mode "-force-opengl", etc...
    Mais rien n'y fait !

    IN ENGLISH : Hello everyone.
    I raise the subject because I just bought the Unity Pro license 5 and unfortunately I lost all my hair because the crash software every time I want to open a project.
    I'm handling typos, opening in Administrator mode, the mode "-force-opengl", etc ...
    But nothing!

    Voici le log :
    Unity Editor [version: Unity 5.1.0f2_0e70286e975e]

    Unity.exe caused an Access Violation (0xc0000005)
    in module Unity.exe at 0033:410fc138.

    Error occurred at 2015-05-27_034606.
    F:\GAME CREATION\UNITY5.1\Editor\Unity.exe, run by ****.
    31% memory in use.
    16327 MB physical memory [11144 MB free].
    18759 MB paging file [12315 MB free].
    134217728 MB user address space [134216198 MB free].
    Read from location 00000008 caused an access violation.

    Context:
    RDI: 0x0721e6f0 RSI: 0x00000000 RAX: 0x000004bc
    RBX: 0x6f39e71f RCX: 0x82e40000 RDX: 0x0000858e
    RIP: 0x410fc138 RBP: 0x0023e4e9 SegCs: 0x00000033
    EFlags: 0x00010206 RSP: 0x0023e460 SegSs: 0x0000002b
    R8: 0x02568830 R9: 0x00000040 R10: 0x75522f64
    R11: 0x42164cc8 R12: 0x00000000 R13: 0x00000000
    R14: 0x00000000 R15: 0x00000000

    Bytes at CS:EIP:
    49 8b 5e 08 49 3b de 74 12 48 8b 4b 10 48 8b 5b
    == [end of error.log] ==


    Si quelqu'un à une idée et/ou littéralement me sauver !!! Je vous remercie par avance
    If someone an idea and / or literally save me !!! I thank you in advance

    Cheers
    Jimmy
     
  29. 2pass

    2pass

    Joined:
    Dec 7, 2014
    Posts:
    12
    I finally found the problem with using Unity support!
    This is potentially the solution to your problem!

    - Uninstall the Audio Driver Current (Realtek for me)
    - Disconnect any USB jacks and taken to a connected audio system
    - Restart the computer
    - Reinstall the latest audio driver
    - Reconnected all
    - Replace or raise Unity

    Best Regards,
    Jimmy
     
    Aurore likes this.
  30. dilippatil

    dilippatil

    Joined:
    Jan 4, 2015
    Posts:
    9
    Try this, Remove files and folders leaving these folders 1. Assets, 2.ProjectSettings
    Note: Before removing please keep backup of project.
     
  31. WILEz1975

    WILEz1975

    Joined:
    Mar 23, 2013
    Posts:
    375
    I have the same problem.With last Unity5 version (5.3.4p1).
    This is my thread with log text : http://forum.unity3d.com/threads/un...itor-but-crash-the-build.391608/#post-2569110). This happens from Unity 5.3.0 version.
    I can not go back to previous Unity versions because many things have been changed automatically (for example all SceneManager code) and automatic changes are not retroactive.

    No one has found a cause and a definitive solution?

    I've tried everything. PC restart dozens of times (I have this problem from two weeks), I changed version of Unity, and a thousand other things.
    Still does not work. The strange thing is that the build party if the startup at low resolutions (640x480/800x600). Instead the editor works very flawlessly, without errors.

    This is the game: http://www.indiedb.com/games/star-shift
    In short, not a little game, we're working on for almost a year and now we're stuck.