Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Comsol with Matlab 2010b on MacOS X freezes
Posted 17 nov 2010, 10:04 GMT-5 LiveLink for MATLAB, Installation & License Management Version 4.1 13 Replies
Please login with a confirmed email address before reporting spam
I just installed Matlab 2010b and then COMSOL 4.1 on a new MacBook computer and everything works fine except I cant start "COMSOL with Matlab".
The app tries to start but it just freezes.
I have cheked the mlroot in comsol.ini and comsolserver.ini and they are correct.
Please login with a confirmed email address before reporting spam
When I did this, Matlab opened fine with Comsol lurking in the background. Next time the COMSOL with MATLAB application should work normally. I had to do this for version 4.0a as well. You may need to restart to clear the license manager.
BTW, I get a security issue trying to launch the license manager at startup - do you also?
Hope this helps!
~jim~
Please login with a confirmed email address before reporting spam
ERROR: Could not start COMSOL Application. See log file: /Users/micke/Library/Preferences/COMSOL/v41/logs/server5.log
The file says
among other stuff:
00001:293 ERROR Exception:
com.comsol.util.exceptions.FlException: Matlab root directory and Matlab start command are both undefined
Messages:
Matlab root directory and Matlab start command are both undefined
[com.comsol.logger]
Wich is weird since I have the right mlroot specified ( -Dcs.mlroot=/Applications/MATLAB_R2010b.app)
Please login with a confirmed email address before reporting spam
start COMSOL Multiphysics Server.app
start Matlab_2010b.app
type "mphstart" in Matlab.
Can it have anything to do with Matlab 2010b not needing X11 in the background? I can see the comsol launcher opens X11.
(Also, no I don't get a license error...)
Please login with a confirmed email address before reporting spam
have you got the latest COMSOL patch of 2010nov26 ?,
it states it has solved a few Matlab issues, I do not have Mac so I cannot tell if linked to your issue. Then Matlab 2010b is alo rather new ... (compatibility issues are a hell, I agee ot where you want to spend your time)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
sorry to hear that, best is to get some help from "support" or your local rep
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
-Dcs.mlroot=/Applications/MATLAB_R2010b.app
I doubt it makes any difference, but there is a space before this line and not before any others.
And I do not get your error. Peculiar. At least you have found a method that works!
~jim~
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Hope this helps,
~jim~
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
But the good nnews is that it is not really serious becasue you can launch the app through the command line exactely as in linux [ as explained in the doc under linux section] . Some paths might need to be corrected but these are obvious changes...
jf
Please login with a confirmed email address before reporting spam
Try going inside the COMSOL41 folder, right-click on COMSOL with MATLAB to Show Package Contents. Find ComsolLauncher in Contents/MacOS. Open a Terminal window and drag ComsolLauncher to it. Click inside the Terminal window and hit return. You will be prompted for username and password.
When I did this, Matlab opened fine with Comsol lurking in the background. Next time the COMSOL with MATLAB application should work normally. I had to do this for version 4.0a as well. You may need to restart to clear the license manager.
BTW, I get a security issue trying to launch the license manager at startup - do you also?
Hope this helps!
~jim~
this is really clever. It works.
Please login with a confirmed email address before reporting spam
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- FORUM How to access global functions defined in COMSOL with matlab?
- KNOWLEDGE BASE COMSOL 6.1 macOS Apple Silicon Native Support
- KNOWLEDGE BASE Update for LiveLink™ for MATLAB® on macOS with Apple Silicon Processors Applicable to COMSOL Multiphysics® Version 6.2
- BLOG Why Is Ice Slippery Enough for Skiing and Skating?
- FORUM COMSOL with matlab