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

[Error] The program crashes when clicking on the project files window. [Ubuntu 20.04] #754

Open
Anderson0xFF opened this issue Sep 1, 2020 · 5 comments

Comments

@Anderson0xFF
Copy link

Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.get_Item(Int32 index)
at System.Collections.ObjectModel.Collection1.System.Collections.IList.get_Item(Int32 index) at Avalonia.Controls.SelectionModel.<>c.<get_SelectedItems>b__39_1(List1 infos, Int32 index)
at Avalonia.Controls.SelectionModel.get_SelectedItem()
at Avalonia.Controls.Primitives.SelectingItemsControl.OnSelectionModelSelectionChanged(Object sender, SelectionModelSelectionChangedEventArgs e)
at Avalonia.Controls.SelectionModel.OnSelectionChanged(SelectionModelSelectionChangedEventArgs e)
at Avalonia.Controls.SelectionModel.OnSelectionInvalidatedDueToCollectionChange(Boolean selectionInvalidated, IReadOnlyList1 removedItems) at Avalonia.Controls.SelectionNode.OnSourceListChanged(Object dataSource, NotifyCollectionChangedEventArgs args) at Avalonia.Controls.ItemsSourceView.OnItemsSourceChanged(NotifyCollectionChangedEventArgs args) at Avalonia.Controls.ItemsSourceView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection1.InsertItem(Int32 index, T item) at System.Collections.ObjectModel.Collection1.Add(T item)
at Dock.Model.FactoryBase.AddDockable(IDock dock, IDockable dockable)
at AvalonStudio.Shell.DockExtensions.Dock(IDock dock, IDockableViewModel model, Boolean add) in /home/anderson/AvalonStudio/AvalonStudio.Shell/src/AvalonStudio.Shell/DockExtensions.cs:line 100
at AvalonStudio.Shell.ShellViewModel.AddDocument(IDocumentTabViewModel document, Boolean temporary, Boolean select) in /home/anderson/AvalonStudio/AvalonStudio.Shell/src/AvalonStudio.Shell/ShellViewModel.cs:line 278
at AvalonStudio.Shell.IShellExtensions.AddOrSelectDocument[T](IShell me, T document) in /home/anderson/AvalonStudio/AvalonStudio.Shell/src/AvalonStudio.Shell.Extensibility/Shell/IShellExtensions.cs:line 20
at AvalonStudio.Studio.StudioViewModel.OpenDocumentAsync(ISourceFile file) in /home/anderson/AvalonStudio/AvalonStudio/AvalonStudio.Studio/StudioViewModel.cs:line 336
at AvalonStudio.Studio.StudioViewModel.OpenDocumentAsync(ISourceFile file, Int32 line, Int32 startColumn, Int32 endColumn, Boolean debugHighlight, Boolean selectLine, Boolean focus) in /home/anderson/AvalonStudio/AvalonStudio/AvalonStudio.Studio/StudioViewModel.cs:line 346
at AvalonStudio.Controls.Standard.SolutionExplorer.SolutionExplorerViewModel.<>c.<<-ctor>b__7_2>d.MoveNext() in /home/anderson/AvalonStudio/AvalonStudio/AvalonStudio.Controls.Standard/SolutionExplorer/SolutionExplorerViewModel.cs:line 52
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.<>c.b__139_0(Object state)
at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass8_0.b__0()
at Avalonia.Threading.JobRunner.RunJobs(Nullable1 priority) at Avalonia.X11.X11PlatformThreading.HandleX11(CancellationToken cancellationToken) at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) at AvalonStudio.Shell.Shell.StartShellApp[TAppBuilder](TAppBuilder builder, String appName, ShellAppMainDelegate main, String[] args, IFactory layoutFactory) in /home/anderson/AvalonStudio/AvalonStudio.Shell/src/AvalonStudio.Shell/Shell.cs:line 17 at AvalonStudio.Program.Main(String[] args) in /home/anderson/AvalonStudio/AvalonStudio/AvalonStudio/Program.cs:line 32

@Anderson0xFF Anderson0xFF changed the title The program crashes when clicking on the project files window. [Error] The program crashes when clicking on the project files window. [Ubuntu 20.04] Sep 1, 2020
@mate1213
Copy link

mate1213 commented Sep 5, 2020

Hi!
I found this error too.
There is some previous version where this IDE not crashing on this event, or some "hack" with can solve this (ex: some other way for open file)?
Thanks for help!

@Thaval
Copy link

Thaval commented Sep 18, 2020

@imaxs So I assume you can do it better? Despite of that, you shouldn't be that disrespectful.

@FlaviusHouk
Copy link

You can update version of Avalonia libraries in both ./Directory.Build.Targets and ./AvalonStudio.Shell/src/Versions.props to 0.10.0-preview4. It'll fix the problem.

@najlot
Copy link
Contributor

najlot commented Jun 9, 2021

Avalonia was updated to 0.10.0, so the error should be fixed.
@Tekadon58 :
Can the issue be closed?

@Anderson0xFF
Copy link
Author

Avalonia was updated to 0.10.0, so the error should be fixed.
@Tekadon58 :
Can the issue be closed?

I haven't tested it but it can close the issue.

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

5 participants