Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jadx-gui] An error occurred while opening the file #1606

Closed
xxr0ss opened this issue Aug 7, 2022 · 3 comments
Closed

[jadx-gui] An error occurred while opening the file #1606

xxr0ss opened this issue Aug 7, 2022 · 3 comments

Comments

@xxr0ss
Copy link
Contributor

xxr0ss commented Aug 7, 2022

  • Jadx version: dev
  • Java version: 11.0.15
  • Java VM: Oracle Corporation OpenJDK 64-Bit Server VM
  • Platform: Windows 11 (10.0 amd64)
  • Max heap size: 12288 MB
  • Program args: -Xms128M -Xmx12G -XX:MaxRAMPercentage=70.0 -XX:+UseG1GC -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true
java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.base/java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:870)
	at java.base/java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:487)
	at java.base/java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:426)
	at java.base/java.util.ComparableTimSort.sort(ComparableTimSort.java:222)
	at java.base/java.util.Arrays.sort(Arrays.java:1249)
	at java.desktop/sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:313)
	at java.desktop/sun.awt.shell.ShellFolder.get(ShellFolder.java:259)
	at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(MetalFileChooserUI.java:1029)
	at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(MetalFileChooserUI.java:717)
	at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(MetalFileChooserUI.java:806)
	at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
	at java.desktop/java.awt.Component.firePropertyChange(Component.java:8731)
	at java.desktop/javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:608)
	at java.desktop/javax.swing.JFileChooser.<init>(JFileChooser.java:362)
	at java.desktop/javax.swing.JFileChooser.<init>(JFileChooser.java:338)
	at jadx.gui.ui.dialog.FileDialog$FileChooser.<init>(FileDialog.java:163)
	at jadx.gui.ui.dialog.FileDialog.buildFileChooser(FileDialog.java:145)
	at jadx.gui.ui.dialog.FileDialog.show(FileDialog.java:75)
	at jadx.gui.ui.MainWindow.showOpenDialog(MainWindow.java:304)
	at jadx.gui.ui.MainWindow.openFileDialog(MainWindow.java:291)
	at jadx.gui.ui.panel.StartPagePanel.lambda$new$0(StartPagePanel.java:34)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
	at java.desktop/java.awt.Component.processEvent(Component.java:6400)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

I've deleted /build folder and rebuilt jadx, but this error still occurs. Still testing, this error is currently found to occur on 75b52d6 and a few versions before.

@xxr0ss
Copy link
Contributor Author

xxr0ss commented Aug 7, 2022

I thought it was a bug introduced by the update, but I have tried rebooting my computer, rebuilding many older versions, directly using releases from this repo, and this error still occurs. So I think it should be caused by something else (e.g. jre). I'll reopen an issue if necessary.

@xxr0ss xxr0ss closed this as completed Aug 7, 2022
@jpstotz
Copy link
Collaborator

jpstotz commented Aug 7, 2022

You came to the same conclusion like skylot an myself (see issues #1574 #1552). If I remember correctly you are the first user who is able to reproduce this issue with multiple Jadx versions respectively multiple times. The other reports sounded mire like a glitch that happens under some rare conditions.

The interesting part is, now that we have three different reports of the same problem, that they all contain Windows 11 as OS. This may be coincidence but my the chance is rising that this is an Windows 11 related problem in combination with Java/OpenJDK.

@xxr0ss
Copy link
Contributor Author

xxr0ss commented Aug 7, 2022

this is an Windows 11 related problem in combination with Java/OpenJDK.

That's true @jpstotz . I've tried different builds of Java: AdoptOpenJDK, Microsoft JDK, Oracle OpenJDK. The same error never stops.
Currently I'm on Windows 11 22622.450, and I remember that Jadx was working fine half a month ago. So it is very likely that this issue was introduced in the last one or two updates of Windows 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants