sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: I think something broken in latent upscalers
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [x] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

When generating with hires fix and latent upscalers (antialiased, bicubic and so on...), there is a noticeable grid (I don't know what else to call it). It is noticeable up to denoising strength 0.5, but miraculously evaporates at denoising strength 0.501.

### Steps to reproduce the problem

1) enable hires fix
2) enable latent upscaler
3) generate with denoising strength 0.5 and below

### What should have happened?

No grid(?)

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

Microsoft Edge

### Sysinfo

[sysinfo-2024-01-20-17-26.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13998689/sysinfo-2024-01-20-17-26.json)


### Console logs

```Shell
nothing useful
```


### Additional information

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/50556416/05b5cfbe-a208-4e9f-8263-89f45a5c54a8)
4X LSDIR

----
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/50556416/c7b680cd-5a70-438e-9cf0-9c597bfdab49)
Latent (antialiased) at 0.5 denoising strength

----
![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/50556416/0b524884-4eb5-43b2-ac7f-d1d0e7214b0c)
Latent (antialiased) at 0.501 denoising strength


**_I'm using RealVisXL V3.0 model_**
Repository: TypeScript
Issue: Literal tested as key of a certain type cannot be used as an index type
Labels: Bug,Help Wanted

### 🔎 Search Terms

"literal", "extends", "keyof", "cannot be used to index type", "conditional"


### 🕗 Version & Regression Information

Versions: ^5.0 (regression)

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.3.3&ssl=7&ssc=54&pln=1&pc=1#code/C4TwDgpgBAKlC8UDeBYAUFKBrAXFAziALYBGA9gDYA06mZwAFhAE57mUQCGAdlVAPT8oPek2bYIIAhAhF8UZhACOAVwCWigCZQAZmXGNoJFQHMowMsLCROzdAF906QbHDQA5ACIsn91ADGPNz0UCTQKvgQ2pzyPFBq3JoQAB7mbgB0ABQATACsAMwAHACU6KCQUADCCFDuWH4pwBCJ8liSZDqwUAD8sADade4AulB43BAAbiwA3AJCPCBAA

### 💻 Code

```ts
type T = {
  k: symbol,
  other: boolean, // another key seems required for the bug to appear
}

// Type '"k"' cannot be used as an index type.(2538)
type C = 'k' extends keyof T ? T['k'] : never; // any
```


### 🙁 Actual behavior

An error is produced in the positive clause of the conditional type.
The resulting type is incorrect.

### 🙂 Expected behavior

No error.

### Additional information about the issue

_No response_
Repository: vscode
Issue: Unsaved ipynb changes after remote server reboot block vscode requiring hard kill
Labels: bug,notebook-serialization,notebook-remote

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 
Version: 1.85.2 (user setup)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:10.514Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22635

- OS Version: Windows 11 

Steps to Reproduce:

1. Use remove development via ssh/Ubuntu 22.04 lts
2. Open Python Notebooks, edit but don't save (or maybe do some changes, save, do again and dont' save, could be in "outputs cells" I'm not exactly sure
3. Abruptly kill network on remote server
4. Wait till "can't reconnect" window appears but do nothing
5. Reboot the remove server, reconnect network
6. Answer "cancel / no" to the "can't reconnect" window
7. Nothing works in the editor
8. Open command palette, type Reload window, hit window reload
9. The message "The following editors with unsaved changes could not be saved to back up location."  appears
10. The message blocks any further operations with vscode, including closing/exiting/reloading till hard kill from Task Manager

Reproduced many times.
Repository: rust
Issue: Maximum number of nodes exceeded in constant
Labels: T-compiler,C-feature-request,A-const-eval,C-discussion

In
https://github.com/rust-lang/rust/blob/1828461982f37d1a0053d156cedad5522b0f8a97/compiler/rustc_const_eval/src/const_eval/mod.rs#L24
the `VALTREE_MAX_NODES` is hardcoded. I managed to hit this limit with the rough following setup, producing the "Maximum number of nodes exceeded in constant" error:

1. https://docs.rs/const-type-layout/latest/const_type_layout/fn.serialise_type_graph.html is a const fn generating a byte array that describes the layout of a type
2. I define the following helper trait to check whether two byte arrays are the same:
```rust
pub trait Same<const A: &'static [u8], const B: &'static [u8]> {}

impl<const AB: &'static [u8]> Same<AB, AB> for () {}

pub const fn check<const A: &'static [u8], const B: &'static [u8]>() where (): Same<A, B> {}
```
3. I define the following const to assert that the produced const byte array matches a byte string (doing so in a const fn also works but taking a *while* and crashes `cargo check` in my GitHub CI with exit code 143)
```rust
const _: () = check::<&{serialise_type_graph::<MyVeryComplexType>()}, b"my-very-long-byte-string">();
```

Is there a way to rewrite my code to not this limit as easily, would it be possible to make it configurable with an unstable attribute similar to `#![recursion_limit]`, or is there an even better way to check that two byte arrays are the same at compile time (where one is built from a very complex constant)?

Thank you so much for your help!
Repository: vscode
Issue: [regression] `language-configuration` of embedded language not loading
Labels: bug,important,languages-basic,editor-core

some optimization/bug is stopping the `language-configuration` of embedded languages from loading correctly when part of the embedded language is offscreen during file loading

Create a markdown file and paste in the following code
````md
```latex


()

```
````
scroll down until you can no longer see ` ```latex `, but still have `()` visible
reload VSCode (open & close etc)

scroll up and notice how the brackets `()` are no longer highlighted
typing a random letter near the latex code will start highlighting the brackets
typing a newline wont, nor will deleting any char

❌![image](https://github.com/microsoft/vscode/assets/33529441/25bb6e33-a633-4dca-885d-6e47968c9ab2)
✅![image](https://github.com/microsoft/vscode/assets/33529441/df6c7d84-f032-45f0-868f-7289954647bd)

seems to also happen when the embedded language is within the visible screen space, but is inside a folded region

this was just showing `"brackets"`, but it also applies to all other settings inside `language-configuration.json`

seems to be only 90% consistent. prob cause of some caching somewhere
VSCode 1.83.1 is fine ✅
some change in-between
VSCode 1.84.0 has the bug ❌
<!--
I noticed this when I was working on an embedded language syntax
notice how the parent grammar (json) has its brackets highlighted, but not the embedded regex
❌![image](https://github.com/microsoft/vscode/assets/33529441/499a502e-1cc8-4a0c-8237-cb139cdb93c5)
✅![image](https://github.com/microsoft/vscode/assets/33529441/06125384-be3b-42ef-90d4-635f21849e60)
-->
Repository: rust
Issue: ice: 'unexpected `def_kind` in `codegen_fn_attrs`: ForeignTy'
Labels: I-ICE,T-compiler,C-bug,F-extern_types,S-bug-has-test,requires-debug-assertions

<!--
[31mICE[0m: Rustc ./CBF6C72C0C2C2DB1A989671A84B13F8E721503FB26F99AB3221D922EFA73DC35.rs '' 'thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/codegen_attrs.rs:54:9: 'unexpected `def_kind` in `codegen_fn_attrs`: ForeignTy'', 'thread 'rustc' panicked at compiler/rustc_codegen_ssa/src/codegen_attrs.rs:54:9: 'unexpected `def_kind` in `codegen_fn_attrs`: ForeignTy''
File: /tmp/im/CBF6C72C0C2C2DB1A989671A84B13F8E721503FB26F99AB3221D922EFA73DC35.rs
-->

auto-reduced (treereduce-rust):
````rust
#![feature(extern_types)]

#[link(name = "bar", import_name_type = "decorated", kind = "raw-dylib")]
extern "C" {
    pub type CrossCrate;
}

fn main() {}


````

original:
````rust
#![feature(extern_types)]

// only-windows
// only-x86
#[link(name = "foo", import_name_type = "decorated")]
//~^ ERROR import name type can only be used with link kind `raw-dylib`
extern "C" { }

#[link(name = "bar", kind = "static", import_name_type = "decorated")]
//~^ ERROR import name type can only be used with link kind `raw-dylib`
extern "C" { }

// Specifying `import_name_type` before `kind` shouldn't raise an error.
#[link(name = "bar", import_name_type = "decorated", kind = "raw-dylib")]
extern "C" {
    pub type CrossCrate;
}

fn main() {}

````

Version information
````
rustc 1.77.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.77.0-dev
LLVM version: 17.0.6

````
Repository: flutter
Issue: Create DropdownMenuFormField
Labels: c: new feature,f: material design,c: proposal,P2,team-design,triaged-design

### Use case

DropdownButton is replaced by DropdownMenu with Material 3. DropdownButtonFormField should be replaced by a DropdownMenuFormField widget, but this one does not exists yet. It could be super useful to handle validator on DropdownMenu thanks to a FormField-dedicated widget.

### Proposal

This should be a part of Flutter (as previous mentioned widgets). I tried to implement myself this new widget, but I figured out that there is too many obscure things I don't understand yet. Please find attached a very basic implementation, with a simple use 
case (validator works, but there is a bug with the value not being changed).

[demo.zip](https://github.com/flutter/flutter/files/13999578/demo.zip)
Repository: next.js
Issue: Organized Layouts in Grouped Folders Not Working as expected
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/snowy-lake-3fm6sq?file=%2Fpackage.json%3A6%2C26

### To Reproduce

I have an issue when I have two or more grouped layouts.

![Frame 23](https://github.com/vercel/next.js/assets/16563153/7e8633f6-5032-438a-baec-216bf95040a9)

As you can see, I have described the page structure. **The problem** is that when I access the pricing page, it loads the Tools Layout, and the children do not appear on the page as well. I want it to load the Front Layout, but according to the documentation, it should load the nearest layout.

**The weird thing is that only the Home Page loads the Front Layout.**

I also tried to create multiple root layouts as mentioned here in the [Docs](https://nextjs.org/docs/app/building-your-application/routing/route-groups#creating-multiple-root-layouts), but it's not working. It still loads the Tools Layouts.

When I group all the tools routes in the tools folder, the problem is fixed. However, I want the tools to be in the main routes, not in subroutes.

Does anyone have solutions for this? Did I make any mistakes here?

The Main Root

```
import '../globals.css'
import { locales } from '@/navigation';
import { unstable_setRequestLocale } from 'next-intl/server';
import {notFound} from "next/navigation";

export function generateStaticParams() {
    return locales.map((locale) => ({locale}));
}

export default function RootLayout({children, params: {locale}}) {
    if (!locales.includes(locale)) notFound();
    unstable_setRequestLocale(locale);

    return (
        <html lang={locale} dir={locale === 'ar' ? 'rtl' : 'ltr'} suppressHydrationWarning={true}>
            <body>
                {children}
            </body>
        </html>
    )
}
```


### Additional information

_No response_

### Example

_No response_

### Current vs. Expected behavior

I expect the pricing page to load the layout in the (front) group but its loads the layout in the (tools) group.
When I group the tools in the tools folder the problem will be solved, but I don't want that.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.1
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 4.9.5
Next.js Config:
  output: N/A
```


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

App Router

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

next dev (local), next build (local)

### Additional context

_No response_
Repository: terminal
Issue: Feature Request:  Ability to change what key/key sequence reopens or closes a profile session
Labels: Issue-Feature,Help Wanted,Area-TerminalControl,Product-Terminal

# Description of the new feature/enhancement

This feature request is related to this feature request:

https://github.com/microsoft/terminal/issues/4379

Essentially, the ability to customize what key/key sequences reopens or closes a profile session.  Currently Ctrl+D will close the terminal after exit and "Enter" will restart it.  I would like to customize it so that "r" will restart the session and "<Return>" or "<Enter>" will close the session for good.  This is what MobaXterm uses and it would be nice to have it consistent as I use both regularly.

# Proposed technical implementation details (optional)

Something like this in the json file:

"closeOnExit": "never",
    {
        "closeKey": "<Enter>",
        "reopenKey": "r"
    }
Repository: stable-diffusion-webui
Issue: [Feature Request]: Save defaults of Hires.fix
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

Hires.fix settings are reset when the user restarts the web UI, which is inconvenient.

It may be possible for a user to save any settings by editing a file somewhere, but it would be difficult for uninformed users to find and edit the file.

It would be useful if the user could set defaults for the following items in "Stttings > Upscaling".

・Upscaler
・Hires steps
・Denoising strength
・Upscale by

### Proposed workflow

1. Go to .... 
2. Press ....
3. ...


### Additional information

_No response_
Repository: stable-diffusion-webui
Issue: [Bug]: "Save text information about generation parameters as chunks to PNG file" - Setting is Missing
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I can't find this option "Save text information about generation parameters as chunks to PNG file" among Automatic1111 settings.

### Steps to reproduce the problem

Launch Automatic1111 latest version, Go to Settings Tab, Open all Settings. - No "Save text information about generation parameters as chunks to PNG file" is found.

### What should have happened?

I can't find setting

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

_No response_

### Sysinfo

No error in logs

### Console logs

```Shell
No error in console
```


### Additional information

_No response_
Repository: godot
Issue: MultiplayerSynchronizer (and maybe MultiplayerSpawner), cannot find their working nodepaths if created during runtime
Labels: bug,needs testing,topic:multiplayer

### Tested versions

reproduced in 4.2.1 stable mono b09f793


### System information

Godot v4.2.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.4629) - Intel(R) Core(TM) i5-10600KF CPU @ 4.10GHz (12 Threads)

### Issue description

the MultiplayerSynchronizer node when created during runtime, usually from an instantiated packed scene or spawned from a MultiplayerSpawner, tries to start doing its thing before it or the scene it was created in are initialized in the scene tree. This node is dependant on a fixed root path to sync over the network which does not yet exists, thus it fails whatever initialization it is trying to do and fails to synchronize on subsequent updates. The node tries to start regardless of process mode and before _ready() so there is nothing you can do during the normal update cycle to catch and delay this behaviour, rendering MultiplayerSynchronizer completely unusable if it does not already exist in the launch scene.

I've noticed similar behaviour in MultiplayerSpawner but its much harder to pin down. If it does just end up being an execution order thing, maybe take a look and see if that node is doing its stuff at the same time.

### Steps to reproduce

Use the reproduction project below. launch 2 or more instances and attempt to host and connect. The isLoaded property on the root of enviroment_1.tscn should be synced by the child MultiplayerSynchronizer from the host to the clients. Client.cs is checking it every frame and will print to the console on each peer that makes it. The host will succeed since its the one setting it, but the property wont be synced to the clients, because the client Synchronizer should fail because of this bug.

### Minimal reproduction project (MRP)

[MultiplayerReplicationTest.zip](https://github.com/godotengine/godot/files/13999799/MultiplayerReplicationTest.zip)
Repository: PowerToys
Issue: Issues mapping any sort of keys to caps lock.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.77.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Go into the key remapper, and try the following:
![image](https://github.com/microsoft/PowerToys/assets/64479044/6c85ed50-220b-4b8f-94c2-0db32959940e)


### ✔️ Expected Behavior

I was expecting caps lock to be rebindable to another key or a shortcut. In my case, I didn't have much of a use for caps lock, so I wanted to rebind it to open the emoji keyboard.

### ❌ Actual Behavior

I can't remap anything to Caps Lock because it will complain about nothing being set on the "To Send:" section, even if you do, and then promptly forget about the binding when you press "OK".
![image](https://github.com/microsoft/PowerToys/assets/64479044/0b5d7100-1bed-4a83-ab72-019f2826ad4d)


### Other Software

_No response_
Repository: electron
Issue: [Bug]: frameless, transparant BrowserWindow on win32 resizes following win.minimize(); win.hide()
Labels: component/transparent,bug :beetle:,status/confirmed,component/BrowserWindow,has-repro-comment,28-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

28.1.3

### What operating system are you using?

Windows

### Operating System Version

Windows 10 and Windows 11

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

To not resize the bounds of the window and behave like linux and macos.

### Actual Behavior

On win32 platform the window triggers a resize event [AND] is shrunk by 64 pixels in both width and height.

### Testcase Gist URL

_No response_

### Additional Information

Testing without `frame: false` or `transparent: true` works as expected (no resize) but when both options are used on win32 systems, the `resize` event will trigger from the `hide()` call and the window takes on a smaller size.  Repeating this flow continually shrinks the window.

```javascript
const electron = require('electron');
electron.app.whenReady().then(() => {
    const win = new electron.BrowserWindow({frame: false, transparent: true});
    const b1 = win.getBounds();
    win.minimize();
    win.hide();
    const b2 = win.getBounds();
    if (b2.width !== b1.width) {
        console.error("Bad Resize:", b1, ' != ', b2);
    } else {
        console.info("Test passed", b1, ' == ', b2);
    }
});
```
Repository: pytorch
Issue: Libtorch Don't Support Multi-thread Inference
Labels: module: cpp,triaged

### 🐛 Describe the bug

my code as following:
-------------------------------------
Init(0, weigth_path);
Init(1, weigth_path);
std::thread t0 = std::thread(test0);//test0 is inference such as auto outputs = model.forward(inputs).toTuple(); 
std::thread t1 = std::thread(test1);//test1 is inference
t0.detach();
t1.detach();
-------------------------------------
In only thread t0 inference time is 10ms and in only thread t1 inference time is also 10ms.
but when thread t0 and thread t1 both inference , time is 20ms. It looks like there's one thread waiting for another

### Versions

libtorch 2.0.1

cc @jbschlosser