sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: crash and Unknown C++ exception when I invoke cv2.validateDisparity
Labels: bug

### System Information

Python version: 3.8.18
OpenCV python version: 4.9.0
Operating System / Platform: Windows-10-10.0.19045-SP0

### Detailed description

It will report different crash or bug report, please try it several times!
1.
```
Process finished with exit code -1073740940 (0xC0000374)
```
2.
```
Unknown C++ exception from OpenCV code
```

of course, it will be successful sometimes, but I meet a lot of times crash or unknown exceoption

### Steps to reproduce

```
import numpy as np
import cv2
disparity = (np.random.rand(100, 100, 1) * 256).astype(np.int16)
cost = (np.random.rand(100, 100, 1) * 256).astype(np.int16)
minDisparity = 3
numberOfDisparities = 7
disp12MaxDisp = 1

output = cv2.validateDisparity(disparity, cost, minDisparity, numberOfDisparities, disp12MaxDisp)

print(output)
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: PowerToys
Issue: [MWB] Multi-file and folder transfer
Labels: Idea-Enhancement,Needs-Triage,Product-Mouse Without Borders

### Description of the new feature / enhancement

It is recommended that multi-file and folder directories with unbounded mouse are copied to support

### Scenario when this would be used?

The unbounded mouse currently only supports copying a single file, and we hope to support multiple file copying and folder directory copying

### Supporting information

It is recommended that multi-file and folder directories with unbounded mouse are copied to support
Repository: PowerToys
Issue: The copied file cannot be seen in a timely manner on another computer
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.80.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

there is a small problem when synchronizing single file copying. When you copy a file from computer a using the shortcut key, you can get the file when you paste it on Computer B, but when you copy another file from computer a using the shortcut key, what you get when you paste on computer B is that the file already exists, whether or not to replace the previous file, right-click on Computer A to copy again before it appears to be updated to the clipboard buffer, and paste again on computer B to get the newly copied file

### ✔️ Expected Behavior

The files copied from computer A can be obtained in a timely manner on computer B

### ❌ Actual Behavior

there is a small problem when synchronizing single file copying. When you copy a file from computer a using the shortcut key, you can get the file when you paste it on Computer B, but when you copy another file from computer a using the shortcut key, what you get when you paste on computer B is that the file already exists, whether or not to replace the previous file, right-click on Computer A to copy again before it appears to be updated to the clipboard buffer, and paste again on computer B to get the newly copied file

### Other Software

no
Repository: transformers
Issue: Can Transformers AutoModel Support to(dml)
Labels: Feature request

### Feature request

Windows  
RX6800XT  Rocm
use DirectML to speed up
Can AutoModel.to()  support DirectML

### Motivation

it useful for me to use glm

### Your contribution

stable diffusion support DirectML
Repository: kubernetes
Issue: Race condition in PV controller storeObjectUpdate()
Labels: kind/bug,sig/storage,triage/accepted

### What happened?

PV controller (in KCM) has its own cache in addition to the informer cache, to store updates from itself. However, we've identified 2 possible race condition when invoking `storeObjectUpdate()` from multiple goroutines.

`storeObjectUpdate()` is currently invoked from `setClaimProvisioner()` and `syncUnboundClaim()`, which runs in 2 different goroutine. And I would expect more concurrent access for enhanced throughput in the future.

Race conditions:
1. internal update overwrites external delete. When a object is deleted from APIServer, an update request from controller itself may still in-flight. After the update returns, it tries to insert the object back to the cache, overwriting deletion propagated from informer. Resulting in the object staying in cache forever. Subsequently causing, for example, PV stay in Bound state forever and cannot be released.
2. read-compare-write in `storeObjectUpdate()`. When invoked concurrently, an old version (defined by ResourceVersion) may overwrite new version. Resulting in 15s cache stall (should be fixed by next sync).

### What did you expect to happen?

No race conditions. Internal cache stays consistent on concurrent access.

### How can we reproduce it (as minimally and precisely as possible)?

Hard to reproduce, this only happens with a small chance.

We observed condition 1 when we try to optimize the throughput of PV controller.

### Anything else we need to know?

To fix race condition 2, I propose: add locks around `storeObjectUpdate()`

To fix race condition 1, I propose: explicitly differentiate update and add event, do not allow add for internal update response.

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: deno
Issue: Allow a depth limit parameter to the KV list interator
Labels: suggestion,ext/kv

In [specifying options for list](https://deno.land/api@v1.42.1?s=Deno.KvListOptions&unstable) there is no way of specifying the maximum depth of keys that I want returned.

If I am modelling a filesystem in Deno KV, if I want to list the root directory, I currently get the whole filesystem.  That gets quite heavy on Deno Deploy, and quite slow if my DB is in Virginia, but my edge isolate is in Australia.

Missing this parameter can cause some subtle holes in libraries, particularly when users are allowed to specify their own file names.  One such example is here: https://github.com/kitsonk/kv-toolbox/issues/12 

Using start and end ranges still returns all the keys in between regardless of the depth of the key array, so I'd propose the depth parameter apply to both prefix and range specifiers.
Repository: stable-diffusion-webui
Issue: [Bug]: TensorRT Plugin gives CUDA errors
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [x] The issue exists on a clean installation of webui
- [x] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [x] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

Installed TensorRT plugin but now when I start SD, it gives errors about "entry point not found" for files : 

cudnn_adv_infer64_8.dll
cudnn_adv_train64_8.dll
cudnn_cnn_infer64_8.dll

These files are already present in - \venv\Lib\site-packages\nvidia\cudnn\bin

### Steps to reproduce the problem

Install TensorRT plugin in Stable Diffusion and re-start SD.

### What should have happened?

It should have detected CUDA installation on my machine and proceeded without errors.

### What browsers do you use to access the UI ?

Mozilla Firefox

### Sysinfo

[sysinfo-2024-04-08-05-19.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14901216/sysinfo-2024-04-08-05-19.json)


### Console logs

```Shell
venv "D:\stabledif\webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
removing nvidia-cudnn-cu11
Launching Web UI with arguments: --xformers
Loading weights [5c8529319b] from D:\stabledif\webui\models\Stable-diffusion\realisticVisionV60B1_v60B1InpaintingVAE.safetensors
Creating model from config: D:\stabledif\webui\configs\v1-inpainting-inference.yaml
```


### Additional information

_No response_
Repository: vscode
Issue: Yellow text and dot in the outline of a Jupyter Notebook in VS Code
Labels: bug,notebook-toc-outline

<!-- ⚠️⚠️ 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?: Only Python extension is enabled. 

<!-- 🪓 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.88.0
- OS Version: 19045.4239
- Python extension: I tried v2024.4.0, v2024.2.1, v2024.2.0 and none works.

### Steps to Reproduce:

1. Install Python extension of either v2024.4.0, v2024.2.1 or v2024.2.0. 
2. Create a Jupyter Notebook with Markdown cells `## query features`
3. Check the outline pane and you will see the text is yellow with a yellow dot to the right. 
4. When I switch to VSCode 1.87.2 however, the problem goes. 

<img width="470" alt="Screenshot 2024-04-08 135119" src="https://github.com/microsoft/vscode/assets/31554275/606193da-9497-43a1-9da7-25d80e0ba343">
Repository: PowerToys
Issue: Powertoys right click function menu icon is blurred
Labels: Issue-Bug,Product-PowerRename,Product-Image Resizer,Needs-Triage,Area-Context Menu

### Description of the new feature / enhancement

The powertoys right-click function menu icon has a fuzzy resolution, which is nothing substantial, but it's not the same style as the other icons, and it's not aesthetically pleasing, haha.
<img width="240" alt="powertoy" src="https://github.com/microsoft/PowerToys/assets/70065876/766eb4d1-f20c-4eda-9b79-76e41628b4eb">


### Scenario when this would be used?

Normal use

### Supporting information

_No response_
Repository: ollama
Issue: When I ask a longer question, the output is arbitrary
Labels: bug

### What is the issue?

When I ask longer questions, it's about 15K or so. And I've set enough tokens: /set parameter num_ctx 4096. The model outputs a combination of numbers and symbols. Why?
![image](https://github.com/ollama/ollama/assets/73268510/ef6853ad-465d-4879-9bf0-c1045d603a5d)


### What did you expect to see?

The model outputs normally

### Steps to reproduce

ollama run qwen14:latest

### Are there any recent changes that introduced the issue?

_No response_

### OS

Linux

### Architecture

x86

### Platform

_No response_

### Ollama version

0.1.27

### GPU

Nvidia

### GPU info

4090 * 2

### CPU

_No response_

### Other software

_No response_
Repository: pytorch
Issue: An error occurs when ‘max_split_size_mb ’and ‘expandable_segments ’ are enabled at the same time.
Labels: module: docs,module: cuda,module: memory usage,triaged,module: CUDACachingAllocator

### 🐛 Describe the bug

 I understand that both of these environment variables are to reduce the probability of OOM. But I did not find in the documentation that the two environment variables cannot be shared. And there's no hint in the code.
https://pytorch.org/docs/stable/notes/cuda.html#environment-variables

If the two environment variables are shared, some code logic may be incorrect.
```python
import os
os.environ["PYTORCH_CUDA_ALLOC_CONF"]='max_split_size_mb:500,expandable_segments:True'
import torch

def create_tensor():
    x = torch.zeros([50,800,1200,3], device='cuda:0')  # 550M     block1_memory

if __name__ == '__main__':
    create_tensor()
    temp = []
    number = 500  # Adjusted based on the CUDA memory size.
    for _ in range(number):
        x=torch.zeros([10,800,1200,3], device='cuda:0') # 110MB block2_memory
        temp.append(x)

```
### problem1:
Setting max_split_size_mb:500 does not prevent `block2_memory`from reusing the memory of free `block1_memory`.
https://github.com/pytorch/pytorch/blob/26bf05ccacc0377f0ef40d1d9c792c403267d5d5/c10/cuda/CUDACachingAllocator.cpp#L1936-L1961
The `allocatable` function gets free `block1_memory`

### problem2:
`block2` is continuously allocated and allocated memory close to the upper limit triggers OOM. The `release_available_cached_blocks` function is called.But using release_block in this function to release the memory is problematic.
(https://github.com/pytorch/pytorch/blob/26bf05ccacc0377f0ef40d1d9c792c403267d5d5/c10/cuda/CUDACachingAllocator.cpp#L2493-L2511)
In `release_block`, the `cudaFree` function is used to release the memory. The correct method is to use the `unmap` function.





### Versions

PyTorch version: main branch

cc @svekars @brycebortree @ptrblck
Repository: vscode
Issue: Add support for previous line patterns in the indentation rules
Labels: feature-request,editor-autoindent

This feature request is derived from https://github.com/microsoft/vscode/issues/43244#issuecomment-2042078397. Currently when Enter is typed after a braceless if statement, the next line is indented as follows:

```
if (true)
....
```

Some users in the thread mentioned that after typing {} on that line, they want the code to be unindented at that position as follows:

```
if (true)
{}
```

We have the `unIndentedLinePattern` which we could use to solve this, that is we could unindent when the pair {} is encountered on a line. This however would cause issues generally, like in the following case:

```
{
     a: {}
}
```

Here we do not want to decrease the indentation on typing the {} after the field name `a`. To mitigate this, we may want the indentation rules to support regex rules on the previous line. That is, we may want to have the following syntax in the language configuration file:

```
unIndentedLinePattern: {
    currentLinePattern: Regex;
    previousLinePattern: Regex;
}
```

In this way, the new syntax would ressemble more the syntax for the `onEnter` indentation rules.
Repository: vscode
Issue: Allow users to define their own indentation rules within the settings
Labels: feature-request,editor-autoindent

This feature request derives from https://github.com/microsoft/vscode/issues/43244#issuecomment-2042078397. In that thread, some users have been mentioning they wanted to undo some changes that were made to language configuration files. To help them, we could allow them to edit the indentation rules directly within the settings files.
Repository: TypeScript
Issue: Too wide diagnostic with array spread
Labels: Bug

### 🔎 Search Terms

array spread, diagnostics

### 🕗 Version & Regression Information

- This is the behavior in every version I tried and I have reviewed the FAQ

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.4.4#code/C4TwDgpgBAggRgYygXigIgIZqgH3XbPNBNAbgChyEB7AOwGdgoMAnFjEARgC5ZEBtALooo-TGgA0+NIIpU6jZmw4AmXvARCR-clD1QAdEdbsuE3fvFSLetAXP70AE0nlBQA

### 💻 Code

```ts
type Abc = "a" | "b" | "c";

const array1: Abc[] = ["a", "b"];

const array2: Abc[] = [
    ...array1,
    "a", 
    "b",
    "d",
]
```


### 🙁 Actual behavior

The whole contents of `array2` is highlighted in red.

### 🙂 Expected behavior

Only the `"d"` should be highlighted in red, as it is the only incorrect part of `array2`. Note that if we remove the spread `...array1`, then it works as expected.

### Additional information about the issue

With more complicated types/data, this bug can make it pretty hard to diagnose where the problem is.
Repository: tauri
Issue: [bug] cannot access web page in app
Labels: type: bug,platform: Linux,status: needs triage

### Describe the bug

It might be something about special network, but I can't via error report to fix. Maybe It should tell us more or replenish this topic in document.

So, the question is I cannot get any page in Desktop app including v1 and v2. And I only get two error reports saying:

![image](https://github.com/tauri-apps/tauri/assets/111669112/35af7f39-b440-44bb-8de1-3c4d6da3c8bd)

and 

![image](https://github.com/tauri-apps/tauri/assets/111669112/d4899a78-61d4-4c4d-9a8d-05129349b54c)

The full text of the latter is `canot from “tauri://schemas/config.json” load framework: cannot open tauri://schemas/config.json. Detail: Request failed with status code 500。(768)`

It should be raised by tauri's vscode plugin.


### Reproduction

It should not be reproduct, I had never modified any files built from the create cli tool.

### Expected behavior

just work as document

### Full `tauri info` output

```text
cargo tauri info
WARNING: no lock files found, defaulting to npm

[✔] Environment
    - OS: Ubuntu 22.4.0 X64
    ✔ webkit2gtk-4.1: 2.42.5
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 21.7.2
    - pnpm: 8.15.6
    - yarn: 4.1.1
    - npm: 10.5.1

[-] Packages
    - tauri [RUST]: 2.0.0-beta.14
    - tauri-build [RUST]: 2.0.0-beta.11
    - wry [RUST]: 0.39.0
    - tao [RUST]: 0.27.0
    - tauri-cli [RUST]: 2.0.0-beta.12
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.12

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
```


### Stack trace

```text
no output
```


### Additional context

well, I have setten proxy.
Repository: opencv
Issue: Unexpect error when invoke cv2.sampsonDistance
Labels: bug

### System Information

Python version: 3.8.18
OpenCV python version: 4.9.0
Operating System / Platform: Windows-10-10.0.19045-SP0

### Detailed description

```
cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\calib3d\src\fundam.cpp:1214: error: (-215:Assertion failed) _pt1.type() == CV_64F && _pt2.type() == CV_64F && _F.type() == CV_64F in function 'cv::sampsonDistance'

```
all of the input param I set were float64

### Steps to reproduce

```
import numpy as np
import cv2
pt1 = (np.random.rand(100, 1, 2)* 256).astype(np.float64)

pt2 = (np.random.rand(100, 1, 2)* 256).astype(np.float64)

m3 = (np.random.rand(3,3) * 256).astype(np.float64)

output = cv2.sampsonDistance(pt1, pt2, m3)
print(output)
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: PowerToys
Issue: Corrupting color palette in cmd environment
Labels: Needs-Repro

### Microsoft PowerToys version

0.80.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

right click the desktop
select 'Open command window here'
open 'Properties'
select 'Color'
The color palette offered is corrupted
---
right click the task bar and open a command window from there
open properties
select  'Color'
The color palette is standard
---
![image](https://github.com/microsoft/PowerToys/assets/50364712/bdec3700-91ed-4252-991b-c69e72bd4f5e)
[PowerToysReport_2024-04-08-11-19-14.zip](https://github.com/microsoft/PowerToys/files/14903480/PowerToysReport_2024-04-08-11-19-14.zip)

![image](https://github.com/microsoft/PowerToys/assets/50364712/df6fd670-d415-4148-9e8d-8a11726d1965)

[PowerToysReport_2024-04-08-11-19-14.zip](https://github.com/microsoft/PowerToys/files/14903480/PowerToysReport_2024-04-08-11-19-14.zip)



### ✔️ Expected Behavior

that the standard legacy palette be the same as the powertoys palette

### ❌ Actual Behavior

the different palettes cause some cmd and bat files to become unusable, as once powertoys is activated the problem proliferates random;y to scripts opened from shortcuts

### Other Software

_No response_
Repository: vscode
Issue: Using `\w` in Find dialog doesn't find non-English Unicode characters
Labels: bug,editor-find

<!-- ⚠️⚠️ 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. -->
Version: 1.88.0
Commit: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c
Date: 2024-04-03T13:25:57.039Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.5.0-26-generic

Steps to Reproduce:

1. Create a document containing the word `Käse`
2. Open Find dialog, check "Use regular expressions" and enter `\w` in the Find field

Expected behavior:
- All four characters are selected

Actual behavior:
- `ä` is not selected

It is possible that this behavior is by design. In that case the problem is the lack of documentation of the Regex syntax that vscode uses, at least [this page](https://code.visualstudio.com/docs/editor/codebasics?ref=arctype.com#_advanced-find-and-replace-options) doesn't have any details.

Searching on Microsoft's websites reveals [this](https://learn.microsoft.com/en-us/dotnet/standard/base-types/character-classes-in-regular-expressions#word-character-w) page which suggests that `\w` should include all lower- and uppercase letters.

I guess the problem is that vscode uses the ECMAScript flavor. So a workaround would be to use [`[\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}\p{Lm}]`](https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-options#ecmascript-matching-behavior) to match all upper- and lowercase letters instead of `\w`.