Discussion Forum

Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Topics: 3.5a, MATLAB

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   18 Replies   Last post: August 23, 2010 6:30pm UTC
Magalie Huttin

Magalie Huttin

August 14, 2009 12:58pm UTC

Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

hi,

I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?

Thanks a lot in advance for your help.

Magalie Huttin

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Yevgeniy Davletshin

Yevgeniy Davletshin

August 14, 2009 2:39pm UTC in response to Magalie Huttin

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Check your Comsol version, may be this will help http://www.comsol.com/support/updates/comsol35a1/

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Magalie Huttin

Magalie Huttin

August 16, 2009 10:27am UTC in response to Yevgeniy Davletshin

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Thanks a lot! I download the updates and now it works!

Best regards

Magalie Huttin

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Eyal Cohen-Hoshen

Eyal Cohen-Hoshen

August 19, 2009 8:13am UTC in response to Magalie Huttin

Cannot start comsol on ubuntu 9.04 64 bit

I just installed COMSOL 3.5.0.494 it works fine on windows xp 32 bit.
When I installed it on linux ubuntu 9.04 the installation went fine but when I start it up I get the model navigator and after choosing a model it dies giving:
Please help!

Error: 9040
Fatal error.
- Type: ExceptionInInitializerError
Exception:
java.lang.ExceptionInInitializerError
(rethrown as com.femlab.util.FlFatalException)
Messages:
Fatal error.
- Type: ExceptionInInitializerError

Stack trace:
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostTriPlot.<init>(Unknown Source)
at com.femlab.post.PostModelMph.ap(Unknown Source)
at com.femlab.post.PostModelMph.<init>(Unknown Source)
at com.femlab.gui.bo.<init>(Unknown Source)
at com.femlab.gui.Femlab.startGui(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.a(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.applyAction(Unknown Source)
at com.femlab.controls.FlDialog.okAction(Unknown Source)
at com.femlab.controls.FlDialog.actionPerformed(Unknown Source)
at com.femlab.controls.FlButton.a(Unknown Source)
at com.femlab.controls.FlButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.femlab.gui.e.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.femlab.post.CustomColorMap.getCustomColorMaps(Unknown Source)
at com.femlab.post.PostColorMapData.createColorMapComboItems(Unknown Source)
at com.femlab.post.PostColorMapData.<clinit>(Unknown Source)
... 38 more

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Yevgeniy Davletshin

Yevgeniy Davletshin

August 20, 2009 10:29pm UTC in response to Eyal Cohen-Hoshen

Re: Cannot start comsol on ubuntu 9.04 64 bit

I'm not sure but it migth help you:
My friend had some problems with Ubuntu, and Comsol doesn't officially support Ubuntu.
So what he did is - he changed his Linux system to one that is daughter of RedHat. And I think it helped him with MatLab issues.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

R. Faycal Hamou

R. Faycal Hamou

August 21, 2009 12:46pm UTC in response to Eyal Cohen-Hoshen

Re: Cannot start comsol on ubuntu 9.04 64 bit

I am using Ubuntu without any problem. it works perfectly.

It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"

I hope it helps

Cheers

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Eyal Cohen-Hoshen

Eyal Cohen-Hoshen

August 25, 2009 7:22am UTC in response to R. Faycal Hamou

Re: Cannot start comsol on ubuntu 9.04 64 bit

Hello Faycal,
Thanks for your reply.
I have changed the permission on the .comsol directory to my username.
Which java package should I install?
I have java 1.6.0_14 version which is java 6 SE.
In the synaptic package manager I cannot find any java 64-bit version.
any clue?

Eyal

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

R. Faycal Hamou

R. Faycal Hamou

August 26, 2009 11:29pm UTC in response to Eyal Cohen-Hoshen

Re: Cannot start comsol on ubuntu 9.04 64 bit

Hi,

Don't forget to change also the permission for the sub folders and also the files in .comsol
Concerning the installation of the Java, don't use the synaptic.
It is much better with the command line
Try this link and follow the instruction (it is easy) just copy and past the instructions. By this, you can also check which version is installed in your system.

http://www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-904-jaunty.html#more-1307

Hope it helps and keep us informed about the progress.

Cheers

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Eyal Cohen-Hoshen

Eyal Cohen-Hoshen

August 27, 2009 8:39am UTC in response to R. Faycal Hamou

Re: Cannot start comsol on ubuntu 9.04 64 bit

Hi Faycal,

Thanks for your help.
The problem was indeed permission issues.
I changed permission of the .comsol directory and it did'nt help
For starters I run it with sudo and it runs perfectly. When I will have time to mess around with it maybe I'll clean it up
Thanks

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

R. Faycal Hamou

R. Faycal Hamou

August 27, 2009 9:05pm UTC in response to Eyal Cohen-Hoshen

Re: Cannot start comsol on ubuntu 9.04 64 bit

Hi,

Changing the permission for the .comsol folder and its sub folder should "definitely" solve the problem since that the software ran by using sudo.
The reason is that when you start comsol, the software has to write some specific files in that folder. So, without root permission comsol cannot start.
You have to change the access (permission) for this folder and its content.
A radical solution is to change the permission also for /usr/local/comsol folder and its sub folders (all the content).

This is due to the Ubuntu security system not comsol itself.

Good luck,

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Martin Ploschner

Martin Ploschner

September 23, 2009 2:55pm UTC in response to Magalie Huttin

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Hi,

I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'

and non of the comsol libraries are loaded. Have you experienced something similar?

Thanks a lot.

Martin


hi,

I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?

Thanks a lot in advance for your help.

Magalie Huttin


Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Eyal Cohen-Hoshen

Eyal Cohen-Hoshen

September 24, 2009 6:58am UTC in response to Magalie Huttin

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Hi,
I did'nt have such a problem.
On the Comsol35a installation make sure that you enter the correct path for you matlab installation.
I usually run matlab from the comsol menu \File\..\connect to matlab..
Eyal

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Joel Pauchet

Joel Pauchet

October 13, 2009 8:52am UTC in response to Martin Ploschner

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

Hi,

to resolve your problem make sure that you have the an "mli" folder in the COMSOL root directory. this folder conatins the function 'comsolmexpath' and other files used to connect matlab and COMSOL

it works for me, i had the same problem before

good luck

M


Hi,

I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'

and non of the comsol libraries are loaded. Have you experienced something similar?

Thanks a lot.

Martin




Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Nikolay Kerenchev

Nikolay Kerenchev

October 28, 2009 5:51pm UTC in response to Joel Pauchet

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits


Problem running COMSOL3.5a with MATLAB R2008a.
The path is ok, but in matlab is is written:

??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'.

I don't have this 'mli' folder im Cmsol directory. Haw can I install it, is it from the normal instalation, or it have to be copied from somwhere.

thank you

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Eyal Cohen-Hoshen

Eyal Cohen-Hoshen

October 29, 2009 7:30pm UTC in response to Nikolay Kerenchev

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

I had exactly the same thing and it was just pemission issues in Ubuntu.
I solved it for now by ussing sudo. A more thorough solution is to define all the permissions stuff.
Eyal.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Johan Kreutz

Johan Kreutz

November 6, 2009 5:56am UTC in response to Eyal Cohen-Hoshen

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

I had the same problem and it was premissions. I changed comsol instalation directory and .comsol in my own home folder to read/write form me and it works.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Alexandra Heidsieck

Alexandra Heidsieck

November 24, 2009 3:06pm UTC in response to Johan Kreutz

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits

I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine.
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Niklas Rom

Niklas Rom
COMSOL Employee
Moderator

November 27, 2009 12:42pm UTC in response to Alexandra Heidsieck

Re: Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits


I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine.
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.


I think you are right, Alexandra. Martin, check this:
http://www.comsol.com/support/knowledgebase/1052/

Niklas

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Praveen Nooli

Praveen Nooli

August 23, 2010 6:30pm UTC in response to R. Faycal Hamou

Re: Cannot start comsol on ubuntu 9.04 64 bit


I am using Ubuntu without any problem. it works perfectly.

It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"

I hope it helps

Cheers


Hi R. Faycal Hamou

I have followed your instructions and changed permissions of ".comsol" folder and /usr/local/comsol35a and provided read./write access to all files in it. I have installed Sun-java6-jre and sun-java6-bin. Inspite of all this I still get the following errors:

Error 9040: Fatal error
Exception Initialization error when I am trying to open new files with any physics
Null pointer Exception when I am trying to open solved problems from either Model library or some other solved problems.

I would greatly appreciate if you have any suggestions on how to resolve this problem.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines