Typing in the live editor is slow on Linux

17 ビュー (過去 30 日間)
Craig Watson
Craig Watson 2018 年 11 月 15 日
回答済み: Hiroyuki Oya 2022 年 5 月 20 日
I just installed MATLAB R2018b on Linux Mint 19. I am used to using it on Windows, where the Live Editor works great.
On Linux however, there is a very annoying latency when typing. Whether it's in a text area or code block, there is maybe ~0.25s between the time I type and when something happens on screen. I tried disabling the Datatips, which didn't help.
What's going on, and is there any way to fix this? I am running on a fast computer, so performance should not be an issue.
  4 件のコメント
Mikhail
Mikhail 2019 年 4 月 2 日
This is a not really helpfull comment, but "me too".
There are two painful points in MATLAB on Linux: the Help Browser, which is slow to the point of inusability (I prefer online Help) and the Live Editor (to the point that I avoid using it by all means).
Kevin Cutler
Kevin Cutler 2019 年 6 月 5 日
編集済み: Kevin Cutler 2019 年 6 月 5 日
Same, I hope this is solved soon. I'm on 18.04 running R2019a, and it is terribly slow.

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

回答 (9 件)

Mikhail
Mikhail 2021 年 10 月 21 日
MATLAB R2021b now uses the same technology for regular scripts and files, not just Live Scripts. Now all editing/scrolling is painfully slow, not just in Live Editor.
  3 件のコメント
Mikhail
Mikhail 2021 年 12 月 27 日
I've noticed that the situation becomes much better when i change screen resolution from HiDPI (which is native for my display) to e.g. 1920x1080.
Can somebody who still experience with problem confirm they are using HiDPI display?
Mikhail
Mikhail 2021 年 12 月 27 日
In fact, simply resizing the documentation browser window four times makes it work much smoother.

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


Mikhail
Mikhail 2019 年 5 月 20 日
No way!
MathWorks have fixed this in R2019a Update 2.
Not only Live Editor now works fine, but also Help Browser runs very smooth.
  12 件のコメント
Mikhail
Mikhail 2021 年 10 月 21 日
編集済み: Mikhail 2021 年 10 月 21 日
I can tell that I've tried both linux-5.14 and linux-5.10. MATLAB R2021a works fine, R2021b works horribly in both cases.
I could try to fire up Debian's kernel here, but ffs, there is no guarantee it will work and that it is kernel that is a problem. It's easier to run MATLAB in a Windows VM - where it probably belongs anyway (and works way faster than in host Linux).
Felix
Felix 2021 年 11 月 1 日
I can confirm the same experience: The Matlab R2021a editor works just fine, while with R2021b it became very slow.
In R2021b, for any action in the editor (press page down, or move cursor, or scroll with mouse wheel, etc), I get a lag of about 300 ms if the system is idle, and a good 2 seconds if I use a few cores in other processes (say 3 out of 16, so still plenty of free resources, and all other programs work fine). It's impossible to use the editor this way.
System runs Ubuntu 20.04, Linux kernel version is 5.11.

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


Antonio Sala
Antonio Sala 2019 年 5 月 20 日
Well, I just installed Update 2 and the problem seems still present on my Ubuntu 19.04 machine. Are you, Mikhail, on Linux?

Viktor Marinkov
Viktor Marinkov 2019 年 5 月 3 日
I also confirm very laggy behaviour on Matlab 2018b and Ubuntu 19.04. Has there been any workaround?

LeChat
LeChat 2019 年 8 月 13 日
I found a work around for Mac a couple years ago (here), by installing Matlab kernel into Jupyther. Check references therein for Linux and Windows.

sdkfjqsdkmfj mmkjmkjml
sdkfjqsdkmfj mmkjmkjml 2019 年 10 月 11 日
編集済み: sdkfjqsdkmfj mmkjmkjml 2019 年 10 月 11 日
Same here, with Matlab R2017a under Linux Mint 19 on my Dell Laptop. This is absolutely horrible, so laggy that I cannot even use MATLAB, this worked so well under an older Linux Mint, I'm running crazy.
That's a shame, please fix ! I will not buy Matlab 2019 and install kernel 5.x (Linux Mint is stil on 4.x) just because of Mathworks devs !!
Thx.
PS : any community workaround would appreciated.
  1 件のコメント
Mikhail
Mikhail 2019 年 10 月 14 日
Even though Linux Mint is still on kernel 4.x, you can install a newer kernel (you need at least 5.2) using "Ukuu" utility. More info here: https://www.omgubuntu.co.uk/2017/02/ukuu-easy-way-to-install-mainline-kernel-ubuntu

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


Antonio Sala
Antonio Sala 2019 年 10 月 12 日
The problem seems to be solved in R2019b... at least it does work for me on Ubuntu 19.04 and 10.10 with that release. They didn't seem to announce it (or I am not aware of it) but the issue seems no longer present in my case.
  3 件のコメント
Johan Thor
Johan Thor 2019 年 10 月 13 日
I have now rebooted into a series 4-kernel (4.15.0-65 on Ubuntu to be specific) and on this configuration, Matlab 2019b seems to solve this issue, Antonio said above. Live editor works just as on kernel version 5.
sdkfjqsdkmfj mmkjmkjml
sdkfjqsdkmfj mmkjmkjml 2019 年 10 月 13 日
編集済み: sdkfjqsdkmfj mmkjmkjml 2019 年 10 月 13 日
Well, so Mathworks will alllow me to move to Matlab R2019b for FREE, right, as I can no longuer use the release I b-o-u-g-h-t ?
If not, I would like a FIX for this issue, that's a f*** shame.

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


Panya Sukphranee
Panya Sukphranee 2020 年 7 月 15 日
The issue seems to be with some package conflicts in Linux. My Liveeditor was running smoothly until I installed some MP4 codecs for screen recording. The entire Liveeditor is extremely slow to render.

Hiroyuki Oya
Hiroyuki Oya 2022 年 5 月 20 日
Slow matlab edior problm is confirmed on my Ubuntu 22 machine.
R2021a does not have such lagging editor issue.
R2021b and R2022a has slow editor problem. I am going back to R2021a.

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by