Comments (14)
@HendrikMennen What version are you using? Can you provide full stack trace.
from dock.
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.
@HendrikMennen Could you try https://github.com/wieslawsoltes/AvaloniaDockApplication it uses Avalonia nightly builds.
from dock.
@wieslawsoltes It does happen there too.
Steps to reproduce:
- Go to document or tooltab and close one tab.
- Drag the remaining tab and try to split it in half in it's own window
- Crash
from dock.
@HendrikMennen finally reproduced the issue, will try to fix soon
from dock.
@HendrikMennen I think I fixed this issue, please reopen the issue if it still persists.
from dock.
Thank you, I will try it out
from dock.
Just noticed that it is possible again with your newest nightly. But only with documents not with tools this time :)
from dock.
I am refactoring some stuff so its possible something did break. Will fix this later.
from dock.
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.
Anyway there is still some work to be done, some docking cases are not handled ideally.
from dock.
Yes looks like it is fixed
from dock.
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.
There is no option currently to disable this behavior.
from dock.
Related Issues (20)
- Dock marks don't show up. HOT 1
- UserControls inside Tool (and probably in every dockable) always null in code
- . HOT 1
- After close all documents when is created a new one it not update/show automatically HOT 1
- Restoring a layout which re-docks floating documents causes exceptions HOT 4
- Support AoT/Trimming HOT 4
- HostWindowTitleBar has a Foreground Brush not appropriate for Simple (Dark) theme. HOT 1
- [BUG] Binding does not work on Tool
- ProportionalDock is covering up the DocumentDock HOT 1
- Document.OnClose() should return Task<bool>
- Dock.Avalonia 11.0.0.5 NuGet on net8 gives error The type or namespace name 'Factory' could not be found
- Docking tracking disabling when tool window is outside screen HOT 2
- Community Support Schedule and Approach HOT 3
- Fonts change when floating a window HOT 1
- Dock floated tool window cant be docked HOT 8
- Where did the wiki go? HOT 1
- After closing all documents, new document won't open HOT 6
- Nested Docks HOT 2
- How to globally disable undocking? HOT 2
- After Restore layout in DockXamlSample, the methods InsertDockable and RemoveDockable not work. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dock.