Replies: 2 comments
-
Hi. Yes, I've also noticed that. And the tl;dr is, unfortunately, that I don't know why that happens, how to fix it, nor really how to debug it. It's briefly mentioned in the documentation, in "Installation":
And that's actually a bit outdated. When I originally tested this on an Ubuntu workstation, it worked. That is, the entire test suite passed, including image exports. Then I tested on an HPC cluster I had access to, with CentOS 7 as the operating system. There the image export would hang, just like you describe. So I figured it's the Linux distribution's fault. But not long ago, that same cluster was upgraded to Ubuntu 22, and there the image export also hangs, despite it being Ubuntu. I don't know what's up with that. I've certainly tried putting various libraries on I guess the next thing to try would be to cut out the Python/JPype middleman. That is, translate that Python script to Java, compile and run it, while having a separate Comsol server process already up and running for the client to connect to. I could assist with that if you wanna try. There's also an issue/discussion somewhere with Java code and build instructions, though I can't remember which one off the top of my head. But the question will be, what then? If the same behavior occurs, you could report it to Comsol. If it then works, then no clue what to do about it. It might point to an issue with JPype, but since Comsol isn't open source, that's probably the end of that. Unless there is something we've forgotten to set up in the enviroment, like some search path. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! The cluster I'm working on is running CentOS, so that fits well with your description. I'll try to get a windows PC with a local Comsol installation and run my script there. That's probably the easiest way… |
Beta Was this translation helpful? Give feedback.
-
I'd like to export several images from a model. In order to do this, I defined the model, multiple plot nodes and export nodes for each plot. Solving the model and exporting the images through the GUI works without problems.
Now I'd like to automate this process and wrote this script:
My problem: model.export() doesn't terminate. Interrupting it with Ctrl+C gives the following output:
I am using a comsol installation on a remote system. To me, this error looks as if there are some issues with the java runtime. If so, can I find debug information of model.export() somewhere? I'd also appreciate any other thoughts on that problem :)
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions