sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Post-Processing Effects Not Affecting OptionButton or ColorPickerButton
Labels: discussion

### Godot version

v4.0.beta7.official [0bb1e89fb]

### System information

Windows 10, Vulkan API 1.2.0 - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 970

### Issue description

Post-processing effects (when implemented as described in [the tutorial in godot docs](https://docs.godotengine.org/en/latest/tutorials/shaders/custom_postprocessing.html)) don't apply to the `PopupMenu` displayed by `OptionButton`, or other UI elements implemented as a `Window` (e.g. the popup for `ColourPickerButton`)

### Steps to reproduce

Add an `OptionButton` or `ColorPickerButton` to a scene and also add a post-processing shader to the scene as described in [the documentation](https://docs.godotengine.org/en/latest/tutorials/shaders/custom_postprocessing.html).

### Minimal reproduction project

[PopupMenuPostprocessing.zip](https://github.com/godotengine/godot/files/10148077/PopupMenuPostprocessing.zip)
Repository: rust
Issue: Type mismatch errors through generic enums could be clearer
Labels: A-diagnostics,T-compiler

### Code

[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=72b06b26d9fd62ef4268a31b59c4c7dc)

```rust
enum A<T> {
    X(T)
}

fn f() -> A<()> {
    A::X(0_u32)
}

fn main() {}
```

### Current output

```
error[E0308]: mismatched types
 --> src/main.rs:6:10
  |
6 |     A::X(0_u32)
  |     ---- ^^^^^ expected `()`, found `u32`
  |     |
  |     arguments to this enum variant are incorrect
  |
note: tuple variant defined here
 --> src/main.rs:2:5
  |
2 |     X(T)
  |     ^
```

Due to the use of generics, seeing the definition of the enum variant doesn't really get at the root of the problem.

### Ideal output

```
error[E0308]: mismatched types
 --> src/main.rs:6:10
  |
6 |     A::X(0_u32)
  |     ---- ^^^^^ expected `()`, found `u32`
  |     |
  |     arguments to this enum variant are incorrect

note: expected `()` due to the function signature specifying the generic type for `A`:
  |
5 | fn f() -> A<()> {
  |             ^^
```

### Impact

This can happen with `Option` or `Result`, which are common return types.
Repository: rust
Issue: Weird error messages when using `?` operator in enum discriminant value
Labels: A-diagnostics,T-compiler

### Code

[playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=f3b216d39c7e7a384abe012e6521689e)

```rust
enum M {
    D = Some(0)?
}

fn main() {}
```

### Current output

```
error[E0658]: `?` is not allowed in a `const`
 --> kfb.rs:2:9
  |
2 |     D = Some(0)?
  |         ^^^^^^^^
  |
  = note: see issue #74935 <https://github.com/rust-lang/rust/issues/74935> for more information
  = help: add `#![feature(const_try)]` to the crate attributes to enable

error[E0572]: return statement outside of function body
 --> kfb.rs:2:16
  |
2 |     D = Some(0)?
  |                ^
```

### Why these messages are weird

* The first error refers to `const`, but I didn't type `const`. Instead, we're in a const context implied by writing `=` while defining an enum discriminant.
* The second error refers to `return`, but I didn't type `return`. Instead, the `return` comes from desugaring `?`.

### Ideal output

* Skip the first error
* Turn the second error into: `?` operator outside function body
* Suggest replacing `?` with `.unwrap()`, perhaps

### Notes

* I noticed this while looking at fuzzer output. It's probably not important.
* Would it make sense to allow `?` here as a shorthand for `.unwrap()`? Either way we want compilation to stop if the value is `None`.
Repository: kubernetes
Issue: apiserver builds up high memory usage after serving a few large LIST requests
Labels: kind/bug,sig/api-machinery,triage/accepted

### What happened?

The apiserver process has 1.5 GIB memory usage after sequentially serving a few large LIST requests (about 50MiB in response size). 

### What did you expect to happen?

The apiserver should stay the same memory usage after serving the first request.

### How can we reproduce it (as minimally and precisely as possible)?

1. Create configmaps that all together make up to 50 MiB
2. Run the following cmd and observe the memory usage of apiserver

```
for i in `seq 20`
  do kubectl  get --raw "/api/v1/namespaces/default/configmaps?resourceVersion=0" > /dev/null
done
```

### Anything else we need to know?

_No response_

### Kubernetes version

Main branch

### Cloud provider

<details>

</details>


### OS version

_No response_

### Install tools

_No response_

### Container runtime (CRI) and version (if applicable)

_No response_

### Related plugins (CNI, CSI, ...) and versions (if applicable)

_No response_
Repository: rust
Issue: `&usize::<=` is much slower than `usize::<=`
Labels: I-slow,T-compiler,C-bug

While solving [AoC Day 4](https://adventofcode.com/2022/day/4) I ran into the following performance difference:

```rust
fn main() {
    let input = vec![
        (2, 4, 6, 8),
        (2, 3, 4, 5),
        (5, 7, 7, 9),
        (2, 8, 3, 7),
        (6, 6, 4, 6),
        (2, 6, 4, 8), // .. 500000000 lines of random data, read from disk with real code (~12GB)
    ];

    // 1761ms on my machine
    let _variant_a_result = variant_a(&input);

    //  656ms on my machine
    let _variant_b_result = variant_b(&input);
}

pub fn variant_a(input: &[(usize, usize, usize, usize)]) -> usize {
    input
        .iter()
        .filter(|(a, b, c, d)| a <= c && d <= b || c <= a && b <= d)
        .count()
}

pub fn variant_b(input: &[(usize, usize, usize, usize)]) -> usize {
    input
        .iter()
        .filter(|&&(a, b, c, d)| a <= c && d <= b || c <= a && b <= d)
        .count()
}
```

As you can see, using `|&&(a, b, c, d)|` on the same closure is 2.6 times faster than `|(a, b, c, d)|`.
Viewing the compiled code makes this clear: https://rust.godbolt.org/z/oaeaGGPK7

Is this a compiler behavior a developer should know / expect?

### Meta

Thanks to @Arnavion for pointing this out.

`rustc --version --verbose`:
```
rustc 1.67.0-nightly (c090c6880 2022-12-01)
```
Repository: angular
Issue: @angular/service-worker - SwPush - "This site has been updated in the background"
Labels: area: service-worker,P4

### Which @angular/* package(s) are the source of the bug?

service-worker

### Is this a regression?

Yes

### Description

Recently some Push Notifications are no longer being delivered as expected.

### Expected Behavior
```json
{
  "notification": {
    "title": "Hello World",
  }
}
```
```json
{
  "notification": {
    "title": "Hello World",
    "tag": "demo"
  }
}
```
```json
{
  "notification": {
    "title": "Hello World",
    "tag": "demo",
    "renotify": true
  }
}
```

### Unexpected Behavior
```json
{
  "notification": {
    "title": "Hello World",
    "renotify": true
  }
}
```

The notification is replaced with the browser's default notification that reads "This site has been updated in the background".
See #23037 @gkalpak

### Workaround

```js
if (!notification.tag) {
  delete notification.renotify;
}
```

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 12.2.0
Node: 14.21.1
Package Manager: npm 6.14.17
OS: linux x64

Angular: 12.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router, service-worker

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1202.0
@angular-devkit/build-angular     12.2.0
@angular-devkit/core              12.2.0
rxjs                              6.6.7
typescript                        4.3.5
```


### Anything else?

- Might be an upstream (Chromium) issue
- Confirmed to affect both Chrome for Linux and Chrome for Android
Repository: opencv
Issue: OpenCV(4.5.4)   error: (-5:Bad argument) in function 'train'
Labels: question (invalid tracker),category: python bindings

### System Information

hi im getting an error in the face training code
how can i slove it 

### Detailed description

Traceback (most recent call last):
  File "/home/pi/Downloads/OpenCV-Face-Recognition-master/FacialRecognition/02_face_training.py", line 49, in <module>
    recognizer.train(faces,np.array(ids))
cv2.error: OpenCV(4.5.4) :-1: error: (-5:Bad argument) in function 'train'
> Overload resolution failed:
>  - Can't parse 'src'. Sequence item with index 0 has a wrong type
>  - Can't parse 'src'. Sequence item with index 0 has a wrong type


### Steps to reproduce

import cv2
import numpy as np
from PIL import Image
import os
# Path for face image database
path = '/home/pi/Downloads/OpenCV-Face-Recognition-master/FacialRecognition/dataset'

recognizer = cv2.face.LBPHFaceRecognizer_create()

detector = cv2.CascadeClassifier("/home/pi/Downloads/OpenCV-Face-Recognition-master/FacialRecognition/haarcascade_frontalface_default.xml");


# function to get the images and label data
def getImagesAndLabels(path):

    imagePaths = [os.path.join(path,f) for f in os.listdir(path)]     
    faceSamples=['mohammad']
    ids = []

    for imagePath in imagePaths:

        PIL_img = Image.open(imagePath).convert('L') # convert it to grayscale
        img_numpy = np.array(PIL_img,'uint8')

        id = int(os.path.split(imagePath)[-1].split(".")[1])
        faces = detector.detectMultiScale(img_numpy)

        for (x,y,w,h) in faces:
            faceSamples.append(img_numpy[y:y+h,x:x+w])
            ids.append(id)

    return faceSamples,ids

print ("\n [INFO] Training faces. It will take a few seconds. Wait ...")
faces,ids = getImagesAndLabels(path)
print(faces)
recognizer.train(faces,np.array(ids))

# Save the model into trainer/trainer.yml
recognizer.write('/home/pi/Downloads/OpenCV-Face-Recognition-master/FacialRecognition/trainer')
# recognizer.save() worked on Mac, but not on Pi
# Print the numer of faces trained and end program
print("\n [INFO] {0} faces trained. Exiting Program".format(len(np.unique(ids))))


### Issue submission checklist

- [X] I report the issue, it's not a question
- [ ] 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
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: angular
Issue: Bug: setting `[disabled]` attribute no longer works with `formControlName`
Labels: regression,workaround2: non-obvious,area: forms,state: confirmed,forms: directives,P1,bug

### Command

other

### Is this a regression?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

Angular 14

### Description

When upgrading from Angular 14 to Angular 15 the [Disabled] directive of form controls stopped working.

Is this a bug or did something change?

 I'm using version 15.0.2

### Minimal Reproduction

 <button type="button" id="btnAddPeopleEditor" class="btn btn-success btn-sm" (click)="addPeople(1)"
                  [disabled]="disabledEditEditor || (habilitarControle(isReadOnly) == 'true')">
                  Add
                </button>

### Exception or Error

```text
No error occurs. It simply stopped working.
```


### Your Environment

```text
Angular CLI: 15.0.2
Node: 16.17.0
Package Manager: npm 8.18.0
OS: win32 x64

Angular: 15.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.2
@angular-devkit/build-angular   15.0.2
@angular-devkit/core            15.0.2
@angular-devkit/schematics      15.0.2
@angular/cdk                    15.0.1
@angular/material               15.0.1
@nguniversal/builders           15.0.0
@nguniversal/common             15.0.0
@nguniversal/express-engine     15.0.0
@schematics/angular             15.0.2
rxjs                            7.5.7
typescript                      4.8.4
```


### Anything else relevant?

_No response_
Repository: pytorch
Issue: p.block != nullptr && p.block->ptr != nullptr INTERNAL ASSERT FAILED
Labels: needs reproduction,triaged

### 🐛 Describe the bug

Traceback (most recent call last):
  File "main.py", line 141, in <module>
    output = model(train_img)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/timm/models/efficientnet.py", line 557, in forward
    x = self.forward_features(x)
  File "/opt/conda/lib/python3.7/site-packages/timm/models/efficientnet.py", line 545, in forward_features
    x = self.blocks(x)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/container.py", line 119, in forward
    input = module(input)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/container.py", line 119, in forward
    input = module(input)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/timm/models/efficientnet_blocks.py", line 185, in forward
    x = self.se(x)
  File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.7/site-packages/timm/models/efficientnet_blocks.py", line 56, in forward
    return x * self.gate(x_se)

RuntimeError: p.block != nullptr && p.block->ptr != nullptr INTERNAL ASSERT FAILED at "/pytorch/c10/cuda/CUDACachingAllocator.cpp":689, please report a bug to PyTorch.


### Versions

pytorch1.8+cu11
Repository: deno
Issue: Issue: Multiline Template Strings seem to break debugging
Labels: debugger,needs investigation

**Describe the bug**
When using template string literals that span across multiple lines, the debugger does not break on defined breakpoints. Instead, it breaks on seemingly random lines, if at all.

I provided a minimal example below, but it also happens on a bit larger scripts (200+ lines). Sorry if it is something obvious or a known limitation. I'm new to Deno, but searched the docs and issues here to anything related to that.

**Versions**
OS: Win 11 (Windows_NT x64 10.0.22621)
VSCode: 1.73.1
Deno: 1.28.3
vscode_deno: v3.14.1

**Workspace Settings**
.vscode/settings.json:
```
{
    "deno.enable": true,
    "deno.unstable": true
}
```

.vscode/launch.json
Here I used multiple variants. Omitting `program` and providing the file directly to the `runtimeArgs`didn't change anything. Unfortunately, the [doc section on debugging with VSCode](https://deno.land/manual@v1.28.3/references/vscode_deno#using-the-debugger) is empty. :( 
```
{
    "version": "0.2.0",
    "configurations": [
        {
            "request": "launch",
            "name": "Launch with Deno",
            "type": "node",
            "program": "${workspaceFolder}/${relativeFile}",
            "cwd": "${workspaceFolder}/${relativeFileDirname}",
            "runtimeExecutable": "deno",
            "runtimeArgs": ["run", "--allow-all", "--inspect-brk=127.0.0.1:9229"],
            "attachSimplePort": 9229,
            "outputCapture": "std"
        }
    ]
}
```

**To Reproduce**
```ts
const literal = `
Line 1
Line 2
Line 3
`;

// Some random code here to get additional lines in the snippet
const lines = literal.trim().split(/\r?\n/g);

console.log(literal.length);
console.log(lines.length);
console.dir(literal);
```

When setting breakpoints on all the console.log/dir lines, this happens. It opens a transcoded file (I presume). After it stopped at the first breakpoint, I continued using F5. It does not stop on the other breakpoints and runs the rest of the script.
![denovscode1](https://user-images.githubusercontent.com/5564731/205493638-7034b75b-3842-4fea-81db-812368ef27b2.gif)

However, when using only a one-line template literal. It works fine:
```ts
const literal = `Line 1`;

// Some random code here to get additional lines in the snippet
const lines = literal.trim().split(/\r?\n/g);

console.log(literal.length);
console.log(lines.length);
console.dir(literal);
```
![denovscode2](https://user-images.githubusercontent.com/5564731/205491360-92398a7c-0302-47a0-bdae-851786370eae.gif)

In larger scripts, it breaks on random lines instead. Also, I'm not able to set additional breakpoints:

![denovscode3](https://user-images.githubusercontent.com/5564731/205492134-c64003bc-885b-4bb9-b042-4b6e4a7f238c.gif)
Repository: stable-diffusion-webui
Issue: Entry Point Not Found
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

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

### What happened?

After installing xformers using a rentry guide, suddenly I get two errors, one as a popup, and another on the command line.

![DiscordCanary_yhhBgyCRf6](https://user-images.githubusercontent.com/111822082/205504891-cf64d33b-7e1d-4025-92c4-a59666aef4c3.png)

![cmd_iaumiZ31Ds](https://user-images.githubusercontent.com/111822082/205504906-830ee492-9821-47ea-bd26-e17260619edd.png)

Please help!

### Steps to reproduce the problem

Hard to say, I did a lot in order to get xformers to be recognized, so... I don't know.

### What should have happened?

The UI should have launched normally, with xformers.

### Commit where the problem happens

Launching Web UI with arguments: [WinError 127] The specified procedure could not be found WARNING: [WinError 127] The specified procedure could not be found Need to compile C++ extensions to get sparse attention support. Please run python setup.py build develop

### What platforms do you use to access UI ?

Windows

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

_No response_

### Command Line Arguments

_No response_

### Additional information, context and logs

_No response_
Repository: godot
Issue: apply_torque_impulse() not working on a RigidBody2d that uses CollisionPolygon2d "Segments" build mode
Labels: documentation,topic:physics

### Godot version

v3.5.1.stable.official [6fed1ffa3], v4.0.beta7.official [0bb1e89fb]

### System information

Windows 10, AMD 6800xt on 22.11.1 Adrenalin drivers, GLES3 & Vulkan

### Issue description

Using a CollisionPolygon2d as the collision shape for a RigidBody2d, apply_torque_impulse() seems to have no effect while the Build Mode is set to "Segments". This is not an issue when using the "Solids" build mode.

The attached repro zip file is for 3.5.1, but this exists in 4.0 beta 7 aswell

### Steps to reproduce

In project settings > physics 2d, set default gravity to 0, default gravity vector to (0, 0), and default linear and angular damp to 0.

Make a 2d scene, with a RigidBody2d that uses a CollisionPolygon2d as the collision shape.

On the RigidBody2d, disable `Can Sleep`. Attach a script to the node, and add some code that will apply a torque impulse.

```
extends RigidBody2D

var torque = 300

func _integrate_forces(state):
	if Input.is_action_pressed("ui_left"):
		apply_torque_impulse(torque)
	if Input.is_action_pressed("ui_right"):
		apply_torque_impulse(-torque)
```

On the CollisionPolygon2d, change the `Build Mode` to "Segments".

In debug menu, enable "Visible Collision Shapes"

Run the scene and nothing should happen when pressing the ui_left or ui_right keybinds. Changing the `Build Mode` to "Solids" and rerunning will then show the application of the torque impulse that is expected.

### Minimal reproduction project

[CollisionPolygon2dTest35.zip](https://github.com/godotengine/godot/files/10149158/CollisionPolygon2dTest35.zip)
Repository: tauri
Issue: [feat] Rename the updater-bundle for macs to include arch
Labels: type: feature request,platform: macOS,scope: bundler

### Describe the problem

When setting up a CI pipeline with a matrix of `[x86 + arm] x [windows + linux + mac]`, you get 2 imortant bundles with the same name. Mac update bundles for x86 and aarch64.. This makes it creates bit of a hiccup automating the release flow.



### Describe the solution you'd like

I'd like the updater bundle to include `aarch64` / `x86`, for me to be able to differentiate them when they are uploaded to GitHub releases 🚀

### Alternatives considered

Current workaround forces me to rename and re-sign one of the bundles, and upload it manually. And I'll probably even automate that if I see that this is too much of a breaking change for the rest of the community 🤷

### Additional context

**I do not want to rename the app-bundle, only the updater one**
Repository: deno
Issue: Documentations for methods and variables in Deno repl
Labels: repl

### Discussed in https://github.com/denoland/deno/discussions/16917

<div type='discussions-op-text'>

<sup>Originally posted by **ghmanoj** December  3, 2022</sup>
Bring help documents in Deno repl. 
For example in deno repl when I type
> Deno.help(Deno.serveHttp)  

Show the help document in the repl (something similar to Python repl) like below:

<img width="666" alt="Screenshot 2022-12-03 at 12 20 54 PM" src="https://user-images.githubusercontent.com/10175663/205453517-394b502d-02c1-49e9-a795-1110f4f648c2.png">
</div>
Repository: godot
Issue: [TRACKER] Fog and volumetric fog issues
Labels: bug,enhancement,topic:rendering,tracker,topic:3d

This issue tracks issues related to standard (non-volumetric) fog in the Vulkan and OpenGL renderers, as well as volumetric fog in the Vulkan Clustered backend.

```[tasklist]
### Bugs
- [x] https://github.com/godotengine/godot/issues/54496
- [ ] https://github.com/godotengine/godot/issues/54893
- [x] https://github.com/godotengine/godot/issues/55870
- [x] https://github.com/godotengine/godot/issues/59262
- [ ] https://github.com/godotengine/godot/issues/61222
- [ ] https://github.com/godotengine/godot/issues/62794
- [ ] https://github.com/godotengine/godot/issues/63739
- [x] https://github.com/godotengine/godot/issues/64634
- [ ] https://github.com/godotengine/godot/issues/66456
- [x] https://github.com/godotengine/godot/issues/66459
- [x] https://github.com/godotengine/godot/issues/66462
- [ ] https://github.com/godotengine/godot/issues/66934
- [ ] https://github.com/godotengine/godot/issues/69565
- [ ] https://github.com/godotengine/godot/issues/74790
- [ ] https://github.com/godotengine/godot/issues/76243
- [ ] https://github.com/godotengine/godot/issues/78500
- [ ] https://github.com/godotengine/godot/issues/82217
- [ ] https://github.com/godotengine/godot/issues/83685
- [ ] https://github.com/godotengine/godot/issues/83990
- [ ] https://github.com/godotengine/godot/issues/87136
- [ ] https://github.com/godotengine/godot/issues/87578
- [ ] https://github.com/godotengine/godot/issues/101514
```

```[tasklist]
### Discussions
- [x] https://github.com/godotengine/godot/issues/44466
- [ ] https://github.com/godotengine/godot/issues/56374
```

```[tasklist]
### Enhancements
- [ ] https://github.com/godotengine/godot-proposals/issues/1698
- [ ] https://github.com/godotengine/godot-proposals/issues/2643
- [ ] https://github.com/godotengine/godot-proposals/issues/3429
- [ ] https://github.com/godotengine/godot-proposals/issues/4619
- [ ] https://github.com/godotengine/godot-proposals/issues/5079
- [ ] https://github.com/godotengine/godot-proposals/issues/5214
```