sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: sepFilter2D insufficient shared (device) memory when using UMat
Labels: bug,category: ocl

### System Information

OpenCV python version: 4.5.4
Operating System / Platform: Ubuntu 22.04
Python version: 3.10.12

### Detailed description

(Currently confirming the reproduction code -- it seems to randomly fail, trying to get it to 100%).

sepFilter2D fails when called on a UMat (using GPU, assumedly via openCL or CUDA impl).

This seems to be due to the fact that the implementation of sepFilter2D copies the kernel to GPU (device) shared memory (and perhaps constructs some structures there). Shared memory is quite limited in size (e.g. 256K for modern NVIDIA GPUs, 32Kish for older ones?). If multiple kernels are loaded simultaneously (or one big one) it runs out of memory and dumps the following errors.

A suggested fix (based on my previous encounter with a similar thread-safety issue, https://github.com/opencv/opencv_contrib/pull/2041) is to use normal device memory rather than shared memory or texture memory. On newer devices this does not general cause a reduction in performance.

`Status -11: CL_BUILD_PROGRAM_FAILURE -D RADIUSX=225 -D LSIZE0=16 -D LSIZE1=16 -D CN=1 -D BORDER_REFLECT_101 -D NO_EXTRA_EXTRAPOLATION -D NO_BORDER_ISOLATED -D srcT=double -D dstT=float -D convertToDstT=convert_float -D srcT1=double -D dstT1=float -D DOUBLE_SUPPORT -D COEFF=DIG(2.443128142e-05f)DIG(2.564870010e-05f)DIG(2.692095222e-05f)DIG(2.825019328e-05f)DIG(2.963864426e-05f) ...

<SNIP> DIG REPEATED MANY TIMES

... DIG(2.564870010e-05f)DIG(2.443128142e-05f)
ptxas error   : Entry function 'row_filter' uses too much shared data (0xf088 bytes, 0xc000 max)

`
... (DIG(XXXX) repeated many many times.

`
OpenCL program build log: imgproc/filterSepRow
Status -11: CL_BUILD_PROGRAM_FAILURE -D RADIUSX=281 -D LSIZE0=16 -D LSIZE1=16 -D CN=1 -D BORDER_REFLECT_101 -D NO_EXTRA_EXTRAPOLATION -D NO_BORDER_ISOLATED -D srcT=double -D dstT=float -D convertToDstT=convert_float -D srcT1=double -D dstT1=float -D DOUBLE_SUPPORT -D COEFF=DIG(1.973666804e-05f)

< SNIP >

DIG(2.564870010e-05f)DIG(2.443128142e-05f)
ptxas error   : Entry function 'row_filter' uses too much shared data (0xf088 bytes, 0xc000 max)

ptxas error   : Entry function 'row_filter' uses too much shared data (0x1d088 bytes, 0xc000 max)
ptxas error   : Entry function 'row_filter_C1_D0' uses too much shared data (0xe844 bytes, 0xc000 max)

`




### Steps to reproduce

`kern = cv2.getGaussianKernel( 700, 200, ktype=cv2.CV_64F );
kgpu = cv2.UMat(kern);
#at this point it already errors I think (it seems to error on the C side, and prints out of line)
matgpu = cv2.UMat( np.zeros( [2000,2000] ) );
filtered = cv2.sepFilter2D( matgpu, None, kgpu, kgpu );
`


### 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
- [ ] 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: vscode
Issue: Launching visual studio code from the windows explorer address bar
Labels: install-update,workbench-os-integration

<!-- ⚠️⚠️ 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: Version: 1.87.0 (user setup)
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:41:44.469Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
- OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:
1. Open an explorer window on Windows 10.
2. Type "code" in address bar
3. Windows asks for how to open the file and visual studio code is never launched. 

Expected behavior:
The expected behavior is that it should be the same as if I opened that same working directory with powershell or cmd.exe and typed code, which works.
Almost any other program launches the application with the open working directory if it's sensitive to working directories, as vscode normally is. This is very convenient. This is the only program I know of that can't be run this way on windows.
Repository: go
Issue: x/build: gotip-ios-amd64 and gotip-ios-arm64 SlowBots always fail
Labels: Builders,NeedsFix

See https://cr-buildbucket.appspot.com/build/8754129201848019169 and https://cr-buildbucket.appspot.com/build/8754129201848019153 from https://go.dev/cl/569655, which would really need testing on iOS.
Repository: ant-design
Issue: Modal keyboard focus issue
Labels: Inactive,improvement,⌨️ Accessibility

### Reproduction link

[https://ant.design/components/modal](https://ant.design/components/modal)

### Steps to reproduce

Open any modal and navigate elements by clicking on tab key. Once you reach to end of the elements (Ex: Submit button) if you click tab key one more time focus goes to an empty div element.

### What is expected?

If your focus is on last element ideally focus should go to first element inside modal (Ex: Close modal icon) when you click tab key one more time.

### What is actually happening?

Focus is going to an empty element and one more tab key press need to shift the focus to first element of the modal.

| Environment | Info |
| --- | --- |
| antd | 5.15.1 |
| React | 18.0.0 |
| System | MacOS 14.3.1 (23D60) |
| Browser | Chrome 121.0.6167.160 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: deno
Issue: Deno.command spawn stdout hangs on read
Labels: needs info

deno 1.41.1 (release, x86_64-pc-windows-msvc)
v8 12.1.285.27
typescript 5.3.3

I am trying to run a python command "python ...path/file.py"
I need to read the response to see if it started up correctly.

From deno.

```
const command = new Deno.Command(this.#command, {
    args: this.#args,
    stdout: "piped"
});

this.#childProcess = await command.spawn();
const success = await read_stdout(this.#childProcess);
```

in read_stdout I have this

```
const decoder = new TextDecoder();
const reader = process.stdout.getReader();
const read_value = (await reader.read()).value;
const text = decoder.decode(read_value);
```

but on the reader.read it just hangs for ever
Repository: transformers
Issue: TrainingArguments shouldn't set ACCELERATE_MIXED_PRECISION env variable
Labels: trainer,WIP,bug

### Feature request

When a mixed precision data type (such as `fp16`) is provided to `TrainingArguments`, it currently sets the `ACCELERATE_MIXED_PRECISION` ([cf](https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L1610)) environment variable to this mixed precision data type value.

Consequently, the `Trainer` class uses this mixed precision setting even when `TrainingArguments` are not explicitly provided as `args=training_args`.

The expected behavior should be that `Trainer` does not use mixed precision unless it's explicitly stated in the `TrainingArguments` provided as `args=training_args`.

CC: @muellerzr & @pacman100

### Motivation

I encountered this behavior while debugging a model that was producing `nan`s as output logits during training.

To troubleshoot this issue, I opted to stop providing `TrainingArguments` to `Trainer` in order to minimize potential sources of error but unfortunately that did not solved the problem.

After extensive investigation, this is how I discovered that `TrainingArguments` automatically sets `Trainer`'s mixed precision, even when not explicitly provided as an argument.

To prevent others from encountering the same debugging process, I advocate for mixed precision to be set only when explicitly required by the user by providing `TrainingArguments` to `Trainer`.

### Your contribution

I'm interested in opening a pull request to address this issue. This a good opportunity for me to learn more about the codebase.
Repository: react-native
Issue: TextInput value flickers when adding new lines
Labels: Issue: Author Provided Repro,Component: TextInput,Platform: Android,Needs: Attention

### Description

Text inside text input is flickering while going to next line as well as deleting text (video 1)

but problem solved if i give height prop instead of maxHeight to the textinput  or specify number of lines  (video 2)


code



> <TextInput
          multiline
          onFocus={() => setIsFocused(true)}
          underlineColorAndroid={'red'}
          style={{
            color: colors.text,
            // height: 350,
            fontSize: 18,
            maxHeight: 350,
            marginLeft: 5,
            width: '100%',
          }}
          textAlignVertical="top"
          spellCheck={false}
          onChange={e => setText(e.nativeEvent.text)}>
          {txt}
        </TextInput>




### Steps to reproduce

-

### React Native Version

0.73.5

### Affected Platforms

Runtime - Android

### Output of `npx react-native info`

```text
info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: "(8) x64 AMD Ryzen 3 5300U with Radeon Graphics         "
  Memory: 969.45 MB / 7.33 GB
Binaries:
  Node:
    version: 20.11.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn: Not Found
  npm:
    version: 10.5.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "21"
      - "28"
      - "29"
      - "30"
      - "31"
      - "33"
      - "34"
    Build Tools:
      - 29.0.2
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-34 | Google APIs Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    Versions:
      - 10.0.19041.0
IDEs:
  Android Studio: AI-222.4459.24.2221.10121639
  Visual Studio: Not Found
Languages:
  Java: 17.0.8
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.5
    wanted: 0.73.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
```


### Stacktrace or Logs

```text
-
```


### Reproducer

[snack.expo.dev/@akshaykhapare/carefree-blue-croissant?platform=android](https://snack.expo.dev/@akshaykhapare/carefree-blue-croissant?platform=android)

### Screenshots and Videos

video 1

https://github.com/facebook/react-native/assets/139696100/89d6f958-aefd-401e-b9dc-40a9f799abd8

video 2

https://github.com/facebook/react-native/assets/139696100/38443aae-2857-47db-b8ec-0047d9dd07fd
Repository: vscode
Issue: Git - git.stage shortcut loses file list focus
Labels: bug,scm

<!-- ⚠️⚠️ 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?: No, it's related to the git extension

<!-- 🪓 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: 
```
Version: 1.87.0 (Universal)
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:42:56.944Z (1 wk ago)
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
```


- OS Version: 
`Darwin arm64 22.5.0`

Steps to Reproduce:

1. Add this keybind in vscode: 
```json
    {
        "key": "ctrl+alt+m",
        "command": "git.stage",
        "when": "view.workbench.scm.visible"
    },
```
2. Have some unstaged files and focus on one
<img width="516" alt="image" src="https://github.com/microsoft/vscode/assets/17517057/36ccfd3d-7d2c-4cce-8df7-c4329837d67e">

3. Click ctrl + option + m to stage your selected file
4. Previously the focus would go to the next item of the list, but now the focus go to the workbench view, which is pretty annoying when you want to do that multiple times in multiple files

I used this shortcut massively last year and a recent update (something like 1-2 moths ago broke it)
Repository: deno
Issue: Add support for diagnostic data for `deno test --reporter=tap`
Labels: suggestion,testing

Hello. I am running deno tests with `deno test --reporter=tap` and would like to add additional fields (medatata) to the test output as YAML Diagnostic document. This would require some Deno test API for adding metadata, like `Deno.test({ name: "some test", metadata: { foo: "bar" }, fn: () => { ... });` and/or dynamically like `Deno.test({ name: "some test", fn: (t) => { t.set("foo", "bar"); ... });`

This would produce
```
TAP version 14
# ./foo.test.ts
ok 1 - some test
  ---
  foo: bar
  ...
```

My current workaround is to encode such metadata in the test name as JSON but then the output is ugly if other test reporter is used (eg. default one).
Repository: transformers
Issue: Track for flaky batching tests
Labels: WIP,bug,Vision

### System Info

We added a test for comparing model outputs when the input is batched or not batched in [this PR](https://github.com/huggingface/transformers/pull/29297). The assumption is that batching should not have impact on the results, disregarding numerical precision errros.

Currently, all the models pass the test, but there are 3 flaky tests. This issue is to keep track of them. The models that are flaky: MobileNetV2, DPT hybrid, VIT hybrid. I cannot give any more information except that it is flaky, so it needs more exploration.

### Who can help?

@amyeroberts for tracking

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

NA

### Expected behavior

NA
Repository: deno
Issue: Support package.json imports in current workspace
Labels: feat,node compat

Deno should probably understand imports in package.json in the current workspace.
Repository: TypeScript
Issue: [ID-Prep] Preserve type nodes from function expressions in initialisers 
Labels: Suggestion,Committed

### 🔍 Search Terms

declaration emit preserve types from functions

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

Preserve types from function expressions in initializers when emitting declarations. 

### 📃 Motivating Example

```ts

// index.ts
type P = {} & { foo: boolean };
export let fn = (p: P, p2:typeof p) => {}

// index-current.d.ts
type P = {} & { foo: boolean };
export declare let fn: (p: P, p2: {
    foo: boolean;
}) => void;
export {};

// index-proposed.d.ts
type P = {} & { foo: boolean };
export declare let fn: (p: P, p2: typeof p2) => void;
export {};

```

### 💻 Use Cases

1. What do you want to use this for? 
    This would improvement would can bring us closer to external declaration emitters being a reality.
2. What shortcomings exist with current approaches?
    An external tool can extract the type from the function expression, but then they would have different declarations. It would be great if, where possible, typescript would also preserve types as written.
3. What workarounds are you using in the meantime?
    We could force users to always specify the type even when it's obvious from the function expression, but this makes for very frustrating DX
Repository: awesome-mac
Issue: 🎉 Add goClone
Labels: addition

### 🪩 Provide a link to the proposed addition

https://github.com/shurco/goClone


### 😳 Explain why it should be added

goClone is a powerful utility that enables you to effortlessly download entire websites from the Internet and save them to your local directory.

### 📖 Additional context

One of the standout features of goClone is its ability to accurately preserve the original website's relative link structure. This means that when you open any page of the "mirrored" website in your browser, you can seamlessly navigate through the site by following links just as if you were browsing it online.

### 🧨 Issue Checklist

- [X] I have checked for other similar issues
- [X] I have explained why this change is important
- [X] I have added necessary documentation (if appropriate)
Repository: stable-diffusion-webui
Issue: [Bug]: Refiner causing memory Leak - Server crash
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] 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?

Image generation while using Refiner causes SDAI server to crash. 


### Steps to reproduce the problem

Enabling the refiner when generate images uses up ram. once image has finished generating; ram is not released. Cancelling image generation will not release ram, I can regenerate images as long as I don't enable refiner. When RAM to get up to 100% entire server will crash. 

### What should have happened?

Ram should be released after image generation when using refiner.

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

Brave

### Sysinfo


[sysinfo-2024-03-07-15-26.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14526528/sysinfo-2024-03-07-15-26.json)



### Console logs

```Shell
No errors in console
```


### Additional information

OS: running Ubuntu.
Automatic1111 v1.8.0
RAM: 16Gb
GPU: 3090 

no xformers
Repository: godot
Issue: Slider gets wrong initial value with fractional range
Labels: bug,topic:editor,regression,topic:gui

### Tested versions

4.3dev4

### System information

Ubuntu 23.04 23.04 - X11 - Vulkan (Forward+)

### Issue description

With some combination of min/max/step/value of a slider, the actual retrieved initial value from GDScript is not equal to the value set in the editor.


### Steps to reproduce

The below table lists some combinations of the properties. All other properties remain in default except for `step=0.1` for all experiments. It shows that for some combinations the actual value isn't what is expected.

min | max | value | actual initial value
---- | ---- | ---- | ---- |
0 | 100 | 0 | 0
0 | 1 | 0 | 0
0 | 0.5 | 0 | 0
-1 | 1 | 0 | 0
-0.9 | 1 | 0 | 0.1
-1.1 | 1 | 0 | -0.1
-1.4 | 1 | 0 | -0.4
-1.7 | 1 | 0 | 0.3
-1.7 | 5 | 0 | 0.3
-1.7 | 0 | 0 | 0

For what I have seen so far at least the following pattern always goes wrong:
`step` = 0.1, `value` = 0 (default), `min value` < 0 and is fractional, `max value` > 0

One case that causes error.
![Screenshot_20240307_234939](https://github.com/godotengine/godot/assets/9572364/c34f9750-72e9-4873-a654-8715af77b4a7)

How it looks like in the editor (value = 0) and how it looks like in runtime (value = 0.5)
![Screenshot_20240307_235004](https://github.com/godotengine/godot/assets/9572364/52a4318d-4825-48a6-a49f-0f4c71751ce6)


The issue seems disappear if I explicitly set `value` to something that is not the default 0 in the editor, but this is not a workaround if I truly want the initial value to be 0.


### Minimal reproduction project (MRP)

[slider_bug.zip](https://github.com/godotengine/godot/files/14526658/slider_bug.zip)

I found that after opening the project, the `value` property is automatically set to 0.5 even though the packed scene does not say that. Reset it to 0 and run the scene and one can see that the value is still 0.5.
Repository: next.js
Issue: `getServerSideProps' ctx.resolvedUrl` does not match `useRouter().asPath`
Labels: bug,Navigation,Runtime,Pages Router

### Link to the code that reproduces this issue

https://github.com/valkum/nextjs-resolved-url-repro

### To Reproduce

1. start the application in dev mode
2. load page
3. See difference between resolvedUrl and asPath
4. Click button to see req.url is no suitable replacement.

### Current vs. Expected behavior

Currently, `useRouter().asPath` is normalized in context of middleware rewrites. The `resolvedUrl` property passed to `getServerSideProps` isn't.
This makes it hard to have a publicly usable URL during SSR, e.g. for handing it of as redirect targets to login pages.
`req.url` is no suitable replacement, as it will contain `_next/data` for client side navigation.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
Binaries:
  Node: 18.17.1
  npm: 9.6.7
  Yarn: 4.1.1
  pnpm: 8.6.9
Relevant Packages:
  next: 14.2.0-canary.6 // Latest available version is detected (14.2.0-canary.6).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Data fetching (gS(S)P, getInitialProps), Middleware / Edge (API routes, runtime), Routing (next/router, next/navigation, next/link)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), Other (Deployed)

### Additional context

_No response_