Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by nyonge · Nov 25, 2013 at 04:39 AM · crashfreezequit

Unity freezes on Quit (4.3)

Unity always freezes whenever I hit Quit. I have to open up the Task Manager and force quit the process. Anyone have any idea why this is? I'm using Unity Pro 4.3 on Win 7 64-bit machine, everything's nice and updated.

(I know I know, if it only happens on Quit why does it matter anyway. But it is pretty annoying having to force quit, even if I'm just restarting the editor.)

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MarkFinn · Nov 25, 2013 at 10:58 PM 0
Share

Are you using any odd networking connections? I've had issues where synchronous networking causes freezes on editor and web builds if you don't tidy up every last detail perfectly before quitting.

avatar image paulygons · Nov 25, 2013 at 11:06 PM 0
Share

I have the same problem but haven't been able to recreate it every single time. No odd networking connections here. Also Win 7 64bit but Unity 4.3 free. Are you also using $$anonymous$$onoDevelop?

avatar image Ful · Nov 25, 2013 at 11:08 PM 0
Share

Yeah I'm also having a similar problem, well this mostly occurs to me whenever I'm making any modifications in my scripts and saving it afterwards.

When you create a new project, save it, then quit. Does it crash? Also are you using Unity 2D features? I noticed that If I don't make any changes in my script but only to my scene, everything is fine.

avatar image nyonge · Nov 25, 2013 at 11:24 PM 0
Share

No, not using any networking connections, I doubt that's it. It happens with about like, 80% likelihood, not all the time but far more often than not.

It doesn't crash if I immediately open and close the project like @Ful described. And yeah, I'm using a number of Unity 2D features, as well as $$anonymous$$onoDevelop.

avatar image ODNSEV7N · Nov 26, 2013 at 02:45 AM 0
Share

$$anonymous$$ine does this now, I have to open up Taskmanager and kill the ADB program.

It lets unity recover from it's pause, but the ADB will always pop up when you run unity . (well it does for me), so I have to constantly kill the ADB program most times I quit unity.

(If you have Android that is)

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by traveler · Dec 19, 2013 at 01:17 AM

I'm using Windows 7 and am a Unity noob. I used to do a lot of batch programming about 20 years ago, so I put together this old DOS batch file to launch adb.exe before running unity. You can create a windows icon to this batch file. When you double-click the icon, it launches the Android adb.exe, then launches Unity. I guess that when you launch Unity, if adb.exe is already loaded, it doesn't try to load the rogue version. I have been able to successfully execute a scene and exit unity multiple times without it freezing. Batch file listed below: I had to insert extra line feeds to make the batch file readable. Past into notepad and save with the .bat extension.

@echo off

REM edit the next line to reflect your Android platform-tools folder

cd C:\Users\user\workspace\android-sdk-windows\platform-tools

adb devices

cd "C:\Program Files (x86)\Unity\Editor\"

unity

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image paulygons · Jan 19, 2014 at 05:41 PM 0
Share

Traveler's batch work around seems to fix it, although the last two lines did not make Unity start after ADB started (my path to Unity is different, but using the correct path to Unity's install folder didn't help). I substituted the following and Unity now does start, although the command line prompt never closes. Can anyone make sense of that?

 @echo off

 RE$$anonymous$$ edit the next line to reflect your Android platform-tools folder

 cd D:\Program Files Alt\Android\sdk\platform-tools

 adb devices

 "D:\Program Files Alt\Unity4\Unity.exe"

edit: Figured it out.

 start D:\"Program Files Alt"\Unity4\Unity.exe
avatar image
0

Answer by twburger · Mar 15, 2014 at 03:55 AM

Powershell to launch Unity and kill ADB.EXE process when it is launched.

http://answers.unity3d.com/questions/598061/unity-crashes-on-exit.html#answer-664315

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What might cause an Android app to freeze 1 Answer

Difficulty publishing for android device 1 Answer

Editor freezes while playing audio loop. 1 Answer

Raycasting freezes the Android device? 2 Answers

Application.Quit Does Not Fully Kill App 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges