sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: torch.jit.load fails when path contains non-ascii characters
Labels: oncall: jit

### 🐛 Describe the bug

https://github.com/openai/CLIP/pull/227

`torch.jit.load` fails when path contains non-ascii characters


```py
import torch

torch.jit.load('C:\\Users\\流星暴雨/.cache/clip\\ViT-B-16.pt', "cpu")
```

```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "[C:\Users\]()流星暴雨\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\jit\_serialization.py", line 161, in load
    cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files)
RuntimeError: open file failed, file path: [C:\Users\]()流星暴雨/.cache/clip\ViT-B-16.pt
```

Related issues: https://github.com/pytorch/pytorch/issues/47422

### Versions

```
PS C:\Users\流星暴雨\AppData\Local\Programs\Python\Python39\Lib\site-packages\torch\utils> python collect_env.py
Collecting environment information...
PyTorch version: 1.8.2+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 专业工作站版
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.18.2

Python version: 3.9 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2080 Ti
Nvidia driver version: 512.15
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[pip3] torch==1.8.2+cu102
[pip3] torchaudio==0.8.2
[pip3] torchvision==0.9.2+cu102
[conda] Could not collect
```
Repository: yt-dlp
Issue: Allow downloading to buffer
Labels: enhancement,core:downloader

### Checklist

- [X] I'm reporting a feature request
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

Although for the command line interface, almost all the time it is desirable to save the file to a local path. However when using ytdl as a module using the [io library](https://docs.python.org/3/library/io.html) to save files to buffers may be desirable.

My use case is a bunch of chatbots which download a video from an URL and then uploads the file back to the user, allowing a interface for people with no access to a CLI or in an environment where it would be difficult to use (such as a locked smartphone).

It would be more efficient if the script can download the file to a io.BufferIO object then upload it without having to make a temporary file in the disk, as it already does with other kind of media (for example with a qr code generator).
Repository: godot
Issue: Mouse position not being scaled when nested viewport size is different from parent viewport
Labels: bug,topic:input

### Godot version

v3.5.beta3.official [3c0d32562]

### System information

Windows 10, GLES3

### Issue description

**Info**: The problem persists in earlier stable versions of Godot as well (3.3x and 3.4x)

**What doesn't work?**
Mouse position is not scaled when using a viewport inside another viewport (through a **ViewportContainer**) and the child viewport has a different resolution (smaller or bigger) than the parent viewport.

https://user-images.githubusercontent.com/61805849/161480935-6852a68e-2bb9-4990-b615-c860ededdd43.mp4

**How do I expect it to work?**
Mouse position is scaled to allow for child viewports inside parent viewports where the child viewport has a different resolution (for example super sampling / "down" sampling.

https://user-images.githubusercontent.com/61805849/161480979-84712438-34d3-46fe-9b99-8bbf1ac51999.mp4


### Steps to reproduce

I've added a sample project which is also used for the showcases (videos) up top. The following steps can be used to reproduce from scratch and explains the necessary project setup which will lead to the mentioned behavior.
- Create a new project
- Set window width and window height to desired resolution
- Set stretch mode to 2d and stretch shrink to expand
- Add a **ViewportContainer** to the scene with **Stretch** enabled in the inspector, set to layout to "Full Rect" and the Mouse Filter to "Ignore"
- Add a **Viewport** to the ViewportContainer and set the resolution to something different (smaller or bigger) than the window resolution (or parent ViewportContainer if you have multiple viewports nested)
- Disable "Handle Input Locally" and enable "Object Picking" on the child viewport.
- Add an object or a script which will show you easily that the mouse position is not where your cursor actually is.
- In my example I used a **MeshInstance** with a **StaticBody** and check for mouse interactions and based on that change the material albeido color.

**FIX FOR NOW:** 
This *bug* can be circumvented with attaching the child viewport rectangle to the parent viewport rectangle. The following is from my example project which you can find below, to get a little deeper into this special case:
   
    `var vrect = get_viewport().get_visible_rect()
    
    #--- necessary for NON-HiDPI monitors ---#
    print(vrect.size) # 1968 x 1080 on NON-HiDPI / 1920 x 1080 on HiDPI
    vrect.size = get_viewport().size
    print(vrect.size) # 1540 x  845 on NON-HiDPI / 1920 x 1080 on HiDPI
    #----------------------------------------#
    
    viewport.size = get_viewport().size * su_sa_scale
    
    #--- necessary step to make sure, that mouse positions gets picked correctly;
    #--- not quite sure why?
    #--- UNCOMMENT LINE BELOW!
    
    # viewport.set_attach_to_screen_rect(vrect)`

### Minimal reproduction project

[viewport_mouse_pos.zip](https://github.com/godotengine/godot/files/8407043/viewport_mouse_pos.zip)
Repository: pytorch
Issue: Runtime configuration to disable TORCH_WARN temporally?
Labels: module: internals,triaged,enhancement

### 🚀 The feature, motivation and pitch

I'm working on an older version of PyTorch and would like to disable an annoying `TORCH_WARN`

https://github.com/pytorch/pytorch/blob/631f0351313da2edeeb72cf8bb963035b11425d9/c10/util/Exception.h#L518-L530

temporally, which has already been merged into master. I wonder if it is possible to add a switch to adjust the log level at runtime?

There are also other people having similar concerns: https://discuss.pytorch.org/t/how-do-i-disable-libtorch-warning/63439/3

### Alternatives

I believe if I upgrade or compile PyTorch from scratch, it will be resolved. However, it may not suitable for everyone to upgrade or compile by himself. For me, this is because I am doing a performance comparison, which is sensitive to the arguments and settings in the compilation. It is also difficult to find the exact same compilation configuration of a specific version of PyTorch shipped from conda or pip.

### Additional context

_No response_

cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh
Repository: pytorch
Issue: LowRankMultivariateNormal doesn't work with 0 diagonal
Labels: module: distributions,triaged

### 🐛 Describe the bug

According to the documentation, the LowRankMultivariateNormal (from `torch.distributions.lowrank_multivariate_normal`) takes two parameters `cov_factor` and `cov_diag` and samples from the MultivariateNormal with `covariance_matrix = cov_factor @ cov_factor.T + cov_diag`.
It seems clear from this definition that we should be able to take `cov_diag = torch.zeros(...)` and everything should still work.
However the current code computes 1/cov_diag, which is clearly going to lead to problems.

Example code that doesn't work:
```
import torch
cov_factor = torch.randn(10, 3)
loc = torch.zeros(10)
cov_diag = torch.zeros(10)
torch.distributions.lowrank_multivariate_normal.LowRankMultivariateNormal(loc, cov_factor, cov_diag)
```
it fails with
```
RuntimeError: torch.linalg.cholesky: The factorization could not be completed because the input is not positive-definite (the leading minor of order 2 is not positive-definite).
```

Meanwhile, first expanding the covariance matrix, and then sampling with a normal sampler works fine:
```
import numpy as np
cov_factor = torch.randn(10, 3)
numpy.random.multivariate_normal(np.zeros(10), cov_factor @ cov_factor.T)
```

Actually the above example fails with PyTorch's MultivariateNormal, which doesn't consider `cov_factor @ cov_factor.T` PositiveSemidefinite (though it clearly is??)
However, using a full rank matrix works in PyTorch:
```
cov_factor = torch.randn(10, 10)
torch.distributions.multivariate_normal.MultivariateNormal(loc, cov_factor @ cov_factor.T)
```
while LowRankMultivariateNormal still fails here.

### Versions

PyTorch version: 1.8.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.3 (x86_64)
GCC version: Could not collect
Clang version: 13.1.6 (clang-1316.0.21.2)
CMake version: version 3.21.4
Libc version: N/A

Python version: 3.9.9 (main, Dec  5 2021, 08:36:55)  [Clang 13.0.0 (clang-1300.0.29.3)] (64-bit runtime)
Python platform: macOS-12.3-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] backpack-for-pytorch==1.4.0
[pip3] numpy==1.19.5
[pip3] pytorch-lightning==1.5.10
[pip3] torch==1.8.1
[pip3] torchmetrics==0.7.2
[pip3] torchvision==0.9.1


cc @fritzo @neerajprad @alicanb @nikitaved
Repository: flutter
Issue: Error: "Attempted to send a key down event when no keys are in keysPressed" on Pressing Select or Enter on a TV remote
Labels: a: text input,platform-android,framework,a: error message,P2,team-design,triaged-design

I'm using **onKey** and **onKeyEvent** to listen to tv remote control keys
but I have this error when press **SELECT** or **ENTER**

```
Attempted to send a key down event when no keys are in keysPressed. This state can occur if the key event being sent doesn't properly set its modifier flags. This was the event: RawKeyDownEvent#23bc9(logicalKey: LogicalKeyboardKey#0050c(keyId: "0x10000050c", keyLabel: "Select", debugName: "Select"), physicalKey: PhysicalKeyboardKey#700e4(usbHidUsage: "0x000700e4", debugName: "Control Right"), repeat: false) and its data: RawKeyEventDataAndroid#92581(flags: 8, codePoint: 0, plainCodePoint: 0, keyCode: 23, scanCode: 97, metaState: 0)
'package:flutter/src/services/raw_keyboard.dart':
package:flutter/…/services/raw_keyboard.dart:1
Failed assertion: line 685 pos 7: 'event is! RawKeyDownEvent || _keysPressed.isNotEmpty'`
```
When I use **RawKeyboardListener** I have same issue but it call the method **onKey**


**Flutter Doctor**
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4-0.0.pre.1, on Microsoft Windows [Version 10.0.19042.1266], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.8) 
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.66.0)
[√] Connected device (5 available)
[√] HTTP Host Availability

• No issues found!
Repository: PowerToys
Issue: Support .ICO (Icon files) in preview pane
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

There is no good preview for icon files .ico in any windows default application files, i think it is good to have it.

### Scenario when this would be used?

It can be like a list of scales and format that exist in the file with some little information.
This preview got from [Axialis IconWorkshop Professional](https://www.axialis.com/iconworkshop/):
![image](https://user-images.githubusercontent.com/47592258/161498733-1ec676d6-e1c9-4ba7-8447-a3ca927eecc0.png)

Best Regards
Repository: storybook
Issue: "npx sb" fails on Windows
Labels: bug,cli,windows

### tldr;
Affects *Windows* OS users who wants to report (here) a *new issue* and follow the [template instructions](https://github.com/storybookjs/storybook/blob/next/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L11)

----

Hi, I wanted to open an issue and found myself opening this issue first because I've followed the instructions below on my *Windows 10* (*Terminal* ran as admin) and had gotten an error:

> Please create a reproduction by running `npx sb@next repro`

## Result:

```
🏃 Starting for react latest

🏗 Bootstrapping react project (this might take a few minutes)
mkdir react && cd react && touch yarn.lock && yarn init --yes && yarn add react react-dom
'touch' is not recognized as an internal or external command,
operable program or batch file.
An error occurred while executing: `mkdir react && cd react && touch yarn.lock && yarn init --yes && yarn add react react-dom`
🚨 Bootstrapping react failed
🚨 Failed to create repro
Error: Error: command exited with code: 1:
    at repro (C:\Users\Yaire\.pnpm-store\v3\tmp\_npx\22952\5\node_modules\.pnpm\@storybook+cli@6.5.0-alpha.55\node_modules\@storybook\cli\dist\cjs\repro.js:172:11)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
```

Windows doesn't have `touch` command so I [found a workaround](https://stackoverflow.com/a/30019017/104380) 

I also have tried to install `yarn` and **now it works**. 
(Why *yarn* and not *pnpm*...)

---
I suggest these things be mentioned as **hard  requirements** prior to running the `npx sb@next repro` command on Windows
Repository: vscode
Issue: Read More icon in the suggestion dialog not aligned in the middle of a suggestion.
Labels: polish,suggest

The read more icon in the suggestion dialog is not aligned in the middle of a suggestion.

![Screenshot from 2022-04-04 13-50-42](https://user-images.githubusercontent.com/98533939/161504155-43d49d61-2303-4cd5-a7ee-401cf2dbbe37.png)

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.67.0-insider
- OS Version: Linux x64 5.16.15-76051615-generic
Repository: godot
Issue: GraphNode "sticks" to mouse movement
Labels: bug,topic:gui

### Godot version

v3.4.4.stable.official [419e713a2]

### System information

Windows 10

### Issue description

If you start dragging a node, select another node from code, and then delete the originally-dragged node, the newly selected node will get "stuck" to mouse movement even if the mouse button is no longer pressed until you press on something else. When node stops being moved like this, its ```dragged()``` signal is not being called. (Incorrect offset for "stuck" node is addressed in #59843)
![example_2_gif](https://user-images.githubusercontent.com/13070655/161517901-80ce532b-5ee6-42f3-be01-49dfb6d35241.gif)

The issue also happens if you unselect the originally-dragged node from code, but keep the mouse button held.
![example_3_gif](https://user-images.githubusercontent.com/13070655/161518371-c3364487-2c5c-421f-addd-bdf750f486a0.gif)



### Steps to reproduce

1. Start dragging ```GraphNode1```.
2. Set ```GraphNode2.selected = true```, for example from ```GraphNode1.offset_changed()``` signal callback.
3. Call ```GraphNode1.queue_free()```.
4. If the mouse button has been pressed when ```GraphNode1``` was deleted, ```GraphNode2``` will now be "stuck" to mouse movements, even if the mouse button is no longer pressed.
5. Click on something (background, another node, "stuck" node) to "unstick" it. ```dragged()``` signal is not called.

Additionally, you can first unselect ```GraphNode1``` from code before deleting it. Or first delete ```GraphNode1```, then select ```GraphNode2```. Either way if the mouse button remained pressed ```GraphNode2``` will be "stuck".

### Minimal reproduction project

[GraphEditTest.zip](https://github.com/godotengine/godot/files/8408587/GraphEditTest.zip)
Repository: pytorch
Issue: Add BUILD_LAZY_CUDA_SPARSE option
Labels: module: sparse,module: build,module: cuda,triaged

### 🚀 The feature, motivation and pitch

Recently linear algebra functions gained support to be loaded dynamically (https://github.com/pytorch/pytorch/pull/73447) this change reduces CUDA context size when cuSOLVER and MAGMA are not used in PyTorch programs. We should add the same feature for the cuSPARSE library.

cc @nikitaved @pearu @cpuhrsch @malfet @seemethere @ngimel
Repository: PowerToys
Issue: Power Toys Run Last Recently Used
Labels: Idea-Enhancement,Product-PowerToys Run

### Description of the new feature / enhancement

Show the last recently used run action on top of the list.

VSCode Commands are presented that way. On Top of the Search result is the last command (matching the search query). The following commands are orderd by another metric.

### Scenario when this would be used?

Everytime Power Toys Run is used.

### Supporting information

_No response_
Repository: godot
Issue: Generate mono code error on mac m1 and run app crash.
Labels: bug,platform:macos,topic:buildsystem,topic:dotnet

### Godot version

4.0-dev

### System information

Mac M1

### Issue description

Generate mono code error on mac m1 and run app crash.

### Steps to reproduce

Hi! I compiled mono as follows，It crashes when I run it：
```
scons p=osx arch=arm64 tools=yes module_mono_enabled=yes mono_glue=no mono_prefix=$HOME/Projects/Engines/mono_arm64 -j$(sysctl -n hw.logicalcpu)
bin/godot.osx.tools.arm64.mono --generate-mono-glue modules/mono/glue
scons p=osx arch=arm64 target=release_debug tools=yes module_mono_enabled=yes mono_glue=yes mono_prefix=$HOME/Projects/Engines/mono_arm64 -j$(sysctl -n hw.logicalcpu)
cp -r misc/dist/osx_tools.app ./Godot.app
mkdir -p Godot.app/Contents/MacOS
cp bin/godot.osx.opt.tools.arm64.mono Godot.app/Contents/MacOS/Godot
chmod +x Godot.app/Contents/MacOS/Godot
mkdir -p Godot.app/Contents/Frameworks
cp -R bin/GodotSharp Godot.app/Contents/Frameworks/
```
I do something wrong? And where is crash log? I need help

and When I run this:
```
bin/godot.osx.tools.arm64.mono --generate-mono-glue modules/mono/glue
```
it has error:
```
ERROR: Cannot resolve type reference in documentation: 'RootMotionView'.
   at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:391)
ERROR: Cannot resolve type reference in documentation: 'RootMotionView'.
   at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:391)
```
Is this cause crash and how can fix it？

### Minimal reproduction project

_No response_
Repository: go
Issue: x/crypto/ssh: malformed SSH identity - parse error in message type 0
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version: 1.18
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?
<pre>
$ go env: all
</pre>

### What did you do?
Using [FiloSottile](https://github.com/FiloSottile) age cli tool under the conditions listed, an error was encountered:
age version: v1.0.0
ssh key used (With Passphrase): ssh-keygen -t ed25519 -f age-ssh -a 100 -Z "chacha20-poly1305@openssh.com"
<pre>
$ age -d -i age-ssh test.txt.age > test_decrypted.txt
$ age: error: reading "age-ssh": malformed SSH identity in "age-ssh": ssh: parse error in message type 0
</pre>
For further details please see this issue: https://github.com/FiloSottile/age/issues/407


Narrowing down the problem
I have investigated some more and found some conditions under which the problem occurs:

The problem does not occur with keys generated like this:

ssh-keygen -f key -t ed25519 -Z 3des-cbc (with password)
ssh-keygen -f key -t ed25519 -Z aes128-cbc (with password)
ssh-keygen -f key -t ed25519 -Z aes192-cbc (with password)
ssh-keygen -f key -t ed25519 -Z aes256-cbc (with password)
ssh-keygen -f key -t ed25519 -Z aes128-ctr (with password)
ssh-keygen -f key -t ed25519 -Z aes192-ctr (with password)
ssh-keygen -f key -t ed25519 -Z aes256-ctr (with password)
ssh-keygen -f key -Z aes256-ctr (with password)
ssh-keygen -f key -Z aes256-ctr (without password)
ssh-keygen -f key -Z aes128-gcm@openssh.com (without password)
ssh-keygen -f key -Z aes256-gcm@openssh.com (without password)
ssh-keygen -f key -Z chacha20-poly1305@openssh.com (without password)
The problem does occur with keys generated like this:

ssh-keygen -f key -t ed25519 -Z aes128-gcm@openssh.com (with password)
ssh-keygen -f key -t ed25519 -Z aes256-gcm@openssh.com (with password)
ssh-keygen -f key -t ed25519 -Z chacha20-poly1305@openssh.com (with password)
ssh-keygen -f key -Z chacha20-poly1305@openssh.com (with password)

It seems to me like the problem only occurs when using the ciphers aes128-gcm@openssh.com, aes256-gcm@openssh.com and chacha20-poly1305@openssh.com and only when using a password protected key. The type of key seems to be irrelevant.


### What did you expect to see?
A decrypted file with no cli errors

### What did you see instead?
The error message mentioned above instead
Note: Encryption seemed to work fine in this instance