Search Unity

Unknown error occurred while loading 'Scene Name'.

Discussion in 'Editor & General Support' started by bytterfly-com, Aug 20, 2015.

Thread Status:
Not open for further replies.
  1. bytterfly-com

    bytterfly-com

    Joined:
    Aug 18, 2015
    Posts:
    2
    Unknown error occurred while loading 'Scene Name'.

    today i tryed to open my projekt and i get this error.

    In the past day i had Records Key error, but not in unity3d.
    Unfortunally i have no backup, can i do something to save the scene?

    Please help me!
     
  2. CarolBrandao

    CarolBrandao

    Joined:
    Aug 30, 2015
    Posts:
    2
    I had the same problem and don't know how to solve! :(
    Did you managed to solve?
     
    Last edited: Aug 30, 2015
    FatalityGames2 likes this.
  3. bytterfly-com

    bytterfly-com

    Joined:
    Aug 18, 2015
    Posts:
    2
    Hy,
    Unfortunately i didn't find a solution for this. I made my scene again, and now i make every day a backup.
    sorry :(
     
    CarolBrandao likes this.
  4. ChiefTripodBear

    ChiefTripodBear

    Joined:
    Jan 13, 2015
    Posts:
    2
    Same boat over here. Other projects are opening fine, and the assets/scripts look ok as i imported them to another project and tested.
     
  5. MvD

    MvD

    Joined:
    Oct 26, 2010
    Posts:
    13
    We sometimes get this when running our game on Android devices:

    10-08 12:37:59.678: E/Unity(4016): Failed to destroy a semaphore (Device or resource busy)
    10-08 12:37:59.678: E/Unity(4016):
    10-08 12:37:59.678: E/Unity(4016): (Filename: Line: 38)
    10-08 12:37:59.679: E/Unity(4016): Unknown error occurred while loading 'level18'.
    10-08 12:37:59.679: E/Unity(4016):
    10-08 12:37:59.679: E/Unity(4016): (Filename: Line: 110)
    10-08 12:39:33.845: W/Unity(4016): Timeout while trying to pause the Unity Engine.

    From the timing, is seems at least the first two are related errors, but maybe they are not. Our guess at the moment is that we're running out of memory...
     
    DavieTag likes this.
  6. Deleted User

    Deleted User

    Guest

    I got the same Error
    All my Stuff in the Scene is gone!!
    There is nothing and it was something like 100 objects in there.

    Unknown error occurred while loading 'scene.unity'.

    Version 5.2.2f1 Personal
     
    Last edited by a moderator: Mar 9, 2019
    gooseynoah and YoyoGS like this.
  7. Jachym-Machat

    Jachym-Machat

    Joined:
    Jul 27, 2014
    Posts:
    1
    I got same error too.
    I opened it in HEX editor and sadly it was just fillen with nulls. There is noway to repair this.
    Since today i am going to do backups every day and you should too.
     
    bytterfly-com likes this.
  8. DavieTag

    DavieTag

    Joined:
    Mar 23, 2015
    Posts:
    10
    Hi,

    I've been seeing this error on android builds recently. I don't see the semaphore issue as reported by MvD. There's a crash log just after it, but the app doesn't drop out. It does, however, lead to misbehaviour in the app, and progress is blocked.
    Is there any information on this? Unknown error is fairly vague. could there be scene corruption? are we running out of memory?
     
  9. DavieTag

    DavieTag

    Joined:
    Mar 23, 2015
    Posts:
    10
    I have more information on my own specific instance of the error. I'm seeing a .cpp and line number.

    Unknown error occurred while loading 'level37'.: 0 at ./Runtime/Misc/LoadSceneOperation.cpp:110 (1, 0, 0)

    Does this perhaps help narrow it down?
     
  10. DavieTag

    DavieTag

    Joined:
    Mar 23, 2015
    Posts:
    10
    further to this, I've ruled out scene corruption as a cause, since rebuilding the scene from scratch did not fix the problem.
    One possible cause is asynchronous loading of scenes. We're currently investigating this.
     
  11. perza

    perza

    Joined:
    Jun 30, 2013
    Posts:
    7
    Just stumbled into this error when loading a scene, in an Android device as well. Did you find any reason or solution for it?
     
  12. Tharmine02

    Tharmine02

    Joined:
    May 5, 2014
    Posts:
    25
    Same happend to me. Lost all my scene content. This is just inacceptable.
     
  13. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    Same happened.... hell opened... I dead...
     
    taylor_unity722 likes this.
  14. shihui142857

    shihui142857

    Joined:
    Oct 21, 2016
    Posts:
    12
    Unknown error occurred while loading 'level8'.
    (Filename: ./Runtime/PreloadManager/LoadSceneOperation.cpp Line: 109)
    How to solve this bug ? My game crashed.
     
  15. mohsinaaa

    mohsinaaa

    Joined:
    Aug 30, 2017
    Posts:
    3
    I got same error too.
    unknown error occurred while loading 'Assets/Scenes/level.unity'.
    please help how to fix it
     
    YoyoGS likes this.
  16. mohsinaaa

    mohsinaaa

    Joined:
    Aug 30, 2017
    Posts:
    3
    i lost my all work
    This is just inacceptable.
     
  17. mohsinaaa

    mohsinaaa

    Joined:
    Aug 30, 2017
    Posts:
    3
    Unknown error occurred while loading 'Scene Name'.

    Unfortunally i have no backup, can i do something to save the scene?
     
  18. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,074
    After CPU freez I have preserved 0.backup. (before running unity)

    My scene gives me "Unknown error occurred while loading ..."
    And my backup scene (0.backup) gives me the same error.

    Files are different in size and also modification time is different. (0.backup newer)

    Unity 2017.02.0f3

    THIS IS AN UTRAGEOUS SITUATION !!!
     
  19. CryFan001

    CryFan001

    Joined:
    Jun 17, 2018
    Posts:
    1
    This problem is still happening to me. Any unity moderators or unity developers can help?
     
  20. ChristophGeske

    ChristophGeske

    Joined:
    Apr 26, 2015
    Posts:
    5
    Happend to me using unity 2018.2.20f1. I was cutting the power of my pc directly after closing Unity maybe I didn't even wait for Unity to close properly. I forgot the details of how I closed the project. I suspect that Unity was not able to save the work properly and the scene was destroyed. The other scenes in my project still work only the scene I last used is gone.
     
    Markov_Daniil and YukiKomine like this.
  21. jirimotejlek

    jirimotejlek

    Joined:
    Nov 8, 2016
    Posts:
    20
    Just happened to me in Unity 2018.3, I guess that's the way unity works.
     
  22. Tylergcantrell

    Tylergcantrell

    Joined:
    Dec 19, 2018
    Posts:
    1
    I got the same problem
     
  23. CYM

    CYM

    Joined:
    Aug 5, 2013
    Posts:
    20
    Same to me, I use Unity2018.3.3
     
  24. OrdinaryDev83

    OrdinaryDev83

    Joined:
    May 8, 2014
    Posts:
    23
    I found a solution.
    Get into your scene folder and right click on the .unity file and with Unity opened in your project select "Edit Unity scene file", then you'll be in your scene but you now have to copy all the elements of your hierarchy (Ctrl+A) and then paste it into a new scene. Delete the old one (corrupted) and rename the new one with the name of the old one.
    Works with Unity 2018.3.2f1
     
  25. CYM

    CYM

    Joined:
    Aug 5, 2013
    Posts:
    20
    i lost my all work again ,I use git, but still cant recover it
     
  26. CYM

    CYM

    Joined:
    Aug 5, 2013
    Posts:
    20
    My TerrainData can't be recognized by Unity. What's the problem?I use Git, and even if I restore TerrainData with Git, it still doesn't work.
     
  27. CYM

    CYM

    Joined:
    Aug 5, 2013
    Posts:
    20
    I hate unity
     
  28. OrdinaryDev83

    OrdinaryDev83

    Joined:
    May 8, 2014
    Posts:
    23
    The part of the problem is you not creating backups, no only Unity.
     
  29. c_Feng

    c_Feng

    Joined:
    May 15, 2017
    Posts:
    18
    Running into the same problem when using Git and Git-LFS with a project. I'm getting the following error:
    -- --
    Unknown error occurred while loading 'Assets/_Main/Terrain/TropicalIsland.asset'.
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


    I'm on Unity 2019.1.0f2.
     
  30. c_Feng

    c_Feng

    Joined:
    May 15, 2017
    Posts:
    18
  31. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Just a quick look, the solution described would seem to prevent the issue from happening in the future, but not fix any damage already done, and would require you to use a specific naming convention for your terrain assets for them to be recognized as such.
     
  32. c_Feng

    c_Feng

    Joined:
    May 15, 2017
    Posts:
    18
    I've attempted to to rename the asset, as well as create a copy with another name, making sure to include "Terrain" in the name. Neither worked.
     
  33. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    But the solution in the link doesn't appear to do anything to fix the existing corruption of the file. Just prevent it from happening to a healthy terrain asset in the future. Unless I'm misunderstanding the issue.
     
  34. c_Feng

    c_Feng

    Joined:
    May 15, 2017
    Posts:
    18
    I understand what you're saying. What I ended up trying was, after the .gitattributes change, on the machine with the working project, I renamed the terrain asset file, as well as created a new terrain asset file with an appropriate name. Then I made a push and merged onto a second machine. I ended up with the same error for both assets. This is done in addition to deleting the Library folder on both machines and recompiling the project.
     
    Joe-Censored likes this.
  35. c_Feng

    c_Feng

    Joined:
    May 15, 2017
    Posts:
    18
    Because of the inconsistency in which Unity handles .asset files, it appears that the simplest solution is to remove .asset files from being handled by git-lfs at all, as long as you don't have extremely large .asset files.

    See the discussion here:
    https://gist.github.com/nemotoo/b8a1c3a0f1225bb9231979f389fd4f3f

    I updated my existing project to stop using lfs for .asset files by following this solution: https://stackoverflow.com/a/41961459

    Hope this helps anyone running into a similar issue.
     
  36. adambielecki

    adambielecki

    Joined:
    Mar 28, 2014
    Posts:
    21
    Seems like the problem has not been resolved and unity does not give a toss about this problem. Lost all my work, even source control does not help. Time to move into unreal engine.
     
  37. haseeb5639

    haseeb5639

    Joined:
    Dec 6, 2018
    Posts:
    1
    Works perfectly for me. I'm on 2018.4.0f1
    Thank you so much
     
  38. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    429
    Same here.( 2019.3f6

    I opened the scene file with text editor and it is empty.
    I opened different normal scene and it has text data in it.
    So I guess scene data has been cleaned somehow.
    This means there is no way to recover this data besides backups.

    I am pretty much disappointed in the fact that you can lose your data spontaneously.

    Every week Unity gives you unpleasant surprises...
     
    Last edited: Feb 3, 2020
  39. xbayrockx

    xbayrockx

    Joined:
    Jan 13, 2020
    Posts:
    4
    what the actual F*** sudddenly lost my entire project, F*** these S*** developers and S*** software i will now move to unreal engine
     
  40. PantrrBleue

    PantrrBleue

    Joined:
    Aug 16, 2019
    Posts:
    2
    Same here, lost all the stuff in my scene 2 times, lost all of my work. Just inacceptable
     
    darkgaemer248 likes this.
  41. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    429
    And this is a production-ready release...
     
  42. Tranquilfox

    Tranquilfox

    Joined:
    Feb 26, 2017
    Posts:
    2
    I feel you man ugh I spent so much time working on this
     
    TextusGames likes this.
  43. BrightFyre

    BrightFyre

    Joined:
    Feb 26, 2020
    Posts:
    1
    None of the stuff in the scene is showing up
     
    LordChrissi, TextusGames and Ne01 like this.
  44. the_invizible_dood

    the_invizible_dood

    Joined:
    Jan 9, 2017
    Posts:
    5
    it happend to me again for the second time I lost everything this scene I've been working on for months now
    I'm not sure if unity developer are incompetent or if I'm just too stupid to use unity

    - why isn't there a built in auto save and backup feature is it really that hard I'm really confused because there
    is already backup file created every time you enter play mode all you have to do is not delete it is that too much to ask

    i think it's time to switch engines i can't deal with this any longer
     
  45. Zottman

    Zottman

    Joined:
    Apr 3, 2020
    Posts:
    5
    Happened to me aswell.
    Unity 2019.3.12f1
    Lucky that not so much time have been invested into the corrupted terrain.
     
  46. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Not to nag everyone posting here, i know loosing project progress is really bad, but not using source control software and backups is just waiting for loosing data.
    An no that is not only in unity, in software development in general its unwise only to have one copy of your project.

    If you have a way to reproduce the corruption the unity team would be really glad to get a small bug report on how to reproduce it, so that it can be fixed.
     
  47. harti177

    harti177

    Joined:
    Nov 5, 2018
    Posts:
    12
    Laptop Charger problem and switched off while saving the scene. My entire scene is gone. I have backup. But still losing 4 hours of work is unacceptable.

    And this problem exists for five years without any one looking into it ? My confidence in Unity is gone.
     
    TextusGames likes this.
  48. Pandaismyname1

    Pandaismyname1

    Joined:
    Apr 4, 2016
    Posts:
    4
    Had the same issue, due to a power loss.

    Managed to recover the data, using Rider's Local History feature. It works only if you were using Rider as an IDE and it managed to register the external changes.

    Hope this helps some people out there
     
    TextusGames likes this.
  49. umair21

    umair21

    Joined:
    Mar 4, 2016
    Posts:
    147
    Well, I don't know if this will really work for others too but I am sharing my solution for the error that I JUST solved it accidentally while searching online:

    Unknown error occurred while loading '<PROJECT PATH>/library/metadata/50/50163d5bb4e84cb488890b7b584407cd

    What I simply did is, right clicked on the scene that wasn't opening and giving this error (If you are not sure which scene then simply delete all ".META" files) and selected "Show In Explorer" and then simply deleted the ".META" file of that specific scene which wasn't working and it worked. :D
    It worked for me may be because it says metadata in this error. Don't know about others.
     
  50. angelromp06

    angelromp06

    Joined:
    May 4, 2020
    Posts:
    1
    I have faced various problems with unity but this is the worst. I had created a huge laboratory which was a lot of mbs and it’s all gone now! After so many hours of struggling unity couldn’t find my scene whatever I did. I know there is backup but if I did backup to everything I created I would just have no more memory on my computer. Shame on the developers that haven’t fixed this problem. It’s so serious and it exists for 5 years. Why don’t the fix it?
     
Thread Status:
Not open for further replies.