sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: N18RendererCanvasCull4ItemE memory leak at exit
Labels: bug,topic:rendering,topic:2d

### Godot version

4.1.3

### System information

Windows 10

### Issue description

```
ERROR: 1 RID allocations of type 'N18RendererCanvasCull4ItemE' were leaked at exit.
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
     at: cleanup (core/object/object.cpp:2047)
Leaked instance: GDScriptNativeClass:-9223014145819934213
Leaked instance: GDScript:-9222511119250226071 - Resource path: res://Client/Client.gd
Leaked instance: Object:914793674310766
Leaked instance: Control:914243918496880 - Node name:
Hint: Leaked instances typically happen when nodes are removed from the scene tree (with `remove_child()`) but not freed (with `free()` or `queue_free()`).
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/io/resource.cpp:489)
Resource still in use: res://Client/Client.gd (GDScript)
```

### Steps to reproduce

App launched with --verbose option and quitted

tryed to add queue_free() in

```
func _exit_tree() -> void:
	thread.wait_to_finish()
```

heres what th ready function looks like as i first incriminated the thread:

```
func _ready():
	thread = Thread.new()
	thread.start(self._on_message.bind(null))

	get_viewport().files_dropped.connect(Callable(self, "_on_files_dropped"))
	_relay_client = $WebsocketClient
	_relay_client.connect("on_message", Callable(self, "_on_message"))
	_relay_client.connect("on_players_ready", Callable(self, "_on_players_ready"))

	$StartScreen/StartGameButton.connect("pressed", Callable(self, "_on_start_game"))

	$StartScreen.show()
	$Lobby.hide()
```

and here's the _on_message one

```
func _on_message(message : Message):
	if (!message) : return
	if (message and message.disconnected_closed): return
	if (message and message.disconnected_disconnected): return
	if (message and message.server_login): return
	if (message and message.match_start): return
	else:
		if (message.content.has("seed")):
			process_message(message)

		if (message.content.has("whoiam")):
			process_whoiam_message(message)
```

### Minimal reproduction project

N/A
Repository: godot
Issue: Transition WebRTC godot 3.5.1 --> godot 4.1.2 No communication between peers anymore
Labels: needs testing,topic:network

### Godot version

4.1.3

### System information

Windows 10

### Issue description

The peers connect the ice server but not communicate between them anymore

### Steps to reproduce

godot 3 --> `onready var rtc_mp : WebRTCMultiplayer = WebRTCMultiplayer.new()`
godot 4 -->` @onready var rtc_mp : WebRTCMultiplayerPeer = WebRTCMultiplayerPeer.new()`

godot 3
```
func _ready():
	rtc_mp.connect("connection_failed", self, "_on_connection_failed")
	rtc_mp.connect("connection_succeeded", self, "_on_connection_succeeded")
	rtc_mp.connect("peer_connected", self, "_on_peer_connected")
	rtc_mp.connect("peer_disconnected", self, "_on_peer_disconnected")
	rtc_mp.connect("server_disconnected", self, "_on_server_disconnected")

func initialize(id):
	_my_id = id
	rtc_mp.initialize(id, false)
```
godot 4

```
func _ready():
	#rtc_mp.connect("connection_failed", Callable(self, "_on_connection_failed"))
	#rtc_mp.connect("connection_succeeded", Callable(self, "_on_connection_succeeded"))
	rtc_mp.connect("peer_connected", Callable(self, "_on_peer_connected"))
	rtc_mp.connect("peer_disconnected", Callable(self, "_on_peer_disconnected"))
	#rtc_mp.connect("server_disconnected", Callable(self, "_on_server_disconnected"))

func initialize(id):
	_my_id = id
	rtc_mp.create_client(id)
```


godot 3

```
func create_peer(id):
	print("RTC Creating peer for ", id)
	var peer: WebRTCPeerConnection = WebRTCPeerConnection.new()
	peer.initialize({
		"iceServers": [ { "urls": ["stun:stun.l.google.com:19302"] } ]
	})
	peer.connect("session_description_created", self, "_offer_created", [id])
	peer.connect("ice_candidate_created", self, "_new_ice_candidate", [id])
	rtc_mp.add_peer(peer, id)
	if id > rtc_mp.get_unique_id():
		peer.create_offer()
```


godot 4

```
func create_peer(id):
	print("RTC Creating peer for ", id)
	var peer: WebRTCPeerConnection = WebRTCPeerConnection.new()
	peer.initialize({
		"iceServers": [ { "urls": ["stun:stun.l.google.com:19302"] } ]
	})
	peer.connect("session_description_created", Callable(self, "_offer_created").bind(id))
	peer.connect("ice_candidate_created", Callable(self, "_new_ice_candidate").bind(id))
	rtc_mp.add_peer(peer, 1) #id
	if id > rtc_mp.get_unique_id():
		peer.create_offer()
```


I don't receive this signal anymore `peer_connected`

```
func _on_peer_connected(id):
	print("RTC _on_peer_connected")
```



### Minimal reproduction project

N/A
Repository: godot
Issue: Cannot add content to TextLine and TextParagraph after _shape() or _shape_lines() has internally been called.
Labels: needs testing,topic:gui

### Godot version

v4.1.2.stable.arch_linux

### System information

Godot v4.1.2.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Tue, 10 Oct 2023 21:10:21 +0000 - Wayland - Vulkan (Mobile) - dedicated AMD Radeon RX 580 Series (RADV POLARIS10) () - AMD Ryzen 7 2700 Eight-Core Processor (16 Threads)

### Issue description

Upon calling functions such as `get_size()`, `resize_object()`, or any other function that internally uses `_shape()` or `_shape_lines()`, the TextLine or TextParagraph becomes "read-only", any subsequent calls to `add_string` or `add_object` being silently discarded. I have not yet found any useable workaround.

### Steps to reproduce

- Create a TextLine or TextParagraph
- Add a string to it
- Call `get_size()`
- Add another string to it
- The second string does not get added to the line or paragraph.

### Minimal reproduction project

[TextLine.zip](https://github.com/godotengine/godot/files/13251267/TextLine.zip)
Repository: vscode
Issue: Markdown preview is not automatically opened when md file is opened via command-line and no VS code instance was already running
Labels: bug,help wanted,custom-editors

<!-- ⚠️⚠️ 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

I read various topics on how to achieve that Markdown files are automatically displayed as preview (e.g. #2766, https://stackoverflow.com/a/63541437/150978). 

The only partial working solution was adding in setting.json
```
    "workbench.editorAssociations": {
        "*.md": "vscode.markdown.preview.editor"
    }
```

However this only works if VS code is already running. If no VS code instance is running and you execute `code C:\<somepath>\test.md` then the md file is opened in edit view and not preview mode.

```
Version: 1.84.0 (user setup)
Commit: d037ac076cee195194f93ce6fe2bdfe2969cc82d
Date: 2023-11-01T11:29:04.398Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
```

Steps to Reproduce:

1. Change the setting change shown above.
2. Create a simple markup file `C:\temp\test.md` 
3. Close all open VS code instances
4. Execute `code C:\temp\test.md`
5. VS code opens and show the editor of the md file

If you repeat the steps but in step 3 do not close all VS code instances, but have one instance running in step 5 correctly the preview will be displayed.

Why does it make a difference if a VS code instance is already running or not? It should not make a diference, so the current behavior is not deterministic which in my opinion means it is a bug.
Repository: puppeteer
Issue: [Feature]: Support locale when starting the puppeteer
Labels: feature,good first issue

### Feature description

Could we pass the locale arg when starting the puppeteer, that would be great! Playwright supports that https://playwright.dev/docs/api/class-browser#browser-new-context-option-locale
Repository: excalidraw
Issue: Thoughts on using Excalidraw as a presentation tool for the first time
Labels: frames,E+/presentations

Hey! I've been a paying user for a while now, but I just used Excalidraw as a presentation tool for the first time and I thought I'd share my notes.

0. First of all I'd like to say thanks for adding this mode, it's super useful and makes me very happy that I can use my favorite drawing app to present too!

1. the vast majority of time and confusion was due to the assignment of objects to frames, which is pretty confusing. I had a few problems:

a) If you make a frame and don't get the size right initially, the things you bound are "stuck" to the frame and you basically have to delete and start again.

b) Many times I'd add a frame, when I went into presentation mode, things were missing, and it wasn't clear how to solve that, I would try making the frame bigger and some things would be outlined in blue, but then they'd be missing in the presentation view.

c) If I wanted to frame a set of other frames and then zoom in, it seemed to get confused about what objects were associated with frames.

d) The alignment tools don't seem to be aware of frames, so you can't easily center and align objects with your frames.

Ideally I'd like it if there just wasn't this seemingly strange relationship between frames and objects. and that frames were just views on the document.

2. Embedded videos aren't playable from presentation modem that meant that I had to keep jumping out of presentation mode to play a video and then jump back into the presentation, which was obviously very clunky.

3. Sharing: I wanted to share the presentation but allow people to play the embedded videos, that wasn't possible. I then tried to share the presentation itself in a read-only mode that let them run the presentation, but that wasn't possible so I wasn't able to easily share with my team (even though you have like every other permutation of easy sharing! :) )

Thanks!
Repository: go
Issue: crypto/tls: server doesn't check for empty legacy_session_id when doing QUIC session resumption
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.21.0 darwin/arm64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What did you do?

I sent a ClientHello containing a legacy_session_id when resuming a QUIC session. This is not permitted, see section 8.4 of RFC 9001.


### What did you expect to see?

The server should have rejected the handshake. RFC 9001 section 8.4 says that the server SHOULD treat the receipt of a TLS ClientHello with a non-empty legacy_session_id field as a connection error of type PROTOCOL_VIOLATION.

### What did you see instead?

The handshake succeeded.
Repository: material-ui
Issue: [joy-ui] Add Pagination component
Labels: new feature,waiting for 👍,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

This is part of an initiative to achieve parity between Material UI & Joy UI.

### Examples 🌈

 - [Material UI](https://mui.com/material-ui/react-pagination/) 
 - [Ant Design](https://ant.design/components/pagination)
 - [Mantine](https://mantine.dev/core/pagination/)
 - [Base Web](https://baseweb.design/components/pagination/)
 - [GitHub's Primer](https://primer.style/react/Pagination)

### Motivation 🔦

Offer users more components, enhancing consistency and feature parity with other React UI libraries.
Repository: material-ui
Issue: [joy-ui] Add Masonry component
Labels: new feature,waiting for 👍,package: joy-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

This is part of an initiative to achieve parity between Material UI & Joy UI.

### Examples 🌈

- [Material UI](https://mui.com/material-ui/react-masonry/)

### Motivation 🔦

Offer users more components, enhancing consistency and feature parity with other React UI libraries.
Repository: next.js
Issue:  generateStaticParams invalidates dynamicParams = false when empty array
Labels: bug

### Link to the code that reproduces this issue

https://github.com/JKarlavige/nextjs-app-generateparams-test

### To Reproduce

1. Pull repo down and run locally
2. Verify only `/test/page` route is available and all other pages 404
3. In app/test/[[...slug]]/page.tsx, comment out line 16 and uncomment line 19 with const allPages = [] to return an empty array from generateStaticParams.
4. Now all routes begin to load and no pages 404


### Current vs. Expected behavior

## Current Behavior:

If an array with at least one slug is returned in `generateStaticParams`, `dynamicParams = false` works correctly and 404s any routes which weren't available in `generateStaticParams`.

However, if `generateStaticParams` returns an empty array, `dynamicParams = false` no longer works and every route is loaded without 404ing.

## Expected Behavior

If generateStaticParams returns an empty array and dynamicParams = false, all routes should 404.

### 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: Thu Jun  8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000
Binaries:
  Node: 18.12.0
  npm: 8.19.2
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.0.2-canary.10
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

We have an optional catch-all route where we use generateStaticParams. We have dynamicParams = false at the top of the page to 404 any pages which aren't returned in generateStaticParams.

If an empty array is returned from generateStaticParams, it seems to invalidate the dynamicParams = false, and begins returning all routes with an empty page, rather than 404ing those pages.

Does anyone know what the functionality should be if an empty array is returned from generateStaticParams?
Repository: rust
Issue: Suboptimal machine code mapping results or options
Labels: A-LLVM,I-slow,T-compiler

https://godbolt.org/z/GjrE4GjhK

for all 3 maybe_with_data functions, the move of certain values on the stack is unnecessary.

This seems like a fundamental issue and probably won't be fixed soon, but it should make
all existing code run slightly faster
Repository: go
Issue: os,internal/poll: reads from closed pipes sometimes do not unblock on darwin
Labels: OS-Darwin,NeedsInvestigation,compiler/runtime

```
#!watchflakes
post <- goos == "darwin" && log ~ `os/exec\.\(\*Cmd\)\.awaitGoroutines` && log ~ `internal/poll\.\(\*pollDesc\)\.waitRead` &&
	!(builder ~ `(gotip|go1\.\d\d)-` && date < "2024-01-18")
```

We have been tracking a long-running bug on macOS (`darwin`) in https://github.com/golang/go/issues/54461#issuecomment-1591922415. That issue title doesn't accurately capture the widespread nature of the problem, nor its defining symptom or suspected root cause; so, I am filing a new issue for it.

On macOS, we see a pattern of test failures with the following characteristics:
- A goroutine is blocked on a `read` operation on a pipe.
- The pipe is known to be closed, because the process on the other end has either terminated (most often) or explicitly closed the pipe (less frequent, but sometimes seen in cases like #57369).

Many of these bugs have been worked around by explicitly canceling (or adding a timeout to) the stuck read.

The issues with this symptom have included:
- #60099
- #54461
- #61073
- #61128

A few other issues may be related but don't (or didn't) include goroutine dumps for the stuck process: they may or may not be due to this failure mode.
- #56231
- #57369
- #59657
- #61595
- #61779
- #63258
- #63731
- #64110
- #64269
- #64700
- #64959

Given the symptoms, it seems likely to me that this is either a bug in `internal/poll`, or a bug in the macOS platform that we have somehow started to trigger.

Note that #61779 was bisected specifically to https://go.dev/cl/420334.
Repository: vscode
Issue: terminal confirm on exit dialog appears when no child process running after reload
Labels: bug,confirmed,terminal-persistence

<!-- ⚠️⚠️ 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.85.0-insider
- OS Version: Darwin x64 22.6.0

Steps to Reproduce:

1. Set `terminal.integrated.confirmOnExit` to "hasChildProcesses"
2. Start a running process in the integrated terminal
3. Reload window via `workbench.action.reloadWindow`
4. In the restored terminal exit the process started in step 2
5. Try to close window via `workbench.action.closeWindow`
-> A dialog appears with the text "Do you want to terminate the active terminal session?"
Repository: pytorch
Issue: libtorch exports miniz symbols
Labels: module: binaries,module: cpp,triaged

## Issue description

libtorch is using `miniz` via `caffe2`. The final `.so` exports all those symbols which leads to problems in programs using other libraries using `miniz`, too.

Please disable exporting those symbols. I guess using `-fvisibility=hidden` would be a good idea in the long run, and most of the code base seems to be prepared to that already. What worked for me locally as a short term fix was to patch `miniz.h` and add `#pragma GCC visibility push(hidden)` and `#pragma GCC visibility pop` around the function declarations. I had to pop/push around the interspersed `#include` statements.

This is somewhat similar to #32983 but the fix has to be different as it's not a static third party library but code compiled in directly.

cc @seemethere @malfet @osalpekar @atalman @jbschlosser
Repository: flutter
Issue: "Updating project for Xcode compatibility" - Don't lower LastUpgradeCheck
Labels: platform-ios,tool,platform-mac,t: xcode,has reproducible steps,team-ios,found in release: 3.13,found in release: 3.17

### 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



I *think* this is a step in the Flutter iOS build process, but I'm not totally sure. If it's not Flutter's doing, please let me know.

1. Grab [this repo branch](https://github.com/EnduringBeta/flutter-bug/tree/xcode-compatibility)
2. On macOS, ensure that `project.pbxproj` and/or `Runner.xcscheme` have a `LastUpgradeCheck` of `1500`.
    - (This value will only be relevant at time of writing as the most recent Xcode version and would need to be increased upon future Xcode releases, probably.)
4. Build for iOS/run on an iOS device.
5. Observe that the files have their `LastUpgradeCheck` **downgraded** to an older version.


### Expected results

It would be nice if when it observed a different `LastUpgradeCheck` it could also detect if the value is higher than what it wants to set it to.

I may be naive on the inner workings of the build process for why this occurs.

It creates diffs in my repo whenever I switch between Xcode and Android Studio, which is annoying. I need to use Xcode sometimes, especially when it updates and needs to run some stuff before building works again.

### Actual results

Downgrade

### Code sample

See repo. Here's where I set the `LastUpgradeCheck` higher for testing: https://github.com/EnduringBeta/flutter-bug/blob/xcode-compatibility/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme#L3

### Screenshots or Video

_No response_

### Logs

<details><summary>Logs</summary>

```console
Let me know if you want these
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1 23B74 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: PowerToys
Issue: Lock terms to prevent localization
Labels: Idea-Enhancement,Area-Localization,Status-In progress

### Description of the new feature / enhancement

inside a res file use {Locked} and {Locked="specific term"}

we should start migrating critical terms.

### Scenario when this would be used?

consistency 

### Supporting information

_No response_
Repository: pytorch
Issue: How to handle CVE vulnerabilities in underlying operating system?
Labels: triaged,module: docker,security

Hello,

The base images for Cuda are pretty old (2.1.0-cuda11.8 was pushed more than a month ago) how should we act to get latest security updates from the Ubuntu base image?
Repository: PowerToys
Issue: Notification to upgrade PowerToys repeatedly shows in notification area even though I have the latest version.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.75.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

I cannot reproduce on demand.  It is intermittent and happens without user interaction.  Here is some background that may or may not be helpful.  

I recently upgraded to 0.75, then a few days later to 0.75.1.  Since then, a couple times per day I get a Windows notification that I should upgrade to the latest version.  When I open the app and check for updates, it says that I am already on the latest version.  The first time I wrote it off as me possibly never dismissing an old notification, but it has reappeared multiple times since then.  I am on Windows 11.

### ✔️ Expected Behavior

To not receive an upgrade notification when there isn't an upgrade available.

### ❌ Actual Behavior

The notification appears regularly to upgrade even though I am on the latest.  I have not counted the times, but it "feels like" 1-3 times per day for the last few days since upgrading to 0.75.1.

### Other Software

_No response_