Bug: TOPSAR Split function missing in version 3.0

Hey there, I try to apply TOPSAR split to the sentinel-1 SLC data but the dialog won’t come out. I tried with other Sentinel-TOPSAR functions and they seem fine. Please look into this. Thanks.

G

I further noticed that this error occurs when I select TOPSAR split.

java.lang.NullPointerException
at javax.swing.plaf.basic.BasicSliderUI.recalculateIfInsetsChanged(BasicSliderUI.java:946)
at javax.swing.plaf.basic.BasicSliderUI.getPreferredSize(BasicSliderUI.java:469)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)
at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1115)
at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:916)
at java.awt.GridBagLayout.preferredLayoutSize(GridBagLayout.java:736)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:96)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(ScrollPaneLayout.java:492)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:96)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.ScrollPaneLayout.preferredLayoutSize(ScrollPaneLayout.java:492)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(BasicTabbedPaneUI.java:2304)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(BasicTabbedPaneUI.java:2278)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(JRootPane.java:920)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1664)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at java.awt.Window.pack(Window.java:809)
at org.esa.snap.ui.AbstractDialog.show(AbstractDialog.java:236)
at org.esa.snap.graphbuilder.rcp.dialogs.SingleOperatorDialog.show(SingleOperatorDialog.java:154)
at org.esa.snap.graphbuilder.rcp.actions.OperatorAction.actionPerformed(OperatorAction.java:64)
at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I am not sure if this is my issue or otherwise. I am running on Linux Mint 17.3, 16Gb RAM
Please help!

it is works very well, but I think try to be sure the old version has been totally removed by checking
your roaming folder, and try to remove the SNAP, and remove the residuals folder in roaming and then download and install it again,

@falahfakhri I tried removing SNAP and reinstall multiple times but it still has the same issue. I’m new to linux platform so how to remove the residuals folder in roaming? Thanks

I was talking about windows, because I’m working in windows environment, but take a look at this might be it is helpful,

https://technet.microsoft.com/en-us/library/cc757013(v=ws.10).aspx

Dear falahfakhri,
It seems I have the same problem. TOPSAR split in the new release does not work on Ubuntu 14.04 RAM16GB neither in graph nor being launched individualy . I tried to reinstall the new release several times deleting all the traces of the old release but the problem was not solved. Everything works fine on Windows 7.
Thank you for all your help
Katherine

@glenn I am having exactly the same issue with a Linux machine. The previous versions worked fine but now with version 3.0 the TOPSAR split dialog box does not work. Have you been able to overcome the problem yet?

hi amy, yes it is an issue for linux machine. Nobody has answered me yet so I had resorted to installing s1tbx 2.0 in another directory. So I can switch among these 2 versions with no problem so far. Another way is to use s1tbx in windows which according to others work fine. Hope this helps you :slight_smile:

Dear Amy,
I just switched to Windows. Hope the bug with Linux will be fixed sometime.
Cheers,
Katherine

The problem seems related to the look and feel theme on linux. Have you changed the look and feel in the tools -> options -> appearance? Under Linux, if I have the default Metal selected then there is no problem. If I use Nimbus then the TOPS Split doesn’t come up.
The TOPS Split uses a Jide RangeSlider which does not handle uninitialized parameters in the look and feel. I could replace this with a normal Java swing slider. For now, try changing the look and feel to Metal and see if that works for you.

Yes Iveci it’s working now! Thanks!

Dear Luis,
Thank you very much! It works now!
All the best,
Katherine

Fantastic, working for me too. Thank you Luis!