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

Git apply stash - Gtk warning - operation done on background thread #4724

Closed
mrward opened this Issue May 4, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@mrward
Member

mrward commented May 4, 2018

VS Mac 7.5.0.1248 (d15-7)

Using the Stash Manager to apply a stash to a project and warnings are logged in the IDE log about a background thread being used.

** (VisualStudio:2444): WARNING **: Gtk operations should be done on the main Thread
  at System.Environment.get_StackTrace () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System/Environment.cs:316 
  at Gtk.Application.AssertMainThread () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/gtk-sharp-None/gtk/Application.cs:124 
  at Gtk.TextBuffer.get_EndIter () [0x00001] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/gtk-sharp-None/gtk/generated/TextBuffer.cs:1020 
  at MonoDevelop.Ide.Gui.Dialogs.ProgressDialog.AddText (System.String s) [0x00000] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/ProgressDialog.cs:131 
  at MonoDevelop.Ide.Gui.Dialogs.ProgressDialog.WriteText (System.String text) [0x00000] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/ProgressDialog.cs:124 
  at MonoDevelop.Ide.ProgressMonitoring.MessageDialogProgressMonitor.OnWriteLog (System.String text) [0x00008] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.ProgressMonitoring/MessageDialogProgressMonitor.cs:77 
  at MonoDevelop.Core.ProgressMonitor.DoWriteLog (System.String message) [0x00018] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/ProgressMonitor.cs:709 
  at MonoDevelop.Core.ProgressMonitoring.LogTextWriter.Write (System.Char[] buffer, System.Int32 index, System.Int32 count) [0x00008] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.ProgressMonitoring/LogTextWriter.cs:73 
  at System.IO.TextWriter.WriteLine (System.String value) [0x00070] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/textwriter.cs:490 
  at System.IO.TextWriter.WriteLine (System.String format, System.Object arg0) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/textwriter.cs:521 
  at MonoDevelop.VersionControl.Git.GitRepository.OnCheckoutProgress (System.Int32 completedSteps, System.Int32 totalSteps, MonoDevelop.Core.ProgressMonitor monitor, System.Int32& progress) [0x0000a] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:197 
  at MonoDevelop.VersionControl.Git.GitRepository+<>c__DisplayClass32_0.<ApplyStash>b__0 (System.String path, System.Int32 completedSteps, System.Int32 totalSteps) [0x00000] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:233 
  at LibGit2Sharp.CheckoutCallbacks.OnGitCheckoutProgress (System.IntPtr str, System.UIntPtr completedSteps, System.UIntPtr totalSteps, System.IntPtr payload) [0x00018] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/external/libgit2sharp/LibGit2Sharp/CheckoutCallbacks.cs:91 
  at LibGit2Sharp.Core.NativeMethods.git_stash_apply (LibGit2Sharp.Core.Handles.RepositorySafeHandle , System.UIntPtr , LibGit2Sharp.Core.GitStashApplyOpts ) [0x00000] in <1ce6bb32b0ae4a46a29410688bfd9cdf>:0 
  at LibGit2Sharp.Core.Proxy.git_stash_apply (LibGit2Sharp.Core.Handles.RepositorySafeHandle repo, System.Int32 index, LibGit2Sharp.Core.GitStashApplyOpts opts) [0x00000] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/external/libgit2sharp/LibGit2Sharp/Core/Proxy.cs:2752 
  at LibGit2Sharp.StashCollection.Apply (System.Int32 index, LibGit2Sharp.StashApplyOptions options) [0x00091] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/external/libgit2sharp/LibGit2Sharp/StashCollection.cs:170 
  at MonoDevelop.VersionControl.Git.GitRepository.ApplyStash (MonoDevelop.Core.ProgressMonitor monitor, System.Int32 stashIndex) [0x00033] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:231 
  at MonoDevelop.VersionControl.Git.GitService+<>c__DisplayClass8_0.<ApplyStash>b__0 () [0x00000] in /Users/builder/data/lanes/5965/15431382/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitService.cs:146 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Future.cs:680 
  at System.Threading.Tasks.Task.Execute () [0x00010] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2509 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00006] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2872 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00050] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2834 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00058] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2767 
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2714 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs:856 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs:1211 

VS bug #611145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment