Skip to content

Instantly share code, notes, and snippets.

@JefClaes
Created January 10, 2013 21:06
Show Gist options
  • Save JefClaes/4505798 to your computer and use it in GitHub Desktop.
Save JefClaes/4505798 to your computer and use it in GitHub Desktop.
Stacktrace WebMatrix crash - for @JustinBeckwith
The UI first reported an NPM error on installing twitter-bootstrap-node, but there were no details in the dialog. Ignoring that, WebMatrix crashed a bit after.
I found this in the eventlog.
PROCESS_CRASH
The process terminated unexpectedly.
Exception:System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.AggregateException: One or more errors occurred. ---> NodeNpm.NpmException: Failed: npm reported an error.
at NodeNpm.NpmApi.ListChildren()
at NodeNpm.NpmPackageManager.GetInstalledPackages()
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.FetchInstalledPackages()
at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.get_Result()
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.get_InstalledPackages()
at Microsoft.WebMatrix.NpmGallery.PackageViewModel.get_IsInstalled()
at Microsoft.WebMatrix.NpmGallery.ButtonBarViewModel.Refresh()
at Microsoft.WebMatrix.NpmGallery.ButtonBarViewModel.Gallery_PropertyChanged(Object sender, PropertyChangedEventArgs e)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at Microsoft.WebMatrix.Utility.NotifyPropertyChanged.OnPropertyChanged(String prop)
at Microsoft.WebMatrix.NpmGallery.GalleryViewModel.EndUpdateModel(Task task)
at System.Threading.Tasks.Task.<>c__DisplayClassb.<ContinueWith>b__a(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> NodeNpm.NpmException: Failed: npm reported an error.
at NodeNpm.NpmApi.ListChildren()
at NodeNpm.NpmPackageManager.GetInstalledPackages()
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.FetchInstalledPackages()
at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.get_Result()
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.get_InstalledPackages()
at Microsoft.WebMatrix.NpmGallery.PackageViewModel.get_IsInstalled()
at Microsoft.WebMatrix.NpmGallery.ButtonBarViewModel.Refresh()
at Microsoft.WebMatrix.NpmGallery.ButtonBarViewModel.Gallery_PropertyChanged(Object sender, PropertyChangedEventArgs e)
at System.ComponentModel.PropertyChangedEventHandler.Invoke(Object sender, PropertyChangedEventArgs e)
at Microsoft.WebMatrix.Utility.NotifyPropertyChanged.OnPropertyChanged(String prop)
at Microsoft.WebMatrix.NpmGallery.GalleryViewModel.EndUpdateModel(Task task)
at System.Threading.Tasks.Task.<>c__DisplayClassb.<ContinueWith>b__a(Object obj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) NodeNpm.NpmException: Failed: npm reported an error.
at NodeNpm.NpmApi.ListChildren()
at NodeNpm.NpmPackageManager.GetInstalledPackages()
at Microsoft.WebMatrix.NpmGallery.CachingPackageManger.FetchInstalledPackages()
at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---
<---
Process:WebMatrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment