sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: runtime: avoid unnecessary sysmon preemptions
Labels: NeedsFix,compiler/runtime

sysmon preempts long running goroutines to allow scheduling other goroutines. Today this is done unconditionally. However, the scheduler guarantees work conservation. This means that if there is runnable work, we must start a P to run the work. From this, we can deduce the reverse: if there are idle Ps, then there must not be runnable work.

sysmon could use this property to reduce its preemptions: only preempt if there are no idle Ps.

This came up recently when investigating #55160, which is a bug in the scheduler causing it to lose work conservation. Unconditional sysmon preemptions masked the bug by inducing preemptions, which allows (most) programs to continue making forward progress with fewer Ps. If sysmon preempted only if there were no idle Ps, programs would hang in the presence of this bug, making it more apparent.

@felixge proposed this earlier this year in https://go.dev/cl/460541. We held off due to two sources of work that break our work conservation guarantee: fractional GC workers, and the trace reader goroutine. Neither of these have a direct waker that does a wakeup when the work is runnable. Instead, they both depend on the scheduler eventually running and noticing the work.

In light of new information about how this can be useful in uncovering scheduler bugs, I think we should reconsider addresses these cases. We could also introduce this change as a debug mode without addressing these; neither fractional GC workers nor the trace reader are required for general correctness.

cc @mknyszek @aclements
Repository: vscode
Issue: Git - Diff decorations not working
Labels: bug,git


Type: <b>Bug</b>

Fresh VSCode install, working on a ruby on rails codebase on WSL2 (ubuntu linux 2020).

Tried rebooting, turning the feature on/off on the settings, reinstalling. 

Works as expected on the latest stable release.

Version: 1.79.0-insider (user setup)
Commit: b380da4ef1ee00e224a15c1d4d9793e27c2b6302
Date: 2023-06-07T14:26:54.152Z
Electron: 22.5.5
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044

VS Code version: Code - Insiders 1.79.0-insider (b380da4ef1ee00e224a15c1d4d9793e27c2b6302, 2023-06-07T14:26:54.152Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|31.73GB (10.55GB free)|
|Process Argv|--crash-reporter-id c6eff9ac-b5d8-4ff2-990f-1b115d889870|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu-20.04|
|OS|Linux x64 5.4.72-microsoft-standard-WSL2|
|CPUs|Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz (12 x 2592)|
|Memory (System)|24.84GB (21.85GB free)|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
remote-wsl|ms-|0.79.4
remote-explorer|ms-|0.5.2023060509
remote-server|ms-|1.3.2023060809
haml|vay|1.0.1
vim|vsc|1.25.2
gitlens|eam|2023.6.810
copilot-chat|Git|0.3.2023060801
copilot-nightly|Git|1.88.144
vscode-pull-request-github|Git|0.67.2023060813
ruby-lsp|Sho|0.3.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
vscod805cf:30301675
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
a9j8j154:30646983
showlangstatbar:30737417
pythonms35:30671666
03d35959:30757351
7ij38806:30687742
pythonfmttext:30716741
pythoncmvfstr:30726892
fixhidewlkth:30724384
hidesbindicator:30724476
pythongtdpath:30726887
pythonnosmt12:30757129

```

</details>

<!-- generated by issue reporter -->
Repository: vscode
Issue: .vscode\cli\ ignores portable mode
Labels: feature-request,portable-mode,code-cli

<!-- ⚠️⚠️ 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 ? : Yes

<!-- 🪓 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 : 64bit 1.79.0
- OS Version : 64bit Windows 10 22H2 Pro & Enterprize

Steps to Reproduce :

run vscode in portable mode as described here
https://code.visualstudio.com/docs/editor/portable

in "%USERPROFILE%\\.vscode\\cli" ( = usually
"C:\Users\\%USERNAME%\\" ) the folder ".vscode\cli\\"
is created by vscode , although vscode is in portable mode .

Expected Behaviour :

the folder ".vscode\cli\\" should be created within the
portable "data\\"-folder , whose path is in the env var
VSCODE_PORTABLE  , when vscode is started in portable mode .
Repository: stable-diffusion-webui
Issue: [Feature Request]: Highlight Model Images in Extra Network that are being used in prompt
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 ?

In the "Extra Network" panel, all models that are used in the prompt are highlighted. So after using PNGInfo to recreate an image you can quickly check if you have all models, that are listed in prompt. Also would be nice to know what prompt goes with what model (lora).

Also maybe highlight text of the models in the prompt, though that might not be worth the effort. 

So maybe also give an error if models are missing. So if the prompt has a lora you do not have, give an error.
Repository: godot
Issue: SpriteFrames menu aggressively closing after dragging in images or other actions 
Labels: bug,topic:editor,usability,topic:2d

### Godot version

4.0.3.stable

### System information

Windows 11 -  Godot 4.0.3 Stable

### Issue description

When trying to add images to the Sprite Frames, the whole menu will close as soon as you drag and drop them inside the frame box. This is heavily frustrating for users who want to mass-dump items into this menu.

https://github.com/godotengine/godot/assets/68198648/7f4fab00-4532-4a75-9184-1095055270bd



### Steps to reproduce

1. Open project and import images into project folder
2. Make AnimatedSprite2D Node
3. Create new SpriteFrames Animation with 2 or more Animations
4. Drag and drop 1 or more images into one of the animations
5. Feel my pain (window closes)

### Minimal reproduction project

N/a
Repository: flutter
Issue: [CanvasKit] Allow users to specify `powerPreference` WebGL attribute
Labels: c: new feature,engine,platform-web,c: proposal,e: web_canvaskit,P3,team-web,triaged-web

WebGL allows us to specify a `powerPreference` attribute that helps hint to the browser whether to use a discrete GPU vs a lower powered integrated GPU. We should add a setting to the JS configuration that allows the application developer to tweak this power preference.
Repository: rust
Issue: Don't parse and reserialize toml in configure.py
Labels: C-cleanup,T-bootstrap

Currently, configure.py has a *lot* of code dedicated to parsing and serializing toml: https://github.com/rust-lang/rust/blob/6959dd0ee3e8c0c11d3ea54b258dfaf24f148a49/src/bootstrap/configure.py#L382-L509
90% of this is unnecessary: when we get `--set rust.foo` as an argument, we can write `rust.foo = true` directly to config.toml, without needing to parse the toml itself. That should make configure.py a lot simpler, and as a side effect it means the hack to append a profile will be valid toml again: https://github.com/rust-lang/rust/pull/112281#issuecomment-1582587761
Repository: godot
Issue: Godot GLTF Export Fails to Export Pure Skeleton Animations with No Meshes
Labels: bug,topic:3d,topic:export

### Godot version

https://github.com/godotengine/godot/commit/e188d619227990001667821dac8bc8940076d4a9

### System information

Mac Mini, Apple Silicon on Firefox

### Issue description

The Godot GLTF export feature is unable to export pure skeleton animations without any associated meshes. This issue occurs when attempting to export a scene containing only a skeleton and its animations, without any mesh instances.

See also https://github.com/godotengine/FBX2glTF/issues/19 for the import like this.

A potential solution could involve updating the GLTF export code to handle cases where there are no mesh instances present in the scene, ensuring that the skeleton and its animations are still exported correctly.

### Steps to reproduce

#### Steps to Reproduce:

1. Create a new Godot project.
2. Import a gltf animation with meshes
3. Delete the meshes
7. Go to `Project > Export As > GLTF Scene`.
8. Choose a destination folder and click "Export".

#### Expected Result:

The GLTF file should be exported successfully, containing the skeleton and its animations without any mesh data.

#### Actual Result:

The export process fails, and the resulting GLTF file does not contain the skeleton. It contains a lot of nodes. Without the skeleton, the animation cannot be used for the godot engine humanoid for example.


### Minimal reproduction project

[tscn_animation_without_mesh_export.zip](https://github.com/godotengine/godot/files/11701917/tscn_animation_without_mesh_export.zip)
Repository: pytorch
Issue: DTensor uneven sharding corner cases.
Labels: oncall: distributed,triaged

### 🐛 Describe the bug

While debugging activation checkpointing's unit I found one interesting corner case.

For example:
```
x = torch.rand(5, 10)
y = DTensor.from_local(x).redistribute(device_mesh=mesh, placements=[Shard(0)]).redistribute(device_mesh=mesh, placements=[Replicate()]).to_local()

y.size is not equal to x.
```

### Versions

If world size = 4, y sizes are:
```
y size:  torch.Size([8, 10]) (rank 1)
y size:  torch.Size([8, 10]) (rank 2)
y size:  torch.Size([8, 10]) (rank 0)
y size:  torch.Size([8, 10]) (rank 3)
```

So this is a bug of uneven sharding.

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: vscode
Issue: Make welcome editors open instantly
Labels: debt,ux,perf-startup,workbench-editors,workbench-welcome,getting-started

This is not 100% a startup perf issue but I like to see this as a perceived UX perf issue:

![Recording 2023-06-09 at 06 32 08](https://github.com/microsoft/vscode/assets/900690/1dd100d3-458e-4f74-b9f2-e13329f65957)

It is also not a regression but something that has always been there: the `workbench.startupEditor` setting is configured by default to be `welcomePage`. However you notice that VS Code first shows the empty editor area with out watermark only then to switch to the welcome page. This is because initially the code to open the welcome page is not loaded and only kicks in a bit later.

I think we should show the welcome page right from the beginning. This would require us to return a resolvable untyped editor input (those just have a `resource: URI`) here:

https://github.com/microsoft/vscode/blob/db6bcdf309cc1565c502a54b73c33a63bdabfbd8/src/vs/workbench/browser/layout.ts#L619

For example here we do it when `startupEditor` is configured to be untitled file:

https://github.com/microsoft/vscode/blob/db6bcdf309cc1565c502a54b73c33a63bdabfbd8/src/vs/workbench/browser/layout.ts#L675-L677

@lramos15 knows all about editor resolvers so he could probably assist how to make the welcome editor a untyped editor input that can be resolved.

Arguably such a dependency of `layout.ts` to the welcome page is a bit of a layer break because the welcome page comes from the `contrib` folder, but I would make an exception here since this is the default experience for all new users.
Repository: stable-diffusion-webui
Issue: [Feature Request]: POST /sdapi/v1/options , model exists status check
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 ?

Is there an existing issue for this?
 I have searched the existing issues and checked the recent builds/commits

What would your feature do ?
I use reset API setup sd_model_checkpoint ,   /sdapi/v1/options POST not check model is exits or not , if I send wrong model , webui setup fall back model from model_list , but I think keep current model it's better 

Also maybe highlight text of the models in the prompt, though that might not be worth the effort.
if model not exits , webui setup other model from model_list , it's have switch time .



### Proposed workflow

1. curl -X 'POST' \
  'http://localhost:7860/sdapi/v1/options' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{"sd_model_checkpoint":"Wrong Model name"}'



### Additional information

_No response_
Repository: next.js
Issue: App Router page with data fetching returns 404 in combination with the i18n setup
Labels: Internationalization (i18n)

### 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 22.4.0: Mon Mar  6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020
    Binaries:
      Node: 16.17.0
      npm: 8.15.0
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.6-canary.0
      eslint-config-next: 13.4.4
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.3
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true), Internationalization (i18n), Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/torleifhalseth/my-app

### To Reproduce

1. Create a Nextjs application using the app directory with a page that [fetches data using async and await in Server components](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching)
2. Add i18n support to the next config
3. Deploy to Vercel
4. Visit the page

### Describe the Bug

The page return 404 on Vercel.
Locally it works as expectet both when running `npm run dev` and `npm run build` + `npm run start`

Here is the preview of the application reproducing the issue: 
[https://my-app-torleif.vercel.app/](https://my-app-torleif.vercel.app/)
Here is a page using async await to fetch data in server component:
[https://my-app-torleif.vercel.app/favorite](https://my-app-torleif.vercel.app/favorite)

Here is the deployment data from Vercel:
![Screenshot 2023-06-13 at 15 09 26](https://github.com/vercel/next.js/assets/2523381/039f4e74-d86c-4243-80d1-5a76ddb1737d)

Screenshot from the error in Vercel logs:
<img width="742" alt="Screenshot 2023-06-09 at 09 03 17" src="https://github.com/vercel/next.js/assets/2523381/d6d7512c-00b2-4ebd-9b4a-035a6809b91a">

This PR with the related issues looks very related, but the problem persists when deployed to Vercel for some reason.
https://github.com/vercel/next.js/pull/47429

### Expected Behavior

Expect the page to return the page with data.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

Vercel
Repository: flutter
Issue: [tool] `flutter test` logic to determine whether to rebuild the asset bundle may not work after upgrading flutter to a version that changes the schema of the asset manifest
Labels: a: tests,tool,a: assets,P2,team-tool,triaged-tool

This issue should be fixed before we make any changes to asset manifest generation.

Discovered while investigating https://github.com/flutter/flutter/issues/127297. See [this comment on the issue ](https://github.com/flutter/flutter/issues/127297#issuecomment-1583707836) for repro steps and an explanation. 

`flutter test`, when deciding whether or not to build the asset bundle, checks for an existing asset manifest file (which is part of every asset bundle). If one is not found, or has a last-modified time that predates the last-modified time of pubspec.yaml, the asset bundle is rebuillt.

This logic does not account for the case where flutter changes the formatting/schema for the contents of the asset manifest. In this scenario, the image resolution code in the framework would expect the asset manifest to be in the new format.  However, the pre-existing asset manifest is in the previous format. The user, when running `flutter test` via CLI or IDE, would then see a confusing error, similar to one encountered in #127297. The only way to resolve this is to clear the cached manifest file (e.g. using `flutter clean`), and it is not obvious that this is what is needed.

We should find a way to improve this logic so that we are free to update the formatting/contents of the asset manifest file in the future.
Repository: flutter
Issue: isComposingRangeValid is inconsistent between platforms
Labels: a: text input,framework,has reproducible steps,P2,found in release: 3.10,found in release: 3.12,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)

### Steps to reproduce

1. flutter 3.10.1
2. Dart 3.0.1

### Expected results

In the old version, when I input Chinese pinyin, it will be triggered
The new version does not work

### Actual results

In the old version, when I input Chinese pinyin, it will be triggered
The new version does not work

### Code sample

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


### Screenshots or Video

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


### Logs

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


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: vscode
Issue: Fuzzy search not working well in Recent Folders quickpick in 1.79.0
Labels: bug,quick-pick

<!-- ⚠️⚠️ 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?: Yes

<!-- 🪓 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: 1..79.0
- OS Version: Windows 11, macOS 13.4

Steps to Reproduce:

1. Launch vscode and recent workspace folders are listed in the Welcome screen.
2. Click "More" to show a quickpick like the following

![image](https://github.com/microsoft/vscode/assets/4662568/00e51d6a-0b77-4b89-8992-438ba1701f0c)

Before the latest release of vscode 1.79.0, the fuzzy search for this quickpick works well in the sense that typing both folder name and the remote host name will work. But in 1.79.0, typing a folder name + host name no longer works.

![image](https://github.com/microsoft/vscode/assets/4662568/0ce56a6c-4ca0-4047-8f0d-57d4a00a1bd3)

Yet it works with either folder name or remote host name, but not both.

![image](https://github.com/microsoft/vscode/assets/4662568/25cc433e-99c7-4183-a3bc-3e9c6316586c)

Looks like it is a regression somewhere in the fuzzy search of the text box. It makes it hard to find workspace folders of the same name but on many different remote hosts.
Repository: pytorch
Issue: Fast kernels for low rank matrix multiplication
Labels: triaged,module: linear algebra

### 🚀 The feature, motivation and pitch

I'm working on the robotics perception field and we have been exploring to use pytorch for production more on the control side where the most common used primitives are camera poses, projections, quaternion arithmetic, which in the real-time production side can be identified by a subset of matmul operators of sizes of 3x1, 4x1, 3x3, 4x4.

With some colleagues we put together in kornia a small package for [Lie Algebra](https://github.com/kornia/kornia/tree/master/kornia/geometry/liegroup), Quaternion, etc based on a colab with the [Sophus](https://github.com/strasdat/Sophus) team. We did some internal benchmarks and ended up turning down the kornia/pytorch implementation because of slowness for small matrix multiplications operators.

Sophus is based on c++ Eigen, however, in parallel I did a quick public [benchmark](https://discuss.pytorch.org/t/matmul-slow-for-small-matrices/168425) comparing pytorch/numpy and (unless something missing; and happy to expand/improve) numpy is still a clear winner that prevents using pytorch in real time production robotics platforms.

### Alternatives

Alternatives I'm thinking to solve my problem:
- Numba (which removes pytorch out of the equation)
- Custom c++/cuda kernels to mimic Eigen (which in kornia we don't have bandwidth to support but happy to contribute (with guidance) to pytorch core.
- Custom Python/Triton kernels (which we can experiment/maintain from kornia side)

### Additional context

Just screenshot of the [benchmark](https://discuss.pytorch.org/t/matmul-slow-for-small-matrices/168425) mentioned above

![image](https://github.com/pytorch/pytorch/assets/5157099/2cadc328-19ab-430e-b621-1753920c9855)


cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano