iterate-ch / cyberduck

Cyberduck is a libre FTP, SFTP, WebDAV, Amazon S3, Backblaze B2, Microsoft Azure & OneDrive and OpenStack Swift file transfer client for Mac and Windows.
https://cyberduck.io/
GNU General Public License v3.0
3.39k stars 296 forks source link

Crash on opening Context Menu #15588

Open AliveDevil opened 10 months ago

AliveDevil commented 10 months ago

Application: Cyberduck Version: 8.7.3.40979+4c77c468c4f39835b37a5d113d6012207553de05


[Exception Info 1]

Top-level Exception Type: System.IndexOutOfRangeException Message: Der Index war außerhalb des Arraybereichs. Source: Cyberduck Stack Trace: bei Ch.Cyberduck.Ui.Controller.BrowserController.View_GetCopyUrls() bei Ch.Cyberduck.Ui.Winforms.BrowserForm.OnCopyUrlMenuItemPopup(Object sender, EventArgs e) bei System.Windows.Forms.MenuItem.OnSelect(EventArgs e) bei System.Windows.Forms.Control.WmMenuSelect(Message& m) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ListView.WndProc(Message& m) bei BrightIdeasSoftware.ObjectListView.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


- [ ] macOS

2024-01-29 11:15:26,267 [main] ERROR org.rococoa.callback - Exception calling method for selector menu:updateItem:atIndex:shouldCancel: java.lang.reflect.InvocationTargetException: null at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at org.rococoa.internal.OCInvocationCallbacks.callMethod(OCInvocationCallbacks.java:170) [rococoa-core-0.9.1.jar:?] at org.rococoa.internal.OCInvocationCallbacks.access$200(OCInvocationCallbacks.java:52) [rococoa-core-0.9.1.jar:?] at org.rococoa.internal.OCInvocationCallbacks$2.callback(OCInvocationCallbacks.java:82) [rococoa-core-0.9.1.jar:?] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:585) [jna-min-5.12.1.jar:5.12.1 (b0)] at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:616) [jna-min-5.12.1.jar:5.12.1 (b0)] at com.sun.jna.Native.invokeVoid(Native Method) ~[jna-min-5.12.1.jar:5.12.1 (b0)] at com.sun.jna.Function.invoke(Function.java:415) [jna-min-5.12.1.jar:5.12.1 (b0)] at com.sun.jna.Function.invoke(Function.java:361) [jna-min-5.12.1.jar:5.12.1 (b0)] at com.sun.jna.Function.invoke(Function.java:315) [jna-min-5.12.1.jar:5.12.1 (b0)] at org.rococoa.internal.MsgSendHandler.invoke(MsgSendHandler.java:114) [rococoa-core-0.9.1.jar:?] at com.sun.jna.Library$Handler.invoke(Library.java:263) [jna-min-5.12.1.jar:5.12.1 (b0)] at jdk.proxy2/jdk.proxy2.$Proxy5.syntheticSendMessage(Unknown Source) [?:?] at org.rococoa.Foundation.send(Foundation.java:207) [rococoa-core-0.9.1.jar:?] at org.rococoa.Foundation.send(Foundation.java:181) [rococoa-core-0.9.1.jar:?] at org.rococoa.internal.ObjCObjectInvocationHandler.sendOnThisOrMainThread(ObjCObjectInvocationHandler.java:245) [rococoa-core-0.9.1.jar:?] at org.rococoa.internal.ObjCObjectInvocationHandler.invokeCocoa(ObjCObjectInvocationHandler.java:212) [rococoa-core-0.9.1.jar:?] at org.rococoa.internal.ObjCObjectInvocationHandler.intercept(ObjCObjectInvocationHandler.java:171) [rococoa-core-0.9.1.jar:?] at ch.cyberduck.binding.application.NSApplication$$ByRococoa.run() [binding-8.7.2.jar:f3039dc5d1647495bbea6da89668c7de29291772] at ch.cyberduck.ui.cocoa.MainApplication.main(MainApplication.java:126) [osx-8.7.2.jar:f3039dc5d1647495bbea6da89668c7de29291772] Caused by: java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2 at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?] at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?] at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?] at java.base/java.util.Objects.checkIndex(Unknown Source) ~[?:?] at java.base/java.util.ArrayList.get(Unknown Source) ~[?:?] at ch.cyberduck.ui.cocoa.delegate.URLMenuDelegate.getURLs(URLMenuDelegate.java:112) ~[osx-8.7.2.jar:f3039dc5d1647495bbea6da89668c7de29291772] at ch.cyberduck.ui.cocoa.delegate.URLMenuDelegate.menuUpdateItemAtIndex(URLMenuDelegate.java:100) ~[osx-8.7.2.jar:f3039dc5d1647495bbea6da89668c7de29291772] at ch.cyberduck.ui.cocoa.delegate.AbstractMenuDelegate.menu_updateItem_atIndex_shouldCancel(AbstractMenuDelegate.java:53) ~[osx-8.7.2.jar:f3039dc5d1647495bbea6da89668c7de29291772] ... 27 more


- [X] Mountain Duck (Windows/macOS) has different Copy URL logic
AliveDevil commented 10 months ago

While checking for #15506 observed this behavior:

AliveDevil commented 10 months ago

macOS glitches out as well. image