text not refreshed when scrolling in command window and editor
Show older comments
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 Comments
yutao liu
on 5 May 2016
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
on 5 May 2016
max c
on 1 Feb 2017
did fix it ? beacause i got it always when i scrolling with my touchpad
marcflight
on 22 Aug 2017
same here!!
marcflight
on 22 Aug 2017
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
on 13 Jun 2018
It also occurs for R2014b and R2016b on CentOS 7...
Rahul Bhadani
on 10 Nov 2018
I have the same problem with Matlab R2018a in Ubuntu 18.04. Don't know how to solve it.
Theodore Golfinopoulos
on 21 Dec 2018
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).

Theodore Golfinopoulos
on 21 Dec 2018
Here is the same phenomenon in Matlab 2015b running on Ubuntu 18.04 with 3.0 Mesa 18.05 OpenGL.

And here, on Matlab 2017a running on Ubuntu 18 with software OpenGL.

Answers (1)
Theodore Golfinopoulos
on 21 Dec 2018
Edited: Theodore Golfinopoulos
on 21 Dec 2018
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!
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!