Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity 2018.3.7f1][Github for Unity 1.2.1-6394] Editor Freeze #1027

Closed
soraphis opened this issue Mar 5, 2019 · 19 comments
Closed

[Unity 2018.3.7f1][Github for Unity 1.2.1-6394] Editor Freeze #1027

soraphis opened this issue Mar 5, 2019 · 19 comments

Comments

@soraphis
Copy link

soraphis commented Mar 5, 2019

github-unity.log (click me)
SystemDrive:C:
HOME:C:\Users\sorap
windir:C:\WINDOWS
GHU_WORKINGDIR:D:\Users\Dokumente\Unity3D\New Unity Project
FPS_BROWSER_USER_PROFILE_STRING:Default
HOMEPATH:\Users\sorap
GHU_FULLPATH:C:\Program Files\Git LFS;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\libexec\git-core;C:\Program Files\Git\mingw64\bin;END;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\sorap\AppData\Local\Microsoft\WindowsApps;C:\Users\sorap\AppData\Roaming\npm;D:\Programme\nodejs;C:\Python36;C:\Python36\Scripts;D:\tmp\docker-platformio-core-master\platformio.sh
CommonProgramFiles(x86):C:\Program Files (x86)\Common Files
APPDATA:C:\Users\sorap\AppData\Roaming
OneDrive:C:\Users\sorap\OneDrive
PROCESSOR_LEVEL:6
CommonProgramW6432:C:\Program Files\Common Files
ProgramFiles(x86):C:\Program Files (x86)
SystemRoot:C:\WINDOWS
SESSIONNAME:Console
GIT_LFS_PATH:C:\Program Files\Git LFS
LOGONSERVER:\\HRZR-MATRIX
LOCALAPPDATA:C:\Users\sorap\AppData\Local
HOMEDRIVE:C:
USERDOMAIN_ROAMINGPROFILE:HRZR-MATRIX
ProgramData:C:\ProgramData
 ---> GitHub.Unity.ProcessException: Process timed out
  at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164 
   --- End of inner exception stack trace ---
GitHub.Unity.ProcessException: Process timed out
  at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164 
=======
  at GitHub.Unity.Repository.InvalidationFailed (System.Exception ex, GitHub.Unity.CacheType cacheType) [0x00000] in C:\projects\unity\src\GitHub.Api\Git\Repository.cs:248 
  at GitHub.Unity.Repository+<>c__DisplayClass68_0.<CacheHasBeenInvalidated>b__3 (System.Exception ex) [0x00000] in C:\projects\unity\src\GitHub.Api\Git\Repository.cs:225 
  at System.Reflection.MonoMethod.InternalInvoke () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at GitHub.Unity.TaskBase.RaiseFaultHandlers (System.Exception ex) [0x00074] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:453 
  at GitHub.Unity.ProcessTaskWithListOutput`1+<>c__DisplayClass20_0[T].<RunWithReturn>b__1 () [0x000b5] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:497 
  at GitHub.Unity.ProcessWrapper.Run () [0x003cd] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:199 
  at GitHub.Unity.ProcessTaskWithListOutput`1[T].RunWithReturn (System.Boolean success) [0x00061] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:506 
  at GitHub.Unity.TaskBase`1[TResult].RunSynchronously () [0x00049] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:685 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at GitHub.Unity.ThreadPerTaskScheduler+<>c__DisplayClass4_0.<QueueTask>b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ConcurrentExclusiveInterleave.cs:440 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
190305-14:26:33.973 ERROR [76] <TaskManager>                       Exception on concurrent thread: 2 git lfs locks
GitHub.Unity.ProcessException: Error code -42
Process timed out
'C:\Program Files\Git LFS\git-lfs.exe locks --json'
PLINK_PROTOCOL:ssh
USERDOMAIN:HRZR-MATRIX
ProgramFiles:C:\Program Files
TMP:C:\Users\sorap\AppData\Local\Temp
PROCESSOR_ARCHITECTURE:AMD64
DISPLAY:0
PROCESSOR_REVISION:3c03
OS:Windows_NT
ALLUSERSPROFILE:C:\ProgramData
PROCESSOR_IDENTIFIER:Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
CHROME_ALLOCATOR:TCMALLOC
GOOGLE_API_KEY:AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q
ProgramW6432:C:\Program Files
TERM:msys
USERPROFILE:C:\Users\sorap
JAVA_HOME:D:\Programme\Java\jdk_1_8
CommonProgramFiles:C:\Program Files\Common Files
DriverData:C:\Windows\System32\Drivers\DriverData
ComSpec:C:\WINDOWS\system32\cmd.exe
GITLFSLOCKSENABLED:1
PSModulePath:C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PUBLIC:C:\Users\Public
USERNAME:sorap
NUMBER_OF_PROCESSORS:4
FPS_BROWSER_APP_PROFILE_STRING:Internet Explorer
TEMP:C:\Users\sorap\AppData\Local\Temp
Path:C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\sorap\AppData\Local\Microsoft\WindowsApps;C:\Users\sorap\AppData\Roaming\npm;D:\Programme\nodejs;C:\Python36;C:\Python36\Scripts;D:\tmp\docker-platformio-core-master\platformio.sh
GIT_EXEC_PATH:C:\Program Files\Git\mingw64\libexec\git-core
COMPUTERNAME:HRZR-MATRIX
PATH:C:\Program Files\Git LFS;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\libexec\git-core;C:\Program Files\Git\mingw64\bin;END;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\sorap\AppData\Local\Microsoft\WindowsApps;C:\Users\sorap\AppData\Roaming\npm;D:\Programme\nodejs;C:\Python36;C:\Python36\Scripts;D:\tmp\docker-platformio-core-master\platformio.sh
PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
SystemDrive:C:
HOME:C:\Users\sorap
windir:C:\WINDOWS
GHU_WORKINGDIR:D:\Users\Dokumente\Unity3D\New Unity Project
FPS_BROWSER_USER_PROFILE_STRING:Default
HOMEPATH:\Users\sorap
GHU_FULLPATH:C:\Program Files\Git LFS;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\libexec\git-core;C:\Program Files\Git\mingw64\bin;END;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\Resources\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git LFS;D:\Programme\MikTex_2_9\miktex\bin\x64\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Programme\Windows Kits\10\WindowsSDK\Windows Performance Toolkit\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\sorap\AppData\Local\Microsoft\WindowsApps;C:\Users\sorap\AppData\Roaming\npm;D:\Programme\nodejs;C:\Python36;C:\Python36\Scripts;D:\tmp\docker-platformio-core-master\platformio.sh
CommonProgramFiles(x86):C:\Program Files (x86)\Common Files
APPDATA:C:\Users\sorap\AppData\Roaming
OneDrive:C:\Users\sorap\OneDrive
PROCESSOR_LEVEL:6
CommonProgramW6432:C:\Program Files\Common Files
ProgramFiles(x86):C:\Program Files (x86)
SystemRoot:C:\WINDOWS
SESSIONNAME:Console
GIT_LFS_PATH:C:\Program Files\Git LFS
LOGONSERVER:\\HRZR-MATRIX
LOCALAPPDATA:C:\Users\sorap\AppData\Local
HOMEDRIVE:C:
USERDOMAIN_ROAMINGPROFILE:HRZR-MATRIX
ProgramData:C:\ProgramData
 ---> GitHub.Unity.ProcessException: Process timed out
  at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164 
   --- End of inner exception stack trace ---
  at GitHub.Unity.ProcessTaskWithListOutput`1+<>c__DisplayClass20_0[T].<RunWithReturn>b__1 () [0x000da] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:498 
  at GitHub.Unity.ProcessWrapper.Run () [0x003cd] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:199 
  at GitHub.Unity.ProcessTaskWithListOutput`1[T].RunWithReturn (System.Boolean success) [0x00061] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:506 
  at GitHub.Unity.TaskBase`1[TResult].RunSynchronously () [0x00049] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:685 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
GitHub.Unity.ProcessException: Process timed out
  at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164 
=======
  at GitHub.Unity.TaskManager+<>c__DisplayClass30_0`1[T].<ScheduleConcurrent>b__0 (System.Threading.Tasks.Task tt) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\TaskManager.cs:146 
  at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at GitHub.Unity.ThreadPerTaskScheduler+<>c__DisplayClass4_0.<QueueTask>b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ConcurrentExclusiveInterleave.cs:440 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 

Description

Unity Freezes after making changes to the project and pressing play.

Steps to Reproduce

So i wrote a rather long e-mail to the unity support today after i opened an issue yesterday, because of the freeze. and after further investigation and testing it seems to be an issue of this plugin and not on the unity side.

the full mail is here, including every steps i made to get it to freeze - multiple times

[The mail I wrote]

Hi,

Thanks for the fast reply! After reporting the bug yesterday, i created a new project - because it seems the bug happened only in this one project.
So in this new project (Unity 2018.3.7f1) I added the meshes and materials for our project and added the Github for Unity (https://unity.github.com/) plugin.

I tested spamming the play/stop button and it never froze.

(While writing this email, i'm (re)doing those tests, so the following is kind of an log file)
(After finishing this mail I think i could pin it down to the Github for Unity plugin, and I'm going to create an issue there, but my testings and findings might be interesting for you so I'm sending the whole mail anyway. Wall of Text following)

The next thing i did was importing cinemachine (2.2.8). I added an Free Look Camera (Menu: Cinemachine > Free Look) and created an empty gameobject "lookAt" which i used as lookAt for the cinemachine Free Look Camera. (I'm not using a follow object). Pressed Play: the editor froze.

I killed the process and restarted the project. now i could play the scene without issue. I added the "lookAt" gameobject also as follow target for the cinemachine Free Look Camera. pressed play -> the editor froze.

I killed the process again, and restarted the project. pressing play and the scene does play now with a lookAt and follow target.
So i removed look at and follow target from the Free Look Camera, and pressing play worked just fine. re-adding both and pressing play made the editor freeze again.

I removed all the Cinemachine objects from the scene, moved the camera to another position. pressed play it worked. stopped and pressing play again froze the editor. after a restart it froze again.

I removed Cinemachine via the package manager. And delted the Gizmos folder cinemachine created. pressing play -> the editor froze.
After restarting it, now with cinemachine uninstalled i can spam play/stop without freezing moving the camera in the scene view and no freezing.

that made me wondering. i added a box collider to the camera, pressed play -> the editor froze.

So in the current state unity freezes when i simply add a component and press play.

I went to \AppData\Roaming\Unity and removed the Caches, Editor-5.x and Packages folder. Aswell as the Library, Logs and Temp folder in my Project.
I restarted the project, opened my scene again.

spamming play/stop does not result in a freeze.
removing the box collider from the camera (that was saved earlier) and pressing play does not result in a freeze.
adding it again and pressing play - does not result in a freeze

changing the editor layout to my preferences.
changing positions, adding components - pressing play: no freeze.

my conclusions out of this testing (so far)

  • it has something to do with cinemachine, and the way packages are installed and cached.
  • the editor freezing makes it really hard to find why it does this

maximizing the editor window - pressing play: freeze (at this point i was like WTF)
restarted the editor, changed the layout again because it was not saved.
pressing play - worked. maximizing + pressing play - worked. changing the window size pressing play.
minimizing, maximizing pressing play. no freeze.

my conclusios so far

  • from observing the behaviour I'd say it is a problem with my machine.
    BUT: that can't be the problem, because i did not even realize that the project froze until a friend that also works on the project wrote me about it.
  • the editor works fine again, its that one freeze after maximizing the editor window that puzzles me. and i can't reproduce that one.

also this is the second time i made these tests. last night i did all of this, too (adding cinemachine - freezing the editor multiple times, removing cinemachine still freezing, clearing caches and everything working fine again)

My System:
Core i5-4670K
GTX 970
16GB DDR 3 RAM
MSI Z87-G43

Windows 10 Pro (version 1803)


I used the package manager to import Cinemachine 2.2.7
and tried some of the things that made the editor crash with Cinemachine 2.2.8. it was way harder to do that but after playing around with the follow / lookAt fields in the freeLook camera i managed to do it again.

also note: the rest of my computer responds just fine, its only unity that freezes.
also note: when unity freezes it has 0% CPU usage (and ~650 MB RAM). so it does not seem to be an infinite loop - maybe a deadlock?

again after removing the Cinemachine 2.2.7 gameobjects the editor is still freezing when adding/removing components
I removed the Package with the package manager. and it seemed stable at first, but i managed to crash it with multiple component changes
After that it seemed again stable, i could not crash it with GameObject/component changes. but i deleted the gizmos folder that cinemachine created and it crashed again.

I tried to crash it again with minimizing / maximizing the editor window or creating/deleting assets or changing components/game objects but no luck so far.
it seems to be stable again.

my conclusios so far

  • if it has something to do with cinemachine, both 2.2.7 and 2.2.8 are affected.

I installed the post processing package from the package manager. I added Volume and Layer to my camera fiddled a bit with components, pressed play and it crashed

my conclusios so far

  • it has nothing to do with cinemachine.

I removed the Github plugin, and tried some of the things i did prior to freeze the Editor. and it seems to be stable for now.

my conclusios so far

  • its the Github plugin,
    but: i also use this plugin in another project where i have absolutely no issues at all.

I imported cinemachine 2.2.8 again (note, sometimes after installing it no Gizmos folder is created, but this is just a side note).
no freezes so far.

so it really is the Github plugin - but why does my other project work fine? i.d.k. but i will post an issue on the github plugins repository.


after sending the mail I readded the plugin to the project. it first seemed to be stable, but after restarting the editor, i wanted to change the branch, which the tool did not let me (so i did it manually on the command line) and i wanted to commit my testings but the commit button stayed disabled. so i did the commit manually. restarded unity and at this point i can reproduce the freezes again.


Expected behavior: Not Freezing, but instead playing the scene
Actual behavior: Untiy freezing
Reproduces how often: ~95-100%

Additional Information

  • sometimes it freezes when trying to close Unity, not just when pressing play.
@vvalente87
Copy link

Hello,

I have the same problem even after updating the plugin to the version 1.3.
I've also noticed that the plugin launch multiple instances of "Git for WIndows" process.

GIIIIIITTT

@soraphis
Copy link
Author

  • do you use the system git or the bundlet git?

i use the system git with git version 2.20.1.windows.1

i just tried with 1.3 and did not get it to freeze (at least not in a fast test)
i have not a single one "git for windows" process running oO, will keep an eye onto that.

if i press refresh/fetch in the github panel, an "git-lfs" process is started.
(also if i press multiple times, it starts multiple processes, even if the first one is still running

@afshinunity
Copy link

@StanleyGoldman
I have exactly the same problem. I was in unity 2018.2 with this issue, then updated to 2018.3 and i still have this freezing problem.
I never used this plugin and I didn't have any problem before adding github plugin, but after adding this plugin unity started freezing sometimes. Exactly like soraphis said(sometimes by pressing play btn, sometimes by pressing unity close btn).
Github plugin version: 1.2(i never updated this plugin)

@soraphis
Copy link
Author

soraphis commented Mar 21, 2019

@afshinunity

can you try the following steps (best in this order)

  • can you check in the taskmanager if there are multiple "Git for Unity" processes running?
  • enable the "github for unity" log (in the github panel > settings there is a checkbox) and post its contents after a crash here
  • update to 1.3 and try to crash it
  • if you succeed. remove the plugin, restart unity. remove the plugin again (there should be remaining files after a restart). reinstall 1.3. restart unity and try again.
    if you succeed (in crashing unity with 1.3 fresh installed) post here what you tried

@soraphis
Copy link
Author

soraphis commented Apr 1, 2019

Btw. 1.3 froze unity for me too. if i find some time i'll do sme further investigation

@afshinunity
Copy link

@soraphis
i also have this issues with 1.3 still.
if you end the github for unity task(along with LTS) in task manager you can temporarly Get rid of freeze but it will come again and again in a minute.

@yutamago
Copy link

@soraphis
I'm suffering from the same freeze on play issue and possibly narrowed it down to missing ssh support #244.
When it freezes, I can see ssh.exe having multiple handles open on the project folder.
If I close one or all of those ssh processes, Unity will unfreeze.

If I then change the repository origin to HTTPS instead of SSH, Github for Unity will ask me for credentials and Unity wont freeze again.

@soraphis
Copy link
Author

soraphis commented May 16, 2019

If I then change the repository origin to HTTPS instead of SSH, Github for Unity will ask me for credentials and Unity wont freeze again.

Thats weird, because I know for a fact that one of my friends cloned it via https (having the same issue), but if I find some time i will try fiddling around with that

@moonbuffalo
Copy link

My Editor is still freezing, on 2019.1.4.f1. also geting the multiple instance issue @vvalente87 had...
GithubForUnityIssue

So I restarted unity and this time I looked at the boot log for git log for unity... here are the interseting snippets:
...LogSnippet1

190526-13:44:55.489 TRACE [57] Running 'C:\Users<RETRACTED_USERNAME>\AppData\Local\GitHubUnity\git-lfs\git-lfs.exe locks --json'
190526-13:44:55.631 TRACE [ 1] Restarted C:\GIT<RETRACTED-UNITY-PROJECT>
190526-13:45:00.531 WARN [57] Error invalidating GitLocks
GitHub.Unity.ProcessException: Error code -42
Process timed out
'C:\Users<RETRACTED_USERNAME>\AppData\Local\GitHubUnity\git-lfs\git-lfs.exe locks --json'

GitHub.Unity.ProcessException: Process timed out
at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164
--- End of inner exception stack trace ---
GitHub.Unity.ProcessException: Process timed out
at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164

at GitHub.Unity.Repository.InvalidationFailed (System.Exception ex, GitHub.Unity.CacheType cacheType) [0x00000] in C:\projects\unity\src\GitHub.Api\Git\Repository.cs:262
at GitHub.Unity.Repository+<>c__DisplayClass74_0.b__4 (System.Exception ex) [0x00000] in C:\projects\unity\src\GitHub.Api\Git\Repository.cs:239
at System.Reflection.MonoMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Exception& exc) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at GitHub.Unity.TaskBase.RaiseFaultHandlers (System.Exception ex) [0x00074] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:453
at GitHub.Unity.ProcessTaskWithListOutput1+<>c__DisplayClass20_0[T].<RunWithReturn>b__1 () [0x000b5] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:497 at GitHub.Unity.ProcessWrapper.Run () [0x003cd] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:199 at GitHub.Unity.ProcessTaskWithListOutput1[T].RunWithReturn (System.Boolean success) [0x00061] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:506
at GitHub.Unity.TaskBase1[TResult].RunSynchronously () [0x00049] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:685 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at GitHub.Unity.ThreadPerTaskScheduler+<>c__DisplayClass4_0.b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ConcurrentExclusiveInterleave.cs:440
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
190526-13:45:00.535 ERROR [60] Exception on concurrent thread: 1 git lfs locks
GitHub.Unity.ProcessException: Error code -42
Process timed out

GitHub.Unity.ProcessException: Process timed out
at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164
--- End of inner exception stack trace ---
at GitHub.Unity.ProcessTaskWithListOutput1+<>c__DisplayClass20_0[T].<RunWithReturn>b__1 () [0x000da] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:498 at GitHub.Unity.ProcessWrapper.Run () [0x003cd] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:199 at GitHub.Unity.ProcessTaskWithListOutput1[T].RunWithReturn (System.Boolean success) [0x00061] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:506
at GitHub.Unity.TaskBase1[TResult].RunSynchronously () [0x00049] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:685 at System.Threading.Tasks.Task1[TResult].InnerInvoke () [0x0000f] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.Execute () [0x00010] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
GitHub.Unity.ProcessException: Process timed out
at GitHub.Unity.ProcessWrapper.Run () [0x001d9] in C:\projects\unity\src\GitHub.Api\Tasks\ProcessTask.cs:164

at GitHub.Unity.TaskManager+<>c__DisplayClass30_0`1[T].b__0 (System.Threading.Tasks.Task tt) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\TaskManager.cs:146
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at GitHub.Unity.ThreadPerTaskScheduler+<>c__DisplayClass4_0.b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ConcurrentExclusiveInterleave.cs:440
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0

I will poke around git-lfs stuff for a bit to try to fix this but I really don't have the time to start working on this project today. Hopefully this was helpful for someone!

@ghost
Copy link

ghost commented Jul 6, 2019

I have the same issue here
isn't there a solution yet ?!!

@ghost
Copy link

ghost commented Jul 6, 2019

By the way for people who have a bunch of "Git for windows" process ,you can close it from the task manager and then unity editor will work again without closing it , for each time you press the play button ,two of "Git for windows" added to the unity process
and by the time it becomes a huge number of it which make the editor freezes
so you can close these process from task manager if you do not want to close the all unity program
in this way the freeze will gone without closing unity
but it's boring to do this every multiple times of testing your game
There must be a real solution for this

@AmitloafTotes
Copy link

Interesting fact. Me and a coworker both have the exact same laptop with the same applications, both work on the same project. For me it works fine but for him it freezes every time he presses play. Not sure what can cause this.

@remption
Copy link

remption commented Sep 6, 2019

Same issue - freezes on play press, and I've now got an incredible number of GiT tasks running in the task manager...

@spobwoode
Copy link

Same issue for me. I uninstalled Github for Unity and everything started working again.

@ethancook2
Copy link

Does anyone know how solve this without uninstalling github for unity? Cause I kind of need that for my project...

@bantus88
Copy link

Same issue on play Hold on (busy forever)... EditorApplication.playModeStateChanged; also noticed the CHanges in the github tab are no longer commiting. ANyone have a fix outside of removing github from unity?

@H4x0r-000
Copy link

it seems like I have the same issue, because my whole pc was suffering recently every time i opend unity and startet working. I was realy wondering because this never happend before, but this was my first project using this plugin, so it makes quite sense.

@H4x0r-000
Copy link

@Skizmo42 you could use git manualy or github desktop

@ethancook2
Copy link

@H4x0r-000 Yep, I stopped using the extension and started using github desktop soon after and it's been working great for me ever since.

@shana shana closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests