Wox-launcher / Wox

A cross-platform launcher that simply works
http://wox-launcher.github.io/Wox/
GNU General Public License v3.0
24.51k stars 2.37k forks source link

System.ArgumentOutOfRangeException #926

Closed pantox closed 4 years ago

pantox commented 8 years ago

English

Try search existing issues before you open new one

  1. Wox version / commit number: 1.3.183
  2. Steps to reproduce the bug: deleted chars with back key
  3. Windows version: 10 Pro German
  4. Exception: 2016-08-17.txt

Wox version: 1.3.183 OS Version: Microsoft Windows NT 10.0.10586.0 Date: 08/17/2016 11:44:38 Exception: mscorlib System.ArgumentOutOfRangeException Der Einfügeindex liegt außerhalb des gültigen Bereichs. Der Index darf keine negative Zahl sein und muss kleiner oder gleich der Größe sein. Parametername: index bei System.Collections.ArrayList.Insert(Int32 index, Object value) bei System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args) bei System.Windows.Data.CollectionView.ProcessChangeLog(ArrayList changeLog, Boolean processAll) bei System.Windows.Data.CollectionView.ProcessInvoke(Object arg) bei MS.Internal.Data.DataBindEngine.ProcessCrossThreadRequests() bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

bao-qian commented 8 years ago

something wrong with a file icon, to identify which file upload a screenshot of wox when you get this exception.

pantox commented 8 years ago

can't remember the search phrase, so I can't reproduce the error.

nakulbende commented 7 years ago

Do the icon files have to be a certain resolution? Perhaps I had high resolution files?

bao-qian commented 7 years ago

@nakulbende no, high resolution is fine

bao-qian commented 7 years ago

known info so far: possible related to web search plugin or ImageLoader

nakulbende commented 7 years ago

I cant reproduce the crash - I just tried to set an icon, which works until I restart wox, which erases any settings done to the plugin icons.

bao-qian commented 7 years ago

I'd appreciate if sb can reproduce the crash

nakulbende commented 7 years ago

Here you go!

Nakul Prabhakar Bende Graduate Student, Hayward Research group, PSE, UMass Amherst http://nakulbende.com

On Sun, Feb 12, 2017 at 3:37 PM, happlebao notifications@github.com wrote:

@nakulbende https://github.com/nakulbende upload

  1. the icon
  2. %APPDATA%\Wox\Settings\Settings.json
  3. %APPDATA%\Wox\Settings\Plugins\Wox.Plugin.WebSearchWox\Settings\ Settings.json

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wox-launcher/Wox/issues/926#issuecomment-279246745, or mute the thread https://github.com/notifications/unsubscribe-auth/AITvcg3xLBCznacOlxL6pywQSXlvgNUqks5rb21ugaJpZM4JmR0J .

nakulbende commented 7 years ago

Actually, I updated the settings.json for plugint o include the icon paths, and restarted the wox. TO my surprise - the file was re-written! and all the icon paths were deleted.

Nakul Prabhakar Bende Graduate Student, Hayward Research group, PSE, UMass Amherst http://nakulbende.com

On Sun, Feb 12, 2017 at 4:10 PM, Nakul Bende nakulbende@gmail.com wrote:

Here you go!

Nakul Prabhakar Bende Graduate Student, Hayward Research group, PSE, UMass Amherst http://nakulbende.com

  • Ever tried. Ever failed. Try Again. Fail again. Fail better. --Samuel Beckett

On Sun, Feb 12, 2017 at 3:37 PM, happlebao notifications@github.com wrote:

@nakulbende https://github.com/nakulbende upload

  1. the icon
  2. %APPDATA%\Wox\Settings\Settings.json
  3. %APPDATA%\Wox\Settings\Plugins\Wox.Plugin.WebSearchWox\ Settings\Settings.json

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wox-launcher/Wox/issues/926#issuecomment-279246745, or mute the thread https://github.com/notifications/unsubscribe-auth/AITvcg3xLBCznacOlxL6pywQSXlvgNUqks5rb21ugaJpZM4JmR0J .

nakulbende commented 7 years ago

Hello @happlebao, I was able to reproduce the crash. Here is what I know by now.

and the screenshot:

image

Here is the log:

Wox version: 1.3.183 OS Version: Microsoft Windows NT 10.0.14393.0 Date: 02/25/2017 08:34:02 Exception: Wox.Plugin.WebSearch System.NullReferenceException Object reference not set to an instance of an object. at Wox.Plugin.WebSearch.SearchSourceSettingWindow..ctor(IList`1 sources, PluginInitContext context, SearchSource old) in C:\projects\wox\Plugins\Wox.Plugin.WebSearch\SearchSourceSetting.xaml.cs:line 23 at Wox.Plugin.WebSearch.SettingsControl.OnEditSearchSourceClick(Object sender, RoutedEventArgs e) in C:\projects\wox\Plugins\Wox.Plugin.WebSearch\SettingsControl.xaml.cs:line 47 at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 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.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 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.InputManager.ProcessInput(InputEventArgs input) 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)

nakulbende commented 7 years ago

Maybe a little more details, and I hope this helps

image

image image

bao-qian commented 7 years ago

@nakulbende hi thank for you update, but this is a seperate issue, and has already been solved by https://github.com/Wox-launcher/Wox/releases/tag/v1.3.357

nakulbende commented 7 years ago

Hey @happlebao

Thanks so much! I look forward to get this on a stable channel - I am not sure how unstable are the pre-release channel.

Again, thanks for Wox!

archon810 commented 5 years ago

Just happened to me in version 1.3.578.

Are you submitting a bug report?

Yes

Steps to reproduce

  1. Started typing wpm.
  2. Crash.

Wox Error Window text

Please open new issue in: https://github.com/Wox-launcher/Wox/issues/new

  1. upload log file: C:\Users\Artem Russakovskii\AppData\Roaming\Wox\Logs\1.3.578\2019-01-06.txt
  2. copy below exception message
Wox version: 1.3.578
OS Version: Microsoft Windows NT 10.0.17763.0
IntPtr Length: 8
x64: True

Python Path: 
Everything SDK Path: C:\Users\Artem Russakovskii\AppData\Roaming\Wox\Settings\Plugins\Wox.Plugin.Everything\EverythingSDK\x64\Everything.dll
Date: 01/06/2019 11:53:49
Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.ArrayList.set_Item(Int32 index, Object value)
   at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
   at System.Windows.Data.CollectionView.ProcessChangeLog(ArrayList changeLog, Boolean processAll)
   at System.Windows.Data.CollectionView.ProcessInvoke(Object arg)
   at MS.Internal.Data.DataBindEngine.ProcessCrossThreadRequests()
   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)

Detailed logs

https://gist.github.com/4d35e422a657c42daa8a36b9f6f95d01

Hope this helps. The issue was not reproducible upon typing wpm after a restart.

bao-qian commented 4 years ago

Please try new release https://github.com/Wox-launcher/Wox/releases If problem still exist, try reset by delete %APPDATA%Wox directory. Reopen if above method won't help.