ConEmu / old-issues

Old issues for ConEmu project (import is pending)
http://conemu.github.io/
0 stars 1 forks source link

Creation of files is broken #553

Closed ConEmu closed 9 years ago

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 07:35:44

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

Original issue: http://code.google.com/p/conemu-maximus5/issues/detail?id=553

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 07:56:29

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

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 08:00:01

Also execution of .cmd files from FAR is broken.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 08:10:46

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

From siarhei....@gmail.com on May 23, 2012 08:16:59

Build: 120522x86 Far: 3.0.2676.0

both 3 issues are started to reproduce after update.

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 08:17:42

forgot step between 2 and 3 2.1 Press Enter

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 08:19:24

I can attach video

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 09:15:59

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?

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 09:29:55

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)

Attachment: 20120523_1926_38.mp4

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 09:34:17

Here's how window looks after finishing editing file or after cmd script executed

Attachment: NoRefreshOnF6.png NoRefreshOnEmptyCmdExecuteFromFar.png

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 11:16:08

Is "Inject ConEmuHk " checked?

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 11:23:28

Try this: copy con test.cmd -cur_console:h0 any changes?

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 11:39:01

copy con test.cmd -cur_console:h0 Works!

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 11:41:30

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
  4. Press F6
  5. Press Enter ==> OK
  6. Open second instance of FAR in the new tab of conemu
  7. Type copy con test.cmd
  8. Press Enter
  9. Press F6
  10. Press Enter ==> Far window is not shown back
ConEmu commented 9 years ago

From siarhei....@gmail.com on May 23, 2012 11:42:03

You know so magic switches;-)

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 11:55:56

I can read sources ;)

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

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 23, 2012 14:54:51

Check 120523

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 24, 2012 01:22:10

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.

Attachment: ConEmuSettings from registry.reg

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 24, 2012 01:31:49

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();

    }
ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 24, 2012 02:27:10

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)

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 25, 2012 00:28:32

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).

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 25, 2012 02:13:04

Hello

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

Attachment: BUG-2.png

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 25, 2012 02:23:05

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

Attachment: 20120525_1218_21.mp4

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 25, 2012 02:26:14

NoRefreshOnEmptyCmdExecuteFromFar.png - is fixed.

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 25, 2012 02:26:56

It hangs but background characters are shown

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 25, 2012 02:27:37

i have visual studio at home. can i help somehow?

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 25, 2012 11:27:38

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

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 25, 2012 13:55:05

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.

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 25, 2012 14:16:01

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...

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 25, 2012 14:22:23

and before that compare files from 7z and actual.

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 28, 2012 00:17:44

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:

Attachment: Issue.png

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 28, 2012 00:28:04

after rollback to 120417 everything became fine again.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 28, 2012 00:29:35

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

Attachment: Snap00723.png

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 28, 2012 00:30:19

i gave up.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 28, 2012 00:32:51

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.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 28, 2012 00:41:43

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.

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 28, 2012 15:37:55

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.

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 28, 2012 22:55:51

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, ConEmu C.exe, Far.exe). This may help to fix the problem.

Good luck!

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 29, 2012 08:43:09

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?

Attachment: Issue 555.7z 20120529_1839_52.mp4

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 29, 2012 08:53:40

Issue with empty cmd execution was reproduced too. Here's a video and mini dump

Attachment: 20120529_1849_59.mp4 issue #553-empty cmd not executed.7z

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 29, 2012 08:55:43

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

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 30, 2012 03:32:12

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

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 04:00:30

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.

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 30, 2012 08:01:17

Hello

Ok, both features are enabled.

Attachment: DisabledMouse.png

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 09:48:44

Open realconsole (CtrlWinAltSpce) and try to click/wheel inside it. Is it clickable (mouse works)?

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 09:50:52

btw, why english, not russian?

ConEmu commented 9 years ago

From siarhei....@gmail.com on May 30, 2012 10:12:33

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

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

Ишью с вторым окошком FAR+ ConEmu при котором не происходит переход обратно к фару на Ctrl+C/F6 или старт пустого cmd удалось воспроизвести на других машинах

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

ConEmu commented 9 years ago

From Cuchuk.S...@gmail.com on May 30, 2012 14:16:28

Привет.

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

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

Attachment: 20120531_0003_27.mp4 AccessViolation.png

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 14:31:11

  1. я потерялся в полусотне комментариев. предлагаю создать новые issue, по одному на баг, а этот я прибью нафиг.
  2. дамп ексепшена где? У меня дома и на работе Win7 x64. Таких падений не видел.
  3. падение возникает тогда, когда появляется морда comodo. я бы на него в первую очередь подумал :-P
ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 14:37:49

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

ConEmu commented 9 years ago

From ConEmu.M...@gmail.com on May 30, 2012 15:35:58

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