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

Crash when enumerating the result #407

Closed
jibedoubleve opened this issue Dec 20, 2023 · 0 comments · Fixed by #425
Closed

Crash when enumerating the result #407

jibedoubleve opened this issue Dec 20, 2023 · 0 comments · Fixed by #425
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jibedoubleve
Copy link
Owner

Logs

2023-12-20 17:35:11.7881;DEBUG;ReactiveUI;1;MainViewModel: New results. OnNext: 7 element(s);
2023-12-20 17:35:11.7881;DEBUG;ReactiveUI;1;MainViewModel: Results changed. OnNext: Current alias: 'by:dropbox';
2023-12-20 17:35:57.5528;ERROR;Lanceur.Ui.UserNotification;1;Object reference not set to an instance of an object.;"System.NullReferenceException: Object reference not set to an instance of an object.
   at Lanceur.Views.MainView.<>c__DisplayClass4_0.<.ctor>b__42(QueryResult s) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur\Views\MainView.xaml.cs:line 152
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Lanceur.Views.MainView.<>c.<.ctor>b__4_40(MouseButtonEventArgs x) in D:\a\lanceur-bis\lanceur-bis\src\Lanceur\Views\MainView.xaml.cs:line 151
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Select.cs:line 48
--- End of stack trace from previous location ---
   at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception) in /_/Rx.NET/Source/src/System.Reactive/Internal/ExceptionServicesImpl.cs:line 19
   at System.Reactive.ExceptionHelpers.Throw(Exception exception) in /_/Rx.NET/Source/src/System.Reactive/Internal/ExceptionServices.cs:line 16
   at System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex) in /_/Rx.NET/Source/src/System.Reactive/Internal/Stubs.cs:line 16
   at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs:line 62
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Linq.ObservableImpl.SelectMany`2.ObservableSelector._.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:line 887
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Sink`2.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 94
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Sink`2.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 94
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Linq.ObservableImpl.Switch`1._.InnerObserver.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Switch.cs:line 114
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Sink`2.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 94
   at System.Reactive.Subjects.Subject`1.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:line 120
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Sink`2.OnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 94
   at System.Reactive.Sink`1.ForwardOnError(Exception error) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 60
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Select.cs:line 48
   at System.Reactive.Subjects.Subject`1.OnNext(T value) in /_/Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:line 136
   at System.Windows.RxUIElementEvents.<>c__DisplayClass117_0.<get_PreviewMouseLeftButtonUp>g__Handler|3(Object sender, MouseButtonEventArgs e) in D:\a\ReactiveUI\ReactiveUI\src\ReactiveUI.Events.WPF\Events_net5.0.cs:line 2170
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnPreviewMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"
@jibedoubleve jibedoubleve added the bug Something isn't working label Dec 20, 2023
@jibedoubleve jibedoubleve added this to the 2.5.1 milestone Dec 20, 2023
@jibedoubleve jibedoubleve self-assigned this Dec 20, 2023
@jibedoubleve jibedoubleve mentioned this issue Dec 29, 2023
jibedoubleve added a commit that referenced this issue Jan 3, 2024
* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#404) Add logging...

* (#408) Fix unit tests

* (#428) Bump to version 2.5.1

* (#428) Update GitVersion.yml

* (#415) Replace CentreMacro with CentreAlias

* (maint) Move ScreenRuler

* (maint) Move AppRestart facility

* (#416) Set default windows position at first boot

* (#416) Fix unit tests

* (#403) Change error message when alias fails to start

* (maint) Rider refactoring advices (#435)

* (#423) Retrieve thumbnails is done a a separate thread (#437)
jibedoubleve added a commit that referenced this issue Feb 18, 2024
* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#407) Fix NullReferenceException when description too long

* (#408) Display description on 95 chars

* (#404) Add logging...

* (#408) Fix unit tests

* (#428) Bump to version 2.5.1

* (#428) Update GitVersion.yml

* (#415) Replace CentreMacro with CentreAlias

* (maint) Move ScreenRuler

* (maint) Move AppRestart facility

* (#416) Set default windows position at first boot

* (#416) Fix unit tests

* (#403) Change error message when alias fails to start

* (maint) Rider refactoring advices (#435)

* (#423) Retrieve thumbnails is done a a separate thread (#437)

* (maint) Refactoring (#438)

* Issue/412 (#441)

* (#412) Replace NLogger with Serilog

* (maint) Bump version

* (#412) Implements Microsoft.Extensions.Logging

* (#421) Refactor TimeSpan with Humanizer (#443)

* (#431) Fix autocompletion & syntax colouration (#442)

* Issue/439 (#444)

* (#439) Fix empty synonyms when wrongly written

* (#439) Add Unit test

* (#436) Refactore the KeywordViewModel into more Reactive (#446)

* (#436) Refactor the KeywordViewModel into more Reactive

* (maint) Refactor some unit tests

* (#436) Fix InvalidOperationException when updating synonyms (#447)

* Issue/445 (#448)

* (#445) Add cache when querying user packages

* (maint) IThumbnailRefresher is async

* (#364) Show help to create macros (#449)

* Issue/450 (#451)

* (#450) Add logging and measure time

* (#450) Optimise search (execution time)

* (#450) Optimise alias counters

* (maint) Fix unit tests

* Issue/452 (#454)

* (maint) Fix thumbnail manager

* (#452) Rethrow exception when error in transaction

* (maint) Log SQL on error

* Issue/453 (#455)

* (maint) Refactoring

* (#453) Remove SQL query repetition

* (maint) Adding logs in tests and refactoring

* (#450) Remove useless inner joins from SQL

* Isue/456 (#457)

* (#456) Fix warning when executing empty Lua scripts

* (#456) Unit test

* Issue/458 (#459)

* (maint) Change log level

* (#458) Add more logging

* Issue/458 (#462)

* (#458) Add unit test

* (#458) Fix delete of parameters when updating alias

* (#456) Fix Lua scripting when code is null (#464)

* (#456) Fix Lua scripting when code is null

* (#456) Fix unit test

* (#461) Catch error and add logs (#465)

* Issue/466 (#468)

* (maint) Refactoring

* (#466) Add logging to catch slow process executions

* Issue/467 (#469)

* (maint) Refactoring

* (#467) Fix XAML template

* (#470) Execute powershell command with '-noprofile' (#472)

* Issue/471 (#473)

* (#471) Adding log information

* (#471) Fix failure when Lua script returns 'nil'

* (#471) Fix logging (#474)

* (#476) Fix Lua script error (#477)

* (#479) Remove keyword (#480)

* (#482) Increase resilience for UiNotification (#483)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant