Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Resolved] Bug: Unity doesn't save a scene unless you exit

Discussion in 'Editor & General Support' started by Scattershot Inc., Aug 15, 2012.

Thread Status:
Not open for further replies.
  1. Scattershot Inc.

    Scattershot Inc.

    Joined:
    Aug 2, 2012
    Posts:
    10
    This is the most frustrating bug that I've ever encountered in unity. It's been around for as long as I've been developing with it, which was 2.0. A scene in unity will not actually save unless you close unity. So if I spend 2 hours building a scene, while frequently hitting the save button in the file menu, but then unity crashes, the entirety of my work will be completely gone. There's no autosave, and for some completely ridiculous reason, a scene will not actually save unless I close unity completely and reopen it.

    Why doesn't the save button actually save the scene? This is a bug that I very much hope will be fixed in the next update.

    I'm using 3.5.5f on Windows 7 Enterprise x64.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    The "save scene" menu item actually does save immediately, not when closing (as evidenced by the fact that if I save a scene, then accidentally freeze Unity by making an infinite loop so I have to force-quit, the scene is exactly as it was when I saved it). Are you hitting "save project" maybe? I just use the keyboard shortcut.

    Also there is auto-save, it's just inexplicably hidden. The scene is saved whenever you hit play, and stored in the temp folder, so you can retrieve it (before launching Unity again) by moving it somewhere safer and renaming it.

    --Eric
     
    kikka505 likes this.
  3. Scattershot Inc.

    Scattershot Inc.

    Joined:
    Aug 2, 2012
    Posts:
    10
    I do click save scene. I've been able to reproduce the bug consistently.

    But that's a nice tip about the temp folder. Where is that?
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    In the relevant project folder.

    --Eric
     
  5. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    Note that if you're making changes to prefabs, those aren't saved until you do Save Project.

    I usually hit both options, to be on the safe side.
     
  6. Tim Laursen

    Tim Laursen

    Joined:
    Dec 1, 2013
    Posts:
    1
    I have the exact same problem in Unity 4.3. I can press <Ctrl>-S or select "Save Scene" from the menu all I want. The star in the title bar of the window that indicates that the scene has been changed never goes away.

    Only if I close down Unity, am I asked if I want to save my changes, and after clicking "Yes", the scene is actually saved.

    I'm not using any sort of version control, so it can't be because the scene file is marked read only or anything.

    I wish Unity had the same feature as this quick reply window: An auto save function. Unity sometime crashes, and sometimes my PC crashes all by itself. It would be so awesome if there was a "recover unsaved" function that could save you from losing hours of work.
     
    mipo likes this.
  7. mipo

    mipo

    Joined:
    Aug 22, 2013
    Posts:
    19
    Same here.
    But only with one scene.

    In this project I have 3 similar pinball scenes.
    2 load and save, no problem.
    1 never saves.
    I can't figure the difference between the 3 scenes. They have similar assets, use 3D physics in roughly the same way, share most of their scripts...
     
  8. IndieForger

    IndieForger

    Joined:
    Dec 31, 2012
    Posts:
    92
    This is the most annoying bug so far. Have the same problem. Clicking save and nothing happens. It seems as if Unity would totally ignore it.

    I have spent almost 2 hours trying different things intensively googling for an answer and kind of suspecting that it might be system related ( I am on windows 7) but to be honest that is yet another messy issue that comes with Unity3d. I am frustrated like hell! Why there is not even an error message or popup or anything that would indicate the problem.

    Dead end.
     
  9. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    What's the bug number you reported? If your bug report includes your project maybe the QA team and work out what's happening.
     
    IndieForger likes this.
  10. IndieForger

    IndieForger

    Joined:
    Dec 31, 2012
    Posts:
    92
    After few days of digging I have finally found the problem. I am posting this message here in case someone runs into similar one. It always helps to narrow down the problem and so I have tried all below:

    - exporting assets as unity package and re-importing them to an empty project
    - checking for local permissions
    - reinstating unity
    - reinstating MS VisualStudio Tools for Unity
    - testing if "save works" with empty project ( I SHOULD HAVE DONE THAT FIRST !!!! )
    - recreating whole project adding/importing package by package

    I noticed that when I have empty project saving works ok so the last listed approach allowed to narrow down potential causes of the problem to eventually find the issue itself! The problem was Full Inspector package that didn't seem to play nice with Unity 4.6.1.

    And so I contacted Jacob Dufault (author of the plugin) and he pointed me out to the Full Inspector forum with a patch for his plugin. Kudos for Jacob! This guys is very responsive and Full Inspector is awesome. Get it from the Asset Store if you don't have it yet.

    Thanks for responding Graham! Much appreciated. Luckily it was dev-related issue not a Unity one. Patience was the key here.
     
    WBChan and Graham-Dunnett like this.
  11. Martian-Games

    Martian-Games

    Joined:
    Jan 19, 2012
    Posts:
    43
    I had this same issue .. I solved it by deleting asset-store package "Usequencer" ..a file named "USequencerRuntime" was the culprit .. so indeed it appears to be a dev/script issue and not an issue with the Unity Editor itself. Hopefully someone here will eventually discover exactly what sort of nasty code can circumvent the Editor's scene save . ... ?
     
    Last edited: Jan 13, 2015
  12. Ted-Brown

    Ted-Brown

    Joined:
    Oct 16, 2012
    Posts:
    32
    I've been working on an old, very complex project (meaning: lots of third-party plugins) successfully, up to 4.5.5. I bought Pro, updated to 4.6.1f1, and now I can't save scenes. (I verified it was a project-specific issue by starting a new project and testing there)

    This is ridiculous. No third-party extension should be able to block Unity from writing the scene to a file. But since it's apparently possible, it should kick out some sort of warning or error to the console.

    Can I get a Unity rep to verify if this issue is being looked at?

    And for devs facing the same issue with third-party plugins, was there a specific issue with the plugin that you found that I could look for?

    Thanks

    * Note: I am able to save -new- scenes, but after that, all ability to make changes fails. Odd.
    * Note 2: "Save As" seems to work, as long as you give it a new filename. This is a PITA for version control, Build Settings, and the like, but seriously, WTF?
     
    Last edited: Jan 14, 2015
  13. Martian-Games

    Martian-Games

    Joined:
    Jan 19, 2012
    Posts:
    43
     
  14. Martian-Games

    Martian-Games

    Joined:
    Jan 19, 2012
    Posts:
    43
    Have you yet been able to figure out what sort of editor script can block the editor's ability to save a scene? It would help us to Find and Replace if we know what to look for. This issue has suddenly arisen since version 4.6 and many devs using asset store packages are dealing with this now. :(
     
  15. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    As Graham said - we need a bug report with your project attached. I'm happy to look at this issue, but, well, I need something to look at :) In most situations we already do write an error message to the console, so what you're seeing is a non-obvious state of affairs.

    As far as what kind of editor script can cause the problem goes: I see that Full Inspector's issue involved an AssetModificationProcessor. That seems a likely place to start looking in your own projects.
     
  16. Zorranco

    Zorranco

    Joined:
    Jul 15, 2014
    Posts:
    23
    It is very common...I suffered this from Unity 4.x but I must admit my project had multiple assets installed and deleted later...I don't want to recreate everything from scratch so surely my only choice is to wait for new version :(

    One scene is super overloaded and does not save...other 2 minor scenes save ok.
     
  17. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
  18. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    Have you filed a bug yet? If so, what's the report number?
     
  19. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,614
    Graham answered your question; no more, no less. Why u mad, bro?

    The forum is not the correct channel in which to report bugs. We don't - usually can't - take action because there's not enough information for us to reproduce the bug on our end, just as in this case. You have to help us to help you; report a bug with your project and steps to reproduce, and we'll take a look.

    But until someone does that for this issue - as far as I know, nobody has done so yet - nothing is going to happen about it. We have many other bugs to investigate which people have helped us reproduce, and we'll focus on them because our chances of fixing them successfully are dramatically higher.
     
    Graham-Dunnett likes this.
  20. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    How do we know your bug is different from the one @IEvaluation mentioned and fixed for himself? We're happy to get our QA team to look at your problem, and SuperPig even said he'd take a look at Ted Brown's problem, and am sure he'd look at yours.

    You asked me why this thread got a [Resolved] status, and it's because there are instructions about how the problem can be solved. It's possible, of course, that you've tried this fix and it's not worked for you. Which means you might have a different problem. If you've submitted a bug report from the editor, then that can be looked into by our QA team. The forum isn't the place you report bugs. The forum allows you to have a discussion about issues and problems and get input from other community members.
     
  21. Zorranco

    Zorranco

    Joined:
    Jul 15, 2014
    Posts:
    23
    I would be very happy if someone opens ticket. I have very small (very :D) upload bandwith, but I will try to narrow down my project folder (now 1.6 GB, impossible for me to upload) and open new bug report
     
Thread Status:
Not open for further replies.