Windows 10: Wsl Freezes on launch

Discus and support Wsl Freezes on launch in Windows 10 Software and Apps to solve the problem; So essentially, I have a hotkey that opens wsl, pastes in commands to run a python script, then kills wsl. and does some other stuff. After running the... Discussion in 'Windows 10 Software and Apps' started by polp7, Jul 9, 2021.

  1. polp7 Win User

    Wsl Freezes on launch


    So essentially, I have a hotkey that opens wsl, pastes in commands to run a python script, then kills wsl. and does some other stuff. After running the hotkey a couple of times, I get greeted with a blank screen when wsl opens. Sometimes Wsl freezes first try, I'm pretty sure it's not a problem with the hotkey, I've tried adjusting the speed of the hotkey but it wouldn't make a difference. The window won't close out, "taskkill" won't work on it, and every following instance I make is infected with this same issue. I have to restart my computer to fix it, which gets really tedious. Is there a

    :)
     
    polp7, Jul 9, 2021
    #1

  2. WSL

    Version 2 of WSL uses a new lightweight utility virtual machine capability. To enable the lightweight virtual machine and WSL, you need to enable two Windows features: Virtual Machine Platform and Windows Subsystem for Linux.

    To enable these features via the user interface (UI), press the Windows key and enter Windows Features, then click on Turn Windows features on or off.
    When the Windows Features dialog appears, check the boxes for Virtual Machine Platform and Windows Subsystem for Linux.




    If you want to make version 2 the default for any Linux distros you install then run the following command:


    Code:
    Now you can install Linux distro from Microsoft Store it will be running version 2 of WSL.

    A distro can be converted between versions of WSL after installation. To achieve this, you use the wsl --set-version command.

    This command takes two arguments:

    • The name of the distro to update
    • The version to convert it to

    An example of converting the Ubuntu distro to version 2 is shown here:

    Code:
    Execute wsl --list --verbose versions of WSL installed distro.
     
    FreeBooter, Jul 9, 2021
    #2
  3. WSL in windows Store

    Actually, this is a consumer-oriented forum for general Windows 10 questions.

    As WSL concerns mostly developers and Enterprise, I suggest asking there.
     
    Sumit Dhiman2, Jul 9, 2021
    #3
  4. tjcreek55 Win User

    Wsl Freezes on launch

    PowerShell does not launch bash.exe

    All,

    I
    am new and trying to learn.

    My
    issue: When I enter bash.exe in a PowerShell cmd window, my PC does not launch the Ubuntu command. I think Windows Subsystem for Linux (WSL) is not in my $ENVWsl Freezes on launch :path.

    Troubleshooting
    I have done:

    1. Reading
      on the Internet, I can test my $ENVWsl Freezes on launch :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe calc

    C:\Windows\System32\calc.exe

    It returned the follow:

    PS C:\WINDOWS\system32>
    calc

    (And the calculator displayed
    on my PC)

    1. Reading
      on the Internet, I can also test my $ENVWsl Freezes on launch :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe wsl

    It returned the follow:

    INFO: Could not find
    files for the given pattern(s).

    Here
    is the output of $ENVWsl Freezes on launch :path

    PS
    C:\WINDOWS\system32> $ENVWsl Freezes on launch :path

    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
    Files (x86)\Calibre2\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Users\user-lenovo595\AppData\Local\Microsoft\WindowsApps

    Question:

    What
    would you suggest as my next step to fix the issue?

    Thank
    you,
     
    tjcreek55, Jul 9, 2021
    #4
Thema:

Wsl Freezes on launch

Loading...
  1. Wsl Freezes on launch - Similar Threads - Wsl Freezes launch

  2. WSL 2 Freezes During PyTorch Model Training

    in Windows 10 Gaming
    WSL 2 Freezes During PyTorch Model Training: I'm currently training some models on WSL 2 with PyTorch. After some time maybe about 20 mins, WSL freezes for no apparent reason. The ML model uses about 2 GB of VRAM while my PC has 24 GB and utilizes my GPU at about 50%, so I know it's not a resource issue. The issue also...
  3. WSL 2 Freezes During PyTorch Model Training

    in Windows 10 Software and Apps
    WSL 2 Freezes During PyTorch Model Training: I'm currently training some models on WSL 2 with PyTorch. After some time maybe about 20 mins, WSL freezes for no apparent reason. The ML model uses about 2 GB of VRAM while my PC has 24 GB and utilizes my GPU at about 50%, so I know it's not a resource issue. The issue also...
  4. WslRegisterDefinition failed with error 0xffffffff when launching Ubuntu-12.05 with WSL...

    in Windows 10 Gaming
    WslRegisterDefinition failed with error 0xffffffff when launching Ubuntu-12.05 with WSL...: I have installed Windows Subsystem for Windows Version 2. WSL and the virtual platform have both been enabled, while the Windows hypervisor is desabled.Then I asked for the installation of Ubuntu-20.04 with the command "wsl --install -- -d Ubuntu-20.04.The loading of Ubuntu...
  5. WslRegisterDefinition failed with error 0xffffffff when launching Ubuntu-12.05 with WSL...

    in Windows 10 Software and Apps
    WslRegisterDefinition failed with error 0xffffffff when launching Ubuntu-12.05 with WSL...: I have installed Windows Subsystem for Windows Version 2. WSL and the virtual platform have both been enabled, while the Windows hypervisor is desabled.Then I asked for the installation of Ubuntu-20.04 with the command "wsl --install -- -d Ubuntu-20.04.The loading of Ubuntu...
  6. game freezes after launch

    in Windows 10 Gaming
    game freezes after launch: I am currently having this issue where some games I play freeze straight after launched and i am still able to hear the game music and main menu sounds. but when i tab out and move my mouse around. it moves in game? so it seems like my game is frozen when tabbed In but when i...
  7. game freezes after launch

    in Windows 10 Software and Apps
    game freezes after launch: I am currently having this issue where some games I play freeze straight after launched and i am still able to hear the game music and main menu sounds. but when i tab out and move my mouse around. it moves in game? so it seems like my game is frozen when tabbed In but when i...
  8. WSL

    in Windows 10 Software and Apps
    WSL: problem:now i'm using win1122543.1000 rs_prerelease, and i got one wired problem: one of my wsl,kali,which is imported from another device, now can't open from file explorer, and another wslopenEuler,which installed by win store can be opend from file explorer faultless....
  9. Custom WSL Distro Not Launching

    in Microsoft Windows 10 Store
    Custom WSL Distro Not Launching: Hello world. I recently decided to try installing a Linux distro to use with Windows Subsystem for Linux. I did not like any of the options provided, however, so I tried to use a "custom" one. I say this in quotes because the distro was publicly available, but not as a WSL...
  10. Gears5 game freezes on launching

    in Windows 10 Gaming
    Gears5 game freezes on launching: I have Ryzen 3600/Radeon RX5700., was able to play game till 2 weeks back. Now after launching the game when I click campaign or benchmark or anything the game freezes and windows task manager shows as game not responding. I installed the game with xbox game pass. I...