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.

Crash on linux: com.comsol.nativejni.geom.Geom3.createGeom3(Lcom/comsol/nativejni/CPointer;I)V

Please login with a confirmed email address before reporting spam

Hello,
I have a java application which can run in standalone mode as well. When running on Windows (either from the Desktop GUI or in standalone mode), or on Linux (from the Desktop GUI), it runs without problems. When I try to run it on linux in standalone mode, it crashes with the following error message:

FATAL ERROR OCCURED: com.comsol.nativejni.geom.Geom3.createGeom3(Lcom/comsol/nativejni/CPointer;I)V
Fatal error occured: com.comsol.nativejni.geom.Geom3.createGeom3(Lcom/comsol/nativejni/CPointer;I)V

It happens both in versions 4.3b and 4.4

I am trying to figure out the problem, but in case anybody can give a quick hint what to look after, that would be a great help.

Thank you very much
Daniel

[edit]
Sorry, the 'Fatal error occured' text is produced my code. An exception is thrown somewhere in COMSOL, with the message 'com.comsol.nativejni.geom.Geom3.createGeom3(Lcom/comsol/nativejni/CPointer;I)V'

3 Replies Last Post 18 lug 2014, 17:48 GMT-4
COMSOL Moderator

Hello

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 lug 2014, 20:16 GMT-4
Bump. Same problem here. I duplicated this by literally doing the first steps of "Getting Started" in the API Reference Manual for COMSOL 4.4.195 on Linux. Having searched around for a while I haven't seen any resolutions for this.
Bump. Same problem here. I duplicated this by literally doing the first steps of "Getting Started" in the API Reference Manual for COMSOL 4.4.195 on Linux. Having searched around for a while I haven't seen any resolutions for this.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 18 lug 2014, 11:31 GMT-4
Hi,
Instead of running the .class file from java, use the comsol executable in batch mode (it does some extra things compared to simply running your .class file from java directly, which seems to be needed), and pass the cmd line args through a temporary file:

1) I have a wrapper bash script, which writes the cmd line args into a file, and sets the environment variable COMSOL_CMD_LINE_ARGS_FILE to the full path of that file, and then runs
COMSOL_INSTALL_DIR/bin/comsol batch -inputfile MyClass.class

2) MyClass.class checks if the env variable COMSOL_CMD_LINE_ARGS_FILE is set. If yes, it reads the cmd line args from the file and parses them.

Hi, Instead of running the .class file from java, use the comsol executable in batch mode (it does some extra things compared to simply running your .class file from java directly, which seems to be needed), and pass the cmd line args through a temporary file: 1) I have a wrapper bash script, which writes the cmd line args into a file, and sets the environment variable COMSOL_CMD_LINE_ARGS_FILE to the full path of that file, and then runs COMSOL_INSTALL_DIR/bin/comsol batch -inputfile MyClass.class 2) MyClass.class checks if the env variable COMSOL_CMD_LINE_ARGS_FILE is set. If yes, it reads the cmd line args from the file and parses them.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 18 lug 2014, 17:48 GMT-4
Ah, this was enlightening. Thanks for the response.
Ah, this was enlightening. Thanks for the response.

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.