XDM launch, but dont show GUI.
Describe the bug At one day, XDM stopped showing GUI. Im trying to reinstall it, but it did not help.
To Reproduce Steps to reproduce the behavior:
- Launch "XDM"
please complete the following information:
- OS: Windows 10 Pro 2004
- Browser: Google Chrome 89
- XDM addon Version 2.1
- XDM Version 7.2.11
I'm having the same issue. I've been able to "fix" it by uninstalling and reinstalling XDM, but I'd like to know what's going on. Basically after using XDM for a while it'll just stop showing the GUI. No try icon, no "Download Video"-Button but when I try to relaunch XDM it'll tell me that "an older version is already running".
I tried launching it from the command line and I noticed that I get the following 2 Exceptions during launch:
[ AWT-EventQueue-0 ] List changed
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Comparison method violates its general contra
ct!
at java.base/java.util.TimSort.mergeLo(Unknown Source)
at java.base/java.util.TimSort.mergeAt(Unknown Source)
at java.base/java.util.TimSort.mergeCollapse(Unknown Source)
at java.base/java.util.TimSort.sort(Unknown Source)
at java.base/java.util.Arrays.sort(Unknown Source)
at java.base/java.util.ArrayList.sort(Unknown Source)
at java.base/java.util.Collections.sort(Unknown Source)
at xdman.ui.components.DownloadTableModel.sort(DownloadTableModel.java:68)
at xdman.ui.components.DownloadTableModel.listChanged(DownloadTableModel.java:50)
at xdman.ui.components.DownloadListView.refresh(DownloadListView.java:71)
at xdman.ui.components.MainWindow.filter(MainWindow.java:374)
at xdman.ui.components.MainWindow.initWindow(MainWindow.java:957)
at xdman.ui.components.MainWindow.<init>(MainWindow.java:102)
at xdman.XDMApp.showMainWindow(XDMApp.java:206)
at xdman.XDMApp$1.run(XDMApp.java:112)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
And after a couple of seconds this one follows
[ Thread-5 ] [ Thread-4 ] java.io.IOException: Unexpected EOF while reading header line
at xdman.util.NetUtils.readLine(NetUtils.java:18)
at xdman.monitoring.Request.read(Request.java:16)
at xdman.monitoring.MonitoringSession.serviceRequest(MonitoringSession.java:485)
at xdman.monitoring.MonitoringSession.run(MonitoringSession.java:516)
at java.base/java.lang.Thread.run(Unknown Source)
java.io.IOException: Unexpected EOF while reading header line
at xdman.util.NetUtils.readLine(NetUtils.java:18)
at xdman.monitoring.Request.read(Request.java:16)
at xdman.monitoring.MonitoringSession.serviceRequest(MonitoringSession.java:485)
at xdman.monitoring.MonitoringSession.run(MonitoringSession.java:516)
at java.base/java.lang.Thread.run(Unknown Source)
Alright I was able to fix the issue that was preventing the GUI from loading. I'm not entirely sure if this is the same issue that OP had but the fix was simply to employ a Long.compare() on the dates and sizes in DownloadSorter.
This way when 2 values are compared that are the same no violation occurs.