Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

Creation of files is broken #553

Closed Maximus5 closed 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 553

Steps
1. Open FAR in latest developer conemuc
2. Type copy con test.cmd
3. Press F6
4. Press Enter
==> Far window is not shown back

Reported by siarhei.kuchuk on 2012-05-23 14:35:44

Maximus5 commented 9 years ago
Also after step 2 screen is blank, but when to type letter, then it gets refreshed

Windows 7x64

BTW, thank you very much for your awesome cool tool

Reported by siarhei.kuchuk on 2012-05-23 14:56:29

Maximus5 commented 9 years ago
Also execution of .cmd files from FAR is broken.

Reported by siarhei.kuchuk on 2012-05-23 15:00:01

Maximus5 commented 9 years ago
1. name of the program is ConEmu
2. bug not confirmed. supply required information

Reported by ConEmu.Maximus5 on 2012-05-23 15:10:46

Maximus5 commented 9 years ago
Build: 120522x86
Far: 3.0.2676.0

both 3 issues are started to reproduce after update.

Reported by siarhei.kuchuk on 2012-05-23 15:16:59

Maximus5 commented 9 years ago
forgot step between 2 and 3
2.1 Press Enter

Reported by siarhei.kuchuk on 2012-05-23 15:17:42

Maximus5 commented 9 years ago
I can attach video

Reported by siarhei.kuchuk on 2012-05-23 15:19:24

Maximus5 commented 9 years ago
Blank screen may be result of invalid position of scrollbar - try to scroll it manualy
to the bottom.

What is "execution of .cmd files from FAR is broken".

F6 Enter works on same configuration.

Video may be helpful, or may be not...

At last, try to uncheck "Ansi x3.64" option. Any changes?

Reported by ConEmu.Maximus5 on 2012-05-23 16:15:59

Maximus5 commented 9 years ago
> At last, try to uncheck "Ansi x3.64" option. Any changes?
Steel reproduced
Video is attached

When recording video, then issue that FarManager window is not restored after end of
executing cmd, or pressing F6 in file is not reproduced (don't know why)

Reported by siarhei.kuchuk on 2012-05-23 16:29:55


Maximus5 commented 9 years ago
Here's how window looks after finishing editing file or after cmd script executed

Reported by siarhei.kuchuk on 2012-05-23 16:34:17


Maximus5 commented 9 years ago
Is "Inject ConEmuHk" checked?

Reported by ConEmu.Maximus5 on 2012-05-23 18:16:08

Maximus5 commented 9 years ago
Try this:
copy con test.cmd -cur_console:h0
any changes?

Reported by ConEmu.Maximus5 on 2012-05-23 18:23:28

Maximus5 commented 9 years ago
>copy con test.cmd -cur_console:h0
Works!

Reported by siarhei.kuchuk on 2012-05-23 18:39:01

Maximus5 commented 9 years ago
> Is "Inject ConEmuHk" checked?
Yes

Also i clarified steps:
1. Open FAR in latest developer conemu
2. Type copy con test.cmd
3. Press Enter
3. Press F6
4. Press Enter
==> OK
5. Open second instance of FAR in the new tab of conemu
6. Type copy con test.cmd
7. Press Enter
8. Press F6
9. Press Enter
==> Far window is not shown back

Reported by siarhei.kuchuk on 2012-05-23 18:41:30

Maximus5 commented 9 years ago
You know so magic switches;-)

Reported by siarhei.kuchuk on 2012-05-23 18:42:03

Maximus5 commented 9 years ago
I can read sources ;)

Theese magic switches are described in documentation, e.g.
http://code.google.com/p/conemu-maximus5/wiki/NewConsole

Reported by ConEmu.Maximus5 on 2012-05-23 18:55:56

Maximus5 commented 9 years ago
Check 120523

Reported by ConEmu.Maximus5 on 2012-05-23 21:54:51

Maximus5 commented 9 years ago
Hello,

Thanks you for you fast response.
Actually issue is still reproduced with steps in comment 13. Also 'svn update' with
the same steps freezes in the second instance. Issue with running empty cmd file with
the same steps is still reproduced too

I attached settings from registry.

Reported by siarhei.kuchuk on 2012-05-24 08:22:10


Maximus5 commented 9 years ago
I will experiment with all settings in evening and locate setting after which those
things disappear.

don't know if that helps, but in .net i had issue with redirecting output from applications,
they freezed on some multicore machines because i read stdout, stderror entirely, not
asynchronous by portions. here's the code from inet that solved that issue
            var output = new StringBuilder();
            var error = new StringBuilder();

            using (var process = new Process())
            {
                process.StartInfo.FileName = executable;
                process.StartInfo.Arguments = args;
                process.StartInfo.WorkingDirectory = workingDir;
                process.StartInfo.CreateNoWindow = true;
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.RedirectStandardError = true;
                process.StartInfo.UseShellExecute = false;
                process.StartInfo.ErrorDialog = false;

                using (var outputWaitHandle = new AutoResetEvent(false))
                using (var errorWaitHandle = new AutoResetEvent(false))
                {
                    process.OutputDataReceived += (sender, e) =>
                    {
                        if (e.Data == null)
                        {
                            outputWaitHandle.Set();
                        }
                        else
                        {
                            output.AppendLine(e.Data);
                        }
                    };
                    process.ErrorDataReceived += (sender, e) =>
                    {
                        if (e.Data == null)
                        {
                            errorWaitHandle.Set();
                        }
                        else
                        {
                            error.AppendLine(e.Data);
                        }
                    };

                    process.Start();

                    process.BeginOutputReadLine();
                    process.BeginErrorReadLine();

                    process.WaitForExit();
                    outputWaitHandle.WaitOne();
                    errorWaitHandle.WaitOne();
                }
                exitCode = process.ExitCode;
            }

            standardOutput = output.ToString();
            errorOutput = error.ToString();

        }

Reported by siarhei.kuchuk on 2012-05-24 08:31:49

Maximus5 commented 9 years ago
techinfo
ConEmu does not creates processes with redirection. So, it does not try to read redirected
output, if console application creates one.
ConEmu reads only current console state (active screen buffer)

Reported by ConEmu.Maximus5 on 2012-05-24 09:27:10

Maximus5 commented 9 years ago
check 120524a

However, I can't understand your bug. Program behavior was changes, so all comments
before comment 16 - become obsolete.
Please, describe the bug again. With screenshots and screen dumps (System menu -> Debug
-> Dump screen).

Reported by ConEmu.Maximus5 on 2012-05-25 07:28:32

Maximus5 commented 9 years ago
Hello

1. Open FAR in latest developer conemu
2. Type copy con test.cmd
3. Press Enter
3. Press F6
4. Press Enter
==> OK
5. Open second instance of FAR in the new tab of conemu
6. Type copy con test.cmd
7. Press Enter
8. Press F6
9. Press Enter
==> attached error window is shown

Reported by siarhei.kuchuk on 2012-05-25 09:13:04


Maximus5 commented 9 years ago
After click 'OK', Far window not shown back

After restart of ConEmu, error dialog was not shown
I attached video.
Probably that's issue of Windows.
I will try to reproduce at home

Reported by siarhei.kuchuk on 2012-05-25 09:23:05


Maximus5 commented 9 years ago
NoRefreshOnEmptyCmdExecuteFromFar.png - is fixed.

Reported by siarhei.kuchuk on 2012-05-25 09:26:14

Maximus5 commented 9 years ago
It hangs but background characters are shown

Reported by siarhei.kuchuk on 2012-05-25 09:26:56

Maximus5 commented 9 years ago
i have visual studio at home. can i help somehow?

Reported by siarhei.kuchuk on 2012-05-25 09:27:37

Maximus5 commented 9 years ago
Hello i couldn't check at home - created issue about antivirus 555. At work we have
no antivirus software...

Reported by Cuchuk.Sergey on 2012-05-25 18:27:38

Maximus5 commented 9 years ago
I unpacked ConEmu to updated Far, then setted bad settings and everything is OK.
None of reported is reproduced.

at work i updated via self-update feature.

Reported by Cuchuk.Sergey on 2012-05-25 20:55:05

Maximus5 commented 9 years ago
i will try to update ConEmu in the same way at work at monday - if this will work then
problem is self update via msi. if not then drweb-cureit...

Reported by Cuchuk.Sergey on 2012-05-25 21:16:01

Maximus5 commented 9 years ago
and before that compare files from 7z and actual.

Reported by Cuchuk.Sergey on 2012-05-25 21:22:23

Maximus5 commented 9 years ago
Hello.

Files are the same. I removed settings from registry and folders. I've removed x86
Far and ConEmu. After that i installed x64 version and the following error occur:

Reported by siarhei.kuchuk on 2012-05-28 07:17:44


Maximus5 commented 9 years ago
after rollback to 120417 everything became fine again.

Reported by siarhei.kuchuk on 2012-05-28 07:28:04

Maximus5 commented 9 years ago
And whats a problem with conemu?? All works.

Steps
Download fresh versions of Far & ConEmu
Reset settings (I've created empty conemu.xml and set "UseSystemProfiles=0" in Far.exe.ini)
Get screenshoot

Reported by ConEmu.Maximus5 on 2012-05-28 07:29:35


Maximus5 commented 9 years ago
i gave up.

Reported by siarhei.kuchuk on 2012-05-28 07:30:19

Maximus5 commented 9 years ago
> after rollback to 120417 everything became fine again.

I can not believe, and I'm lost in your comments.
In the future, make screenshots of the full window, not part of it.

Reported by ConEmu.Maximus5 on 2012-05-28 07:32:51

Maximus5 commented 9 years ago
At last.
Create and upload to me memory dump of Far.exe, when 'exception' is occured.
It would be better, if you make dump on far3.2704bis.x86.x64.7z version.

Reported by ConEmu.Maximus5 on 2012-05-28 07:41:43

Maximus5 commented 9 years ago
Hello,

I will do so tomorrow at work at evening and post here what i've got. 

However i want to say that i respect you and your work and so big efforts in this tool
and sooooo time you spend here helping figure it out... 

Thanks.

Reported by Cuchuk.Sergey on 2012-05-28 22:37:55

Maximus5 commented 9 years ago
Thanks.

Please, take several thoughts in account.
1. ensure, that all conemu files are updated to the latest version
2. turn on status bar, I need columns: Console visible rectangle, console visible size,
console buffer size, console cursor information.
3. when exception occured, create memory dump file of crashed process
4. when blank screen occured, create screenshots, video, and dump files of all processes
(ConEmu.exe, ConEmuC.exe, Far.exe).
This may help to fix the problem.

Good luck!

Reported by ConEmu.Maximus5 on 2012-05-29 05:55:51

Maximus5 commented 9 years ago
Hello

Please find dump and video attached. On third far issue with F6 was reproduced (screen
remains blank while Far must be active). When i was recording video it reproduced on
second instance.

Is it ok for Mini dumps? or is should create full dumps?

Reported by siarhei.kuchuk on 2012-05-29 15:43:09


Maximus5 commented 9 years ago
Issue with empty cmd execution was reproduced too.
Here's a video and mini dump

Reported by siarhei.kuchuk on 2012-05-29 15:53:40


Maximus5 commented 9 years ago
Command line under which second instance was executed:
"path\x86\ConEmu\ConEmuC.exe"  /ATTACH /GID=4528 /BW=80 /BH=25 /BZ=1000 "/FN=Lucida
Console" /FW=3 /FH=5 /HIDE /ROOT "path\x86\Far.exe"

Reported by siarhei.kuchuk on 2012-05-29 15:55:43

Maximus5 commented 9 years ago
Mouse (left button, scroll) does not work too (at work only) in ConEmu. Only right click+3
seconds - selects item and shows context menu.

Reported by siarhei.kuchuk on 2012-05-30 10:32:12

Maximus5 commented 9 years ago
Check, if mouse is enabled both in ConEmu (features page) and Far (Interface settings)

Hereafter, please, do not use one issue for different problem. This cause support troubles.

Reported by ConEmu.Maximus5 on 2012-05-30 11:00:30

Maximus5 commented 9 years ago
Hello

Ok, both features are enabled.

Reported by siarhei.kuchuk on 2012-05-30 15:01:17


Maximus5 commented 9 years ago
Open realconsole (CtrlWinAltSpce) and try to click/wheel inside it. Is it clickable
(mouse works)?

Reported by ConEmu.Maximus5 on 2012-05-30 16:48:44

Maximus5 commented 9 years ago
btw, why english, not russian?

Reported by ConEmu.Maximus5 on 2012-05-30 16:50:52

Maximus5 commented 9 years ago
> Open realconsole (CtrlWinAltSpce) and try to click/wheel inside it. Is it clickable
(mouse works)?
открывается маленькое окно с фаром. в нем левая кнопка и колесико работают.
Воспроизвести на другом компьютере не удалось.

Антивирь на работе мне поставили, поэтому смог убедиться что не вирусы

Ишью с вторым окошком FAR+ConEmu при котором не происходит переход обратно к фару на
Ctrl+C/F6 или старт пустого cmd удалось воспроизвести на других машинах
- Windows 7 64-битной (фар завершился эксепшном)
- XP 32-битной - не воспроизводится.

На работе для поиска некоторых нелогичных багов пользуюсь способом дихотомии.
Делаю билды для ревизий между стабильной и текущей. Стартую билд посередине. Если воспроизвелась
- стартую билд между стабильной и там где воспроизвелась - пока на кокнертную ревизию
не попадаю.

Reported by siarhei.kuchuk on 2012-05-30 17:12:33

Maximus5 commented 9 years ago
Привет.

Мб, поменялся способ которым ConEmu взаимодействует с фаром со стабильной версии? и
наступило на ASLR (слышал что якобы с SP1 в 7-ке эта штука стала неотключаемой) ?

Дома получилось создать Access Violation просто путем открытия фаров подряд - приттачил
видео. Но я не знаю связано ли это с этой ишью.

Reported by Cuchuk.Sergey on 2012-05-30 21:16:28


Maximus5 commented 9 years ago
0. я потерялся в полусотне комментариев. предлагаю создать новые issue, по одному на
баг, а этот я прибью нафиг.

1. дамп ексепшена где? У меня дома и на работе Win7 x64. Таких падений не видел.

2. падение возникает тогда, когда появляется морда comodo. я бы на него в первую очередь
подумал :-P

Reported by ConEmu.Maximus5 on 2012-05-30 21:31:11

Maximus5 commented 9 years ago
вдогон, метод инъекций не менялся фактически с момента их появления.

Reported by ConEmu.Maximus5 on 2012-05-30 21:37:49

Maximus5 commented 9 years ago
и еще. Теоретически, exception может быть вызван ASLR. Но для такого утверждение нужны
дампы упавшего процесса и его родительского ConEmuC64.exe

Reported by ConEmu.Maximus5 on 2012-05-30 22:35:58