text not refreshed when scrolling in command window and editor

I have a student version of MATLAB 2013a on OSX El Captain. Sometimes when I'm scrolling in command window or editor window, the text isn't displayed correctly, it's like a problem with refreshing the page. Any idea what's the problem? I end up scrolling up and down until it's all okay. I don't really know how to describe it.

9 件のコメント

yutao liu
yutao liu 2016 年 5 月 5 日
I think I have the same problem you described. Some lines are duplicated when scrolling with two fingers on the touchpad. The up and down buttons works fine, but it would be nice to fix the scrolling issue, which was not there before I upgraded to El Capitan.
saeedafra
saeedafra 2016 年 5 月 5 日
Exactly, same observation here.
max c
max c 2017 年 2 月 1 日
did fix it ? beacause i got it always when i scrolling with my touchpad
marcflight
marcflight 2017 年 8 月 22 日
same here!!
marcflight
marcflight 2017 年 8 月 22 日
i found that ubuntu users had a similar issue in the past. the trick is to add a java.opts file in the beginning directory. i tried the following command -Dapple.java2d.pmoffscreen=false ,but it didn't work. Does someone know what would be the right command to use?
Pingmin Fenlly Liu
Pingmin Fenlly Liu 2018 年 6 月 13 日
It also occurs for R2014b and R2016b on CentOS 7...
Rahul Bhadani
Rahul Bhadani 2018 年 11 月 10 日
I have the same problem with Matlab R2018a in Ubuntu 18.04. Don't know how to solve it.
Theodore Golfinopoulos
Theodore Golfinopoulos 2018 年 12 月 21 日
I have also experienced this problem - the picture below is from a Matlab 2017a instance on an Ubuntu 16.04 installation. I've seen it on Matlab2016, also on Ubuntu 16.04. Matlab 2015b doesn't seem to have the problem.
See also
That question has a little more documentation of the problem (with pictures).
MatlabTextOverwriteUbuntu1604R2017a_small.jpg
Theodore Golfinopoulos
Theodore Golfinopoulos 2018 年 12 月 21 日
Here is the same phenomenon in Matlab 2015b running on Ubuntu 18.04 with 3.0 Mesa 18.05 OpenGL.
MatlabOverwritingTextUbuntu1804MatlabR2015b_small.png
And here, on Matlab 2017a running on Ubuntu 18 with software OpenGL.
matlab_overlapping_text_R2017a_on_Ubuntu18_small.png

サインインしてコメントする。

回答 (1 件)

Theodore Golfinopoulos
Theodore Golfinopoulos 2018 年 12 月 21 日
編集済み: Theodore Golfinopoulos 2018 年 12 月 21 日

1 投票

See this bug fix
It seems to be a Java issue. A temporary fix is the clearscreen command; a more permanent fix is pointing a MATLAB_JAVA environment variable to your system's jre. Details below.
The clearscreen command
clc
ends the glitch temporarily, but it will come back; to get rid of the problem, export a MATLAB_JAVA environment variable in your .bashrc and point it to the Java runtime environment on your system - for me, this looked like
export MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre
The test code mentioned here
for i=1:1000,'x',drawnow('update'),pause(0.0001),end
works to figure out (a) whether you have this issue (i.e. it reproduces the problem), and (b) whether you've fixed it.
What a relief!

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

質問済み:

2016 年 4 月 3 日

編集済み:

2018 年 12 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by