Samples Viewer is empty

Running MEGAN on Windows 10

Here’s the full error message in the message windows:

Executing: show window=samplesViewer;
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at javafx.swing/javafx.embed.swing.JFXPanel.processMouseEvent(JFXPanel.java:453)
at java.desktop/java.awt.Component.processEvent(Component.java:6401)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5012)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4545)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2764)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4844)
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(AccessController.java:391)
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(AccessController.java:391)
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)

This is hard to debug… I have opened MEGAN under Windows 10 and have been able to compare a number of files and to open the sample viewer on the comparison. So it doesn’t seem to be a systematic issue.

The largest number of files that I have opened in a comparative view is around 1,000, so the number of files shouldn’t be an issue.

Unfortunately, the stack trace is unhelpful. Were there any errors or warnings in the steps before you tried to open the Samples Viewer? (It might be a follow on error.)

Did you try saving the comparison file, then reopening the file and then opening the Samples Viewer? If this still causes problems, could you please send me the comparison file by email and then it should be easy for me to fix the issue.

What I showed in the screenshot and when I got the error was the comparison file.

However, using MEGAN I tried to resave my comparison file as a new file as you suggsted (by using the “File->Save as”), and this worked. I am now able to open the SamplesViewer using the new comparison file. These two files should be identical, but for some reason the SamplesViewer only works after I used “File-> Save as”.

I think this issue could be derived from that I used the compute-comparison tool to make the comparison.megan file from my 108 .daa files. For some reason when I use this file with MEGAN I am unable to open the SampelsViewer. But now I have found a work around by resaving the file as a new one.

I used the following command in linux:
compute-comparison -i *.daa -n false
which generated the comparison.megan file.

Thanks for the response… I will investigate whether the output of compute-comparison causes problems.