Error when exiting from Personal Editor pe64.exe Topic is solved

Here you can report bugs found in Far Manager.
Post Reply
TreeEnthusiast
Posts: 17
Joined: Tue 05 Oct, 2021 20:18
Has thanked: 10 times
Been thanked: 1 time

Error when exiting from Personal Editor pe64.exe

Post by TreeEnthusiast »

Error:

The parameter is incorrect.


I first tried setting the command line for Alt-F4 as

Code: Select all

 c:\PersonalEditor\pe64.exe !.!
, and received the attached error.

Then tried enclosing the call to pe64.exe in a batch file

Code: Select all

c:\PersonalEditor\runPE.bat !.!

, and got the same error.
Attachments
bug_report.txt
(53.2 KiB) Downloaded 44 times
User avatar
HaRT
Moderator
Posts: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Error when exiting from Personal Editor pe64.exe

Post by HaRT »

Where can one download the editor to try reproducing the error?
Фар есть инструмент, а не нянька. © 2009 DrKnS
TreeEnthusiast
Posts: 17
Joined: Tue 05 Oct, 2021 20:18
Has thanked: 10 times
Been thanked: 1 time

Error when exiting from Personal Editor pe64.exe

Post by TreeEnthusiast »

User avatar
DrKnS
Posts: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

Error when exiting from Personal Editor pe64.exe

Post by DrKnS »

TreeEnthusiast, thanks for the report.
pe64 attempts to change the console buffer size on startup and restore it on exit.
Apparently it's doing it wrong and breaks the entire console host by somehow setting its window height to a negative value.
Far receives that negative value, applies to it some unsigned math that turns it into an insanely huge positive value, tries to allocate the corresponding amount of memory and crashes.

I've added a workaround to 5975, but ultimately it's a conhost issue: the host should be more robust and should not break when console apps pass invalid parameters to it. It's better to report it to Microsoft (if it's not fixed yet).
TreeEnthusiast
Posts: 17
Joined: Tue 05 Oct, 2021 20:18
Has thanked: 10 times
Been thanked: 1 time

Error when exiting from Personal Editor pe64.exe

Post by TreeEnthusiast »

Thanks, DrKnS.
Post Reply

Return to “Bug Reports”