sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Flutter tool times out installing
Labels: P2,team-tool,triaged-tool

https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_pixel_7pro%20cubic_bezier_perf__timeline_summary/6670/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_pixel_7pro%20cubic_bezier_perf__timeline_summary/6612/overview

```
[2024-12-09 19:56:23.297900] [STDOUT] stdout: [   +6 ms] Stopping app 'app-profile.apk' on Pixel 7 Pro.
[2024-12-09 19:56:23.298321] [STDOUT] stdout: [        ] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 shell am force-stop com.example.macrobenchmarks
[2024-12-09 19:56:23.374855] [STDOUT] stdout: [  +76 ms] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 shell pm list packages com.example.macrobenchmarks
[2024-12-09 19:56:23.475442] [STDOUT] stdout: [ +100 ms] Installing APK.
[2024-12-09 19:56:23.478810] [STDOUT] stdout: [   +3 ms] Installing build/app/outputs/flutter-apk/app-profile.apk...
[2024-12-09 19:56:23.479510] [STDOUT] stdout: [        ] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 install -t -r /opt/s/w/ir/x/w/rc/tmpsljs0cs5/flutter sdk/dev/benchmarks/macrobenchmarks/build/app/outputs/flutter-apk/app-profile.apk
[2024-12-09 19:56:26.658732] [STDOUT] stdout: [+3178 ms] Performing Streamed Install
[2024-12-09 19:56:26.658883] [STDOUT] stdout:            Success
[2024-12-09 19:56:26.659757] [STDOUT] stdout: [   +1 ms] Installing build/app/outputs/flutter-apk/app-profile.apk... (completed in 3.2s)
[2024-12-09 19:56:26.663357] [STDOUT] stdout: [   +4 ms] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 shell echo -n df528eedf59425eaa213578b93161f1a2a1dd980 > /data/local/tmp/sky.com.example.macrobenchmarks.sha1
[2024-12-09 19:56:26.681340] [STDOUT] stdout: [  +17 ms] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 shell -x logcat -v time -t 1
[2024-12-09 19:56:26.728586] [STDOUT] stdout: [  +46 ms] --------- beginning of main
[2024-12-09 19:56:26.728680] [STDOUT] stdout:            12-09 20:01:17.755 D/ControlsListingControllerImpl( 1752): ServiceConfig reloaded, count: 0
[2024-12-09 19:56:26.756237] [STDOUT] stdout: [  +27 ms] executing: /opt/s/w/ir/cache/android/sdk/platform-tools/adb -s 34011FDH3000Q5 shell am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x20000000 --ez enable-dart-profiling true --ez trace-startup true --ez start-paused true --ez verbose-logging true com.example.macrobenchmarks/com.example.macrobenchmarks.MainActivity
[2024-12-09 19:56:26.825625] [STDOUT] stdout: [  +69 ms] Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x20000000 cmp=com.example.macrobenchmarks/.MainActivity (has extras) }
[2024-12-09 19:56:26.826119] [STDOUT] stdout: [        ] Waiting for VM Service port to be available...
Step failed (timeout) (retcode: -15)
```
Repository: angular
Issue: Add display contents by default to all host elements
Labels: area: core,core: host and host bindings

### Which @angular/* package(s) are relevant/related to the feature request?

elements, common, forms

### Description

Hi, 
since I recognized myself that I normally dont want my host element to interrupt my style as its for me mostly just a wrapper of my component inner html. I suggest to use `display: contents;` by default for it to not interrupt styles by default like `display: flex;` and so on.

More information:
https://developer.mozilla.org/en-US/docs/Web/CSS/display#contents

### Proposed solution

Set all host elements `display: contents` by default.

### Alternatives considered

Leave it as it is.
Repository: next.js
Issue: [bug]: parallel/intercepting routes requires server reboot to work
Labels: bug,Parallel & Intercepting Routes

### Link to the code that reproduces this issue

https://github.com/juliusmarminge/next-intercepting-routes

### To Reproduce

1. Start the dev server
2. Navigate to the parallel segment (e.g http://localhost:3000/dashboard/1/1)
3. Click on a card, it opens in a modal
4. Now suppose we change the URL structure, so rename `audit` to `auditt` (in both places) and update the link to point to the new pathname. Refresh the page and click the card again, it opens in the full-page view
5. Restart the dev server, refresh the page again and now it opens in the modal view

Demo:

https://github.com/user-attachments/assets/e4513513-561d-4eff-bc0b-45e5ed0b8aa5



### Current vs. Expected behavior

It requires a server reboot when it shouldn't

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Nov 15 19:28:48 PST 2024; root:xnu-11215.61.3~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 20.18.0
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  next: 15.1.1-canary.0 // Latest available version is detected (15.1.1-canary.0).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.5.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Parallel & Intercepting Routes

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context


Changing the path like this might not be very realistic, but I wasted a lot of time to understand why my parallel routes wasn't working when adding them yesterday, trying to understand the necessary folder structure. Then I tihnk i went and added a dep and when i started the server back up it was working all of a sudden... It wasn't until i was fighting another issue (https://github.com/vercel/next.js/issues/73801) and ran into it again when trying other stuff that I understood that this was the issue
Repository: flutter
Issue: [web][test][firefox] `bootstrapAndRunApp` hangs in `test/engine/` tests
Labels: a: tests,engine,platform-web,e: web_canvaskit,browser: firefox,P2,team-web,triaged-web

Switching `test/engine/` tests from HTML to CanvasKit made Firefox unhappy ([PR](https://github.com/flutter/engine/pull/54786)).  Calling `bootstrapAndRunApp` in a test causes Firefox to hang.

More info:
- It gets stuck exactly at [this promise](https://github.com/flutter/engine/blob/7941d7801b0826b21d82f84bc0d160fe599918c1/lib/web_ui/lib/src/engine/canvaskit/renderer.dart#L81-L82) that never completes.

Odd things I have noticed:
- This only happens in the `firefox-dart2js-canvaskit-engine` suite (other firefox suites work fine).
- Some tests only fail in CI and not locally. Other tests fail in both environments.

After spending much time on this without luck, I decided to skip a few tests to unblock myself. But we need to revisit this and try to figure out a way to fix it.
Repository: pytorch
Issue: [user empathy day] No speedups for SAM2 model
Labels: module: performance,triaged,oncall: pt2,empathy-day

Internal doc: https://docs.google.com/document/d/1T-jo9d2mVdgiDB27fdrDI9k60ZVVqjNhoBYvEZ_sktQ/edit?usp=sharing
Repo: https://github.com/facebookresearch/sam2

Benchmark script:
```python
import sys
import time
import torch
import numpy as np
from sam2.build_sam import build_sam2
from sam2.sam2_image_predictor import SAM2ImagePredictor
from PIL import Image

import torch._dynamo.config


if len(sys.argv) != 3:
    print(f"Usage: {sys.argv[0]} <do compile> <iters>")
    sys.exit(1)

do_compile = bool(int(sys.argv[1]))
iters = int(sys.argv[2])
assert iters > 0

##
## Most of the following adapted from:
## https://colab.research.google.com/github/facebookresearch/sam2/blob/main/notebooks/image_predictor_example.ipynb
##
assert torch.cuda.is_available()
device = torch.device("cuda")

# use bfloat16 for the entire notebook
torch.autocast("cuda", dtype=torch.bfloat16).__enter__()
# turn on tfloat32 for Ampere GPUs (https://pytorch.org/docs/stable/notes/cuda.html#tensorfloat-32-tf32-on-ampere-devices)
if torch.cuda.get_device_properties(0).major >= 8:
    torch.backends.cuda.matmul.allow_tf32 = True
    torch.backends.cudnn.allow_tf32 = True

# Looks like they only have 3 sample images:
images = [
    Image.open('./notebooks/images/cars.jpg'),
    Image.open('./notebooks/images/groceries.jpg'),
    Image.open('./notebooks/images/truck.jpg'),
]

input_point = np.array([[500, 375]])
input_label = np.array([1])

checkpoint = "./checkpoints/sam2.1_hiera_large.pt"
model_cfg = "configs/sam2.1/sam2.1_hiera_l.yaml"

predictor = SAM2ImagePredictor(build_sam2(model_cfg, checkpoint))
if do_compile:
    predictor.predict = torch.compile(predictor.predict)

times = []
with torch.inference_mode(), torch.autocast("cuda", dtype=torch.bfloat16):
    # Warmup:
    for _ in range(5):
        for image in images:
            predictor.set_image(image)
            masks, scores, logits = predictor.predict(
                point_coords=input_point,
                point_labels=input_label,
            )

    # Benchmark:
    for _ in range(iters):
        for image in images:
            start = time.time()
            predictor.set_image(image)
            masks, scores, logits = predictor.predict(
                point_coords=input_point,
                point_labels=input_label,
            )
            times.append(time.time() - start)

print(f"Avg: {sum(times) / len(times)}")
if do_compile:
    torch._dynamo.utils.print_time_report()
```

Results:
- Eager: 0.167
- Compile: 0.176

- Cold-start compile time: 38s
- Warm-start compile time: 28s

Graph breaks:
- `dynamic shape operator: aten.nonzero.default; to enable, set torch._dynamo.config.capture_dynamic_output_shape_ops = True`
- `torch.* op returned non-Tensor _GeneratorContextManager call_function`


cc @msaroufim @chauhang @penguinwu
Repository: neovim
Issue: LSP: inhibit language servers with vim.lsp.config / vim.lsp.enable (project-specific)
Labels: enhancement,lsp,options

### Problem

I've read https://github.com/neovim/neovim/pull/31031 and realize that it's meant to be  a 90% solution. I also realize that my use-case are likely not shared by that 90%. But I also feel it could be captured by "project-specific setup", which was mentioned in the  PR as a desired use case.

My current configuration is simple conceptually, but looks ugly in code. It satisfies the following needs:

 - (OSS development use-case) Start configured LSPs (gopls, luals, ...) when certain file-types and allowed roots are signaled, using `vim.lsp.start()`. This is straightforward, and would be simplified a little more with `vim.lsp.config()` and `vim.lsp.enable()`.
 - ($DAY_JOB use-case) Allow supplying an [override LSP](https://github.com/aktau/dotfiles/blob/47b85e2c733f8e66b7176da08c4812679d41d316/.vim/lua/lsp.lua#L151-L179)  that inhibits the previously configured LSPs from running under the given condition (matches root path, has matching filetype).

This override LSP is a company-internal one that can handle multiple languages. Open-source LSPs don't work with the source code in this tree at all.

This looks akin to the project-specific configuration discussed in https://github.com/neovim/neovim/pull/31031. Where I'd define this special project as "anything under `$SPECIAL_DIR`". But I can't figure out how to do it with the new APIs given that they're all global. 

To make it more concrete, If I want that when a file under the "override" root is opened, only the override LSP should start **for that specific buffer**, even if the root patterns and filetypes match for other LSPs:

 - `vim.lsp.enable()` seems to be a global property, but I want buffer-local decisions.
 - I could imagine a hack where I override the `vim.lsp.config`'s  for the other LSPs so that they match only a dummy file-type (will that (de)register the auto-commands?), but too won't allow them to start.
 - I could imagine inhibiting the start from `vim.lsp.ClientConfig.before_init`. But I don't see it documented that `before_init` is able to do that.

If `root_marker` was changed to accept a function, I can imagine doing something like this (psuedo-code):

```lua
for i, v in pairs(vim.lsp.config) do
  local old_root_marker = v.root_marker
  v.root_marker = function(fname)
    return not vim.startswith(fname, override_root) and old_root_marker(fname) or nil
  end
  vim.lsp.config[i] = v
end
```

It's fine if the response is: this use case isn't and won't be supported, just use `vim.lsp.start()`. Just thought I'd bring it up in case I missed something or this type of flexibility is desired in the end.

cc @lewis6991 

### Expected behavior

I expect either:

 - Someone telling me that these types of use-cases is exactly what the lower-level `vim.lsp.start` is for.
 - Someone telling me that I misunderstand things and it's easy to use `vim.lsp.config` and `vim.lsp.enable` to do what I want. Or
 - It's not available right now and may come in the future.
Repository: go
Issue: crypto/tls: VerifyClientCertIfGiven with "bad" client certificate
Labels: NeedsInvestigation

### Go version

go version go1.21.11 linux/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/.cache/go-build'
GOENV='/home/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/dn/sdk/go1.21.11'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/sdk/go1.21.11/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.11'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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 -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3756811533=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

I ran a server configured with multiple client authentication modes, one of which is verify-if-given using `VerifyClientCertIfGiven`. To test its behavior, I used a client that presented an invalid certificate—meaning the certificate could not be verified by the server's stored CA. Given that I expected the TLS handshake to fail.

### What did you see happen?

The TLS handshake did not fail. Instead it continued to the application authentication logic, and when I checked the certificate metadata, I noticed that `len(tlsInfo.State.PeerCertificates)` was equal to zero, treating it like certificate not provided at all. 

### What did you expect to see?

Per the official docs Im expecting that it should be return and failed (and not fallback) since once client provide a certificate it should be a valid one to the stored CA:
```
// VerifyClientCertIfGiven indicates that a client certificate should be requested
// during the handshake, but does not require that the client sends a
// certificate. If the client does send a certificate it is required to be
// valid.
VerifyClientCertIfGiven
```
Repository: flutter
Issue: [ios] Flutter framework feeds wrong text range into the engine
Labels: platform-ios,engine,P2,team-ios,triaged-ios

This is a follow up issue for https://github.com/flutter/flutter/issues/138464

Flutter framework feeds invalid text range into the engine. The [temp workaround here](https://github.com/flutter/engine/pull/55909) stoped the crash by handling invalid range in the engine. However, we should further investigate it by figuring out where the invalid range came from and fix the upstream. 

See discussion thread at: https://github.com/flutter/engine/pull/55909#discussion_r1829749289



### Expected results

NA

### Actual results

NA

### Code sample

NA

### Screenshots or Video

NA

### Logs

NA

### Flutter Doctor output

NA
Repository: pytorch
Issue: DataLoader hangs when object fails during pickling
Labels: module: dataloader,triaged

### 🐛 Describe the bug

Multiprocess `torch.utils.data.DataLoader` hangs indefinitely when an object fails during pickling, tested on Linux.

Notably, this issue was caught while a PIL.Image was being pickled, because an OS Error was raised in the `__getstate__` method: https://github.com/python-pillow/Pillow/blob/d66c51a35663247357bf6b625ef093df7ea12a45/src/PIL/Image.py#L751 

However we can repro this with the following code easily with any function that fails pickling, see below. 

Root cause:
When an object is put on an mp.Queue, the object is serialized with Pickle, but **in a background thread**: https://github.com/python/cpython/blob/dd9da738ad1d420fabafaded3fe63912b2b17cfb/Lib/multiprocessing/queues.py#L230-L262 

~~The background thread dies, and the parent worker process has no chance to catch it~~

The exception is caught by this handler which prints the stack trace, but then the queue continues to run: https://github.com/python/cpython/blob/dd9da738ad1d420fabafaded3fe63912b2b17cfb/Lib/multiprocessing/queues.py#L293

~~The good news is that the parent worker process should die~~ The parent worker stays alive, which is why it's not being caught here: https://github.com/pytorch/pytorch/blob/main/torch/utils/data/dataloader.py#L1259 

DataLoader just hangs at this point, when it should fail instead. We should investigate how to deal with this scenario

Minimal Repro plain python:  https://gist.github.com/andrewkho/0a57cb936802f4b81fe4f84cee727625
Minimal Repro with torch DataLoader: 

```python
from torch.utils.data import DataLoader, Dataset

class FailsPickling:
    def __init__(self):
        self.x = 1
    def __getstate__(self):
        print("Entered getstate")
        raise OSError("Fails pickling")
    def __setstate__(self, state):
        print("Entered setstate")
        self.x = state["1"]

class MyDataset(Dataset):
    def __getitem__(self, i):
        return {"i": i, "bad_obj": FailsPickling()}
    def __len__(self):
        return 100

def main():
    dataset = MyDataset()
    dl = DataLoader(dataset, batch_size=None, num_workers=1)
    for i, batch in enumerate(dl):
        print(f"{i}, {batch=}")

if __name__ == "__main__":
    main()
```


### Versions

Tested on nightly, linux

cc @divyanshk @SsnL @VitalyFedyunin @dzhulgakov
Repository: go
Issue: x/tools/gopls/internal/extract: extract L-value should replace its uses with dereferenced access
Labels: gopls,Tools,Refactoring

### gopls version

.

### go env

```shell
.
```


### What did you do?

```go
    type foo struct {
        bar int
    }
    f := foo{bar: 1}
    f.bar = 2 // extract f.bar
```

### What did you see happen?

Currently the produced code has some type error, this messy output happens in any LHS of an assignment:
```go
	type foo struct {
		bar int
	}
	f := foo{bar: 1}
	xf.bar
	f.bar = 2 // extract f.bar
```
But even we fix the indent/newline format bug, the result would be:
```go
    type foo struct {
        bar int
    }
    f := foo{bar: 1}
    x := f.bar
    x = 2 // semantic different, f.bar remains 1
```

### What did you expect to see?

```go
    type foo struct {
        bar int
    }
    f := foo{bar: 1}
    x := &f.bar
    *x = 2
```

Reference https://go-review.googlesource.com/c/tools/+/624035/comments/51ffbf6c_61124c11

> The crucial point is that any time we extract an addressable expression to a new variable, we may need to extract its address, and replace all uses by *newVar.

### Editor and settings

_No response_

### Logs

_No response_
Repository: PowerToys
Issue: "PowerToys Run" plugin activation lag when not using it for an extended period
Labels: Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

The PowerToys Run plugin should respond instantly when invoked using the "Alt + Space" shortcut, even after being idle for an extended period. Currently, there is a noticeable delay (lag) before the Run window appears after it has not been used for some time. Improving its responsiveness will ensure a smoother and more reliable user experience.

### Scenario when this would be used?

This issue affects productivity during workflows that rely on quick access to PowerToys Run. As a power user, I frequently use "Alt + Space" to quickly open applications, search for files, or execute commands. The delay after the tool has been idle disrupts this flow, making it less reliable and slowing down tasks that require fast execution.

### Supporting information

I am using the latest version of PowerToys on Windows 11. The delay occurs consistently after the Run plugin has been idle for a while. This might be related to resource management or sleep states. A fix or optimization for responsiveness would greatly enhance the tool's usability.
Repository: flutter
Issue: `Windows tool_integration_tests_2_9` failing on wrong Android NDK version
Labels: team-infra,P2,triaged-infra

https://ci.chromium.org/ui/p/flutter/builders/prod/Windows%20tool_integration_tests_2_9/874/infra

```
09:54 +6 -1: test/integration.shard/android_plugin_example_app_build_test.dart: FFI plugin example can be built using current Flutter Gradle plugin [E]
  Exception: flutter build failed: 1
  Your project is configured with Android NDK 26.1.10909125, but the following plugin(s) depend on a different Android NDK version:
  - plugin_ffi_test requires Android NDK 27.0.12077973
  Fix this issue by using the highest Android NDK version (they are backward compatible).
  Add the following to C:\b\s\w\ir\x\t\flutter_flutter_ffi_plugin_test.7d47a08a\plugin_ffi_test\example\android\app\build.gradle.kts:
  
      android {
          ndkVersion = "27.0.12077973"
          ...
      }
  
  
  FAILURE: Build failed with an exception.
```
Repository: flutter
Issue: Windows tool_integration_tests_2_9 times out
Labels: team-infra,P1,triaged-infra

### Type of Request

bug

### Infrastructure Environment

flutter/flutter post submit

### What is happening?

Windows tool_integration_tests_2_9 task kept timing out
even if it passes, it is close to time out.

### Steps to reproduce

https://ci.chromium.org/ui/p/flutter/builders/prod/Windows%20tool_integration_tests_2_9/875/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows%20tool_integration_tests_2_9/876/overview

### Expected results

some of the long running test may need to be pull out of this task