mintty window flashes open and immediately closes

13 messages
Open this post in threaded view
|

mintty window flashes open and immediately closes

 Hello, I've been using cygwin for years with no problems.  I just updated cygwin again and I suddenly can't get into the terminal. When I click the cygwin icon, the window just flashes and immediately closes. What's interesting is that I have a number of cygwin/mintty shortcuts for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh [hidden email], which work just fine. I can also get in if I run cygwin.bat in cmd, console2 or any other Windows command terminal. I've tried running the latest cygwin setup, reinstalling mintty, and the shortcut still fails. The shortcut is just the default target: C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i I don't know what else to try.  What happened here and how do I fix this? Thanks   - Brent -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 On 12/17/2019 2:58 PM, Brent Epp wrote: > I've been using cygwin for years with no problems.  I just updated > cygwin again and I suddenly can't get into the terminal. When I click > the cygwin icon, the window just flashes and immediately closes. > > What's interesting is that I have a number of cygwin/mintty shortcuts > for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh > [hidden email], which work just fine. I can also get in if I run > cygwin.bat in cmd, console2 or any other Windows command terminal. > > I've tried running the latest cygwin setup, reinstalling mintty, and > the shortcut still fails. The shortcut is just the default target: > C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i > > I don't know what else to try.  What happened here and how do I fix this? Probably a problem with your bash init scripts. Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - If that works, then start spelunking those init files (.bashrc, .profile, /etc/{profile,bash.bashrc}). BTW you don't need to call bash in the shortcut, mintty by default opens bash with those parameters; but the "-" at the end is required. HTH -- R.Berber -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 Thanks, I should mention, I did try disabling my .bashrc file and actually my entire user directory... still didn't work. Also, mintty tells me neither of those options are valid? These are the options it tells me are available: https://i.imgur.com/vyMG9t6.pngAlso, just a correction to my original email, the shortcut was actually:...mintty.exe -i /Cygwin-Terminal.ico - The shortcut I previously stated was something I had done as a troubleshooting step and then pasted it into the email by mistake.   - Brent On 2019-12-17 17:17, René Berber wrote: > On 12/17/2019 2:58 PM, Brent Epp wrote: > >> I've been using cygwin for years with no problems.  I just updated >> cygwin again and I suddenly can't get into the terminal. When I click >> the cygwin icon, the window just flashes and immediately closes. >> >> What's interesting is that I have a number of cygwin/mintty shortcuts >> for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh >> [hidden email], which work just fine. I can also get in if I run >> cygwin.bat in cmd, console2 or any other Windows command terminal. >> >> I've tried running the latest cygwin setup, reinstalling mintty, and >> the shortcut still fails. The shortcut is just the default target: >> C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i >> >> I don't know what else to try.  What happened here and how do I fix this? > Probably a problem with your bash init scripts. > > Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - > > If that works, then start spelunking those init files (.bashrc, > .profile, /etc/{profile,bash.bashrc}). > > BTW you don't need to call bash in the shortcut, mintty by default opens > bash with those parameters; but the "-" at the end is required. > > HTH -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 This is interesting: I have a backup copy of my cygwin installation from 2 days ago.  I restored it to another folder, made a shortcut... and it works. I'll have to run some diffs to double-check, but I'm pretty certain the only thing that's changed in the past two days is that I ran the latest installer today to update.   - Brent On 2019-12-17 17:36, Brent Epp wrote: > Thanks, I should mention, I did try disabling my .bashrc file and > actually my entire user directory... still didn't work. > > Also, mintty tells me neither of those options are valid? These are > the options it tells me are available: https://i.imgur.com/vyMG9t6.png> > Also, just a correction to my original email, the shortcut was > actually:...mintty.exe -i /Cygwin-Terminal.ico - > > The shortcut I previously stated was something I had done as a > troubleshooting step and then pasted it into the email by mistake. > >  - Brent > > On 2019-12-17 17:17, René Berber wrote: >> On 12/17/2019 2:58 PM, Brent Epp wrote: >> >>> I've been using cygwin for years with no problems.  I just updated >>> cygwin again and I suddenly can't get into the terminal. When I click >>> the cygwin icon, the window just flashes and immediately closes. >>> >>> What's interesting is that I have a number of cygwin/mintty shortcuts >>> for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh >>> [hidden email], which work just fine. I can also get in if I run >>> cygwin.bat in cmd, console2 or any other Windows command >>> terminal. >>> >>> I've tried running the latest cygwin setup, reinstalling mintty, and >>> the shortcut still fails. The shortcut is just the default target: >>> C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i >>> >>> I don't know what else to try.  What happened here and how do I fix >>> this? >> Probably a problem with your bash init scripts. >> >> Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - >> >> If that works, then start spelunking those init files (.bashrc, >> .profile, /etc/{profile,bash.bashrc}). >> >> BTW you don't need to call bash in the shortcut, mintty by default opens >> bash with those parameters; but the "-" at the end is required. >> >> HTH > > > -- > Problem reports: http://cygwin.com/problems.html> FAQ: http://cygwin.com/faq/> Documentation: http://cygwin.com/docs.html> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple> > -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 On 12/17/2019 6:55 PM, Brent Epp wrote: Yep, I messed up, those options were for bash, not for minnty. > This is interesting: I have a backup copy of my cygwin installation from > 2 days ago.  I restored it to another folder, made a shortcut... and it > works. > > I'll have to run some diffs to double-check, but I'm pretty certain the > only thing that's changed in the past two days is that I ran the latest > installer today to update. Interesting.  I have fully updated cygwin 64 bits, and no problem; Windows 10 Pro/64-bit also up to date. My actual shortcut only sets the window size (and that is a minnty option :)         C:\cygwin64\bin\mintty.exe -p 80,600 - -- R.Berber -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 In reply to this post by Brent Epp [Please don't top-post on this list.] On 12/17/2019 7:55 PM, Brent Epp wrote: > This is interesting: I have a backup copy of my cygwin installation from 2 days > ago.  I restored it to another folder, made a shortcut... and it works. > > I'll have to run some diffs to double-check, but I'm pretty certain the only > thing that's changed in the past two days is that I ran the latest installer > today to update. It sounds like something went wrong with your update.  Maybe someone can spot the problem if you send your cygcheck output as requested here:    http://cygwin.com/problems.html"Run cygcheck -s -v -r > cygcheck.out and include that file as *an attachment* in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed." Ken -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 In reply to this post by Brent Epp Am 18.12.2019 um 01:55 schrieb Brent Epp: > This is interesting: I have a backup copy of my cygwin installation > from 2 days ago.  I restored it to another folder, made a shortcut... > and it works. > > I'll have to run some diffs to double-check, but I'm pretty certain > the only thing that's changed in the past two days is that I ran the > latest installer today to update. Which packages did you update? What are the versions, in the working previous version, of cygwin, mintty, and perhaps bash? > >  - Brent > > On 2019-12-17 17:36, Brent Epp wrote: >> Thanks, I should mention, I did try disabling my .bashrc file and >> actually my entire user directory... still didn't work. >> >> Also, mintty tells me neither of those options are valid? These are >> the options it tells me are available: https://i.imgur.com/vyMG9t6.png>> >> Also, just a correction to my original email, the shortcut was >> actually:...mintty.exe -i /Cygwin-Terminal.ico - >> >> The shortcut I previously stated was something I had done as a >> troubleshooting step and then pasted it into the email by mistake. >> >>  - Brent >> >> On 2019-12-17 17:17, René Berber wrote: >>> On 12/17/2019 2:58 PM, Brent Epp wrote: >>> >>>> I've been using cygwin for years with no problems.  I just updated >>>> cygwin again and I suddenly can't get into the terminal. When I click >>>> the cygwin icon, the window just flashes and immediately closes. >>>> >>>> What's interesting is that I have a number of cygwin/mintty shortcuts >>>> for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh >>>> [hidden email], which work just fine. I can also get in if I run >>>> cygwin.bat in cmd, console2 or any other Windows command >>>> terminal. >>>> >>>> I've tried running the latest cygwin setup, reinstalling mintty, and >>>> the shortcut still fails. The shortcut is just the default target: >>>> C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i >>>> >>>> I don't know what else to try.  What happened here and how do I fix >>>> this? >>> Probably a problem with your bash init scripts. >>> >>> Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc - >>> >>> If that works, then start spelunking those init files (.bashrc, >>> .profile, /etc/{profile,bash.bashrc}). >>> >>> BTW you don't need to call bash in the shortcut, mintty by default >>> opens >>> bash with those parameters; but the "-" at the end is required. >>> >>> HTH >> >> >> -- >> Problem reports: http://cygwin.com/problems.html>> FAQ: http://cygwin.com/faq/>> Documentation: http://cygwin.com/docs.html>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple>> >> > > > -- > Problem reports:       http://cygwin.com/problems.html> FAQ:                   http://cygwin.com/faq/> Documentation:         http://cygwin.com/docs.html> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple> -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 In reply to this post by Brent Epp On Tue, 17 Dec 2019 14:58:56 -0600 Brent Epp wrote: > Hello, > > I've been using cygwin for years with no problems.  I just updated > cygwin again and I suddenly can't get into the terminal. When I click > the cygwin icon, the window just flashes and immediately closes. > > What's interesting is that I have a number of cygwin/mintty shortcuts > for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh > [hidden email], which work just fine. I can also get in if I run > cygwin.bat in cmd, console2 or any other Windows command terminal. > > I've tried running the latest cygwin setup, reinstalling mintty, and > the shortcut still fails. The shortcut is just the default target: > C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i > > I don't know what else to try.  What happened here and how do I fix this? Does anything change if the registry value ForceV2 is set to 0 under HKEY_CURRENT_USER\Console? This disables the pseudo console feature. Note: Do not forget to revert the registry value. -- Takashi Yano <[hidden email]> -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 Thanks, but I'm still on Windows 7, so this has no effect.   - Brent On 2019-12-18 05:24, Takashi Yano wrote: > On Tue, 17 Dec 2019 14:58:56 -0600 > Brent Epp wrote: >> Hello, >> >> I've been using cygwin for years with no problems.  I just updated >> cygwin again and I suddenly can't get into the terminal. When I click >> the cygwin icon, the window just flashes and immediately closes. >> >> What's interesting is that I have a number of cygwin/mintty shortcuts >> for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh >> [hidden email], which work just fine. I can also get in if I run >> cygwin.bat in cmd, console2 or any other Windows command terminal. >> >> I've tried running the latest cygwin setup, reinstalling mintty, and >> the shortcut still fails. The shortcut is just the default target: >> C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i >> >> I don't know what else to try.  What happened here and how do I fix this? > Does anything change if the registry value ForceV2 is set to 0 under > HKEY_CURRENT_USER\Console? This disables the pseudo console feature. > > Note: Do not forget to revert the registry value. > -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 In reply to this post by Brent Epp Greetings, Brent Epp! > I've been using cygwin for years with no problems.  I just updated > cygwin again and I suddenly can't get into the terminal. When I click > the cygwin icon, the window just flashes and immediately closes. > What's interesting is that I have a number of cygwin/mintty shortcuts > for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh > [hidden email], which work just fine. I can also get in if I run > cygwin.bat in cmd, console2 or any other Windows command terminal. > I've tried running the latest cygwin setup, reinstalling mintty, and > the shortcut still fails. The shortcut is just the default target: > C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i > I don't know what else to try.  What happened here and how do I fix this? I'd suggest running rebase-trigger full, closing all Cygwin programs/services, and running setup again as a first attempt to resolve it. -- With best regards, Andrey Repin Saturday, December 21, 2019 17:29:44 Sorry for my terrible english... -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Open this post in threaded view
|

Re: mintty window flashes open and immediately closes

 Hello Andrey, The way I ended up "solving" this is by restoring a backup of cygwin I had from a few weeks ago.  Almost nothing had changed with my working files, so I considered it good enough and called it a day. However, I kept a copy of the failed/corrupted install and put it in a VM so I can continue to diagnose the failure.  Interestingly, it exhibits the same failure within the VM, so now we know it's not something within the specific Windows environment.  Also worth noting, the host environment is Windows 7, the VM guest is Windows 10. I took your suggestion and ran rebase-trigger full, closed cygwin windows, and re-ran setup.  It has not resolved the problem, unfortunately.   - Brent On 2019-12-21 08:31, Andrey Repin wrote: > Greetings, Brent Epp! > >> I've been using cygwin for years with no problems.  I just updated >> cygwin again and I suddenly can't get into the terminal. When I click >> the cygwin icon, the window just flashes and immediately closes. >> What's interesting is that I have a number of cygwin/mintty shortcuts >> for SSH servers as c:\path\to\cygwin\bin\mintty.exe /bin/ssh >> [hidden email], which work just fine. I can also get in if I run >> cygwin.bat in cmd, console2 or any other Windows command terminal. >> I've tried running the latest cygwin setup, reinstalling mintty, and >> the shortcut still fails. The shortcut is just the default target: >> C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i >> I don't know what else to try.  What happened here and how do I fix this? > I'd suggest running rebase-trigger full, closing all Cygwin > programs/services, and running setup again as a first attempt to resolve it. > > -- Problem reports:       http://cygwin.com/problems.htmlFAQ:                   http://cygwin.com/faq/Documentation:         http://cygwin.com/docs.htmlUnsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple