mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Errors when using Matlab 2025a

Open worldred99 opened this issue 5 months ago • 2 comments

*I got many errors and/warnings during startup and import EBSD data. Cannot create m file automatically. Anyone tested version 6 is working under matlab 2025a? Thanks

worldred99 avatar Jun 19 '25 12:06 worldred99

Hi, "many errors" isn't unfortunately the most helpful description. Any chance you could copy those and paste them here? Cheers, Rüdiger

kilir avatar Jun 19 '25 14:06 kilir

Hi Rüdiger,

I'm not the person who initially posted the issue, but I had a colleague ask me about a very similar problem and started looking into it, using the most recent downloaded version of MTEX (6.1.beta.3 or 6.2.beta.3? They are named differently on the download page and in the actual directory) and MATLAB r2025a. I haven't reproduced any startup related errors/warnings like @worldred99 mentioned, but there are two sets of messages when using the EBSD import wizard (that I expect will also happen in the pole figure import wizard, but I don't have the data sitting around to test it).

The first is just warnings about UI features that are about to get deprecated, and you get at least one new version of this warning every time you progress the "next" button in the wizard:

Warning: BorderType will not accept beveledout in a future release. Use "line" or "none" instead. > In uitabpanel (line 262) In pageImportData/localCreatePage (line 202) In pageImportData (line 11) In WizardProgressApi/showPage (line 48) In import_wizard (line 25)

The second occurs specifically when trying to create a .m import script using the wizard (creating a workspace variable still works fine):

Not enough input arguments.

Error in WizardFinish/generateScript/openUntitled (line 216) openUntitled( str, fname ); ^^^^^ Error in WizardFinish/generateScript (line 102) openUntitled(str); ^^^^^^^^^^^^^^^^^ Error in WizardFinish (line 12) generateScript(); ^^^^^^^^^^^^^^^^ Error in WizardProgressApi/localFinishCallback (line 129) e = WizardFinish(api); ^^^^^^^^^^^^^^^^^

Error using matlab.ui.internal.controller.uicontrol.UIControlController/triggerActionEvent (line 76) Error while evaluating UIControl Callback.

UIDefaults.getUI() failed: no ComponentUI class for: com.mathworks.mlwidgets.stack.StackComboBox[null,,layout<HORIZONTAL>,NORMAL] java.lang.Error at javax.swing.UIDefaults.getUIError(UIDefaults.java:731) at javax.swing.MultiUIDefaults.getUIError(MultiUIDefaults.java:130) at javax.swing.UIDefaults.getUI(UIDefaults.java:761) at javax.swing.UIManager.getUI(UIManager.java:1016) at javax.swing.JComboBox.updateUI(JComboBox.java:266) at com.mathworks.mwswing.MJComboBox.super_updateUI(MJComboBox.java:155) at com.mathworks.toolstrip.components.TSComboBox.updateUI(TSComboBox.java:64) at javax.swing.JComboBox.init(JComboBox.java:231) at javax.swing.JComboBox.(JComboBox.java:225) at com.mathworks.mwswing.MJComboBox.(MJComboBox.java:95) at com.mathworks.toolstrip.components.TSComboBox.(TSComboBox.java:37) at com.mathworks.mlwidgets.stack.StackComboBox.(StackComboBox.java:83) at com.mathworks.mde.editor.EditorViewClient.createStackComboBox(EditorViewClient.java:288) at com.mathworks.mde.editor.EditorViewClient.init(EditorViewClient.java:231) at com.mathworks.mde.editor.EditorViewClient.(EditorViewClient.java:178) at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:704) at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:689) at com.mathworks.mde.editor.MatlabEditorApplication.createBufferEditorViewClient(MatlabEditorApplication.java:611) at com.mathworks.mde.editor.MatlabEditorApplication.doNewEditor(MatlabEditorApplication.java:381) at com.mathworks.mde.editor.MatlabEditorApplication.access$000(MatlabEditorApplication.java:77) at com.mathworks.mde.editor.MatlabEditorApplication$1.runWithOutput(MatlabEditorApplication.java:123) at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475) at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 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:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 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) Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.NullPointerException at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:710) at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:689) at com.mathworks.mde.editor.MatlabEditorApplication.createBufferEditorViewClient(MatlabEditorApplication.java:611) at com.mathworks.mde.editor.MatlabEditorApplication.doNewEditor(MatlabEditorApplication.java:381) at com.mathworks.mde.editor.MatlabEditorApplication.access$000(MatlabEditorApplication.java:77) at com.mathworks.mde.editor.MatlabEditorApplication$1.runWithOutput(MatlabEditorApplication.java:123) at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475) at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) 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:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 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) Caused by: java.lang.NullPointerException at javax.swing.JComboBox.isPopupVisible(JComboBox.java:825) at com.mathworks.toolstrip.components.TSComboBox.fireActionEvent(TSComboBox.java:94) at javax.swing.JComboBox.contentsChanged(JComboBox.java:1332) at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118) at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:93) at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:131) at javax.swing.JComboBox.addItem(JComboBox.java:716) at com.mathworks.mlwidgets.stack.StackComboBox.(StackComboBox.java:90) at com.mathworks.mde.editor.EditorViewClient.createStackComboBox(EditorViewClient.java:288) at com.mathworks.mde.editor.EditorViewClient.init(EditorViewClient.java:231) at com.mathworks.mde.editor.EditorViewClient.(EditorViewClient.java:178) at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClient(MatlabEditorApplication.java:704) ... 21 more

Begley-MSE avatar Jun 23 '25 21:06 Begley-MSE

Hi All,

Any thoughts to this issue? My colleague has the same errors as @Begley-MSE posted trying to create an EBSD .m file with the wizard. The problem persisted with MTEX 6.0 and 5.11 as well, and they do not have access to an older version of MATLAB. We are manually importing the workspace variables for now.

EDIT: This may or may not be relevant, but they are working with MAC OS for which 2025a is reporting many issues.

petrOsinchuk avatar Jul 08 '25 18:07 petrOsinchuk

I also have the same error. But it works when using the import command (ebsd = loadEBSD).

fanz7 avatar Sep 09 '25 08:09 fanz7

Hello, I encounter the same problem with MATLAB 2025b, but as @fanz7 pointed out, the import function still works

jlhostis avatar Nov 03 '25 14:11 jlhostis

I have the same problem and I think it relates to update of matlabs interface for uicontrols and user inputs

bjoerneske avatar Nov 18 '25 09:11 bjoerneske