sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: I started 3 WebUI servers on one Nvidia GPU L40, the generation with one Lora prompt will be very slow, about 10mins for one picture
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

 I started 3 WebUI servers on one Nvidia GPU L40, the generation with one Lora prompt will be very slow, about 10mins for one picture

### Steps to reproduce the problem

 I started 3 WebUI servers on one Nvidia GPU L40, the generation with one Lora prompt will be very slow, about 10mins for one picture

### What should have happened?

When i do not use the Lora, the generation process is very quick, about the 30s but once use Lora would be 10 mins

### Sysinfo

ubuntu 20.04

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

_No response_

### Console logs

```Shell
no log when generation before the progress bar exists
```


### Additional information

_No response_
Repository: godot
Issue: Directly setting RigidBody2D `freeze` property in `area_entered` callback doesn't properly work reliably depending on the `freeze_mode`
Labels: bug,discussion,topic:physics,topic:2d

### Godot version

v4.2.rc2.official [1ba920fad]

### System information

Windows 10, Vulkan

### Issue description

set freeze property of RigidBody2D not effect after set linear_velocity and start moving object and freeze_mode is static but when freeze_mode is kinematic it works ok and stops moving.

### Steps to reproduce

1- Created a ball using RigidBody2D
2- Handle mouse input and set linear_velocity of ball to a custom value to start moving the ball.
3- On ball input in a Area2d event set $ball.freeze = true.
4- ball will continue moving when freeze_mode is static but that will stops moving when freeze_mode is kinematic.

### Minimal reproduction project

[TestRigidBody2D.zip](https://github.com/godotengine/godot/files/13466174/TestRigidBody2D.zip)
Test with freeze_mode = static and kinematic
Repository: godot
Issue: instantiate packed scene with editable children and editor connected signal cause error "signal already connected"
Labels: bug,topic:core,confirmed,needs testing

### Godot version

4.2.rc2

### System information

win11

### Issue description

instantiate packed scene with editable children and editor connected signal cause error "signal already connected"

![image](https://github.com/godotengine/godot/assets/91177204/cc25d492-82be-4867-b9ae-4c334c561ec2)
![image](https://github.com/godotengine/godot/assets/91177204/bb1127e3-a764-4750-9393-a222fa6bf30c)

![image](https://github.com/godotengine/godot/assets/91177204/3c9aa9e0-3138-4f3c-971f-f63e49392e25)
![image](https://github.com/godotengine/godot/assets/91177204/5efd5f80-aa1d-4f07-89d8-9b58bb05891b)
![image](https://github.com/godotengine/godot/assets/91177204/141ca058-756e-4dbd-b26d-95d423970852)



### Steps to reproduce

1. make a scene with a signal connection via editor(from child to parent). 
2. make another scene, add the previous scene as a child, and turn on "editable children". 
3. make yet another scene, then add the new scene in step 2 as a child
4. in the third scene, use PackedScene.pack() to pack the child
5. instantiate the packed scene
6. observe the error "Signal '****' is already connected to given callable"



### Minimal reproduction project

[BugSignalBug.zip](https://github.com/godotengine/godot/files/13466207/BugSignalBug.zip)
Repository: pytorch
Issue: [torch.jit.script] Torchscript produces incorrect result when argmax result is used in indexing
Labels: oncall: jit

Here is a minimum working example to reproduce the issue.
This function works on a 2-d array, when given a location (i, j), it iteratively mask out any value greater or equal to t[i, j] in the i-th row.

```
import torch

def test(t, i: int, j: int):
    while t[i, j] > 0:
        k = t[i].argmax()
        t[i, k].fill_(-1)
    return t

t = torch.arange(12).view([2, -1])
print(test(t, 0, 3))
test = torch.jit.script(test)
print(test.code)
t = torch.arange(12).view([2, -1])
# test(t, 0, 3)  # THIS HANGS THE PROCESS, DO NOT EXECUTE
```
Looking at the output, we see the raw function gets correctly executed.
However, the compiled code is an infinite loop and the fill_ operation is nowhere to be found.
```
tensor([[ 0,  1,  2, -1, -1, -1],
        [ 6,  7,  8,  9, 10, 11]])
def test(t: Tensor,
    i: int,
    j: int) -> Tensor:
  _0 = torch.select(torch.select(t, 0, i), 0, j)
  _1 = bool(torch.gt(_0, 0))
  while _1:
    _2 = torch.select(torch.select(t, 0, i), 0, j)
    _1 = bool(torch.gt(_2, 0))
  return t
```


### Versions

PyTorch version: 2.1.0+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Pro
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.25.0-rc2
Libc version: N/A

Python version: 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19045-SP0
Is CUDA available: True
CUDA runtime version: 11.8.89
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3080
Nvidia driver version: 546.17
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3792
DeviceID=CPU0
Family=198
L2CacheSize=2048
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=3792
Name=Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
ProcessorType=3
Revision=

Versions of relevant libraries:
[pip3] numpy==1.23.4
[pip3] torch==2.1.0+cu118
[pip3] torch-tb-profiler==0.4.3
[pip3] torchaudio==2.1.0+cu118
[pip3] torchvision==0.16.0+cu118
[conda] Could not collect

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: next.js
Issue: Google Tag Manager event "History change" is no longer fired in Next.js 14.0.3
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/manuelseisl/next-js-demo

### To Reproduce

1. Change GTM ID in layout.jsx
2. Start application
3. Go to GTM preview mode
4. Navigate between pages

### Current vs. Expected behavior

The Google Tag Manager event "History change" is no longer fired in Next.js 14.0.3.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: 1.22.19
  pnpm: 8.8.0
Relevant Packages:
  next: 14.0.3
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


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

App Router, Routing (next/router, next/navigation, next/link)

### Additional context

I tested my reproduction against different versions and canary releases, and the first one that introduced the bug was “14.0.3”, when switching back to “14.0.2” it works.
Repository: fastapi
Issue: `Annotated` dependencies are interpreted incorrectly when using `PEP 695`-style type alias.
Labels: question

### Discussed in https://github.com/tiangolo/fastapi/discussions/10662

<div type='discussions-op-text'>

<sup>Originally posted by **Rockmizu** November 16, 2023</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 __future__ import annotations

from typing import Annotated, TypeAlias

from fastapi import Depends, FastAPI

app = FastAPI()


# dependency
async def some_value() -> int:
    return 123

# This works.
DependedValue: TypeAlias = Annotated[int, Depends(some_value)]

# This won't work.
# type DependedValue = Annotated[int, Depends(some_value)]


@app.get('/')
async def get_with_dep(value: DependedValue) -> str:
    print(f'{type(value) = !r}')
    print(f'{value = !r}')

    assert isinstance(value, int), '`value` should be an integer.'
    assert value == 123, '`value` should be 123.'

    return f'value: {value}'
```


### Description

When using the method in line 15:
```python
DependedValue: TypeAlias = Annotated[int, Depends(some_value)]
```
to declare a type alias, FastAPI correctly interprets it and fills the `value` with `123` for `get_with_dep`.

However, when using the new type alias syntax introduced in Python 3.12 (line 18):
```python
type DependedValue = Annotated[int, Depends(some_value)]
```
FastAPI interprets it as a URL query parameter and responds with HTTP 422 Unprocessable Entity when accessing `/`.


## Expected Response

HTTP 200 OK

```
"value: 123"
```


## Actual Response

HTTP 422 Unprocessable Entity

```
{"detail":[{"type":"missing","loc":["query","value"],"msg":"Field required","input":null,"url":"https://errors.pydantic.dev/2.5/v/missing"}]}
```


### Operating System

Windows

### Operating System Details

_No response_

### FastAPI Version

0.104.1

### Pydantic Version

2.5.1

### Python Version

Python 3.12.0

### Additional Context

_No response_</div>
Repository: flutter
Issue: `RefreshIndicator` needs to support a different color for `armed` state
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Right now when you pull down from the top of the screen to force a refresh, via `RefreshIndicator`, the only indication you get that the refresh action is armed is that the floating indicator stops animating (stops moving vertically, and stops spinning), even when you keep dragging down past the maximum drag position. This is a very unsatisfying way to tell the user that something new will happen on touch-up.

### Proposal

Really the refresh indicator should also take an `armedColor` parameter, and the indicator should show this color when the refresh action is armed.

I tried adding this in PR #139016, but it didn't work properly, so I closed that PR. I don't know how to properly implement this, because I don't understand Flutter's animation framework well enough yet. See #139016, although that PR doesn't actually work properly.
Repository: go
Issue: maps: inconsistent panic in Copy with nil dst
Labels: NeedsInvestigation

The `maps.Copy` function panics if the destination map is `nil` and the source map is not empty (`dst == nil && len(src) > 0`)

```go
var dst map[string]int
maps.Copy(dst, map[string]int(nil))    // no panic
maps.Copy(dst, map[string]int{})       // no panic
maps.Copy(dst, map[string]int{"a": 1}) // panic
```

This behavior is not currently documented.

I propose to panic if `dst` is `nil`, independently from `src`, and document it. The updated behavior would be

```go
var dst map[string]int
maps.Copy(dst, map[string]int(nil))    // panic
maps.Copy(dst, map[string]int{})       // panic
maps.Copy(dst, map[string]int{"a": 1}) // panic
```
Repository: fastapi
Issue: functools.partial() does not work on an async dependable
Labels: question,investigate

### Discussed in https://github.com/tiangolo/fastapi/discussions/9744

<div type='discussions-op-text'>

<sup>Originally posted by **lieryan** June 26, 2023</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 functools import partial

from fastapi import FastAPI, Depends


app = FastAPI()

def the_answer():
    return 42


async def dep1(
    n: int = Depends(the_answer),
):
    return n + 1

@app.get("/")
def main(
    d1=Depends(partial(dep1, n=10)),
):
    print(d1)   # prints "<coroutine object dep1 at 0x7facc996fb50>"
    return {}


if __name__ == '__main__':
    import uvicorn
    uvicorn.run(app, port=1122)
```


### Description

I would've expected `d1` above to be the return value of the dependable, but it seems like fastapi didn't identify the partial as an coroutine function and instead passed the unawaited coroutine into the view function.

`inspect.iscoroutinefunction()` and `inspect.signature()` were able to deconstruct the partial object to correctly identify whether a partial contains a coroutine or a regular function, so it seems like it should've been possible for FastAPI to use handle partial correctly:

```
In [5]: def regular(a, b): pass

In [6]: async def coro(a, b): pass

In [7]: inspect.iscoroutinefunction(partial(regular, 1))
Out[7]: False

In [8]: inspect.iscoroutinefunction(partial(coro, 1))
Out[8]: True

In [20]: inspect.signature(partial(coro, 1))
Out[20]: <Signature (b)>
```
 

### Operating System

Linux

### Operating System Details

_No response_

### FastAPI Version

0.98.0

### Python Version

Python 3.10.6

### Additional Context

_No response_</div>
Repository: transformers
Issue: implement TemplateConstraints in class transformers.Constraint
Labels: Feature request,Good Difficult Issue

### Feature request

Hello,

I recently came across your [blog post](https://huggingface.co/blog/constrained-beam-search) on constrained beam search and I am thrilled to see such implementations being made available. They are quite impressive!

Currently, I find myself in need of the feature `TemplateConstraints` It would greatly benefit my ongoing projects. Could you please provide an estimate on when this feature might be implemented, or if it is already in the pipeline?

Thank you for your hard work and for providing the community with such valuable tools. I look forward to your response.

Best regards,



### Motivation

My motivation is that I want to implement something like function calling in ChatGPT and this feature opens many doors.

### Your contribution

i dont know about it.
Repository: godot
Issue: Input.get_connected_joypads().size() = 1 on Android?
Labels: enhancement,discussion,topic:thirdparty,topic:input

### Godot version

4.1.3.stable

### System information

Godot v4.1.3.stable - macOS 12.6.1 - Vulkan (Mobile) - integrated Apple M1 - Apple M1 (8 Threads)

### Issue description

For some reason, `Input.get_connected_joypads().size()` returns `1` constantly on my Android phone.
Could it be potentially detecting the fingerprint sensor as a controller?
My Bluetooth is off, so nothing can connect to it.

On my MacBook Pro, it returns 0. This causes issues because I have buttons I need to hide when a controller isn't connected but if Android is reporting 1 and other devices may report 0, I've got a bigger issue :/

<img width="670" alt="image" src="https://github.com/godotengine/godot/assets/69256931/272522e1-618c-4203-9227-11fbcbe37f61">

### Steps to reproduce

1. Print the output of `Input.get_connected_joypads().size()` on an Android device.
2. Always returns '1'.

### Minimal reproduction project

N/A, but I'll provide one anyway.
[Project.zip](https://github.com/godotengine/godot/files/13466688/Project.zip)
Repository: electron
Issue: [Bug]: requestSingleInstanceLock({ myEmptyArray: [] }) - additionalData is { myEmptyArray: [] } on Linux ✅ but null on Windows ❌
Labels: bug :beetle:,has-repro-gist,27-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

`v27.1.0`

Update 2024/12: `v33.2.1`

### Operating System Version

Windows 11 Home | Linux x86_64

### What arch are you using?

x64

### Last Known Working Electron version

Not sure

### Expected Behavior

Windows should behave like **Linux** and prints
```javascript
// console.log(additionalData);
{ myEmptyArray: [] }
```
![linux-electron](https://github.com/electron/electron/assets/86177399/400b8326-da1b-4a89-8c08-008fb65d2023)


### Actual Behavior

On **Windows**, we get
```javascript
// console.log(additionalData);
null
```

![windows-electron](https://github.com/electron/electron/assets/86177399/1d42379f-6794-49d6-874d-46416fd62d63)

### Testcase Gist URL

https://gist.github.com/6b77dd48dc95b711267c62fb9cd5c939

Edit: added further instructions in a [separate comment below](https://github.com/electron/electron/issues/40615#issuecomment-1826804872).

### Additional Information

In addition to the gist above, I've created a [minimal reproducible example GitHub repository](https://github.com/nktnet-bug-report/electron).

The example uses the [electron-quickstart-template](https://github.com/electron/electron-quick-start).

The feature in question is [app#apprequestsingleinstancelockadditionaldata](https://www.electronjs.org/docs/latest/api/app#apprequestsingleinstancelockadditionaldata).

The example adds the code in [this commit](https://github.com/nktnet-bug-report/electron/commit/e5c9bb2aabe7ad68ce2f557513e13775672d2a8d) to the template:

```javascript
// At the very top, after imports
if (!app.requestSingleInstanceLock({ myEmptyArray: [] })) {
  app.quit();
  process.exit(0);
}

app.on('second-instance', (_event, _commandLine, _workingDirectory, additionalData) => {
  console.log('second-instance additionalData:', additionalData);
});
```

If the array isn't empty (e.g. `[1]` or `['']` instead of `[]`), Windows behaves as expected similar to Linux.
Repository: PowerToys
Issue: PowerToys Run - Enable filters like: included/excluded paths, adding specific apps and files, wildcards
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

Include non-indexed locations and paths, e.g. folders with portable apps
Exclude individual paths, e.g. system folders, repository folders
Include/exclude specific apps and files, e.g. "Uninstall.exe"
Include/exclude filters using wildcards, e.g. "Uninst*.exe", "config*.ini"

### Scenario when this would be used?

My Scenario: I use 3 parallel Windows on the PC for different use (Administration and Backup / Office / Gaming). Therefore an additional partition holds many 'portable' apps. This is necessary to keep settings and history 'synced' between the different Windows systems. These external locations includes important apps like Firefox, Sublime Text, VS Code, video and music player, torrent client and several tools.
The same reason applies to certain 'document' locations outside the system's default "Documents" path. Since indexing is turned for those places, no results are shown.

### Supporting information

_No response_
Repository: PowerToys
Issue: [Crop and Lock] Rotate Window
Labels: Idea-Enhancement,Needs-Triage,Product-CropAndLock

### Description of the new feature / enhancement

I would like to request a new feature for PowerToys that allows me to rotate a specified section of the screen in another window. This would be helpful for users who need to view content in portrait mode or upside down. The feature should allow me to select the area of the screen I want to rotate and the degree of rotation. The rotated section should be displayed in a separate window that can be resized, moved, or closed. The feature should work on all versions of Windows and support multiple monitors.

As "crop and lock" already has some similar usability, you can also extend the feature for rotating and resizing.

### Scenario when this would be used?

I would use this feature when I need to view documents, images, or videos that are oriented in portrait mode or upside down. For example, when I read an e-book or a PDF file that has a vertical layout.

### Supporting information

_No response_