hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Hyper window freezes when I try to close it

Open ruzolut opened this issue 7 years ago • 61 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Version 1903 Windows Pro Insider Preview
  • Hyper.app version: 3.0.2

Issue

I am using hyper with a cmd shell, I also have wsl and oh my zsh set up. when I run wsl command in my hyper terminal, wsl and ohmyzsh works just fine, but whenever I try to exit the window, it freezes and it stays like that until I kill the process through the Task Manager

ruzolut avatar Jun 16 '19 16:06 ruzolut

I can +1 this, also happens when trying to do a full reload.

OS version and name: Microsoft Windows 10 Education Version 10.0.18362 Build 18362 Hyper.app version: 3.0.2

Pluriscient avatar Jun 16 '19 19:06 Pluriscient

me too, wsl always crash when I exit by hyper. But it safe when I use exit command.

yoyoys avatar Jun 17 '19 03:06 yoyoys

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10 [1903]
  • Hyper.app version: 3.0.2 (stable)
  • The issue is reproducible in vanilla Hyper.app: yes

Issue

This (be patient and wait a few seconds):

3

szmarczak avatar Jun 17 '19 21:06 szmarczak

It doesn't crash when you run exit on the Linux instance and then close the window.

szmarczak avatar Jun 17 '19 21:06 szmarczak

It doesn't crash when you run exit on the Linux instance and then close the window.

It still crashed, the reason it did that is because I was using oh my zsh, and when I ran the exit command, I only exited oh my zsh to the linux instance.

I tried to exit oh my zsh, then exit linux, and the window closed just fine.

hyper

Thank you 👏

ruzolut avatar Jun 18 '19 14:06 ruzolut

Yeah, but IMO it should automatically close it when using the X button...

szmarczak avatar Jun 18 '19 17:06 szmarczak

Yeah, but IMO it should automatically close it when using the X button...

Indeed, I ll keep this issue open, maybe someone has a solution.

ruzolut avatar Jun 19 '19 00:06 ruzolut

I think I got a fix working on my computer: I changed the settings to be:

    ...
    shell: 'C:\\Windows\\System32\\wsl.exe',
    shellArgs: ['--'], // get the input from the command line
    ...

(or just run wsl -- in the command line if you're using that as default) Can anyone confirm?

Edit:

I have it set so Oh-my-zsh is automatically started from bash by adding exec zsh at the top of ~/.bashrc, could be a factor?

Pluriscient avatar Jun 22 '19 22:06 Pluriscient

I loved the terminal, but this problem is kind of frustrating. Windows 10 user.

joaovct avatar Jul 04 '19 05:07 joaovct

I also get this problem if I do not run exit from wsl in Hyper before closing. If I run wsl -- from cmd/PowerShell in Hyper it still freezes if I then hit the window close button.

Windows 10 v1903 Hyper 3.0.2

binaryfunt avatar Jul 19 '19 15:07 binaryfunt

#3763 solve my problem.We can use config like

shell: 'wsl.exe',
shellArgs: [],

XuCcc avatar Jul 31 '19 09:07 XuCcc

#3763 solve my problem.We can use config like

shell: 'wsl.exe',
shellArgs: [],

Works like a charm

ruzolut avatar Aug 05 '19 16:08 ruzolut

@pedroCX486 are there any benefits of using CMDer over regular cmd?

ruzolut avatar Aug 05 '19 17:08 ruzolut

I installed Hyper yesterday and this happens to me.

javierguzman avatar Sep 13 '19 07:09 javierguzman

I installed Hyper yesterday and this happens to me.

Same here, using Powershell on Windows 10

GreamDesu avatar Sep 13 '19 20:09 GreamDesu

This happens when anything is running under Hyper for me, aside from whatever shell it starts. For example - an SSH client.

gdude2002 avatar Sep 13 '19 22:09 gdude2002

#3763 solve my problem.We can use config like

shell: 'wsl.exe',
shellArgs: [],

Works like a charm

The above solution doesn't work for me.. T.T

AmosDoan avatar Sep 14 '19 17:09 AmosDoan

shell: 'wsl.exe', shellArgs: [],

Doesn't work for me too

orenaksakal avatar Sep 15 '19 19:09 orenaksakal

I think I got a fix working on my computer: I changed the settings to be:

    ...
    shell: 'C:\\Windows\\System32\\wsl.exe',
    shellArgs: ['--'], // get the input from the command line
    ...

(or just run wsl -- in the command line if you're using that as default) Can anyone confirm?

Edit:

I have it set so Oh-my-zsh is automatically started from bash by adding exec zsh at the top of ~/.bashrc, could be a factor?

This is the working solution

towwa avatar Sep 16 '19 02:09 towwa

This bug should be fixed with #3794, but I have no idea whom I need to ping to get it merged.

Lyncredible avatar Sep 16 '19 02:09 Lyncredible