sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: SVG thumbnail generator causes `dllhost.exe` high CPU usage
Labels: Issue-Bug,Product-File Explorer,Needs-Triage

### Microsoft PowerToys version

0.74.0

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

File Explorer: Thumbnail preview

### Steps to reproduce

Today using Windows 10 I generated some SVG files using [UMLet](https://www.umlet.com/). and happened to browse that directory in Windows Explorer.

### ✔️ Expected Behavior

Nothing out of the ordinary.

### ❌ Actual Behavior

Later I noticed my fan was constantly on, and CPU usage for two cores was really high, stuck on the infamous `dllhost.exe`. I pulled up Process Explorer, and there are two `dllhost.exe` instances. For one, one of the file handles indicated is:

`C:\Users\user\AppData\LocalLow\Microsoft\PowerToyes\SvgThumbnailPreview-Temp\some-long-random-looking-id.svg`

Another is:

`C:\Users\user\AppData\LocalLow\Microsoft\PowerToys\logs\FileExplorer_localLow\SvgThumbnailProvider\svg-thumbnail-provider-log_2023-10-18.txt`

That looks interesting; here are the contents of the log file:

```
[2023-10-18 11:45:43.624462] [p-xxxx] [t-xxxx] [info] SvgThumbnailProvider logger is initialized
[2023-10-18 11:45:43.626069] [p-xxxx] [t-xxxx] [info] SvgThumbnailProvider logger is initialized
[2023-10-18 11:45:43.627906] [p-xxxx] [t-xxxx] [trace] Begin
[2023-10-18 11:45:43.627931] [p-xxxx] [t-xxxx] [info] Read stream and save to tmp file.
[2023-10-18 11:45:43.629230] [p-xxxx] [t-xxxx] [trace] Begin
[2023-10-18 11:45:43.629261] [p-xxxx] [t-xxxx] [info] Read stream and save to tmp file.
[2023-10-18 11:45:43.633477] [p-xxxx] [t-xxxx] [info] Start SvgThumbnailProvider.exe
```

(I replaced the numbers with `xxxx`, because I don't like to go posting logs publicly if I don't know what the numbers mean.)

The other `dllhost.exe` instance mentions Windows Search:

`C:\Users\user\AppData\Local\Packages\Microsoft.Windows.Search_xxxxxxxxxxxxx\AppData\Indexed DB\xxx.log`

Is PowerToys SVG thumbnail doing something and leaving `dllhost.exe` running? Or is the root problem Windows Search?

I just now went into the PowerToys settings and turned off SVG thumbnails. `dllhost.exe` is still going crazy, so I guess I'll have to reboot.

It thought I'd report this in case others are seeing this problem.

### Other Software

UMLet 15.1
Repository: electron
Issue: [Bug]: ready-to-show sometimes doesn't fire when window.opener is enabled
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

27.0.0

### What operating system are you using?

Windows

### Operating System Version

Windows 10

### What arch are you using?

x64

### Last Known Working Electron version

26.0.0

### Expected Behavior

I expect that ready-to-show fires when calling window.open.

### Actual Behavior

ready-to-show sometimes doesn't fire

### Testcase Gist URL

https://gist.github.com/pushkin-/c0f50f8bbdf6cbbe2eeb8cbf2b944686

### Additional Information

I'm seeing what appears to be a repeat of [this issue](https://github.com/electron/electron/issues/25253) which was fixed with [this commit](https://github.com/electron/electron/pull/25448/commits/ab7868ac362346adfa2ed89a976d08c0d3baa285).

Looking at the recent code, it's changed quite significantly and `ready-to-show` is emitted elsewhere now.
There was [this PR](https://github.com/electron/electron/pull/25632) to consistently emit that event [here](https://github.com/electron/electron/blob/e254593616e0c0ce8ae861ec860002ee14cb74f9/shell/browser/api/electron_api_web_contents.cc#L1915), which I will assume worked.

There's been some changes nearby that area due to a [Chrome update](https://github.com/electron/electron/pull/34403) which may or may not contribute to this. https://chromium-review.googlesource.com/c/chromium/src/+/3644598

I confirmed that `did-navigate` fires and the workaround in the related issue of using `did-finish-load` instead works since that event fires. But sometimes (not always), `ready-to-show` never fires.

Enabling window.opener resolves the issue for some reason.

I haven't yet repro'd this in a minimal example unfortunately, but maybe something stands out to you all in the code as being suspect.
Repository: rust
Issue: Tracking Issue for unicode and escape codes in literals
Labels: B-RFC-approved,T-lang,C-tracking-issue,F-mixed_utf8_literals,I-lang-radar

This is a tracking issue for the RFC 3349 (rust-lang/rfcs#3349).

The feature gate for the issue is `#![feature(mixed_utf8_literals)]`.

From the RFC:

> Relax the restrictions on which characters and escape codes are allowed in string, char, byte string, and byte literals.
>
> Most importantly, this means we accept the exact same characters and escape codes in `"…"` and `b"…"` literals. That is:
>
> - Allow unicode characters, including `\u{…}` escape codes, in byte string literals. E.g. `b"hello\xff我叫\u{1F980}"`
> - Also allow non-ASCII `\x…` escape codes in regular string literals, as long as they are valid UTF-8. E.g. `"\xf0\x9f\xa6\x80"`

### About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [ ] Implement the RFC
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md 

### Unresolved Questions

- [ ] Should `concat!("\xf0\x9f", "\xa6\x80")` work? (The string literals are not valid UTF-8 individually, but are valid UTF-8 after being concatenated.)
Repository: godot
Issue: MacBook trackpad trigger triple input events
Labels: bug,platform:macos,topic:input

### Godot version

4.1 stable

### System information

MacOS Sonoma 14.0

### Issue description

On MacBook Pro (apple silicon), trackpad touches or clicks trigger multiple input events instead of one.

### Steps to reproduce

```gdscript
# input action "action" contains only trigger "Left Mouse Button - All Devices"
func _unhandled_input(event: InputEvent):
	if Input.is_action_just_pressed("action"):
		print("pressed")
```

Result : randomly one to three presses.
It is reproducible even without "clicking" or "force clicking" trackpad, only by touching it.

### Minimal reproduction project

N/A
Repository: pytorch
Issue: [pt2+profiler] attach aot_id to CompiledFunction, _compiled_fn number without aot_autograd
Labels: triaged,oncall: pt2

### 🚀 The feature, motivation and pitch

torch-compiled models will have profiles that contain `CompiledFunction` and `CompiledFunctionBackward` regions.

Meanwhile PT2 logs (e.g. TORCH_COMPILE_DEBUG=1) will also dump the graphs. But in graphs that have multiple CompiledFunctions, it's kind of hard to figure out which graph (in the logs) maps to a given CompiledFunction (in the profile).

We should figure out how to attach the aot_id to the CompiledFunction profiler event.

For eager backend, we get `_compiled_fn_x` in logs; would be nice to attach this info too.

cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @zou3519 who had this great idea :) 

### Alternatives

_No response_

### Additional context

Idea: autograd.Functions have handling in C++ to add the record_function event. That's where the CompiledFunction event comes from.

It might be possible to attach a static parameter or method on the CompiledFunction (like `_compiled_autograd_key()`) that is used for additional information attached to the C++ RecordFunction.

We should make sure this doesn't slow down CompiledFunction, especially in the no-profiling case. It would be great if we can collect the aot_id during CompiledFunction construction so that we don't have to do the python/C++ conversion on each iteration.
Repository: flutter
Issue: [Impeller] Occasional frame times ~2 orders of magnitude slower.
Labels: engine,c: performance,P2,e: impeller,team-engine,triaged-engine

When running my Android TV app through Impeller, I generally see raster thread times of ~2ms.  Every now and then, though (once about every 600 frames), I see a SUPER slow frame (~170ms).  For example, see frame 6966 in [this trace](https://drive.google.com/file/d/1P9wObiy5CkjzxzhU9i67C1G181gTKQwD/view?usp=sharing&resourcekey=0-2FBzdH6DKZK-q66WOGGrYg), where it looks like `FenceWaiterVK::AddFence` took 171ms 793µs

Observed at https://github.com/flutter/engine/commit/e57b5bac4244d09f9a4404d52c534a9c820d5915
System info at https://gist.github.com/tvolkert/fc62a64356da50204843fe7231a925b5
Repository: PowerToys
Issue: Sticky FancyZone Layout for individual Desktop setups
Labels: Needs-Triage

### Description of the new feature / enhancement

I would like to be able to 'stick' a FancyZone layout to specific Desktop
Example: Custom Layout 1 sticks to Desktop 1
Custom Layout 3 sticks to Desktop 3

Thanks


### Scenario when this would be used?

I would make it easy to setup my Zones on specific Desktops

### Supporting information

_No response_
Repository: godot
Issue: ResourceLoader.get_dependencies for gdscript files no longer returns preloaded scripts.
Labels: discussion,topic:gdscript

### Godot version

4.0-alpha8 .. 4.1.2-stable

### System information

Godot v4.1.2.stable - Ubuntu 20.04.6 LTS (Focal Fossa) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Laptop GPU () - 12th Gen Intel(R) Core(TM) i7-12700H (14 Threads)

### Issue description

In godot 3.5.2-stable calling `ResourceLoader.get_dependencies(script_path)` previously listed the dependencies preloaded inside the script.

In godot 4.1.2-stable (and godot 4.0-alpha8) the result is an empty array.



### Steps to reproduce

```
$ unzip $reproduction_zip
$ cd $reproduction_dir
$ ~/bin/Godot_v3.5.2-rc1_linux_headless.64 --path g3 --quit
Godot Engine v3.5.2.rc1.official.f5f0543ae - https://godotengine.org
 
deps=[res://two.gd]
OK

$ ~/bin/Godot_v4.0-alpha8_linux.64 --path g4 --headless --quit
Godot Engine v4.0.alpha8.official.cc3ed63af - https://godotengine.org
 
SCRIPT ERROR: Assertion failed: Should be one dep
          at: _ready (res://Main.gd:5)
          
$ ~/bin/Godot_v4.1.2-stable_linux.x86_64 --path g4 --headless --quit
Godot Engine v4.1.2.stable.official.399c9dc39 - https://godotengine.org
 
SCRIPT ERROR: Assertion failed: Should be one dep
          at: _ready (res://Main.gd:5)
```

### Minimal reproduction project

[resourceloader_getdependencies_gdscript.zip](https://github.com/godotengine/godot/files/13035089/resourceloader_getdependencies_gdscript.zip)
Repository: rust
Issue: Cargo check runs forever and memory usage grows unboundedly
Labels: T-compiler,C-bug,I-hang

Apologies, I really couldn't find a way to minimise this example, but [this commit ](https://github.com/oliverb123/doorbell/commit/d7b87ff3cd6cdb8145422fbbd623429dffea7bcc) causes `cargo check` to run forever and consume an ever-growing amount of memory. I tried to narrow down what was causing the problem, but just pulling the various trait definitions out into another crate didn't reproduce it. I think the issue is related to (almost certainly) poorly-defined associated type bounds in the various traits under `src/proxy/routes`, as it seemed to start happening after I started adding those, but I'm really not very confident in that assessment.

I expected to see this happen: `cargo check` would run in a bounded amount of space and time

Instead, this happened: `cargo check` seems to run forever and consume all of my memory

I can confirm the issue occurs on both nightly and stable, with versions:

`rustc --version --verbose`:
```
rustc 1.73.0 (cc66ad468 2023-10-03)
binary: rustc
commit-hash: cc66ad468955717ab92600c770da8c1601a4ff33
commit-date: 2023-10-03
host: x86_64-unknown-linux-gnu
release: 1.73.0
LLVM version: 17.0.2
```

`rustc --version --verbose`:
```
rustc 1.75.0-nightly (09df6108c 2023-10-17)
binary: rustc
commit-hash: 09df6108c84fdec400043d99d9ee232336fd5a9f
commit-date: 2023-10-17
host: x86_64-unknown-linux-gnu
release: 1.75.0-nightly
LLVM version: 17.0.2
```

I can't include a backtrace because, naturally, the compiler doesn't exit, so setting `RUST_BACKTRACE=1` has no effect

This is a screenshot of rustc consuming 23GB of ram while compiling the linked commit. I don't know why I thought this would be useful, but I guess I did, so here it is.
![Screenshot from 2023-10-19 01-49-09](https://github.com/rust-lang/rust/assets/8105072/092f3837-8da0-4b3e-aef7-11df093f70ae)
Repository: vscode
Issue: Can't expand used references until response has fully streamed in
Labels: bug,panel-chat

1. Ask a chat question 
2. While the response is streaming in, try clicking on the collapsed 'Used _ references' toggle
3. :bug: nothing happens
Repository: flutter
Issue: List of available Font Families or way to check if font family is available locally
Labels: c: new feature,framework,a: debugging,P3,team-framework,triaged-framework

### 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

While debugging visual issues, I would like to confirm what font is being used, and which are available on the device.

There have been similar questions on stackoverflow related to this, e.g https://stackoverflow.com/q/64145307/88646

### Proposal

Add a API that returns a list of available font families, or some kind of callback/way to be notified if a fallback font is being used.
Repository: PowerToys
Issue: Conflicting Default binding for 'Peek'
Labels: Issue-Bug,Needs-Triage,Product-Peek

### Microsoft PowerToys version

0.73.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Peek

### Steps to reproduce

Using the file browser or 'explorer', attempt to select multiple files using the keyboard. 
*Holding Shift and using arrow keys allows for selection of a range of files. 
*Holding Ctrl, navigating with arrow keys and pressing Space allows for a 'per-file' selection.

Default key-binding for PowerToys 'Peek' cause a conflict and prevent the expected behavior. I suggest using a different keybind that does not conflict with standard windows utilities.

### ✔️ Expected Behavior

I was expecting to select files within explorer in a selective fashion with the keyboard.

### ❌ Actual Behavior

PowerToys Peek opened a file for preview instead. 

### Other Software

Windows 10 . File Explorer.
Repository: rust
Issue: `f32`/`f64` examples should not use `EPSILON` as an absolute tolerance value
Labels: C-enhancement,T-libs-api,A-docs,T-libs,A-floating-point

Many examples on the floating-point types incorrectly teach readers that `EPSILON` is an appropriate tolerance value for approximate comparisons. For instance, the example for [`f32::mul_add`](https://doc.rust-lang.org/nightly/std/primitive.f32.html#method.mul_add) looks like this:

```rust
let m = 10.0_f32;
let x = 4.0_f32;
let b = 60.0_f32;

// 100.0
let abs_difference = (m.mul_add(x, b) - ((m * x) + b)).abs();

assert!(abs_difference <= f32::EPSILON);
```

The machine epsilon is unsuitable for this use case. It is not a general-purpose tolerance value for comparisons, and it should not be taught like it is one.

More in-depth information about how to properly deal with floats can be found here: https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/

(I suppose ideally libstd would have some API for this built in so that the examples can make use of it)
Repository: pytorch
Issue: Functorch FCD breaks with tensor subclasses
Labels: triaged,module: functorch,module: first class dims

### 🐛 Describe the bug

Classes that inherits from torch.Tensor do not work with firct class dimensions when `__getitem__` is overwritten:

```python
import torch
from torch import Tensor
from functorch import dim

class MyTensor(Tensor):
    def __getitem__(self, item):
        return super().__getitem__(item)

t = Tensor([[1, 2],[3, 4]])
d0 = dim.dims(1)
t[d0] # works

t = MyTensor([[1, 2],[3, 4]])
d0 = dim.dims(1)
t[d0] # breaks

```

which gives
```
ValueError                                Traceback (most recent call last)
Cell In[3], line 1
----> 1 t[d0]

Cell In[2], line 7, in MyTensor.__getitem__(self, item)
      6 def __getitem__(self, item):
----> 7     return super().__getitem__(item)

ValueError: dimension d0 is unbound
```

I guess that since `t[d0]` in the regular `Tensor` case is not a `Tensor` anymore but a `functorch.dim.Tensor`, the expected behaviour is ill-defined. Maybe a better error message in this case would help to let users know what is going on?

cc @ezyang @msaroufim @albanD @zou3519 @Chillee @samdow @kshitij12345 @janeyx99 @zdevito



### Versions

Recent nightly built ('2.2.0.dev20231011')
Repository: stable-diffusion-webui
Issue: [Bug]: Doesn't generate images
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?

Today i wanted to use SD with Automatic1111 but when i started to write my prompt, it didn't recognize the number of characters at all and couldn't create any image, not in txt2img nor img2img with any Model AND when i choose a model in the upper left corner it doesn't reload anything, its like it doesnt recognize the models i use for some reason

### Steps to reproduce the problem

1. Go to Webui user Batch File
2. start the batch file
3. Run SD Automatic 1111 locally
4. Choose a Model
5. Hmmm why any model make the loading animation?
6. Hmm why in the prompt section doesnt count the text?
7. Cry


### What should have happened?

Work normally

### Sysinfo

I dont know how to put this

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

_No response_

### Console logs

```Shell
venv "C:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing requirements



Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
2023-10-18 19:15:01,767 - ControlNet - INFO - ControlNet v1.1.312
ControlNet preprocessor location: C:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-10-18 19:15:01,831 - ControlNet - INFO - ControlNet v1.1.312
Checkpoint revAnimated_v121Inp-inpainting.safetensors [8836c40038] not found; loading fallback dungeonsNWaifusNew_dungeonsNWaifus22.safetensors [249bc94ed2]
Loading weights [249bc94ed2] from C:\AI\stable-diffusion-webui\models\Stable-diffusion\dungeonsNWaifusNew_dungeonsNWaifus22.safetensors
*Deforum ControlNet support: enabled*
Creating model from config: C:\AI\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 8.7s (import torch: 1.6s, import gradio: 1.1s, import ldm: 1.8s, other imports: 0.9s, load scripts: 1.2s, create ui: 1.9s, gradio launch: 0.2s).
Loading VAE weights specified in settings: C:\AI\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.ckpt
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 4.5s (load weights from disk: 0.6s, create model: 0.9s, apply weights to model: 0.8s, apply half(): 0.5s, load VAE: 0.2s, move model to device: 0.5s, load textual inversion embeddings: 0.9s).
```


### Additional information

I dont know a lot about programming but i can provide more info if needed, pls help i love using IA
Repository: rust
Issue: Why is `Deref` not triggered when `func(x.deref())` work.
Labels: A-type-system,T-lang,A-inference,C-discussion,T-types

**from https://github.com/tokio-rs/tokio/issues/6085**
```rust
fn main() {
    use tokio;
    let arr = &[1_u8; 5];
    let arr2 = &arr;
    let hi = &arr2[1..2];
    let lo = &arr[1..3];
    let ivec = MYIVec::new(arr);
    let comp1 = hi.partial_cmp(lo);
    let comp2 = hi.partial_cmp(&ivec);
    println!("{:?} {:?}", comp1, comp2);
}
```
This code does not compile when `use tokio`: 
```bash
   Compiling report_bug v0.1.0 (/data01/home/zhuhuiming.sy/git/report_bug)
warning: the item `tokio` is imported redundantly
  --> src/main.rs:24:9
   |
24 |     use tokio;
   |         ^^^^^ the item `tokio` is already defined here
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `tokio`
  --> src/main.rs:24:9
   |
24 |     use tokio;
   |         ^^^^^

error[E0277]: can't compare `[u8]` with `MYIVec`
  --> src/main.rs:31:32
   |
31 |     let comp2 = hi.partial_cmp(&ivec);
   |                    ----------- ^^^^^ no implementation for `[u8] < MYIVec` and `[u8] > MYIVec`
   |                    |
   |                    required by a bound introduced by this call
   |
   = help: the trait `PartialOrd<MYIVec>` is not implemented for `[u8]`
   = help: the following other types implement trait `PartialOrd<Rhs>`:
             <[u8] as PartialOrd<bytes::bytes::Bytes>>
             <[u8] as PartialOrd<bytes::bytes_mut::BytesMut>>
             <&[u8] as PartialOrd<bytes::bytes::Bytes>>
             <&[u8] as PartialOrd<bytes::bytes_mut::BytesMut>>

For more information about this error, try `rustc --explain E0277`.
warning: `report_bug` (bin "report_bug") generated 2 warnings
error: could not compile `report_bug` (bin "report_bug") due to previous error; 2 warnings emitted
```

Compiles when comment `use tokio`: 
```rust
fn main() {
    // use tokio;
    let arr = &[1_u8; 5];
    let arr2 = &arr;
    let hi = &arr2[1..2];
    let lo = &arr[1..3];
    let ivec = MYIVec::new(arr);
    let comp1 = hi.partial_cmp(lo);
    let comp2 = hi.partial_cmp(&ivec); // Cannot automatic-dereferencing!!!
    println!("{:?} {:?}", comp1, comp2);
}
```
Also compiles when deref manually: 
```rust
fn main() {
    use tokio;
    let arr = &[1_u8; 5];
    let arr2 = &arr;
    let hi = &arr2[1..2];
    let lo = &arr[1..3];
    let ivec = MYIVec::new(arr);
    let comp1 = hi.partial_cmp(lo);
    let comp2 = hi.partial_cmp(ivec.deref()); // manually deref working
    println!("{:?} {:?}", comp1, comp2);
}
```