sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: runtime/trace: Add traceEvCPUProfileRate Event
Labels: NeedsInvestigation,compiler/runtime

**Use Case 1:** Extract CPU Profile

If an execution trace contains CPU sample events, it would be useful to extract a `cpu/nanoseconds` CPU profile similar to the one produced by [runtime.StartCPUProfile](https://pkg.go.dev/runtime/pprof#StartCPUProfile).

This can be useful when building tools. E.g. a "trace to CPU profile" tool. Or perhaps a tool for explaining the _Grunning time of a goroutine using the CPU samples for that goroutine. A naive solution would give equal weight to each collected CPU sample and stretch it over the sum of the _Grunning of the goroutine, but that could be misleading in case of scheduler latency, see below.

**Use Case 2:** Understand OS Scheduler Latency

A Go application might experience two types of scheduler latency: OS Scheduler Latency and Go Scheduler Latency. The latter can easily be analyzed using the execution tracer.

Detecting OS scheduler latency is a bit more tricky, but possible. Over a long enough time period, the cumulative time goroutines spend in `running` state should converge to the cumulative number of `traceEvCPUSample` events multiplied by their duration (default `10ms`). If there are significantly less `traceEvCPUSample` events than expected, that's a strong indicator that the application is not getting enough scheduling time from the OS. That's a [common problem](https://github.com/uber-go/automaxprocs) for some setups, so it'd be nice to use tracing data to detect it.

(There are some dragons here when it comes to CPU samples received during syscalls/cgo ... but I think that deserves a separate discussion)

**Problem:**

The `traceEvCPUSample` event does not include a value indicating how much CPU time it represents:

https://github.com/golang/go/blob/39effbc105f5c54117a6011af3c48e3c8f14eca9/src/runtime/trace.go#L74

One could assume that it's always `10ms`, but that won't work if the user calls [runtime.SetCPUProfileRate](https://pkg.go.dev/runtime#SetCPUProfileRate). Unfortunately the execution trace does record this value, and it's not possible to get the currently active value from user land either. Unlike [SetMutexProfileFraction](https://pkg.go.dev/runtime#SetMutexProfileFraction), SetCPUProfileRate does not return a value, and there is no `GetCPUProfileRate` method either.

Additionally it's currently not possible calculate the expected number of `traceEvCPUSample` events if the CPU profiler is not enabled for the entire duration of the trace.

**Suggestion:**

Add a new `traceEvCPUProfileRate` event that is recorded in the following case:

1. The tracer starts while the CPU profiler is already running.
2. [StartCPUProfile](https://pkg.go.dev/runtime/pprof#StartCPUProfile) is being called.
3. [StopCPUProfile](https://pkg.go.dev/runtime/pprof#StopCPUProfile) is called (record `0`)

Alternatively we could also have a start/stop event for the CPU profiler.

cc @mknyszek @prattmic @nsrip-dd @rhysh
Repository: vscode
Issue: Missing action to open regular Notebook working tree file, from diff editor
Labels: polish,notebook-find

The editor actions for a notebook diff editor is incorrectly showing the `Show Changes` action, preventing me from easily jumping to the actual file:

![image](https://github.com/microsoft/vscode/assets/22350/c7a9604e-dcab-4b96-b369-cb129aa8652c)

Compare that with the text diff editor which has the `Open File` as the first action in the row:

![image](https://github.com/microsoft/vscode/assets/22350/b5c40fc3-ca49-4f91-9f6d-0714c3dfce6d)
Repository: godot
Issue: [3.x] GDScript auto-completion crashes editor when trying to complete after invalid code (`ClassName.find_node("test").`)
Labels: bug,topic:gdscript,confirmed,crash

### Godot version

v3.6.beta2.official [68c507f59]

### System information

w10 64

### Issue description

Godot crashes when I use find_node in the wrong way.

SCRIPT ERROR: Parse error: Non-static function "find_node" can only be called from an instance.

https://github.com/godotengine/godot/assets/19652075/d6d1fa53-e813-4e8f-a4b8-b4606452b663


### Steps to reproduce

In the video

### Minimal reproduction project

I'm not sure I can reproduce this or that it is necessary to do so.
Repository: vscode
Issue: Alignment is incorrectly replaced by tabs
Labels: feature-request,editor-autoindent

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->

When using tabs as indentation and spaces as alignment, VS Code just replaces spaces with tabs when pressing return. The indentation and alignment should be preserved from the previous line.

There was already an issue which got 19! upvotes. That is one less than needed for the backlog. (#134618)

This is a major problem and should be adressed. In the current state, it slows down the coder when writing complex code.
Repository: go
Issue: x/website: add more books
Labels: NeedsInvestigation,website

Page:
 
 https://go.dev/learn/
 
In the books section there is no mention of these two books:

- "Learning Go" https://www.amazon.com/Learning-Go-Idiomatic-Real-World-Programming/dp/1492077216/
- "Programming in Go"  https://www.amazon.com/Programming-Go-Creating-Applications-Developers/dp/0321774639/

"Learning Go" is really excellent so that one should definitely be on the page. 
My "Programming in Go" is good too, but old now.
Repository: godot
Issue: Slow editor/project startup time Godot 4.0-stable
Labels: bug,topic:editor,performance

### Godot version

4.0-stable

### System information

Windows 11 - Godot v4.0-stable - AMD Ryzen 5 7600X - Radeon RX 6800 16G

### Issue description

Opening the Project Manager and running a project in the editor in Godot 4.0-stable is slow.

 4.0-stable:
```
Godot Engine v4.0.stable.official.92bee43ad - https://godotengine.org
OpenGL API 3.3.0 Core Profile Context 23.4.3.230420 - Compatibility - Using Device: ATI Technologies Inc. - AMD Radeon RX 6800

STARTUP BENCHMARK:
        - core :  0.008997  sec.
        - servers :  20.403408  sec.
        - scene :  0.076377  sec.
        - project_manager :  0.27369  sec.
        - total_time :  20.768751  sec.
```

4.0.1-stable:

```
Godot Engine v4.0.1.stable.official.cacf49999 - https://godotengine.org
OpenGL API 3.3.0 Core Profile Context 23.4.3.230420 - Compatibility - Using Device: ATI Technologies Inc. - AMD Radeon RX 6800

STARTUP BENCHMARK:
        - core :  0.010883  sec.
        - servers :  20.370848  sec.
        - scene :  0.074814  sec.
        - project_manager :  0.26566  sec.
        - total_time :  20.728743  sec.

```

4.0.3-stable:

```
OpenGL API 3.3.0 Core Profile Context 23.4.3.230420 - Compatibility - Using Device: ATI Technologies Inc. - AMD Radeon RX 6800

STARTUP BENCHMARK:
        - core :  0.008548  sec.
        - servers :  20.395994  sec.
        - scene :  0.06646  sec.
        - project_manager :  0.207452  sec.
        - total_time :  20.684741  sec.
```

### Steps to reproduce

Put the Godot build in the projects folder and type the following into the command line:

`./Godot_v4.0-stable_win64.exe --startup-benchmark -e`

### Minimal reproduction project

N/A -- can be seen by running the editor.
Repository: pytorch
Issue: binary_cross_entropy (loss) seems to be giving incorrect values for very negative logits
Labels: module: nn,triaged

### 🐛 Describe the bug

Please see the following code which computes the loss manually (using PyTorch ops) and using the `F.binary_cross_entropy` API.

```
import torch
from torch import nn
from torch.nn import functional as F

x = nn.Parameter(torch.tensor([-50., -10., -5., -2., 0., 2., 5., 10.]), requires_grad=True)

optimizer = torch.optim.Adam([x])
optimizer.zero_grad()

xs = x.sigmoid()
loss = -xs.log().mean()

loss.backward()
print(x.grad)

optimizer.zero_grad()
loss = F.binary_cross_entropy(x.sigmoid(), torch.ones_like(x))
loss.backward()
print(x.grad)
```

This code prints.

```
tensor([-1.2500e-01, -1.2499e-01, -1.2416e-01, -1.1010e-01, -6.2500e-02,
        -1.4900e-02, -8.3660e-04, -5.6773e-06])
tensor([-2.4109e-11, -1.2499e-01, -1.2416e-01, -1.1010e-01, -6.2500e-02,
        -1.4900e-02, -8.3660e-04, -5.6773e-06])
```

Note that for the input `-50`, the `binary_cross_entropy` API returns a very small negative value `-2.4109e-11`, instead of a larger negative value, namely `-1.2500e-01`.


### Versions

1.12.1

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: stable-diffusion-webui
Issue: [Bug]: Could not locate cudnn_ops_infer64_8.dll. Everytime I try to generate.
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?

When I click generate within the web-ui, the cmd prints "Could not locate cudnn_ops_infer64_8.dll. Please make sure it is in your library path!"


### Steps to reproduce the problem

1. run webui-user.bat
2. I get the url and open the web ui un the browser window
3. I click generate and get the error

### What should have happened?

It should go ahead with my 20 samples and generate imagery.

### Commit where the problem happens

v1.3.2 6.6.23

### What Python version are you running on ?

Python 3.10.x

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

Windows

### What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

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

Google Chrome

### Command Line Arguments

```Shell
--xformers --lowvram --no-half 
Same result when I remove them
```


### List of extensions

None

### Console logs

```Shell
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.3.2
Commit hash: baf6946e06249c5af9851c60171692c44ef633e0
Installing requirements
Launching Web UI with arguments: --xformers --lowvram --no-half
Loading weights [6ce0161689] from D:\[the laugh]\AI\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 71.5s (import torch: 19.3s, import gradio: 14.7s, import ldm: 6.7s, other imports: 20.2s, setup codeformer: 0.6s, list SD models: 0.3s, load scripts: 3.7s, initialize extra networks: 0.3s, create ui: 2.4s, gradio launch: 3.1s).
Creating model from config: D:\[the laugh]\AI\webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying optimization: Doggettx... done.
Textual inversion embeddings loaded(0):
Model loaded in 307.3s (load weights from disk: 8.0s, create model: 1.9s, apply weights to model: 226.2s, apply dtype to VAE: 9.7s, load VAE: 16.1s, move model to device: 3.7s, hijack: 15.4s, load textual inversion embeddings: 24.9s, scripts callbacks: 1.4s).
  0%|                                                                                           | 0/20 [00:00<?, ?it/s]Could not locate cudnn_ops_infer64_8.dll. Please make sure it is in your library path!
```


### Additional information

My system is 960GTX 4Gb, 8Gb RAM DDR3, i5 4460.

the mentioned dll supposedly has to do with the cuDNN which requires installing visual studio 2019 and CUDA Dev kit, none of which are mentioned in the installation instructions. Installing them in my C drive solved nothing, I dont even have a clue which version would be required.
Repository: tauri
Issue: [feat] Add "run as administrator" flag 
Labels: type: feature request

### Describe the problem

I would like my application to run with administrator privileges by default

### Describe the solution you'd like

Optional flag in `tauri.conf.json` file to set whether the application should run as administrator by default or not

### Alternatives considered

Right now I'm trying to do this from the Rust entry point

### Additional context

When the user opens the app (not the installer), I want Window's UAC prompt to be shown to grant administrator privileges
Repository: vscode
Issue: MacOS: "no job control in this shell" prevents Ctrl+C
Labels: bug,help wanted,macos,terminal-process

Type: <b>Bug</b>

Every terminal starts with the following message before the first prompt:

```
bash: cannot set terminal process group (8590): Inappropriate ioctl for device
bash: no job control in this shell
```

I thought it was related to issue #181939 but it's still present.

It prevents ctrl+C out of long-running processes, and other similar commands. If a process is running when the window is closed, CodeHelper crashes.


VS Code version: Code 1.79.0 (Universal) (b380da4ef1ee00e224a15c1d4d9793e27c2b6302, 2023-06-07T14:29:00.206Z)
OS version: Darwin x64 17.7.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4201)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<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)|3, 3, 3|
|Memory (System)|64.00GB (29.86GB free)|
|Process Argv|-psn_0_725169|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (28)</summary>

Extension|Author (truncated)|Version
---|---|---
laravel-extra-intellisense|ami|0.6.3
vscode-intelephense-client|bme|1.9.5
vscode-tailwindcss|bra|0.9.11
multi-cursor-case-preserve|Car|1.0.5
postcss|css|1.0.9
vscode-eslint|dba|2.4.0
es7-react-js-snippets|dsz|4.4.3
permute-lines|ear|1.1.0
json-tools|eri|1.0.2
prettier-vscode|esb|9.13.0
vscode-smart-column-indenter|lmc|0.0.13
dotenv|mik|1.0.1
isort|ms-|2022.8.0
python|ms-|2023.10.0
vscode-pylance|ms-|2023.6.10
jupyter|ms-|2023.5.1001582324
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
php-docblocker|nei|2.7.0
laravel-blade|one|1.34.0
vscode-sort-json|ric|1.20.0
theme-check-vscode|Sho|1.10.0
vscode-scss-formatter|sib|2.5.0
php-refactor-tool|st-|0.4.4
auto-correct|syg|0.2.2
volar|Vue|1.6.4
gitblame|wad|10.2.0
change-case|wma|1.0.0

(1 theme extensions excluded)

</details>
<!-- generated by issue reporter -->
Repository: next.js
Issue: Incorrect URL for OpenGraph image containing Unicode characters in slug
Labels: Metadata

### 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.5.0: Mon Apr 24 20:53:44 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8103
    Binaries:
      Node: 19.1.0
      npm: 9.1.2
      Yarn: 1.22.19
      pnpm: 8.3.1
    Relevant packages:
      next: 13.4.5-canary.9
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.9.5
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/mandel59/slug-with-unicode/tree/opengraph-image

### To Reproduce

1. Start dev server
2. Open `http://localhost:3000/%E4%BE%8B`. `%E4%BE%8B` is URL encoded `例`
3. Check `<meta property="og:image">` in inspector


### Describe the Bug

The path of OpenGraph image is `/%25E4%25BE%258B/opengraph-image`.
The string for the slug portion is `%25E4%25BE%258B`, which means that the slug is double percent-encoded.

### Expected Behavior

OpenGraph image URL should contain the same slug string as the original page, such as `/%E4%BE%8B/opengraph-image`.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: next.js
Issue: WebSocket is closed before the connection is established
Labels: bug

### 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.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.19.1
      npm: 8.19.3
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.4
      eslint-config-next: 13.4.3
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

/

### To Reproduce

Configure a websocket connection in nextjs.

### Describe the Bug

Console log report:

`WebSocket connection to 'ws:<URL>/_next/webpack-hmr' failed: WebSocket is closed before the connection is established.`

### Expected Behavior

websocket should work as expected

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: next.js
Issue: standalone output should not include content folder
Labels: bug,Output (export/standalone)

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #202304232030 SMP PREEMPT_DYNAMIC Sun Apr 23 20:37:49 UTC 2023
    Binaries:
      Node: 18.16.0
      npm: 9.5.1
      Yarn: 1.22.19
      pnpm: 8.6.0
    Relevant packages:
      next: 13.4.5-canary.9
      eslint-config-next: N/A
      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)

Standalone mode (output: "standalone")

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/stefanprobst/issue-next-standalone-output

### To Reproduce

- clone `stefanprobst/issue-next-standalone-output` repo, install deps
- `pnpm build`
- `ls .next/standalone`
- see that it includes the `content` folder

optionally uncomment `outputFileTracingExcludes` in `next.config.js`, build again, and see that the `content` folder is no longer included in `.next/standalone`, but everything still works

### Describe the Bug

i have recently run into a "Max serverless function size of 50 MB compressed or 250 MB uncompressed reached" when deploying to vercel, and it turned out this was caused by all of my `content` folder (which has tons of markdown and images) was included in the standalone output, even though it is only needed at build time in `getStaticProps`.

this can be fixed by explicitly excluding the folder with `outputFileTracingExcludes`, but maybe the output file tracing could automatically exclude these files which are only needed at build time.

### Expected Behavior

see above

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

vercel
Repository: tensorflow
Issue: Unable to run RNN Model
Labels: stat:awaiting tensorflower,type:bug,type:build/install,comp:apis,wsl2,TF 2.10

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

2.10.0

### Custom Code

Yes

### OS Platform and Distribution

WSL2 on Windows 11

### Mobile device

_No response_

### Python version

3.8.12

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

11.2/8.1.0

### GPU model and memory

NVIDIA Quadro P4200, 16gb

### Current Behaviour?

After setting up the system to use gpu from WSL2 on windows 11, I am able to connect to GPU. But when I run  a tensorflow model, I am able to run CNN model on GPU but when i try to run RNN model I get the below mentioned message and the model does not run:

"W tensorflow/core/framework/op_kernel.cc:1780] OP_REQUIRES failed at partitioned_function_ops.cc:115 : INVALID_ARGUMENT: No OpKernel was registered to support Op 'CudnnRNN' used by {{node CudnnRNN}} with these attrs: [seed=0, dropout=0, T=DT_FLOAT, input_mode="linear_input", direction="unidirectional", rnn_mode="lstm", seed2=0, is_training=true]
Registered devices: [CPU, GPU]
Registered kernels:
  <no registered kernels>

	 [[CudnnRNN]]"

### Standalone code to reproduce the issue

```shell
Trying RNN model with LSTM
```


### Relevant log output

_No response_</details>
Repository: rust
Issue: Initialization of stack-based arrays does not get automatically vectorized.
Labels: I-slow,T-compiler,C-bug,A-autovectorization

Consider the following functions:

```rust
use std::arch::x86_64::*;

const C: usize = 1024;
const VAL: u64 = 1337;

#[target_feature(enable = "avx2")]
pub unsafe fn very_fast(x: fn(&[__m256i; C / 2])) {
  let slice = [_mm256_set_epi64x(0, 1337, 0, 1337); C / 2];
  x(&slice);
}

#[target_feature(enable = "avx2")]
pub unsafe fn eqfast(x: fn(&[__m128i; C])) {
  let slice = [_mm_set_epi64x(0, 1337); C];
  x(&slice);
}

pub unsafe fn fast(x: fn(&[__m128i; C])) {
  let slice = [_mm_set_epi64x(0, 1337); C];
  x(&slice);
}

pub fn slow(x: fn(&[u128; C])) {
  let slice = [VAL as u128; C];
  x(&slice);
}
```

[godbolt link](https://godbolt.org/z/vnh7E7YWq)

Currently (Rust 1.70.0), the following can be observed:
* `slow` uses scalar instructions. It could use SSE2 instructions, but doesn't.
* `fast` and `eqfast` use SSE2 instructions. `eqfast` could use AVX instructions, but doesn't.
* `very_fast` uses AVX instructions.

It is likely better if the following was true instead:
* `slow` and `fast` use SSE2 instructions.
* `eqfast` and `very_fast` use AVX instructions.
Repository: stable-diffusion-webui
Issue: [Bug]: [Solved] SyntaxError: not a TIFF file (header b"b'Exif\\x" not valid) 
Labels: bug-report

### What happened?

@[AUTOMATIC1111](https://github.com/AUTOMATIC1111) AUTOMATIC1111 said v.1.3.2 "**fix postprocessing overwriting parameters**"

### Problem Details:
In extras tab, when you upload jpg and u are generating back png. 
jpg files have **exif info** png does not. So new version writing exif data to png files.
When saving png it must pass existing exif argument 
After version v.1.3.0 there are tons of exif promlems in png files.

### - Solution1: 
use v.1.3.0 

### - Solution2: 
if you have newer version v.1.3.0
in modules/images.py (find save_image_with_geninfo function)

change
```python
            for k, v in (existing_pnginfo or {}).items():
                pnginfo_data.add_text(k, str(v))
```          
lines like that (be careful about spaces)
```python
            for k, v in (existing_pnginfo or {}).items():
                if(k.lower() == "exif") : continue
                pnginfo_data.add_text(k, str(v))
``` 
solving problem. Maybe someone fix this with a new version.

### Still have problem?
- Do not use previously saved png files delete them
- Regenerate them truely using web-ui directly without exif headers






### Steps to reproduce the problem

1. upload jpg file to extras tab
2. create png and save computer
3. upload png to anywhere in webui