rheostat2718 / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
7 stars 1 forks source link

Creation of files is broken #553

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 reported on code.google.com by siarhei....@gmail.com on 23 May 2012 at 2:35

GoogleCodeExporter 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

Original comment by siarhei....@gmail.com on 23 May 2012 at 2:56

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 3:00

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

Original comment by ConEmu.Maximus5 on 23 May 2012 at 3:10

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

both 3 issues are started to reproduce after update.

Original comment by siarhei....@gmail.com on 23 May 2012 at 3:16

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 3:17

GoogleCodeExporter commented 9 years ago
I can attach video

Original comment by siarhei....@gmail.com on 23 May 2012 at 3:19

GoogleCodeExporter 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?

Original comment by ConEmu.Maximus5 on 23 May 2012 at 4:15

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 4:29

Attachments:

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 4:34

Attachments:

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

Original comment by ConEmu.Maximus5 on 23 May 2012 at 6:16

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

Original comment by ConEmu.Maximus5 on 23 May 2012 at 6:23

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 6:39

GoogleCodeExporter 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

Original comment by siarhei....@gmail.com on 23 May 2012 at 6:41

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

Original comment by siarhei....@gmail.com on 23 May 2012 at 6:42

GoogleCodeExporter 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

Original comment by ConEmu.Maximus5 on 23 May 2012 at 6:55

GoogleCodeExporter commented 9 years ago
Check 120523

Original comment by ConEmu.Maximus5 on 23 May 2012 at 9:54

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

Original comment by siarhei....@gmail.com on 24 May 2012 at 8:22

Attachments:

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

        }

Original comment by siarhei....@gmail.com on 24 May 2012 at 8:31

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

Original comment by ConEmu.Maximus5 on 24 May 2012 at 9:27

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

Original comment by ConEmu.Maximus5 on 25 May 2012 at 7:28

GoogleCodeExporter 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

Original comment by siarhei....@gmail.com on 25 May 2012 at 9:13

Attachments:

GoogleCodeExporter 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

Original comment by siarhei....@gmail.com on 25 May 2012 at 9:23

Attachments:

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

Original comment by siarhei....@gmail.com on 25 May 2012 at 9:26

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

Original comment by siarhei....@gmail.com on 25 May 2012 at 9:26

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

Original comment by siarhei....@gmail.com on 25 May 2012 at 9:27

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

Original comment by Cuchuk.S...@gmail.com on 25 May 2012 at 6:27

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

Original comment by Cuchuk.S...@gmail.com on 25 May 2012 at 8:55

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

Original comment by Cuchuk.S...@gmail.com on 25 May 2012 at 9:16

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

Original comment by Cuchuk.S...@gmail.com on 25 May 2012 at 9:22

GoogleCodeExporter 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:

Original comment by siarhei....@gmail.com on 28 May 2012 at 7:17

Attachments:

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

Original comment by siarhei....@gmail.com on 28 May 2012 at 7:28

GoogleCodeExporter 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

Original comment by ConEmu.Maximus5 on 28 May 2012 at 7:29

Attachments:

GoogleCodeExporter commented 9 years ago
i gave up.

Original comment by siarhei....@gmail.com on 28 May 2012 at 7:30

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

Original comment by ConEmu.Maximus5 on 28 May 2012 at 7:32

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

Original comment by ConEmu.Maximus5 on 28 May 2012 at 7:41

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

Original comment by Cuchuk.S...@gmail.com on 28 May 2012 at 10:37

GoogleCodeExporter 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!

Original comment by ConEmu.Maximus5 on 29 May 2012 at 5:55

GoogleCodeExporter 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?

Original comment by siarhei....@gmail.com on 29 May 2012 at 3:43

Attachments:

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

Original comment by siarhei....@gmail.com on 29 May 2012 at 3:53

Attachments:

GoogleCodeExporter 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"

Original comment by siarhei....@gmail.com on 29 May 2012 at 3:55

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

Original comment by siarhei....@gmail.com on 30 May 2012 at 10:32

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 11:00

GoogleCodeExporter commented 9 years ago
Hello

Ok, both features are enabled.

Original comment by siarhei....@gmail.com on 30 May 2012 at 3:01

Attachments:

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 4:48

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 4:50

GoogleCodeExporter 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-битной - не воспроизводится.

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

Original comment by siarhei....@gmail.com on 30 May 2012 at 5:12

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

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

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

Original comment by Cuchuk.S...@gmail.com on 30 May 2012 at 9:16

Attachments:

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

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

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 9:31

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 9:37

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

Original comment by ConEmu.Maximus5 on 30 May 2012 at 10:35