Closed cagancayco closed 9 months ago
Dear @cagancayco,
Thank you for trying out matlab-proxy, and I apologize for the delayed response! I was able to reproduce the issue at my end and can also confirm that the issue is happening because the "conn" toolbox is built using Java components that are not supported in the web-enabled mode of accessing MATLAB via matlab-proxy.
An ideal fix for this would be for the toolbox developers to transition to alternative technologies as listed in this article. However, considering you might not be able to influence this code change, a current workaround would be to access MATLAB desktop over the VNC protocol. I have verified that the UIs are rendered correctly in this mode. If your cluster is set up with our official MATLAB docker image from Docker Hub, it comes packaged with VNC and can be started and accessed as mentioned below:
Run MATLAB in desktop mode and interact with it via VNC
To start the MATLAB desktop, execute:
$ docker run -it --rm -p 5901:5901 -p 6080:6080 --shm-size=512M mathworks/matlab:r2023b -vnc
To connect to the MATLAB desktop, either:
Point a browser to port 6080 of the docker host machine running this container (http://hostname:6080)
Use a VNC client to connect to display 1 of the docker host machine (hostname:1)
The VNC password is matlab by default. Use the PASSWORD environment variable to change it.
Hope that helps!
Sincerely, Krishan
Summary
I am trying to use the CONN toolbox with a MATLAB server running via matlab-proxy. When I launch the CONN GUI, the GUI figure opens, but none of the menu buttons render. No error messages appear but there is no text on the GUI buttons and they are not clickable.
To reproduce the issue, you can download the CONN toolbox and SPM12. I add the toolboxes to the path and then launch the CONN GUI via the command line.
I'm not sure what can be done to fix it, but I'm wondering if it might be Java related? I want to add that I'm running this on a cluster via Open OnDemand.
Browser(s) used
Chrome
Script output