text not refreshed when scrolling in command window and editor
Afficher commentaires plus anciens
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 commentaires
yutao liu
le 5 Mai 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
le 5 Mai 2016
max c
le 1 Fév 2017
did fix it ? beacause i got it always when i scrolling with my touchpad
marcflight
le 22 Août 2017
same here!!
marcflight
le 22 Août 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
le 13 Juin 2018
It also occurs for R2014b and R2016b on CentOS 7...
Rahul Bhadani
le 10 Nov 2018
I have the same problem with Matlab R2018a in Ubuntu 18.04. Don't know how to solve it.
Theodore Golfinopoulos
le 21 Déc 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
le 21 Déc 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.

Réponses (1)
Theodore Golfinopoulos
le 21 Déc 2018
Modifié(e) : Theodore Golfinopoulos
le 21 Déc 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!
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!