sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Profiling Torch.compile (with_stack=True) leads to frozen program with massive memory.
Labels: triaged,oncall: profiler,oncall: pt2

### 🐛 Describe the bug

I am using gemma-2b with [vllm](https://github.com/vllm-project/vllm). If I torch.compile(fullgraph=False, backend='inductor') and then profile model.generate in vllm using: 
```
    with torch.profiler.profile(
        activities=[torch.profiler.ProfilerActivity.CPU, torch.profiler.ProfilerActivity.CUDA],
        with_stack=True,
        experimental_config=torch._C._profiler._ExperimentalConfig(verbose=True),
    ) as prof:
 
```
the profiler runs forever and shows huge memory load. If I profile with
```
    with torch.profiler.profile(
        activities=[torch.profiler.ProfilerActivity.CPU, torch.profiler.ProfilerActivity.CUDA],
        with_modules=True,
        experimental_config=torch._C._profiler._ExperimentalConfig(verbose=True),
    ) as prof:
 
``` 
the job finishes in ~40 seconds.

### Error logs

_No response_

### Minified repro

_No response_

### Versions

torch==2.4.0+cu118
torchmetrics>=1.4.2
vllm @ https://github.com/vllm-project/vllm/releases/download/v0.5.4/vllm-0.5.4+cu118-cp310-cp310-manylinux1_x86_64.whl
vllm-flash-attn @ https://github.com/vllm-project/flash-attention/releases/download/v2.6.1/vllm_flash_attn-2.6.1+cu118-cp310-cp310-manylinux1_x86_64.whl


cc @robieta @chaekit @aaronenyeshi @guotuofeng @guyang3532 @dzhulgakov @davidberard98 @briancoutinho @sraikund16 @sanrise @ezyang @chauhang @penguinwu
Repository: react
Issue: forceUpdate not work in child component GuardGraph 
Labels: Status: Unconfirmed,Resolution: Stale

```
export default function GuardSetting (props:any) {
  const [, forceUpdate] = useReducer(x => x + 1, 0);

    return (
      <Paper sx={{ width: '100%', pt:'1em', }} >
        <SettingHeader name={'Launch Guard'}/>
        <ReactFlowProvider>
          <GuardGraph {...props} forceUpdate={forceUpdate}/>
        </ReactFlowProvider>
      </Paper>
    );
}
```

Is there any more elegant way to refresh GuardGraph without using window.location.reload()?
Thx.
Repository: kubernetes
Issue: WithRoutine loses stack information
Labels: sig/api-machinery,triage/accepted

https://github.com/kubernetes/kubernetes/blame/v1.31.1/staging/src/k8s.io/apiserver/pkg/server/routine/routine.go#L73-L82 catches a panic in one goroutine and relays the `recover`ed value to another but loses the stack information. The relayed value gives no indication of its origin.
Repository: fastapi
Issue: Optional form field not working with test client
Labels: question

### Discussed in https://github.com/fastapi/fastapi/discussions/12227

<div type='discussions-op-text'>

<sup>Originally posted by **MartinAchtnerAA** September 19, 2024</sup>
### First Check

- [X] I added a very descriptive title here.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I searched the FastAPI documentation, with the integrated search.
- [X] I already searched in Google "How to X in FastAPI" and didn't find any information.
- [X] I already read and followed all the tutorial in the docs and didn't find an answer.
- [X] I already checked if it is not related to FastAPI but to [Pydantic](https://github.com/pydantic/pydantic).
- [X] I already checked if it is not related to FastAPI but to [Swagger UI](https://github.com/swagger-api/swagger-ui).
- [X] I already checked if it is not related to FastAPI but to [ReDoc](https://github.com/Redocly/redoc).

### Commit to Help

- [X] I commit to help with one of those options 👆

### Example Code

```python
from typing import Annotated, Literal, Optional

from fastapi import FastAPI, Form
from fastapi.testclient import TestClient

app = FastAPI()

@app.post("/")
async def read_main(
    attribute : Annotated[Optional[Literal["abc", "def"]], Form()]
):
    print(attribute)


client = TestClient(app)


data = {}
data["attribute"] = None

response = client.post("/", data=data)
print(response.content)
assert response.status_code == 200
```


### Description

In FastAPI 0.113 .0 the above code passes.
Since version 0.114.0 the response is a 422 status code with error message '{"detail":[{"type":"literal_error","loc":["body","attribute"],"msg":"Input should be \'abc\' or \'def\'","input":"","ctx":{"expected":"\'abc\' or \'def\'"}}]}'

### Operating System

macOS

### Operating System Details

_No response_

### FastAPI Version

0.114.0

### Pydantic Version

2.9.1

### Python Version

3.12.3

### Additional Context

_No response_</div>
Repository: flutter
Issue: [in_app_purchase] [iOS] Can not load the storekit configure
Labels: c: crash,platform-ios,p: in_app_purchase,package,P2,team-ios,triaged-ios

### Steps to reproduce

1. Create storekit configuration and add product with certain id
2. Edit scheme and add storekit into scheme
3. Call function queryProductDetails with certain id and not return product

### Expected results

Call function queryProductDetails and return the product which setup in the Storekit configuration file 

### Actual results

Call function queryProductDetails and throw storekit_getproductrequest_platform_error

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: vscode
Issue: AbstractContextKeyService has been disposed
Labels: error-telemetry,diff-editor

```javascript
Error: AbstractContextKeyService has been disposed
at p.contextMatchesRules in src/vs/platform/contextkey/browser/contextKeyService.ts:319:10
at i.createActionGroups in src/vs/platform/actions/common/menuService.ts:285:33
at d.getActions in src/vs/platform/actions/common/menuService.ts:453:25
at h._getValue in src/vs/editor/browser/widget/diffEditor/features/gutterFeature.ts:40:97
at d.r [as value] in src/vs/base/common/observableInternal/utils.ts:132:25
at I.B in src/vs/base/common/event.ts:1242:13
at I.fire in src/vs/base/common/event.ts:1273:9
at I.resume in src/vs/base/common/event.ts:1421:12
at <anonymous> in src/vs/base/common/event.ts:1460:10
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40&bH=62815915-3e6b-41fb-0ad2-d3bc5b736598)
Repository: vscode
Issue: Soft Assertion Failed
Labels: error-telemetry,diff-editor

```javascript
Error: Soft Assertion Failed
at k in src/vs/base/common/assert.ts:43:21
at new l in out/vs/workbench/workbench.desktop.main.js:710:66180
at <anonymous> in src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.ts:109:6
at Array.map (<anonymous>)
at b._runFn in src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.ts:107:69
at b.j in src/vs/base/common/observableInternal/autorun.ts:196:10
at b.endUpdate in src/vs/base/common/observableInternal/autorun.ts:237:10
at c.finish in src/vs/base/common/observableInternal/base.ts:372:13
at b in src/vs/base/common/observableInternal/base.ts:306:6
at d.value in out/vs/workbench/workbench.desktop.main.js:710:69329
at l.B in src/vs/base/common/event.ts:1242:13
at l.C in src/vs/base/common/event.ts:1253:9
at l.fire in src/vs/base/common/event.ts:1277:9
at d.value in src/vs/editor/browser/widget/codeEditor/codeEditorWidget.ts:1721:38
at l.B in src/vs/base/common/event.ts:1242:13
at l.fire in src/vs/base/common/event.ts:1273:9
at v.s in src/vs/editor/common/viewModelEventDispatcher.ts:64:18
at v.endEmitViewEvents in src/vs/editor/common/viewModelEventDispatcher.ts:109:8
at <anonymous> in src/vs/editor/common/viewModel/viewModelImpl.ts:412:27
at listener in src/vs/editor/common/model/textModel.ts:236:38
at l.B in src/vs/base/common/event.ts:1242:13
at l.fire in src/vs/base/common/event.ts:1273:9
at oe.endDeferredEmit in src/vs/editor/common/model/textModel.ts:2512:23
at K.pushEditOperations in src/vs/editor/common/model/textModel.ts:1278:23
at w.updateModel in src/vs/editor/common/services/modelService.ts:384:9
at P.updateTextEditorModel in src/vs/workbench/common/editor/textEditorModel.ts:207:22
at P.Gb in src/vs/workbench/services/textfile/common/textFileEditorModel.ts:572:9
at P.Eb in src/vs/workbench/services/textfile/common/textFileEditorModel.ts:534:9
at P.Db in src/vs/workbench/services/textfile/common/textFileEditorModel.ts:464:16
at async P.resolve in src/vs/workbench/services/textfile/common/textFileEditorModel.ts:302:3
at async n.W in src/vs/workbench/services/textfile/common/textFileEditorModelManager.ts:421:4
at async n.U in src/vs/workbench/services/textfile/common/textFileEditorModelManager.ts:327:3
at async Object.factory in src/vs/workbench/services/textfile/common/textFileEditorModelManager.ts:166:6
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40&bH=83165f02-78c5-2db6-bf7b-6d13cb1a92f6)
Repository: ollama
Issue: How to use embedding models from huggingface hub?
Labels: feature request

Hi thanks for the lib! I want to use some embedding models (arch is bert) from hf hub. I have tried gguf, but the converter says bert arch cannot be converted to that. I have also tried directly have a modelfile to import safetensors, but it says `Error: unsupported content type: unknown`
Repository: excalidraw
Issue: Unable to search the Help modal
Labels: bug

**Problem**
I noticed that after implementing the "Find on Canvas" feature, it has become impossible to search for a specific keyboard shortcut in the "Help" modal using the browser's "Find in Page" shortcut. 

This issue seems to have arisen because the event appears to be intercepted by the custom implementation.

**Expected**
"Find on canvas" should be triggered only while you're focusing the canvas, right?
Repository: node
Issue: parallel/test-worker-message-port-infinite-message-loop is flaky 
Labels: flaky-test,linux

### Test

test-worker-message-port-infinite-message-loop

### Platform

Linux x64

### Console output

```console
---
duration_ms: 104.844
exitcode: 1
severity: fail
stack: |-
  node:internal/event_target:1090
    process.nextTick(() => { throw err; });
                             ^

  AssertionError [ERR_ASSERTION]: hit 10001 loop iterations
      at MessagePort.<anonymous> (/home/iojs/build/workspace/node/test/parallel/test-worker-message-port-infinite-message-loop.js:22:3)
      at [nodejs.internal.kHybridDispatch] (node:internal/event_target:816:20)
      at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: false,
    expected: true,
    operator: '=='
  }

  Node.js v23.0.0-pre
...
```


### Build links

- https://ci.nodejs.org/job/node-test-commit-linux/60803/nodes=rhel8-x64/testReport/junit/(root)/parallel/test_worker_message_port_infinite_message_loop/

### Additional information

_No response_
Repository: neovim
Issue: undo region, multibuffer (many buffers stitched together as one virtual buffer)
Labels: enhancement,complexity:high,gsoc,editor-state,editor

### Problem

The ability to select a region of the file (probably via visual selection would be most popular), and then undo only operations that affected that region.

That is, make it possible to do some changes in some file region, move to another part of the file, make other changes, and then undo just the changes in the first part. 

A classical use case is adding debug. prints in different areas of a file. Currently, one has to manually revert any debugging changes made in each region once the problem is determined to be somewhere else.

I realize this is "out there" but I find myself missing this feature frequently enough to at least ask.

### Expected behavior

Having some variant of `u` and/or `U` which would apply only to the currently selected region. The key binding is the least of the problem here. Undo would be linear (reverse order of changes) for all operations that affected the region. For operations that also had impact outside the region, it is a question whether to include them or not; I tend towards "yes" but that might need to be configured or controlled somehow.
Repository: fastapi
Issue: OpenAPI servers not being returned according how the docs say they should be
Labels: question

### Discussed in https://github.com/fastapi/fastapi/discussions/12226

<div type='discussions-op-text'>

<sup>Originally posted by **mzealey** September 19, 2024</sup>
### First Check

- [X] I added a very descriptive title here.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I searched the FastAPI documentation, with the integrated search.
- [X] I already searched in Google "How to X in FastAPI" and didn't find any information.
- [X] I already read and followed all the tutorial in the docs and didn't find an answer.
- [X] I already checked if it is not related to FastAPI but to [Pydantic](https://github.com/pydantic/pydantic).
- [X] I already checked if it is not related to FastAPI but to [Swagger UI](https://github.com/swagger-api/swagger-ui).
- [X] I already checked if it is not related to FastAPI but to [ReDoc](https://github.com/Redocly/redoc).

### Commit to Help

- [X] I commit to help with one of those options 👆

### Example Code

```python
from fastapi import FastAPI

app = FastAPI()

# you can add a test endpoint here or not - same bug either way
```


### Description

```
$ curl localhost:8$ curl localhost:8000/openapi.json
{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{}}
```

According to the documentation of the `servers` parameter in FastAPI:

> If the servers list is not provided, or is an empty list, the default value would be a dict with a url value of /.

(assuming that `root_path_in_servers = True` (the default))

Clearly this is not happening.

### Operating System

Linux

### Operating System Details

_No response_

### FastAPI Version

0.110.3 (but according to github code seems to be in latest also)

### Pydantic Version

2.5.3

### Python Version

Python 3.10.12

### Additional Context

_No response_</div>
Repository: godot
Issue: Clarify that secure websocket connections need valid certiifcates on Web
Labels: discussion,platform:web,documentation,needs testing,topic:network

### Tested versions

4.3
4.3.dev2
4.3.custom_build.nothreads

### System information

Any OS, wasm32

### Issue description

When there are SSL issues while connecting a websocket, Godot doesn't provide any useful output to the user. The current output is `WebSocket connection to <url> failed:`.

**Solution:** There should be a note of this in the documentation, and/or a friendlier error message.


<details>
<summary>Old Description (Resolved)</summary>

Trying to use websockets always results in the error `WebSocket connection to <url> failed:`.

It works perfectly fine on any other platform's native builds.

Surprisingly, the **server is accepting a connection**, but the client never connects, resulting in an error on the server side as soon as the connection drops.

### Steps to reproduce

- Open Devtools
- ~~Go to swarkin.github.io/wsclicker/~~ Not available anymore, the issue has been identified in this discussion.
- Notice error in console `WebSocket connection to 'wss://srv.kackadu.de:25569/' failed:` with no information

Line where the connection is started: https://github.com/Swarkin/wsclicker/blob/main/client/client.gd#L35

### Minimal reproduction project (MRP)

I do not have the time to make a MRP but this is the project that has the issue: https://github.com/Swarkin/wsclicker
It is split into server and client folders and has an export configuration that is used for exporting. (Note: Exporting in release mode for web does not work and instead falls back to a debug build.)

</details>
Repository: pytorch
Issue: an illegal memory access was encountered global exception
Labels: needs reproduction,triaged

### 🐛 Describe the bug

/tmp/tmpvmyol3082.jpg v1.4 2.0
Error CUDA error: an illegal memory access was encountered
global exception:  local variable 'output' referenced before assignment

### Versions

/tmp/tmpvmyol3082.jpg v1.4 2.0
Error CUDA error: an illegal memory access was encountered
global exception:  local variable 'output' referenced before assignment

pls solve this
Repository: godot
Issue: Evaluate selection (Ctrl+Shift+E) does not parse underscores
Labels: enhancement,topic:core,usability

### Tested versions

v4.3.1.rc.custom_build [d40fc50f0]
4.4 on latest master

### System information

Godot v4.3.1.rc (d40fc50f0) - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Wed Aug  7 16:19:28 UTC 2024 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XT (RADV NAVI31) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)

### Issue description

In the script editor, selecting an expression and pressing the shortcut for Evaluate Selection does just what the name suggests, e.g. selecting `10+24` will transform the selection into `34`. However, for larger numbers, or any number where you put underscores for readability, e.g. `500+10_000`, all characters starting from the underscore are ignored, which results in `510` instead of `10500`.

### Steps to reproduce

* Type an expression in the script editor, with one number containing an underscore.
* Press the Evaluate Selection shortcut (or select it from the context menu).
* The result will not consider any characters after the underscore and will simply remove them.

### Minimal reproduction project (MRP)

N/A
Repository: ollama
Issue: InternVL 2.0 models
Labels: model request

The models are listed here:
https://huggingface.co/collections/OpenGVLab/internvl-20-667d3961ab5eb12c7ed1463e

1B: https://huggingface.co/OpenGVLab/InternVL2-1B
2B: https://huggingface.co/OpenGVLab/InternVL2-2B
4B: https://huggingface.co/OpenGVLab/InternVL2-4B
8B: https://huggingface.co/OpenGVLab/InternVL2-8B
26B: https://huggingface.co/OpenGVLab/InternVL2-26B
40B: https://huggingface.co/OpenGVLab/InternVL2-40B
76B: https://huggingface.co/OpenGVLab/InternVL2-Llama3-76B
Repository: rust
Issue: Tracking Issue for secure random data generation in `std`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(random)]`

This is a tracking issue for secure random data generation support in `std`.

Central to this feature are the `Random` and `RandomSource` traits inside `core::random`. The `Random` trait defines a method to create a new random value of the implementing type from random bytes generated by a `RandomSource`. `std` also exposes the platform's secure random number generator via the `DefaultRandomSource` type which can be conveniently access via the `random::random` function.

### Public API

```rust
// core::random

pub trait RandomSource {
    fn fill_bytes(&mut self, bytes: &mut [u8]);
}

pub trait Random {
    fn random(source: &mut (impl RandomSource + ?Sized)) -> Self;
}

impl Random for bool { ... }
impl Random for /* all integer types */ { ... }

// std::random (additionally)

pub struct DefaultRandomSource;

impl RandomSource for DefaultRandomSource { ... }

pub fn random<T: Random>() -> T { ... }
```

### Steps / History

- [x] ACP: https://github.com/rust-lang/libs-team/issues/393
- [x] Implementation: #129201 
- [ ] Final comment period (FCP)[^1]
- [ ] Stabilization PR

### Unresolved Questions

- Naming: the ACP used `gen_bytes` and `DefaultRng`, the implementation PR uses `fill_bytes` and `DefaultRandomSource` (see arguments [pro `gen_bytes`](https://github.com/rust-lang/rust/pull/129120#issuecomment-2291690304) and [pro `fill_bytes`](https://github.com/rust-lang/rust/pull/129120#issue-2467909370))
- Concerns listed at https://github.com/rust-lang/libs-team/issues/393#issuecomment-2563932047 should be addressed

[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
Repository: rust
Issue: Tracking issue for removing unnecessary `ty::Const::{normalize,eval}` calls from the type system
Labels: A-const-generics,T-types

We want to remove calls to `ty::Const::{normalize,eval,eval_to_*}` because they won't work correctly with future reformulations of GCE, and because they're unnecessary with non-GCE consts. This issue tracks doing that so I won't forget. Boxy can probably write more motivation here idk

Boxy rationale:
>  with `min_generic_const_args` and `associated_const_equality` featuers normalization of type system constants will be behaving much more like types. They'll return nested goals, access in scope whjere clauses such as `T: Trait<ASSOC = 10>` in order to normalize instead of simply "evaluating".
> 
> This means that the only correct way to normalize a `ty::Const` will be to use the "normal" normalization routines such as `normalize_erasing_regions` or `infcx/ocx/fcx.normalize`. With that in mind all of the `eval_x` and `normalize` methods on `ty::Const` become massive footguns as they are never correct to use.

- [x] Remove eval calls from codegen (#130644)
    - [ ] Replace calls to `eval_bits` with `try_to_bits`, which I forgot in codegen lol
- [x] Normalize writeback results (#130645)
    - [x] Replace calls to `eval` from `mir_build` and `pattern_analysis` in now that writeback results are normalized (#130715)
- [x] Add `structurally_resolve_const` for use in `FnCtxt`/`hir_typeck` (#130714)
    - [x] Replace calls to `eval_*` with `structurally_resolve` + `try_to_*` in hir typeck
- [ ] Audit remaining calls to `eva;/normalize` post-borrowck, replacing them with their `try_to_*` variants + possibly normalizing depending on the source of the const.

More:
* #130712

cc @BoxyUwU
Repository: vscode
Issue: Ghost text flickers before suggestions show
Labels: polish,inline-completions

Repro:

1. At this line https://github.com/microsoft/vscode/blob/90a07a11c27b2dcbf14cb0b01902b4f8aa32887d/src/vs/editor/browser/services/hoverService/hoverWidget.ts#L52
2. Press enter
3. Press `r`, 🐛 ghost text appears briefly then suggestions show up and invalidate it

![Image](https://github.com/user-attachments/assets/7aedbd9c-5b4a-44b5-aad4-80c2f24858f7)

If there's completion providers in progress, we should wait to show ghost text so we don't flicker the suggestion and cause noise.
Repository: vscode
Issue: Do not present ghost text when code is deleted or undone
Labels: papercut :drop_of_blood:,inline-completions

This is my main annoyance with ghost text, when I delete text I frequently end up accidentally triggering ghost text again, then undo and it fills again. Here are some cases when trying to put them together just now, but there is a case where I've accidentally triggered the ghost text ~3x times before I intentionally overrode my muscle memory and pressed escape to dismiss the ghost text.

## I want to delete the line and indent

1. Select line (end, shift+home)
2. Backspace
3. Tab, 🐛 ghost text is filled, not indenting

![Image](https://github.com/user-attachments/assets/84f58d5f-cf66-492c-b73a-37e22937774e)

1. At this line https://github.com/microsoft/vscode/blob/90a07a11c27b2dcbf14cb0b01902b4f8aa32887d/src/vs/editor/browser/services/hoverService/hoverWidget.ts#L52
2. Press enter
3. Press r, `eturn` ghost text appears
4. Press backspace, 🐛 `return` ghost text appears before being invalidated by a new request

This particular case where we keep old suggestions around means that the editor is less deterministic and slower to use. If I press backspace and tab, it will either complete the ghost text or indent, depending on how quickly I type 😱

![Image](https://github.com/user-attachments/assets/af75fb65-8400-480d-89c1-cfc5c39701ba)

## Ghost text remains when de-indenting

1. In a markdown file
2. Tab to indent after a list item, ghost text shows
3. Shift+tab or backspace, 🐛 ghost text remains

![Image](https://github.com/user-attachments/assets/564e45d3-f8c4-4dd4-8a21-2ef8281d20eb)