sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: `resource_create_op` operation can cause TensorFlow to crash.
Labels: stat:awaiting tensorflower,type:bug,comp:ops,2.17

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

tf-nightly 2.18.0.dev20240817

### Custom code

Yes

### OS platform and distribution

Ubuntu 20.04.3 LTS (x86_64)

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

 A `Segmentation fault`  could be raised in TensorFlow when using `test_ops.resource_create_op` . The code is as follows:

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
from tensorflow.python.framework import test_ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import array_ops_stack


sess = tf.compat.v1.Session()

@tf.function
def func():
    r1 = test_ops.stub_resource_handle_op(container='a', shared_name='b')
    r2 = test_ops.stub_resource_handle_op(container='a', shared_name='c')
    c = array_ops_stack.stack([r1, r2])
    s = array_ops.strided_slice(c, [1], [2 ** 32])
    with sess.as_default():
        test_ops.resource_create_op(s)

func()
```


### Relevant log output

```shell
> Segmentation fault (core dumped)

The above code is confirmed to crash on `tf-nightly 2.18.0.dev20240817` (nightly-build)
```
Repository: rust
Issue: Suboptimal codegen for a function that should fold to a constant
Labels: A-LLVM,I-slow,A-codegen,T-compiler,C-optimization

I'm not entirely sure whether this belongs to LLVM or rust (I haven't triaged), but let's start here.

I tried this code: https://godbolt.org/z/E5W74re7v
which could potentially folded to a single constant, but the optimizer fails to recognize.

Changing the inner if condition from `t + s + r == 10` to `t + s == 10` results into the LLVM IR being a single line function: 
`ret i64 63000000000`. In godbolt: https://godbolt.org/z/zfchrszbW

I would expect both cases to fold to a constant, but maybe I'm missing something here.

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"deniskilseev"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: PowerToys
Issue: Bsod
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.70

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

[091624-14671-01.dmp](https://github.com/user-attachments/files/17008189/091624-14671-01.dmp)

### ✔️ Expected Behavior

 when downloading last update

### ❌ Actual Behavior

_No response_

### Other Software

win 10 ltsc 21h2
Repository: excalidraw
Issue: Request to whitelist url
Labels: Embeddable

Hoping to have shadeup.dev urls whitelisted for embedding shaders

e.g. https://shadeup.dev/kqk9w1su3719/embed
Repository: ollama
Issue: 用qwen2微调训练出的hf转为gguf后，用ollama加载，要指定TEMPLATE才不会胡乱输出
Labels: bug

### What is the issue?

而同样的gguf，用其它框架直接加载使用是正常的。
原始的qwen2模型转为gguf加载也不需要TEMPLATE参数。只有微调训练后生成的gguf要加TEMPLATE才不会胡乱输出。为什么？

### OS

Linux, Docker

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.3.10
Repository: PowerToys
Issue: We need an easy upgrade, one-click option
Labels: Needs-Triage

### Description of the new feature / enhancement

Upgrading Powertoys is cumbersome.
It requires many clicks:
-one on the notification
-then in the main Powertoys window, one more in "more info" on the upgrade info button
-then download and install

This whould be so much more user friendly with a "download and install" right from the notification, or even, an auto-upgrade feature.


### Scenario when this would be used?

upgrading in a user-friendly manner

### Supporting information

_No response_
Repository: go
Issue: x/crypto/ssh: Close hangs with remote forward if TCP session is hung
Labels: NeedsInvestigation

### Go version

x/crypto v0.27.0

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/spike/Library/Caches/go-build'
GOENV='/Users/spike/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/spike/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/spike/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/spike/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.darwin-arm64'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/Users/spike/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.6.darwin-arm64/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.6'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/spike/repos/coder/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/53/zffdtv3x7lg_pyhrk85p7_nw0000gn/T/go-build1889086903=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

Connect via SSH and set up remote forwarding of a TCP port or Unix socket (both exhibit the problem) via a call to `Listen()`.

Break the networking: unplug Ethernet cable, disable WiFi, etc.

Close the Listener.

### What did you see happen?

Closing the Listener hangs indefinitely, until the TCP socket times out, which could be hours or days.

### What did you expect to see?

Closing the Listener times out with some reasonable timeframe, or accepts a timeout (e.g. via a `Context).

Typical use patterns would be:

```
client, err := ssh.Dial("tcp", server, cfg)
if err != nil {
    return err
}
defer client.Close()
l, err := client.Listen("tcp", addr)
if err != nil {
    return err
} 
defer l.Close()
waitForConnectionOrClose(l)
```

With the `defer`s stacked like this, kind of the only sensible way, when you try to close the listener gets closed first, and you can hang indefinitely.

I've been able to work around the issue by building code that sets timeouts for the listener to close and if it fails, starts closing stuff from the bottom up, but it's much more difficult than being able to set a timeout for the listener to close down.
Repository: vscode
Issue: Change the global `fetch` available in local extension hosts to be the one from Electron
Labels: feature-request,proxy
Repository: transformers
Issue: Video Processor as a separate class
Labels: Feature request,Vision,Multimodal

### Feature request

Since we currently have more and more VLMs that support image and video, and not always videos are processed same way as images are, I want to add a `VideoProcessor` class that inherits from `ImageProcessingMixin`. Thus we can have two separate classes for processing visuals, each with its own set of attributes and methods. We can also save different configs for both to avoid issues as #33484. The `VideoProcessor` will mainly use the same transform methods as slow image processors, by iterating over each frame and stacking it. Some additional helper fn can be added, like `load_video`  and `make_list_of_videos`. The main input name will be videos  and the output var name is  `pixel_values_videos`. 

For the `load_video`  we can prob rely on `av`, but I find it super slow compared to other video decoders. I'll try to get a small comparison benchmarks for that, and unfortunately `decord` can't be used as it had problems with models on cuda.

In the long term we might consider adding video transforms where each video is transformed in one call, instead of each video frame, similar to fast image processing with `torchvision`. 

To Do:
- [ ] Add the VideoProcessor class and integrate with llava-next-video which is one of the models with different processing for image and videos.
- [ ] After the changed are approved and merged, the following models will be easy to modify:
    - [ ] Video-LLaVa
    - [ ] Qwen2-VL
    - [ ] LLaVA-OneVision

- [ ] Instructblip-Video might need deprecation as it currently accepts images  as main arg and returns pixel_values . TBH, it is a video-only model so we can disregard changing it, same was as we won't touch VIVIT and other video-only models

### Motivation

Easier integration of multimodal LLMs

### Your contribution

@amyeroberts WDYT about this suggestion? Would love to hear your opinion 🤗
Repository: TypeScript
Issue: Inlay parameter hints don't account for trailing required parameters
Labels: Bug,Help Wanted

### 🔎 Search Terms

inlay hints parameters rest spread argument

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

N/A

### 💻 Code

```ts
/// <reference path="fourslash.ts" />

//// function test(...rest: [first: number, ...middle: string[], last: string]) {}
//// test(10, 'a', 'b', 'c')

verify.baselineInlayHints(undefined, {
  includeInlayParameterNameHints: "all",
  includeInlayFunctionParameterTypeHints: true,
});
```


### 🙁 Actual behavior

```ts
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', /* last: */'b', 'c')
```

### 🙂 Expected behavior

```ts
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', 'b', /* last: */'c')
```

### Additional information about the issue

_No response_
Repository: TypeScript
Issue: JsDoc with overloads and different generics results in wrong dts output
Labels: Bug,Help Wanted

### 🔎 Search Terms

javascript jsdoc dts overload

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about jsdoc


### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.6.2&filetype=js#code/PQKhFgCgAIWgBALgUwLYAcA2BDF0DeAzogE4CWAdgOYC+0AopmshYlLAgPYBuyJmnbABN2ceOmwlsqAo2as6yJqhZsYYkskQBXEhUIEAFAEpoAXgB80bpzJCao4FCigI6hCgw48+AEadOJmwKOjkVVlEuXn5BEXdxSWlZZVVFFIj4zR09A3wTcysbOwd1J0gXMEj4Hj4BYSqJKRl8Cm1UXz40+TUOeCzdfSNTS2tbe0dnSFcGxObggE8u8J6QMuQAD3ROEkRoADNtCgBjRDJOCmhzwyVu03woAEh+vWh8kfwSkqA

### 💻 Code

```js
/**
 * @template {string} Element
 * @overload
 * @param {Element} element
 * @returns {() => void}
 */

/**
 * @template {boolean} Element
 * @overload
 * @param {Element} element
 * @returns {() => void}
 */

/**
 * @overload
 * @param {number} element
 * @returns {() => void}
 */

/**
 * @param {any} element
 */
export function on(element) {
	return () => {}
}

```


### 🙁 Actual behavior

The resulting dts of the given JSDoc looks like this:

```ts
export function on<Element extends string>(element: Element): () => void;
export function on<Element extends string>(element: Element): () => void;
export function on(element: number): () => void;
```
As you can see the generic does `extends string` both times, but it should be `extends boolean` the second time

### 🙂 Expected behavior

```ts
export function on<Element extends string>(element: Element): () => void;
export function on<Element extends boolean>(element: Element): () => void;
export function on(element: number): () => void;
```

### Additional information about the issue

_No response_
Repository: node
Issue: fetch() throws uncatachable UND_ERR_SOCKET exception
Labels: fetch

### Version

v22.8.0

### Platform

```text
Microsoft Windows NT 10.0.22631.0 x64
```


### Subsystem

_No response_

### What steps will reproduce the bug?

While using `fetch()`, I occasionally get this exception:

```
node:internal/deps/undici/undici:13185
      Error.captureStackTrace(err);
            ^

TypeError: fetch failed
    at node:internal/deps/undici/undici:13185:13
    at async getOldCourse (file:///E:/memrise-community-courses/fix-column-types.mjs:27:30) {
  [cause]: SocketError: other side closed
      at TLSSocket.<anonymous> (node:internal/deps/undici/undici:6040:28)
      at TLSSocket.emit (node:events:532:35)
      at endReadableNT (node:internal/streams/readable:1696:12)
      at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
    code: 'UND_ERR_SOCKET',
    socket: {
      localAddress: '127.0.0.1',
      localPort: 52533,
      remoteAddress: '127.0.0.1',
      remotePort: 443,
      remoteFamily: 'IPv4',
      timeout: undefined,
      bytesWritten: 12008,
      bytesRead: 4044144
    }
  }
}

Node.js v22.8.0
```

The problem is that the exception is uncatchable. I've already wrapped my `fetch()` called in `try/catch`, but when this `UND_ERR_SOCKET` error occurs, it crashes the entire process.

### How often does it reproduce? Is there a required condition?

Once in every ~100 `fetch()` calls.

### What is the expected behavior? Why is that the expected behavior?

Error should be catch

### What do you see instead?

Error is uncatchable and crashes process

### Additional information

My code is basically this:

```js
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;

try {
   await fetch(
        'https://example.com/api/course/123/entries',
        {
            method: 'GET'
        }
    );
} catch(exception) {
  console.error(...);
}
```
Repository: storybook
Issue: [Bug]: Angular: Functions declared in stories overrides implementation of functions in components when the names of the functions are the same
Labels: bug,needs triage

### Describe the bug

When a function is declared in a component's story with the same name as a function in the component and passed as props, the implementation of the function in the story overrides the implementation in the component. **Private functions in the component are also overridden.**

### Reproduction link

https://stackblitz.com/edit/github-ybftbv?file=src%2Fstories%2Fbutton.component.ts

### Reproduction steps

1. Go to the above link.
2. Run `npm run storybook`
3. Open the console to see the logs.

### System

```bash
Storybook Environment Info:

  System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - /usr/local/bin/node
    npm: 10.8.2 - /usr/local/bin/npm <----- active
  Browsers:
    Chrome: 128.0.6613.138
    Safari: 17.5
  npmPackages:
    @storybook/addon-essentials: ^8.3.0 => 8.3.0 
    @storybook/addon-interactions: ^8.3.0 => 8.3.0 
    @storybook/addon-links: ^8.3.0 => 8.3.0 
    @storybook/angular: ^8.3.0 => 8.3.0 
    @storybook/blocks: ^8.3.0 => 8.3.0 
    @storybook/test: ^8.3.0 => 8.3.0 
    msw-storybook-addon: ^1.10.0 => 1.10.0 
    storybook: ^8.3.0 => 8.3.0
```


### Additional context

_No response_
Repository: godot
Issue: File logging log rotation is broken.
Labels: bug,topic:core

### Tested versions

v4.3.stable.arch_linux
v4.2.2.stable.official [15073afe3]

### System information

Godot v4.3.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (nvidia; 560.35.03) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

### Issue description

When file `debug/file_logging/enable_file_logging` is enabled and `debug/file_logging/max_log_files` is > 1, files should be logged to the set directory (default `"user://logs/godot.log"`) starting with `godot.log` (most recent run) and keeping previous runs as `godot{datetimestamp}.log`. Previously this would correctly maintain the most recent logs but since ~4.3 it has stopped working. Now once the first `debug/file_logging/max_log_files` have been generated, only the newest (`godot.log`) gets correctly replaced and the oldest n-1 files are kept forever.

### Steps to reproduce

Enable file logging add some print statements and run the game 6 times.

### Minimal reproduction project (MRP)

N/A
Repository: angular
Issue: InjectionToken SwRegistrationOptions is ignored when using standalone bootstrapApplication function.
Labels: area: service-worker,cross-cutting: standalone

### Which @angular/* package(s) are the source of the bug?

service-worker

### Is this a regression?

Yes

### Description

Hi, I've made a little repo to illustrate the issue.

When using the old [NgModule based syntax](https://github.com/antur84/sw-registration-options-bug/commit/22ef382f4d6d0da584bead9725c8bea277a3bfb7) to init your app with a service worker, then your provided `SwRegistrationOptions` is found and respected.

Runing the app gives you a console log.

[When using standalone app syntax](https://github.com/antur84/sw-registration-options-bug/commit/718936d54b03560d4cfe669e071e9e6bef8006e2#diff-4fab5baaca5c14d2de62d8d2fceef376ddddcc8e9509d86cfa5643f51b89ce3d), via `bootstrapApplication` then your provided  `SwRegistrationOptions` is not not found nor respected. Runing the app does not give you a console log.

Likely it was overlooked in the PR where the [provideServiceWorker](https://github.com/angular/angular/pull/48247) function was added. Or perhaps I'm just misunderstanding how it's supposed to work now.




### Please provide a link to a minimal reproduction of the bug

https://github.com/antur84/sw-registration-options-bug/commits/main/

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 18.2.4
Node: 20.16.0
Package Manager: npm 10.8.1
OS: win32 x64

Angular: 18.2.4
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker
```


### Anything else?

_No response_
Repository: excalidraw
Issue: Request to whitelist url for education
Labels: Embeddable

It would be great to embed H5P content from the following sites:

[https://app.lumi.education/](https://app.lumi.education/)

[https://apps.zum.de/](https://apps.zum.de/)
Repository: tauri
Issue: [feat] iOS App Clips
Labels: type: feature request,platform: iOS

### Describe the problem

It is difficult to find any docs on implementing [iOS App Clips](https://developer.apple.com/app-clips/).

### Describe the solution you'd like

Documentation or a recipe for implementing [iOS App Clips](https://developer.apple.com/app-clips/) would be extremely helpful.

### Alternatives considered

_No response_

### Additional context

The React Native community has a few solutions for building iOS App Clips that could be used for reference.
[Building an App Clip with React Native](https://shopify.engineering/building-app-clip-react-native)
[Expo plugin](https://github.com/bndkt/react-native-app-clip)
Repository: kubernetes
Issue: Scheduler perf incorrectly shows percentiles for fast metrics
Labels: kind/bug,sig/scheduling,needs-triage

### What happened?

When all metric values are in the first bucket, percentiles are incorrectly computed:
```json
{
  "data": {
    "Average": 0.0009773531999999999,
    "Perc50": 0.05,
    "Perc90": 0.09000000000000001,
    "Perc95": 0.095,
    "Perc99": 0.099
  },
  "unit": "ms",
  "labels": {
    "Metric": "scheduler_framework_extension_point_duration_seconds",
  }
}
```

### What did you expect to happen?

Correctly computed percentiles. Perhaps bucketing should be changed for some metrics. 

### How can we reproduce it (as minimally and precisely as possible)?

Run scheduler_perf or see some [perf-dash](https://perf-dash.k8s.io/#/?jobname=scheduler-perf-benchmark&metriccategoryname=Scheduler&metricname=BenchmarkPerfResults&Metric=scheduler_framework_extension_point_duration_seconds&Name=SchedulingBasic%2F5000Nodes_10000Pods%2Fnamespace-2&extension_point=Permit&plugin=not%20applicable&result=not%20applicable&event=not%20applicable) charts.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: flutter
Issue: pub workspace mixes plugins between projects
Labels: tool,has reproducible steps,P2,team-tool,triaged-tool,found in release: 3.26

### Steps to reproduce

- Create 2 flutter projects in the same "pub workspace"
- Have these projects uses different Flutter plugins (e.g. project1 uses url_launcher and project2 uses webview_flutter).


### Expected results

The 2 projects should be separated. The plugins used by one project should not leak to the other projects (for binary size reasons?).

### Actual results

After you run `flutter run` (or `flutter test`), you notice that various files from project1 contains pointer to the plugins used by project2 (in files GeneratedPluginRegistrant.swift|java)

Example in `GeneratedPluginRegistrant.swift` in project2:
```
import url_launcher_macos
import webview_flutter_wkwebview

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
  UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
  FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
}
```

### Code sample

git clone https://github.com/xvrh/pub_workspace_test

### Screenshots or Video

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


### Logs

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


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Flutter (Channel main, 3.26.0-1.0.pre.131, on macOS 14.5 23F79 darwin-arm64, locale en-BE)
```

</details>
Repository: ant-design
Issue: InputNumber to support allowClear
Labels: 💡 Feature Request,Inactive

### What problem does this feature solve?

At times in a Form, having an undefined value has a specific meaning (like clearing this value from the DB on submit), so being able to clear the value from an InputNumber the same way an Input does would be great.

### What does the proposed API look like?

<InputNumber allowClear />, same as <Input allowClear />

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->