sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Shader fail on Ryzen 5600g GPU (specifically)
Labels: bug,topic:thirdparty,needs testing,topic:shaders

### Tested versions

Reproducible on v4.2.2 stable, v4.3 RC, Windows and Linux tested

### System information

Windows 11 + Linux KDE NEON 6.1, Ryzen 5 5600G, Forward+

### Issue description

If I create a simple particle emitter (CPU o GPU) and add an texture with particle animations, the animation/frame become transparent when it reach the last column. For example, if the texture contains 7x7 frames, the animation become invisible every time it reaches the 7th column and become visible again when it goes to the 1st one.
The problem can ONLY be reproducible when I use my Ryzen 5 5600G AMD GPU (on windows AND Linux), but when I use my Notebook (GeForce 1650) or My other PC (GeForce 3090) it works just fine.

### Steps to reproduce

Heres a video reproducing the problem, showing a GPU particle AND a CPU particle with the same experience. 

https://youtu.be/AvPu7vSm1Nw

Just create an animated particle system and add some texture with 7x7 sprites. NOTE: can be only reproduced using my Ryzen 5 5600 AMD GPU, using other GPU work just fine

### Minimal reproduction project (MRP)

[ParticleBug.zip](https://github.com/godotengine/godot/files/14864927/ParticleBug.zip)

TEST 2

It seems to be a SHADER problem, not a particle one. I managed to simplify the bug, and a video + project

https://youtu.be/d4rdQWT8dJ8
[bug-test.zip](https://github.com/user-attachments/files/16101246/bug-test.zip)
Repository: next.js
Issue: window.history.replaceState causes re-render in any component using useParams even if path parameters haven't changed.
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://github.com/Susannah-Parsons/ReRenderBug

### To Reproduce

Install any dependencies
`yarn install`
Run in development mode
`yarn dev`
Open http://localhost:3000 with a browser equipped with React dev tools to see the homepage.

Run the React dev tools profiler and record while you click the 'CHANGE HISTORY` button, then stop recording.
The 'CHANGE HISTORY' button just runs the code 
```
window.history.replaceState(null, "", `?test=test`);
```


### Current vs. Expected behavior

I would expect that, because the path params have not changed and nextjs documentation promises that window.history.replaceState() will not cause a rerender of the page, ClientComponent should not re-render.

Instead of this, ClientComponent does re-render.

This is a particular problem for anyone using a zustand store which persists state in the url search params using the window.history.replaceState() function, as any Component using useParams will re-render every time state is saved to the store.

The bug appears to be tied to the use of the useParams hook. Any component using the hook will re-render on window.history.replaceState() even if the path parameters don't change.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Thu Jan 11 04:09:03 UTC 2024
Binaries:
  Node: 20.11.0
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.15.6
Relevant Packages:
  next: 14.1.4
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


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

App Router, Routing (next/router, next/navigation, next/link)

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

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

I was unable to test against the latest canary, as my app crashes on start with the latest canary. It is still an issue on 14.2.0-canary.55. It is also an issue on next@14. I can't run next@13 because I am using server actions.
Repository: vscode
Issue: Display Tab Indexes
Labels: feature-request,workbench-tabs

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
When writing code, it's often necessary to switch between tabs, and VSCode already has the `workbench.action.openEditorAtIndex` command for quickly switching tabs. Setting up a shortcut for this would be very handy, especially for Vim users. However, tabs themselves do not display their index number, which makes using this feature inconvenient. Therefore, I want to add a setting option for users that allows displaying the index number on tabs, making it convenient to use the `workbench.action.openEditorAtIndex` command.
shows like this,
![image](https://github.com/microsoft/vscode/assets/22972430/92dd05ca-2867-4bcb-b964-44db6da0d765)
Repository: rust
Issue: no LLDB pretty printer for BTreeMap 
Labels: T-compiler,C-bug,WG-debugging

### Meta
`rustc --version --verbose`:
```
rustc 1.77.1 (7cf61ebde 2024-03-27)
binary: rustc
commit-hash: 7cf61ebde7b22796c69757901dd346d0fe70bd97
commit-date: 2024-03-27
host: x86_64-unknown-linux-gnu
release: 1.77.1
LLVM version: 17.0.6
```

https://github.com/rust-lang/rust/blob/master/src/etc/lldb_providers.py and https://github.com/rust-lang/rust/blob/master/src/etc/lldb_lookup.py only have pretty printers for HashMap, not BTreeMap.

![image](https://github.com/rust-lang/rust/assets/12938023/0192cdb2-b7ac-4092-b6c8-d7ebb07199c3)

The screenshot is from Rustrover.
(Unrelated, but the `Rc` as part of the value type parameter is missing it's type parameters)
Repository: godot
Issue: When using SCU build the resulting `compile_commands.json` is missing files
Labels: topic:buildsystem

### Tested versions

4.3 [f47f4a02c87bb701452a621d254ad30c7be84faa]

### System information

macOS 13.3.0 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (8 Threads)

### Issue description

when using scu builds, the `compiledb` option will generate entries for the scu file but not the original file. this means a lot of files won't have the correct values. I4m not sure how feasible it would be to correct this but it would be great to at least have a warning that there is a conflict between this two options.

### Steps to reproduce

1. compile godot with both SCU and `compiledb` enabled 
2. look for a file that is merged for example `editor/editor_properties_array_dict.cpp`

### Minimal reproduction project (MRP)

N/A
Repository: PowerToys
Issue: Host editor repors 127.0.0.2 as duplicate when  "Consider loopback addesses as duplicates" is turned off
Labels: Issue-Bug,Needs-Triage,Product-Hosts File Editor

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

Hosts File Editor

### Steps to reproduce

When I have multiple entry in my host file with 127.0.0.2 the editor marks it as duplicate, when "Consider loopback addesses as duplicates" is turned off.

![image](https://github.com/microsoft/PowerToys/assets/60542168/707c2d5f-7064-4a7f-b99b-8726212c63f4)
[PowerToysReport_2024-04-04-13-27-36.zip](https://github.com/microsoft/PowerToys/files/14865676/PowerToysReport_2024-04-04-13-27-36.zip)




### ✔️ Expected Behavior

When  "Consider loopback addesses as duplicates" is turned off do not show duplicates in the 127.0.0.0/8 range.

### ❌ Actual Behavior

127.0.0.2 is shows as duplicate

### Other Software

_No response_
Repository: pytorch
Issue: Inconsistency: BCELoss asserts target in [0, 1], BCEWithLogitsLoss does not
Labels: module: loss,triaged

### 🐛 Describe the bug

Inconsistency: BCELoss asserts target in [0, 1], BCEWithLogitsLoss does not.
Documentation for both says "Note that the targets t[i] should be numbers between 0 and 1."

```python
In [17]: torch.nn.BCELoss()(torch.FloatTensor([.5]),torch.FloatTensor([2]))

  File ~\miniconda3\Lib\site-packages\torch\nn\functional.py:3127 in binary_cross_entropy
    return torch._C._nn.binary_cross_entropy(input, target, weight, reduction_enum)

RuntimeError: all elements of target should be between 0 and 1

In [18]: torch.nn.BCEWithLogitsLoss()(torch.FloatTensor([.5]),torch.FloatTensor([2]))
Out[18]: tensor(-0.0259)
```

### Versions

PyTorch version: 2.2.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 Home
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:44:08) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-11-10.0.22631-SP0
Is CUDA available: True
CUDA runtime version: 12.4.99
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 4060 Laptop GPU
Nvidia driver version: 551.86
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=4001
DeviceID=CPU0
Family=107
L2CacheSize=8192
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=4001
Name=AMD Ryzen 9 7940HS w/ Radeon 780M Graphics     
ProcessorType=3
Revision=29697

Versions of relevant libraries:
[pip3] flake8==7.0.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.4
[pip3] numpydoc==1.6.0
[pip3] torch==2.2.1+cu121
[pip3] torchaudio==2.2.1+cu121
[pip3] torchvision==0.17.1+cu121
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] numpydoc                  1.6.0                    pypi_0    pypi
[conda] torch                     2.2.1+cu121              pypi_0    pypi
[conda] torchaudio                2.2.1+cu121              pypi_0    pypi
[conda] torchvision               0.17.1+cu121             pypi_0    pypi
Repository: PowerToys
Issue: Runs at startup regardless after turning off the "run at startup" option
Labels: Issue-Bug,Area-Runner,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

I have tried running powertoys as non-admin user, but regardless of which tools I have active, it ALWAYS prompts me for admin password at startup to run ther powertoys app. To avoid that, I have tried turning off the "run at startup" option, but it continues to prompt me for admin at startup, even though I don't want it to run. To duplicate, install powertoys as non-admin user, go to settings and toggle off the "run at startup" option. Reboot. Log back in as non-admin user. powertoys will try to start and prompt for admin logon. If I click no, powertoys will not start. If I enter admin user/pw powertoys will start.
[PowerToysReport_2024-04-04-08-48-20.zip](https://github.com/microsoft/PowerToys/files/14871514/PowerToysReport_2024-04-04-08-48-20.zip)


### ✔️ Expected Behavior

I was expecting powertoys not to run at startup and only run when I started it manually

### ❌ Actual Behavior

After logging in, powertoys runs and asks for admin login to start, even though the "run at startup" option is turned off.

### Other Software

na
Repository: vscode
Issue: [Bug]: Incorrect outdentation when several closing braces are found on the same line
Labels: bug,editor-autoindent,on-unit-test

Consider the following code:

```
function f() {
....if (1) {
....}}
....
```

Where the dots represent whitespaces. If you run `Reindent Lines` this will not change the indentation of the code, because the current language configuration file does not allow indentation and outdentation by more than 1 unit.
Repository: excalidraw
Issue: Suggestion: Flip direction button
Labels: UX/UI

Hi, I spend my life flipping the arrows to change direction on my diagrams. A button that flipped the arrows with a single click would be amazing. Apologies for the terrible sketch:

![Screenshot 2024-04-04 135827](https://github.com/excalidraw/excalidraw/assets/113036970/4b9b0abf-eba8-45b8-b288-34a322d9c56f)
Repository: transformers
Issue: `test_encode_decode_fast_slow_all_tokens` is failing
Labels: Core: Tokenization,WIP

This test starts to fail after #29473

See https://github.com/huggingface/transformers/pull/29473#pullrequestreview-1945687810

#30044 skips it for now, but let's fix it once we have the bandwidth.
Repository: vscode
Issue: [Bug]: Incorrect indentation when there is text before the closing brace
Labels: bug,editor-autoindent,on-unit-test

Consider the following code where the dots represent whitespaces:

```
const a = {
....b: '1'}
```

If we press Enter at the end of the closing brace on the second line, this will lead to the following:

```
const a = {
....b: '1'}
....
```

Whereas we could expect the following:

```
const a = {
....b: '1'}

```
Repository: stable-diffusion-webui
Issue: [Feature Request]: Using two GPUs
Labels: enhancement

Would it be possible to use 2 GPUs in one system to generate an image?
Repository: godot
Issue: GDScript `String` append extremely slow with large strings
Labels: topic:core,topic:gdscript,performance

### Tested versions

Reproducible in:
3.6 beta 4
3.4 stable
3.22 stable

May also be present in 4.x

### System information

N/A

### Issue description

Last night, while testing https://github.com/fractilegames/godot-obj-export/blob/main/objexport.gd I noticed the script was running extremely slowly for medium sized scene (over an hour of runtime, and I killed the editor because I ran out of time).

Some investigation this afternoon indicates there is a pathological performance problem from `String` concatenation with large string sizes, from gdscript. Profiling revealed a large amount of time was being spent in `memcpy`, primarily from `CowData::_copy_on_write()`.

This same drop does not to seem to be present when calling from c++. This is suggestive of some intermediates being used from gdscript which are drastically lowering performance.

### Steps to reproduce

This code shows the problem (see MRP). The slowdown grows exponentially with the string length (modify the 50000).
```
func benchmark_strings():
	var sz = "start"
	
	for n in range(50000):
		sz += "blah" + "blah" + str(n)
		
	print("String length is " + str(sz.length()))
	pass



func _ready():
	var before = OS.get_ticks_msec()
	benchmark_strings()
	var after = OS.get_ticks_msec()
	
	print("Took " + str(after-before) + " ms.")
```

### Minimal reproduction project (MRP)

[String_Slowdown.zip](https://github.com/godotengine/godot/files/14871886/String_Slowdown.zip)
Repository: PowerToys
Issue: Allow us to map keyboard keys to other unassigned keys to suppress input
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager,Needs-Triage

### Description of the new feature / enhancement

In AutoHotkey, there is a functionality that allows us to run scripts in the background to suppress certain (modifier) keys without losing that key's secondary (modifier) functions, specifically the `⊞` (Windows) key. 

### Scenario when this would be used?

 A simple script like this can be run:
```ahk
#Requires AutoHotkey v2
~LWin::vkE8
```
And the user no longer has to worry about inadvertently triggering the Start menu, **but** can still use the `⊞ Win` as a modifier for other hotkeys, i.e `⊞ Win`+`R` for the OOB _Run_ dialog, or `CTRL`+`⊞ Win`+`V` to _Paste as Plain Text_.  I realize this is a pretty niche function, but I find it extremely useful.  However, using PowerToys Keyboard Manager in conjunction with AutoHotkey can cause conflicts and unexpected behaviors.   

### Supporting information

A quick google search will yield many, many results demonstrating just how popular such a function can be.
Repository: go
Issue: x/tools/go/analysis: support and encourage use of RelatedInformation for multi-part errors
Labels: NeedsInvestigation,Tools,Analysis

Let's explore the potential for greater use of analysis.RelatedInformation for richer and more easily understandable diagnostics.

From Google Issue 332766358:

> [@znkr] My main gripe with analyzers is that the smarter they are, the less the error message can explain. ... I wonder if we can do better. Rust and Nushell provide very nice error messages that explain what's going on. I haven't really used Nushell, but the way you create error messages is very simple and results in nice errors: [https://www.nushell.sh/book/creating_errors.html](https://www.google.com/url?q=https://www.nushell.sh/book/creating_errors.html&sa=D&source=buganizer&usg=AOvVaw0lTcQzGPvBXs9mK_i9lcJX)
> Is that possible with the analyzer framework? Would it be a lot of work to add?

We have the API for it already ([analysis.RelatedInformation](https://www.google.com/url?q=https://pkg.go.dev/golang.org/x/tools/go/analysis%23RelatedInformation&sa=D&source=buganizer&usg=AOvVaw1UPj55Hm9ogi0wrSUyePe-)) but none of our analyzers populate this field because no drivers display it. Actually that's not quite true: gopls passes it directly to the [RelatedInformation field in LSP](https://www.google.com/url?q=https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/%23diagnosticRelatedInformation&sa=D&source=buganizer&usg=AOvVaw0igoorqklKlikcZ6MVM5tl)), and then it's up to the client editor to display it however it wants. Of course I don't know what this looks like in practice because none of our analyzers populate it. :) It would be an interesting exercise to see what it looks like in popular editors, and inspect our existing analyzers for opportunities to use this feature to clarify their responses. (Off the top of my head, the [lostcancel](https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/lostcancel) analyzer always reports an error that relates two source locations, so it would be a good candidate.) Then we would know whether it is worth adding/borrowing/stealing a fancy ASCII-art frontend for the CLI-based drivers. But if some clients just discard this information, there's a disincentive to adapt any analyzer to populate it---a chicken-and-egg situation.



Related:
- https://github.com/golang/go/issues/39062
- https://github.com/golang/go/issues/54233
Repository: bitcoin
Issue: intermittent issue in wallet_backwards_compatibility.py:  line 245, in run_test                                        assert txs[3]["abandoned"]                                    AssertionError
Labels: Wallet

https://cirrus-ci.com/task/5524545770094592?logs=ci#L3290
Repository: deno
Issue: Network services should preferentially bind to IPv4
Labels: bug,ext/net

When we bind to an address that has both an IPv4 and IPv6 address, we should preferentially choose the IPv4 address. While technically both are correct, it is most likely that a user expects binding to the IPv4 version of the address, especially with `localhost`.

In addition, we should file a follow-up issue to determine how users can choose v4 vs v6 binding strategy -- it may make sense for the command line and each network listen to provide an `ipv6` flag with the ability to prefer or disable ipv6, and to enable "dual-stack" mode where ipv6 ports can listen for legacy ipv4 addresses  (ie: https://docs.rs/socket2/latest/socket2/struct.Socket.html#method.set_only_v6).

This popped up in a recent Github runner change where `--ipv4` was placed in `.curlrc`, and curl no longer worked against localhost, as we had quietly bound to `localhost`.
Repository: PowerToys
Issue: Allow Environmental Variable Editor in Admin mode launchable via Admin By Request
Labels: Idea-Enhancement,Needs-Triage,Product-Environment Variables

### Description of the new feature / enhancement

At the company I work for I have the security permissions to launch the standard Environmental Variable editor and edit the System set of variables but only if I launch it from the Admin by Request tool, otherwise a Domain UAC Prompt appears to which for obvious reasons I don't have the password / permissions for.

In the same way if I try and launch the Powertoy version I get a similar Network UAC prompt. could support for the Admin By Request tool be added.

Admin By Request - Workstation Edition 8.1.6

### Scenario when this would be used?

When I desire to add Environmental variables to the SYSTEM section I need it launchable by Admin Request to be authorised

### Supporting information

_No response_
Repository: pytorch
Issue: document torch.ops.import_module on the website; also make sure to use this in tutorials
Labels: module: docs,triaged

cc @svekars @brycebortree
Repository: svelte
Issue: [Error] undefined is not an object (evaluating 'if_block.p')
Labels: awaiting submitter

### Describe the bug

The last `Svelte` version that worked properly was v4.2.0, and after upgrading to later versions including the latest v4.2.12, I encountered the following error:

```console
[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'if_block.p')	flush (chunk-663KAPRR.js:1322)
```

I tried tracing and debugging the error and didn't get any valuable information, I'm not familiar with the internal workings of svelte.

Any help or what I can try to do?



### Reproduction

This is a complex project that I can't currently separate and make a minimal reproducible demo, because I can't pinpoint the part where the problem occurs.

If there's some help or guidance, maybe I can isolate or locate that wrong part.

### Logs

_No response_

### System Info

```shell
macOS latest
Safari latest
Node latest
Vite latest
Svelte v4.2.1-4.2.12
```


### Severity

blocking an upgrade
Repository: go
Issue: net/http/pprof: traces collected from the /debug/pprof/trace endpoint don't include CPU profile samples by default
Labels: NeedsInvestigation,compiler/runtime

The runtime execution tracer records CPU profiler samples if the CPU profiler is running during tracing. Having these samples contextualized in a trace is very useful. However, if I collect an execution trace via the `/debug/pprof/trace` endpoint, that execution trace will not include CPU profile samples by default. Currently I have to hit the `/debug/pprof/profile` endpoint simultaneously to activate CPU profiling, or otherwise arrange for it to be activated at the right time, to get this data in the trace. I think we should just have the `/debug/pprof/trace` endpoint turn on CPU profiling. I see two ways to go about this:

1) Turn on CPU profiling unconditionally in `/debug/pprof/trace`
2) Add a query parameter (`cpuprofiler`?) to the endpoint which, if provided, enables CPU profiling during the trace recording

I can't think of a reason why I _wouldn't_ want CPU profile samples in an execution trace, so I might be inclined to option 1. However, having it on unconditionally would conflict with a user collecting a CPU profile via `/debug/pprof/profile` simultaneously: whichever endpoint call completes first would presumably stop CPU profiling, interfering with the other endpoint call. So perhaps option 2 is better?

cc @mknyszek
Repository: flutter
Issue: PictureRecorder needs a dispose method
Labels: c: new feature,framework,engine,c: proposal,perf: memory,P3,team-framework,triaged-framework

### Use case

While investigating #145220 we discovered that if there are errors encountered during rendering, the renderer leaks picture recorders and will eventually run the app out of memory. This is something that is addressable, but not without PictureRecorder implementing dispose. It holds on to native resources (for example SkPictureRecorder in CanvasKit) yet you can't properly dispose it. The assumption of the class is that you will always call endRecording, but that may not be the case when handling exceptions and it certainly isn't the case when endRecording throws due to OOM conditions, which may be temporary.

### Proposal

Implement dispose on PictureRecorder.