Unity icon indicating copy to clipboard operation
Unity copied to clipboard

Login failed

Open ekaj113 opened this issue 6 years ago • 7 comments

Description

It won't let me login. Using unity 2019.2.5f1 On windows 7 github-unity.log

Steps to Reproduce

If i try logging in via browser it returns "error validating token" If i try logging in with username/password/2f code it returns "login failed"

Expected behavior: [What you expect to happen] I expect it to let me login

Actual behavior: [What actually happens] It doesn't log me in

Reproduces how often: [What percentage of the time does it reproduce?] It happens every time

ekaj113 avatar Nov 06 '19 01:11 ekaj113

Here some logs

When use browser

191223-17:12:58.246 TRACE [25] <OAuthCallbackManager>              OnCallback: fa8fa922-5c97-4b01-ad74-64dfe405186c
191223-17:12:58.247 TRACE [61] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" token -h github.com'
191223-17:12:58.920 TRACE [68] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" validate'
191223-17:12:59.785 TRACE [68] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain erase'
191223-17:12:59.962 TRACE [68] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain store'
191223-17:13:00.148  WARN [68] <LoginManager>                      Login Exception
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at (wrapper managed-to-native) UnityEditor.GUIView.Repaint(UnityEditor.GUIView)
  at UnityEditor.EditorWindow.Repaint () [0x0002e] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorWindow.cs:905 
  at GitHub.Unity.BaseWindow.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\BaseWindow.cs:41 
  at GitHub.Unity.Subview.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\Subview.cs:45 
  at GitHub.Unity.LocksView.KeychainConnectionsChanged () [0x00007] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\LocksView.cs:580 
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at GitHub.Unity.Keychain.SaveConnectionsToDisk (System.Boolean raiseChangedEvent) [0x00078] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:205 
  at GitHub.Unity.Keychain.AddConnection (GitHub.Unity.Connection connection) [0x00048] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:261 
  at GitHub.Unity.Keychain.SaveToSystem (GitHub.Unity.UriString host) [0x00013] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:162 
  at GitHub.Unity.LoginManager.LoginWithToken (GitHub.Unity.UriString host, System.String token) [0x00046] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:60 
=======
  at GitHub.Unity.LoginManager.LoginWithToken (GitHub.Unity.UriString host, System.String token) [0x00057] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:66 
  at GitHub.Unity.ApiClient+<>c__DisplayClass20_0.<LoginWithToken>b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:265 
  at GitHub.Unity.FuncTask`1+<>c__DisplayClass6_0[T].<.ctor>b__0 (System.Boolean _) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:427 
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00010] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:454 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:13:00.152 ERROR [69] <TaskManager>                       Exception on concurrent thread: 5 FuncTask<System.Boolean>
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:13:00.455  WARN [ 1] <ApiClient>                         
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  at GitHub.Unity.ApiClient+<>c__DisplayClass20_0.<LoginWithToken>b__1 (System.Boolean success, System.Exception ex, System.Boolean res) [0x00003] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:270 
  at GitHub.Unity.TaskBase`1+<>c__DisplayClass17_0[TResult].<Finally>b__0 (System.Boolean s, System.Exception ex, TResult res) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:642 
  at GitHub.Unity.ActionTask`1[T].Run (System.Boolean success, T previousResult) [0x00029] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:405 
  at GitHub.Unity.ActionTask`1[T].RunSynchronously () [0x00088] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:388 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.SynchronizationContextTaskScheduler.PostCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at GitHub.Unity.MainThreadSynchronizationContext+<>c__DisplayClass1_0.<Post>b__0 () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\Threading\SingleThreadSynchronizationContext.cs:20 
  at UnityEditor.EditorApplication.Internal_CallDelayFunctions () [0x00014] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:209 

When use login/pass

<<<<<<< Local Changes
=======
191223-17:12:58.246 TRACE [25] <OAuthCallbackManager>              OnCallback: fa8fa922-5c97-4b01-ad74-64dfe405186c
191223-17:12:58.247 TRACE [61] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" token -h github.com'
191223-17:12:58.920 TRACE [68] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" validate'
191223-17:12:59.785 TRACE [68] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain erase'
191223-17:12:59.962 TRACE [68] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain store'
191223-17:13:00.148  WARN [68] <LoginManager>                      Login Exception
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at (wrapper managed-to-native) UnityEditor.GUIView.Repaint(UnityEditor.GUIView)
  at UnityEditor.EditorWindow.Repaint () [0x0002e] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorWindow.cs:905 
  at GitHub.Unity.BaseWindow.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\BaseWindow.cs:41 
  at GitHub.Unity.Subview.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\Subview.cs:45 
  at GitHub.Unity.LocksView.KeychainConnectionsChanged () [0x00007] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\LocksView.cs:580 
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at GitHub.Unity.Keychain.SaveConnectionsToDisk (System.Boolean raiseChangedEvent) [0x00078] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:205 
  at GitHub.Unity.Keychain.AddConnection (GitHub.Unity.Connection connection) [0x00048] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:261 
  at GitHub.Unity.Keychain.SaveToSystem (GitHub.Unity.UriString host) [0x00013] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:162 
  at GitHub.Unity.LoginManager.LoginWithToken (GitHub.Unity.UriString host, System.String token) [0x00046] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:60 
=======
  at GitHub.Unity.LoginManager.LoginWithToken (GitHub.Unity.UriString host, System.String token) [0x00057] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:66 
  at GitHub.Unity.ApiClient+<>c__DisplayClass20_0.<LoginWithToken>b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:265 
  at GitHub.Unity.FuncTask`1+<>c__DisplayClass6_0[T].<.ctor>b__0 (System.Boolean _) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:427 
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00010] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:454 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:13:00.152 ERROR [69] <TaskManager>                       Exception on concurrent thread: 5 FuncTask<System.Boolean>
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:13:00.455  WARN [ 1] <ApiClient>                         
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  at GitHub.Unity.ApiClient+<>c__DisplayClass20_0.<LoginWithToken>b__1 (System.Boolean success, System.Exception ex, System.Boolean res) [0x00003] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:270 
  at GitHub.Unity.TaskBase`1+<>c__DisplayClass17_0[TResult].<Finally>b__0 (System.Boolean s, System.Exception ex, TResult res) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:642 
  at GitHub.Unity.ActionTask`1[T].Run (System.Boolean success, T previousResult) [0x00029] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:405 
  at GitHub.Unity.ActionTask`1[T].RunSynchronously () [0x00088] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:388 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.SynchronizationContextTaskScheduler.PostCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at GitHub.Unity.MainThreadSynchronizationContext+<>c__DisplayClass1_0.<Post>b__0 () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\Threading\SingleThreadSynchronizationContext.cs:20 
  at UnityEditor.EditorApplication.Internal_CallDelayFunctions () [0x00014] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:209 
191223-17:14:32.183 TRACE [70] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" login'
191223-17:14:33.240 TRACE [70] <ProcessWrapper>                    Running '/Applications/Unity/Unity.app/Contents/Tools/nodejs/bin/node "/Users/flop/Library/Application Support/GitHubUnity/octorun/src/bin/app.js" validate'
191223-17:14:34.114 TRACE [70] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain erase'
191223-17:14:34.293 TRACE [70] <ProcessWrapper>                    Running '/usr/local/bin/git credential-osxkeychain store'
191223-17:14:34.476  WARN [70] <LoginManager>                      Login Exception
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at (wrapper managed-to-native) UnityEditor.GUIView.Repaint(UnityEditor.GUIView)
  at UnityEditor.EditorWindow.Repaint () [0x0002e] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorWindow.cs:905 
  at GitHub.Unity.BaseWindow.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\BaseWindow.cs:41 
  at GitHub.Unity.Subview.Redraw () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\Subview.cs:45 
  at GitHub.Unity.LocksView.KeychainConnectionsChanged () [0x00007] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\UI\LocksView.cs:580 
  at (wrapper delegate-invoke) <Module>.invoke_void()
  at GitHub.Unity.Keychain.SaveConnectionsToDisk (System.Boolean raiseChangedEvent) [0x00078] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:205 
  at GitHub.Unity.Keychain.AddConnection (GitHub.Unity.Connection connection) [0x00048] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:261 
  at GitHub.Unity.Keychain.SaveToSystem (GitHub.Unity.UriString host) [0x00013] in C:\projects\unity\src\GitHub.Api\Authentication\Keychain.cs:162 
  at GitHub.Unity.LoginManager.Login (GitHub.Unity.UriString host, System.String username, System.String password) [0x000a3] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:104 
=======
  at GitHub.Unity.LoginManager.Login (GitHub.Unity.UriString host, System.String username, System.String password) [0x000b8] in C:\projects\unity\src\GitHub.Api\Authentication\LoginManager.cs:114 
  at GitHub.Unity.ApiClient+<>c__DisplayClass22_0.<Login>b__0 () [0x00000] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:324 
  at GitHub.Unity.FuncTask`1+<>c__DisplayClass6_0[T].<.ctor>b__0 (System.Boolean _) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:427 
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00010] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:454 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:14:34.479 ERROR [78] <TaskManager>                       Exception on concurrent thread: 6 FuncTask<GitHub.Unity.LoginResultData>
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.TaskScheduler.TryExecuteTask (System.Threading.Tasks.Task task) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>: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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
191223-17:14:34.700  WARN [ 1] <ApiClient>                         
UnityEngine.UnityException: Repaint can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
  at GitHub.Unity.FuncTask`1[T].RunWithReturn (System.Boolean success) [0x00048] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:465 
  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 <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00010] in <7ba07f088431485bb722f3b3373e87ee>:0 
=======
  at GitHub.Unity.ApiClient+<>c__DisplayClass22_0.<Login>b__1 (System.Boolean success, System.Exception ex, GitHub.Unity.LoginResultData res) [0x00003] in C:\projects\unity\src\GitHub.Api\Application\ApiClient.cs:329 
  at GitHub.Unity.TaskBase`1+<>c__DisplayClass17_0[TResult].<Finally>b__0 (System.Boolean s, System.Exception ex, TResult res) [0x00000] in C:\projects\unity\src\GitHub.Api\Tasks\TaskBase.cs:642 
  at GitHub.Unity.ActionTask`1[T].Run (System.Boolean success, T previousResult) [0x00029] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:405 
  at GitHub.Unity.ActionTask`1[T].RunSynchronously () [0x00088] in C:\projects\unity\src\GitHub.Api\Tasks\ActionTask.cs:388 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at System.Threading.Tasks.SynchronizationContextTaskScheduler.PostCallback (System.Object obj) [0x00000] in <7ba07f088431485bb722f3b3373e87ee>:0 
  at GitHub.Unity.MainThreadSynchronizationContext+<>c__DisplayClass1_0.<Post>b__0 () [0x00000] in C:\projects\unity\src\UnityExtension\Assets\Editor\GitHub.Unity\Threading\SingleThreadSynchronizationContext.cs:20 
  at UnityEditor.EditorApplication.Internal_CallDelayFunctions () [0x00014] in /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:209 
>>>>>>> External Changes

Fl0p avatar Dec 23 '19 14:12 Fl0p

So, I can't log github in by unity3d too. How can we fix it?

Unity 2018.4.15f1.

Has anyone been able to solve this problem? Снимок It writes that the login / password is incorrect, although I checked it several times - everything is correct.

P.S.

Ooops. I fixed it :D Just enter user name and e-mail in "Settings" tab on top of window, then push the button "Find system git" and try to log in one more time.

Eugene-Fed avatar Jan 13 '20 18:01 Eugene-Fed

Window | Github Click Settings Click Find system git Click Save Click Sign in

Then Sign in with your browser worked for me.

It should just find system git on first run if not set and show the Sign in dialog.

LiamKarlMitchell avatar Apr 23 '20 07:04 LiamKarlMitchell

LiamKarlMitchells solution worked for me too! But keep close attention, prerequisite(s) for it to work is: a proper git configuration... and you really have to hit that save button ... (I missed that in 1st place) and even then if "Sign-In" still greets you with "Not Found" when you enter your credentials, (which was the case for me) sign-in via browser should work flawlessly, IF you saved after you found system git. Though no clue why entering the credentials did not work for me and so much other people this still needs fixin.

patarok avatar Jun 23 '21 19:06 patarok

Or at least have it mention the settings dialog in the readme and message.

LiamKarlMitchell avatar Jun 23 '21 20:06 LiamKarlMitchell

Same issue, on 2020.3.21f1, and windows 10.

elliotextracheese avatar Nov 06 '21 12:11 elliotextracheese

@patarok my save button is greyed out and my username and email were already configured, even system git path was already there. I still can't login, neither through browser, nor by credentials. Any ideas? image

Aryan-Satpathy avatar Dec 14 '21 04:12 Aryan-Satpathy