BG3ModManager icon indicating copy to clipboard operation
BG3ModManager copied to clipboard

[Bug]: Can't drag and drop to activate mods

Open achillesotherankle opened this issue 1 year ago • 5 comments

Operating System

Windows 10

BG3 Mod Manager Version

1.0.9.7

BG3 Game Version

Full Release Patch 2

Bug Summary

Loaded in some new mods but whenever I try to drag and drop them into the active mods area it says there is a UI error. File path is correct and I've tried a few other things but I'm new to modding so I am not very handy with all of this yet. Attahed the error message and log that it gave me.

BG3 Mod manager not working bg3 mod manager error

Links

No response

achillesotherankle avatar Sep 03 '23 17:09 achillesotherankle

It's good to finally get a glimpse of what this error is (previously the program would just crash for people with this error), so thanks for the report!

There's an issue for it here: https://github.com/punker76/gong-wpf-dragdrop/issues/312

Version 2.4.0 still have this problem. It was caused by some invalid windows state, can be fixed by reboot windows.

Sounds like this can happen if some drag/drop operation in Windows gets into an invalid state, and is never cleaned up. Rebooting may help.

LaughingLeader avatar Sep 03 '23 19:09 LaughingLeader

Rebooting did indeed help and I wish I had thought of it earlier lol. Thank you very much!

achillesotherankle avatar Sep 03 '23 20:09 achillesotherankle

I have this same problem every time I install a new mod. Is there no other fix besides rebooting?

thunderbison avatar Oct 08 '23 13:10 thunderbison

Thanks for the commit @LaughingLeader

FWIW my stack trace:

A drag operation is already in progress
 
   at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.DragDrop.OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects)
   at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects)
   at GongSolutions.Wpf.DragDrop.DragDrop.DoDragSourceMove(Object sender, Func`2 getPosition) in C:\projects\gong-wpf-dragdrop\src\GongSolutions.WPF.DragDrop\DragDrop.cs:line 654
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

RhomGit avatar Nov 19 '23 03:11 RhomGit

I am having this issue now as well. I am using a fresh download of the latest version.

Here is my stack trace

A drag operation is already in progress

at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect) at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect) at System.Windows.DragDrop.OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects) at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects) at GongSolutions.Wpf.DragDrop.DragDrop.DoDragSourceMove(Object sender, Func`2 getPosition) in C:\projects\gong-wpf-dragdrop\src\GongSolutions.WPF.DragDrop\DragDrop.cs:line 666 at GongSolutions.Wpf.DragDrop.DragDrop.DragSourceOnMouseMove(Object sender, MouseEventArgs e) in C:\projects\gong-wpf-dragdrop\src\GongSolutions.WPF.DragDrop\DragDrop.cs:line 588 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)

ErickZuberer72 avatar Jul 14 '24 19:07 ErickZuberer72