New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer Size resetting + crashing when opening settings #515

Closed
Ashkin opened this Issue Jan 21, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@Ashkin

Ashkin commented Jan 21, 2016

Summary

  • Console buffer height not [always?] set upon creating consoles, and randomly changes when executing commands therein (e.g. gulp).
  • Opening the settings window thereafter causes a crash every time. (Closing and reopening ConEmu has no effect on this, only a system restart fixes it)
  • OS: win7 x64
  • ConEmu build: 160111 64
  • Portable install on external drive
  • Not using FAR.
  • Deleting ConEmu.xml does not fix the behavior nor crashes.

I've been getting extremely annoyed that the buffer size for consoles isn't being set (defaulting to 25 or similar) despite having it set to 1000 in ConEmu's settings. The buffer size also sometimes changes when executing commands (e.g. gulp) and changing back after it has executed. I can reproduce the behavior nearly every time, though I don't know the specific cause.

Clicking on system menu > debug > properties... allows me to set the buffer size, but this seems temporary.

Also, quite often after doing this, attempting to open ConEmu's settings window results in a crash. Closing and reopening ConEmu does not remedy the behavior: opening the settings window causes a crash every time afterwards, even if it's the only action i've performed. Rightclicking on the system menu icon also results in the crash:

Exception 0xC0000005 (Read xFFFFFFFFFFFFFFFF) was occurred (ConEmu64.exe, PID=58740)
ConEmu build 160111 64

Opening ConEmu and then clicking the [x] (close all open consoles) results in a different crash:

Exception 0xC0000005 (DEP x00001872000017DB) was occurred (ConEmu64.exe, PID=102956)
ConEmu build 160111 64

These issues render ConEmu effectively useless as a dev tool. 👿


I've attached two crash reports: the smaller is only the crash from opening the settings window; the larger is after changing buffer height and doing minimal work. (They are .zip parts renamed to .txt so github would upload them -- rename to .zip.001 (etc.) to open)

ConEmuTrap(zip_part1).txt
ConEmuTrap(zip_part2).txt
ConEmuTrap(zip_part3).txt
ConEmuTrap(zip_part4).txt

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 21, 2016

Owner
  1. Run ConEmu64 -basic -log -cmd {cmd}. Is the buffer height set?
  2. Run ConEmu64 -log. Is the buffer height set?

Make screenshots of ConEmu window in both cases (with status bar visible).

Attach screenshots, LogFiles and settings.

ATM, I have no idea why the crash occurs. Probably, there is some heap corruption, but I can't be sure.

Owner

Maximus5 commented Jan 21, 2016

  1. Run ConEmu64 -basic -log -cmd {cmd}. Is the buffer height set?
  2. Run ConEmu64 -log. Is the buffer height set?

Make screenshots of ConEmu window in both cases (with status bar visible).

Attach screenshots, LogFiles and settings.

ATM, I have no idea why the crash occurs. Probably, there is some heap corruption, but I can't be sure.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 21, 2016

Owner

Also, I need to know, if there any differences with this debug build:
https://www.dropbox.com/s/mx9cnxlizo3ofkd/ConEmu64.exe.160111D.7z?dl=0

If crash stil occurs, I need crashdump.

Please, don't inject files into issues. Blowing up their size may harm project in future. Use any file hosters, of even your own gist as you wish.

Owner

Maximus5 commented Jan 21, 2016

Also, I need to know, if there any differences with this debug build:
https://www.dropbox.com/s/mx9cnxlizo3ofkd/ConEmu64.exe.160111D.7z?dl=0

If crash stil occurs, I need crashdump.

Please, don't inject files into issues. Blowing up their size may harm project in future. Use any file hosters, of even your own gist as you wish.

@Ashkin

This comment has been minimized.

Show comment
Hide comment
@Ashkin

Ashkin Jan 29, 2016

Agreed @ injecting large files; i wasn't thinking.

Both commands did have the huffer height set. 1) caused a crash when exiting.
https://www.dropbox.com/s/rwyvlweqa2bjwvv/ConEmuTrap-515.rar?dl=0

The debug build seems to fix the buffer height issue and the crash when opening settings. Disclaimer, however: I haven't been using ConEmu much since I encountered this issue -- crunch time at work, and I didn't want to deal with random crashes. Still: it does appear fixed!

However, the debug build did crash in a different way -- i've opened another ticket regarding that.

Ashkin commented Jan 29, 2016

Agreed @ injecting large files; i wasn't thinking.

Both commands did have the huffer height set. 1) caused a crash when exiting.
https://www.dropbox.com/s/rwyvlweqa2bjwvv/ConEmuTrap-515.rar?dl=0

The debug build seems to fix the buffer height issue and the crash when opening settings. Disclaimer, however: I haven't been using ConEmu much since I encountered this issue -- crunch time at work, and I didn't want to deal with random crashes. Still: it does appear fixed!

However, the debug build did crash in a different way -- i've opened another ticket regarding that.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 29, 2016

Owner

Very strange crash. It can't happen heither in ConEmu64.exe (the code which may trigger it is related to console server part), nor in Windows 7. Still examining.

Owner

Maximus5 commented Jan 29, 2016

Very strange crash. It can't happen heither in ConEmu64.exe (the code which may trigger it is related to console server part), nor in Windows 7. Still examining.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 29, 2016

Owner

Anyway, the build 160124 is actual at the moment.

Owner

Maximus5 commented Jan 29, 2016

Anyway, the build 160124 is actual at the moment.

Maximus5 added a commit that referenced this issue Feb 3, 2016

Internal. Change OnShutdownConsole to global static object dtor
  gh-515 noted a crash in GUI (call of invalid OnShutdownConsole from CommonShutdown)
  However OnShutdownConsole must not be set in GUI under no circumstances
@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Feb 4, 2016

Owner

No answer. Closed.

Owner

Maximus5 commented Feb 4, 2016

No answer. Closed.

@Maximus5 Maximus5 closed this Feb 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment