Hi,
I usually connect from my MacPro? Retina to a Linux server through xpra. I run and use Matlab remotely using this service. Everything is fine in using Matlab, but a big problem I am having with plots in Matlab. Every time I plot something in Matlab, the plot's window is shown in a very strange resolution and size. It seems that Matlab (running on the server side) assumes some wrong screen size when opening a window for the plot. The problem happens always and it doesn't depend to the type of the plot. It is giving me a big headache. I appreciate if someone could help me on this. I have a screenshot of the situation which might be helpful:
Thanks.
Screenshot: look to the plot appearance problem (strange size)
Please provide more info: xpra info
, server distro and version, etc..
Is libfakeXinerama
installed? etc..
Thanks for your reply.
The server information is:
Linux 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.5 (Final) Release: 6.5 Codename: Final
And I searched for 'libfakeXinerama' on server and found it in following places:
/usr/lib64/libfakeXinerama.so.1 /usr/lib64/libfakeXinerama.so.1.0 /usr/share/doc/libfakeXinerama-0.1.0 /usr/share/doc/libfakeXinerama-0.1.0/README.TXT /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64 /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/checksum_data /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/checksum_type /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/command_line /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/from_repo /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/from_repo_revision /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/from_repo_timestamp /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/installed_by /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/reason /var/lib/yum/yumdb/l/c564f79e0c02dba00cf9342f6c6b26cdf2c1e37d-libfakeXinerama-0.1.0-3.el6-x86_64/releasever
Please let me know if you need more information.
Regards
smaller screenshot we can inline
This resize bug could be linked to #705, so you may want to subscribe to the CC list for that ticket.
Since I am unable to install matlab (there is no free version to use for testing), I am unable to test.. and unlikely to find the cause of the problem quickly. I may ask you to test a beta build if and when I make changes likely to impact this ticket.
Note: I have removed the dropbox links as those tend to go stale and added a smaller screenshot inline.
OK, thank you very much for your quick replies. Hope to have the problem solved soon with your help.
As per https://github.com/Xpra-org/xpra/issues/705#comment:8, are you running matlab with a Sun JDK version 6 or older? Can you try with a newer SDK as per How do I change the Java Virtual Machine (JVM) that MATLAB is using for Linux OS?
That may fix things. You can also try a new beta build with:
XPRA_NET_WM_NAME=Sawfish xpra start ...
Which should workaround the older buggy SDK.
The java version in Matlab is:
Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
So you suggest to update it?
I see, you are using the buggy sun jdk. As per comment:5, your options are:
XPRA_NET_WM_NAME=Sawfish
There is a good chance either one of those options will fix the bug.
OK, Thanks for the options. I suppose both of the options need the server admin permission so I am going to ask him to pick one of the solutions and apply it. I will let you know the result.
There are probably ways of installing the JDK in your home directory without requiring root access. As for xpra you can also install from source in your home directory. Neither of these options is very difficult, but not completely straightforward either.
Can I close this ticket?
Not heard back, closing. Feel free to re-open if you have more details.
Another update in this area was in #765, so you may have more luck with trunk builds.
Received by email: The server admin upgraded the java jdk from 1.6 to 1.7 and the plot size problem has been solved. You may close this ticket. Thank you very much.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/725