Code Monkey home page Code Monkey logo

Comments (14)

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

@HendrikMennen What version are you using? Can you provide full stack trace.

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

I am using the 0.8.0 version. But I tried the official demo and it has the same problem.
It happens when you drag a tooltab and try to split it with itself what should not be possible.

> System.Reflection.TargetInvocationException
  HResult=0x80131604
  Nachricht = Exception has been thrown by the target of an invocation.
  Quelle = System.Private.CoreLib
  Stapelüberwachung:
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Avalonia.Interactivity.Interactive.RaiseEventImpl(RoutedEventArgs e) in D:\a\1\s\src\Avalonia.Interactivity\Interactive.cs:line 192
   at Avalonia.Interactivity.Interactive.BubbleEvent(RoutedEventArgs e) in D:\a\1\s\src\Avalonia.Interactivity\Interactive.cs:line 156
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e) in D:\a\1\s\src\Avalonia.Interactivity\Interactive.cs:line 141
   at Avalonia.Input.DragDropDevice.RaiseDragEvent(Interactive target, IInputElement inputRoot, Point point, RoutedEvent`1 routedEvent, DragDropEffects operation, IDataObject data, InputModifiers modifiers) in D:\a\1\s\src\Avalonia.Input\DragDropDevice.cs:line 31
   at Avalonia.Input.DragDropDevice.Drop(IInputElement inputRoot, Point point, IDataObject data, DragDropEffects effects, InputModifiers modifiers) in D:\a\1\s\src\Avalonia.Input\DragDropDevice.cs:line 84
   at Avalonia.Input.DragDropDevice.ProcessRawEvent(RawDragEvent e) in D:\a\1\s\src\Avalonia.Input\DragDropDevice.cs:line 94
   at Avalonia.Input.InputManager.ProcessInput(RawInputEventArgs e) in D:\a\1\s\src\Avalonia.Input\InputManager.cs:line 39
   at Avalonia.Platform.InProcessDragSource.RaiseEventAndUpdateCursor(RawDragEventType type, IInputElement root, Point pt, InputModifiers modifiers) in D:\a\1\s\src\Avalonia.Controls\Platform\InProcessDragSource.cs:line 63
   at Avalonia.Platform.InProcessDragSource.<ProcessMouseEvents>g__CheckDraggingAccepted|19_0(InputModifiers changedMouseButton, <>c__DisplayClass19_0& ) in D:\a\1\s\src\Avalonia.Controls\Platform\InProcessDragSource.cs:line 163
   at Avalonia.Platform.InProcessDragSource.ProcessMouseEvents(RawMouseEventArgs e) in D:\a\1\s\src\Avalonia.Controls\Platform\InProcessDragSource.cs:line 184
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 46
   at System.Reactive.Observer`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\Observers.cs:line 80
   at Avalonia.Input.InputManager.ProcessInput(RawInputEventArgs e) in D:\a\1\s\src\Avalonia.Input\InputManager.cs:line 37
   at Avalonia.Win32.WindowImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam) in D:\a\1\s\src\Windows\Avalonia.Win32\WindowImpl.cs:line 697
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken) in D:\a\1\s\src\Windows\Avalonia.Win32\Win32Platform.cs:line 114
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in D:\a\1\s\src\Avalonia.Base\Threading\Dispatcher.cs:line 65
   at Avalonia.Application.Run(Window mainWindow) in D:\a\1\s\src\Avalonia.Controls\Application.cs:line 266
   at VHDPlus.Program.AppMain(Application app, String[] args) in C:\Users\HendrikMennen\Source\Repos\VHDP\VHDPlus\Program.cs:line 74
   at VHDPlus.Program.Main(String[] args) in C:\Users\HendrikMennen\Source\Repos\VHDP\VHDPlus\Program.cs:line 21

Innere Ausnahme 1:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Arg_ParamName_Name

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

@HendrikMennen Could you try https://github.com/wieslawsoltes/AvaloniaDockApplication it uses Avalonia nightly builds.

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

@wieslawsoltes It does happen there too.
Steps to reproduce:

  1. Go to document or tooltab and close one tab.
  2. Drag the remaining tab and try to split it in half in it's own window
  3. Crash

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

@HendrikMennen finally reproduced the issue, will try to fix soon

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

@HendrikMennen I think I fixed this issue, please reopen the issue if it still persists.

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

Thank you, I will try it out

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

Just noticed that it is possible again with your newest nightly. But only with documents not with tools this time :)

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

I am refactoring some stuff so its possible something did break. Will fix this later.

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Just noticed that it is possible again with your newest nightly. But only with documents not with tools this time :)

@HendrikMennen Hopefully this is fixed on latest master.

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

Anyway there is still some work to be done, some docking cases are not handled ideally.

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

Yes looks like it is fixed

from dock.

HendrikMennen avatar HendrikMennen commented on July 19, 2024

Anyway there is still some work to be done, some docking cases are not handled ideally.

Just noticed that it is now possible to drag into a seperate window which is very buggy. Is there an option to disable that behaviour for now?

from dock.

wieslawsoltes avatar wieslawsoltes commented on July 19, 2024

There is no option currently to disable this behavior.

from dock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.