Crash in Help if macro has lots of keys assigned

Here you can report bugs found in Far Manager.
Post Reply
cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39
Been thanked: 2 times

Crash in Help if macro has lots of keys assigned

Post by cyberwolf »

I discovered that if i have a macro that has a lot of keys assigned to the same command then when i call help and search for "!Macro:Viewer!" (which shows the macros assigned to the viewer) then FAR crashes, before that it occupies a lot of memory (over 2Gb memory even though FAR usually uses less than 40mb).

I think the problem comes from the fact that the help tries to display the keys before the description but the line containing the keys is way longer than the help window itself.

Here's an example of a macro that crashes (based on the lua used by MultiView plugin):

Code: Select all

Macro {
area="Viewer";
key="AltEnd AltHome AltDown AltLeft AltRight AltUp CtrlAltLeft CtrlAltRight CtrlJ CtrlR CtrlSpace Multiply Space";
description="test macro"
action=function()
end;
}
The workaround is to modify the macro and break up the "key" part in smaller parts so the "key" text doesn't become too long.

P.S. i didn't test in other areas (for example for Editor or Shell), but i think the same problem is present regardless of the macro's area setting.
Last edited by cyberwolf on Thu 01 Jan, 1970 01:00, edited 0 times in total.
Reason: Removed a misleading topic icon
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

Re: Crash in Help if macro has lots of keys assigned

Post by Shmuel »

cyberwolf wrote:Here's an example of a macro that crashes
To be precise, it is the help viewer that crashes, since it makes a wrong assumption about lengths of macro keys.
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

Re: Crash in Help if macro has lots of keys assigned

Post by Shmuel »

cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39
Been thanked: 2 times

Re: Crash in Help if macro has lots of keys assigned

Post by cyberwolf »

Thanx, i didn't know exactly where and how to report the bug that's why i used the forum.

P.S. i forgot to say that the bug is in FAR 3 but you got it from the description.
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA
Post Reply

Return to “Bug Reports”