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
0
Question by LEGEND383 · Dec 16, 2013 at 04:39 PM · editorcrashexit

unity crashes on exit

This seems to happen at random, and I've had it on both of my machines and the machines at my uni, so I'm pretty sure it's not a problem with the machine (though I could be wrong).

Basically what happens is, when I exit unity, by clicking the x in the top corner or alt-f4, the editor just hangs indefinitely and task manager instantly reports it as not responding.

This has happened on windows xp, 7, 8 and 8.1, with unity 4.3 and every update since.

Anybody know of what could be causing this and/or possible fixes, it would be greatly appreciated.

Comment
Add comment · Show 1
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 TimBorquez · Dec 16, 2013 at 09:40 PM 0
Share

same thing happens to me since i updated to 4.3, i don't think it's our fault, i'm just waiting for another update

4 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by haim96 · Dec 16, 2013 at 09:44 PM

kill the adb.exe process and then close UNITY.

Comment
Add comment · Show 5 · 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 haim96 · Dec 16, 2013 at 09:44 PM 0
Share

it's adb.exe *32 if you have 64bit system... if you already closed unity and it hanged. just close the process and unity will be closed as well.

avatar image TimBorquez · Dec 16, 2013 at 10:02 PM 0
Share

so wait, it's an android thing that causes it?

avatar image haim96 · Dec 17, 2013 at 08:25 AM 0
Share

kind of... and it's not a solution. only a work around. i think unity guys still need to work it out.

avatar image LEGEND383 · Dec 17, 2013 at 01:55 PM 0
Share

thanks for the work around, would be nice if there was a proper fix though

avatar image paulygons · Jan 24, 2014 at 05:57 PM 0
Share

This answer solved it for me if I launch Unity from a batch file that first loads adb! Also, this Issue Tracker status is closed. Do we need to re-file the issue?

avatar image
0

Answer by twburger · Mar 15, 2014 at 01:05 AM

As of 4.3.4f1 it still exists as a bug. Need to run taskkill /IM adb.exe /F Seems to be a questions of the "WRONG" version of ADB.EXE from what I have read, but which is the "RIGHT" one? This powershell script fixes it:

 start-process "D:\Program Files (x86)\Unity\Editor\Unity.exe"
 
 $unity = get-process unity
 
 $adb = $NULL
 
 do {
 
  $adb = get-process adb
 
  if($adb)
  {
 
      Stop-Process $adb.id
 
  }
 
   Start-Sleep -m 5000
 
   $unity = get-process Unity
 
 } while( $unity -ne $NULL )

HOW TO RUN IT: Create a shortcut with this in it

 powershell.exe -windowstyle hidden -File "D:\Program Files (x86)\Unity\unity.ps1"

Files here: FILES

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
avatar image
0

Answer by 1elfdragon1 · Mar 19, 2014 at 10:34 AM

(windows) open notepad, and paste this

("Name" = your account name)

(Program Files (x86) can also be Program Files, depends on your hardware)

.

@echo off

cd C:\\Users\\"Name"\\AppData\\Local\\Android\\android-sdk\\platform-tools

adb devices

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

start Unity.exe

Exit

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
avatar image
0

Answer by Kempain · Nov 15, 2014 at 06:32 PM

I had a very similar problem which was resolved just by adding the location of ABD as a system path. Tried the above script and realised that ADB wasn't even running.

Once I added the location of ADB as a system path, I'm guessing Unity could then find and start/stop it itself so the crash on exit was resolved for me. I didn't need to use the above script after that.

To add ADB to your system path: 1. Open command prompt as admin 2. Type: setx PATH "%PATH%;C:\Program Files\android-sdk-windows\platform-tools" (change location of ADB as required)

The above fixed the crash problem for me on Windows 8.1 and I also force DX11 to make Unity more stable on Windows 8.1.

I'm also not sure if Unity installs the Android dev tools because I already had those installed so if you can't find ADB and have the same problem I would suggest installing the Android dev tools as per the below article then setting the system path to ADB.

http://developer.android.com/sdk/index.html

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

24 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 avatar image

Related Questions

Unity Editor crashing when editing scripts referenced from GameObjects 1 Answer

unity is crashing when I open my project 1 Answer

How can I fix/stop my Unity from crashing when using the Unity inspector? 0 Answers

Text missing in Editor; huge amounts of bugs and glitches 0 Answers

Object limit in Editor (crash) 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