Is this a general Bug? Or just on my Fiji install

Hello everyone,
I encounter recurrent problems with the script window in Fiji while switching language type.
I’m wondering if it’a general bug, or if it’s just my Fiji install.

Could anyone check if the same error occurs in your Fiji?

Thanks

By the way: is it possible to define the default script language at startup?

I’m running the latest Updated Standard Fiji (with ImageJ 1,52v)

JAVA 1.8.0_172 64bit

MacOS 10.12.6

How to:

Open Fiji. Start Fresh empty script window, then chose IJM1 macro in ‘Language’ and start writing somthing:

for exemple:

 print("i");

then change the language to “None”:

And Boom:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

at org.scijava.ui.swing.script.TextEditor.setLanguage(TextEditor.java:1860)

at org.scijava.ui.swing.script.TextEditor.lambda$new$3(TextEditor.java:428)

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.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308)

at javax.swing.AbstractButton.doClick(AbstractButton.java:376)

at com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:193)

at java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:389)

at java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:357)

at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357)

at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763)

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:74)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

at java.awt.EventQueue$4.run(EventQueue.java:733)

at java.awt.EventQueue$4.run(EventQueue.java:731)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

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)
1 Like

Hey @GoranL,

I can reproduce this issue on my Windows / Fiji. I created a bug report on github. I hope we find time soon to fix it. But for now you can work, right? Or does it harm your workflows in a significan way?

Thanks for reporting! This kind of feedback is essential and allows us to make Fiji better. Thus, thanks for your support!

Cheers,
Robert

OK so it’s not just my Fiji then.
I can live/work with it of course, since it doesn’t crash Fiji.

Do you know if it’s possible to define the script language by default?

(And thanks to you and all the community here)

Cheers Goran