sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Web] - Superscript and subscript font features don't work on web
Labels: engine,a: typography,platform-web,e: web_canvaskit,has reproducible steps,P2,e: web_skwasm,team-web,triaged-web,found in release: 3.22,found in release: 3.23

### Steps to reproduce

Run the attached repro code on Mac

Run the attached repro code on Web

### Expected results

Both Mac and Web shows the word "World" as superscript.

### Actual results

On Mac, part of the text is shown as superscript. But on Web, none of the text is superscript.

When repro'ing this issue, I noticed that Mac also has a bug, which is that the first character that should be superscript isn't superscript. I'll file another issue for that.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const ReproApp());
}

class ReproApp extends StatelessWidget {
  const ReproApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: Padding(
            padding: EdgeInsets.all(96),
            child: Text.rich(
              TextSpan(
                text: "Hello",
                children: [
                  TextSpan(
                    text: "World",
                    style: TextStyle(
                      fontFeatures: [FontFeature.superscripts()],
                    ),
                  )
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

Mac
<img width="258" alt="Screenshot 2024-06-24 at 5 33 33 PM" src="https://github.com/flutter/flutter/assets/7259036/07d3cd80-b678-4633-9963-542b9ec38fe3">

Web
<img width="182" alt="Screenshot 2024-06-24 at 5 34 10 PM" src="https://github.com/flutter/flutter/assets/7259036/989addaf-5048-4f68-98a0-1ba09cd50793">


</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Framework • revision 761747bfc5 (3 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
```

</details>
Repository: flutter
Issue: Superscript text doesn't begin with the right character
Labels: platform-ios,engine,platform-mac,dependency: skia,a: typography,has reproducible steps,P2,team-engine,triaged-engine,found in release: 3.22,found in release: 3.23

### Steps to reproduce

Run the attached code on Mac

### Expected results

The word "Hello" is regular, and the word "World" is superscript.

### Actual results

The text "HelloW" is regular, and the word "orld" is superscript.

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const ReproApp());
}

class ReproApp extends StatelessWidget {
  const ReproApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: Padding(
            padding: EdgeInsets.all(96),
            child: Text.rich(
              TextSpan(
                text: "Hello",
                children: [
                  TextSpan(
                    text: "World",
                    style: TextStyle(
                      fontFeatures: [FontFeature.superscripts()],
                    ),
                  )
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

<img width="258" alt="Screenshot 2024-06-24 at 5 33 33 PM" src="https://github.com/flutter/flutter/assets/7259036/15c032ed-6e59-4686-b3cf-2f16db8bf8c2">


</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Framework • revision 761747bfc5 (3 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
```

</details>
Repository: pytorch
Issue: TIMM resnest101e torchcompile fails with CUDA illegal memory access on H100
Labels: triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

TIMM resnest101e torchcompile fails with CUDA illegal memory access on H100

reproduce:
```bash
python -u benchmark.py --bench train --model resnest101e --img-size 224 -b 128 --torchcompile
```

sample cuda-gdb stacktrace:
```
CUDA Exception: Warp Illegal Address

Thread 71 "pt_autograd_0" received signal CUDA_EXCEPTION_14, Warp Illegal Address.
[Switching focus to CUDA kernel 0, grid 10597, block (1,0,0), thread (64,0,0), device 0, sm 125, warp 0, lane 0]
triton_<<<(12544,1,1),(128,1,1)>>> () at /tmp/torchinductor_root/pn/cpnuzdofftbfz3abatxhlvl7nql4ygouq6c6lcep6x72yjsop2ay.py:31
31          tmp1 = tmp0 / 9
```

/tmp python script uploaded to https://gist.github.com/xwang233/af2131762c6f6403e9581fdf2333afc9



### Error logs

see above

### Minified repro

the env var doesn't seem to generate anything in cuda IMA case

### Versions

cuda 12.5
H100

failing since 6/22:
timm_commit: https://github.com/huggingface/pytorch-image-models/commit/b28945ff056d454b174f0fb8682e362b87150141
torch_commit: https://github.com/pytorch/pytorch/commit/b57fa8d9c07b0e03afbe5dab279aa26697b828ea
openai_triton_commit: https://github.com/openai/triton/commit/dedb7bdf339a3546896d4820366ca562c586bfa0

was working on 6/19:
timm_commit: https://github.com/huggingface/pytorch-image-models/commit/b28945ff056d454b174f0fb8682e362b87150141
torch_commit: https://github.com/pytorch/pytorch/commit/3a185778edb18abfbad155a87ff3b2d716e4c220
openai_triton_commit: https://github.com/openai/triton/commit/45fff310c891f5a92d55445adf8cc9d29df5841e

cc @ezyang @anijain2305 @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire
Repository: vscode
Issue: IChatTask can't be serialized
Labels: bug,debt,chat

IChatTask:

https://github.com/microsoft/vscode/blob/93a7382ecd63439a5bc507ef60e57610845ec05d/src/vs/workbench/api/browser/mainThreadChatAgents2.ts#L42

is a class with methods that don't get serialized, so the interface is inaccurate after reloading the window, and that caused some issues while trying to refactor things. We should figure out how to set this up so that the types are correct after it's deserialized. Maybe we can push a full object with methods to the model, but when reading the chat response value, you get a different simpler interface. Or maybe we need some custom deserialization logic for some types.
Repository: PowerToys
Issue: Sometimes Peek image previews are blurry
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

v0.80.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

No

### Area(s) with issue?

Peek

### Steps to reproduce

1. Enable the Peek module
2. Navigate to a picture file (could be a PNG, JPG, etc.) and activate Peek on it (press Ctrl+Space)

### ✔️ Expected Behavior

The preview should be clear and sharp if it can fit within the Peek window.

### ❌ Actual Behavior

Sometimes the preview is slightly blurry. I think it's because the Peek window is having its size miscalculated, making the previewed image shrink to fit.

If you maximize or increase the size of the window (usually vertically), it looks fine.

Now, of course, larger images that can't fit in the Peek window will have this issue, but I have also seen most medium-sized pictures that touch the top or bottom edges of the Peek window have this issue. Here's a good example:
https://github.com/microsoft/PowerToys/blob/main/doc/images/launcher/plugins/program.png?raw=true

https://github.com/microsoft/PowerToys/assets/106490990/3d631b19-edf4-4b37-95f0-800a670bf3bb

If you look very closely at the video, there are lines on the left and right edges of the preview. That's the background.

Here, and pretty much every time, the window's height is one pixel less than it should be.

Exactly how the blurring shows up might depend on the graphics components of your device.

### Other Software

_No response_
Repository: next.js
Issue:  Unable to parse config export in source file error in middleware.js example
Labels: examples

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
NodeJs v18.17.1 Local Environment
```


### Which example does this report relate to?

with-strict-csp

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

_No response_

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

_No response_

### Describe the Bug

I encountered an issue with the middleware.js example provided in the Next.js documentation. When trying to use the config export with a complex matcher configuration, I received the following error:

```
Unable to parse config export in source file
The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compile-time.
```
export const config = {
  matcher: [
    {
      source: "/((?!api|_next/static|_next/image|favicon.ico).*)",
      missing: [
        { type: "header", key: "next-router-prefetch" },
        { type: "header", key: "purpose", value: "prefetch" },
      ],
    },
  ],
};

The syntax that works well is this:
export const config = {
  matcher: [
    '/((?!api|_next/static|_next/image|favicon.ico).*)',
  ],
};
![image](https://github.com/vercel/next.js/assets/36580834/31dec743-8e94-4993-93af-c08c7ad97842)


### Expected Behavior

![image](https://github.com/vercel/next.js/assets/36580834/462f2122-dc44-4974-86c5-aaf5f0f35fce)


### To Reproduce

just run the with-strict-csp example
Repository: ollama
Issue: Add a parameter to prohibit adding services to ` systemictl '` 
Labels: feature request

In Linux, sometimes it is necessary to manually call for some debugging
But the saving location of the model is different from the location where the service is automatically started when manually started
And sometimes I don't want to automatically start taking up space
So can we` https://ollama.com/install.sh `Add a parameter in the script to prohibit configuration in 'systemid'
https://github.com/ollama/ollama/blob/ccef9431c8aae4ecfd0eec6e10377d09cb42f634/scripts/install.sh#L132-L134
like
```shell
if available systemctl && $DISABLE_SYSTEMD; then
    configure_systemd
fi
```
Repository: flutter
Issue: ` flutter build ios-framework` twice outputs  `Font asset "MaterialIcons-Regular.otf" was tree-shaken... Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.`
Labels: tool,P3,team-tool,triaged-tool

```
Building frameworks for com.example.myFlutter in release mode...
 ├─Copying Flutter.xcframework...                                   62ms
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1188 bytes (99.9% reduction). Tree-shaking can be disabled by providing the
--no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1188 bytes (99.9% reduction). Tree-shaking can be disabled by providing the
--no-tree-shake-icons flag when building your app.
 ├─Building App.xcframework...                                     24.3s
Running pod install...                                             755ms
 ├─Building plugins...                                                 ⡿
```
1. Why is is printed twice?
2. Why do we advertise a `--no-` non-default flag? When would a user not want icon tree shaking? Is that common enough to warrant printing?
3. If it should be printed during `flutter build ios-framework` and `flutter build mac-framework`, can it happen at the end instead of include the little ascii tree?
Repository: next.js
Issue: Headers are not set in Edge Runtime (Vercel) but does so locally
Labels: bug,Middleware,Runtime

### Link to the code that reproduces this issue

https://github.com/cusxio/next-middleware-test

### To Reproduce

[Source](https://github.com/cusxio/next-middleware-test/blob/df22328a68cb7280c232e8dd7eadd0de01ee752f/src/middleware.ts#L3-L32)

## Description
Right now, there's a difference in behavior when setting headers in the middleware between the local edge runtime and production (hosted on Vercel's) edge runtime.

Here's an example of the production link: https://next-middleware-test-seven.vercel.app/

Noticed that the `sessionId` is null, however, if you run it locally, you can see that the `sessionId` is displayed.

### Current vs. Expected behavior

The behavior of setting headers should be consistent between Vercel and local development. It took me a while to realized that this was the problem.

### Provide environment information

```bash
Node.js v22.3.0

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:17:33 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6031
  Available memory (MB): 65536
  Available CPU cores: 16
Binaries:
  Node: 22.3.0
  npm: 10.8.1
  Yarn: N/A
  pnpm: 8.15.5
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: 14.2.4
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.2
Next.js Config:
  output: N/A
```


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

Middleware, Runtime

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

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

### Additional context

_No response_
Repository: puppeteer
Issue: [Feature]: Add support for firstPageHeaderTemplate and firstPageFooterTemplate to PDFOptions while generating pdf
Labels: feature,P3

### Feature description

In many cases, the header and footer from first pdf page are different the rest. Currently, i have to generate two pdfs with different header/footer template and merge them, which could break the links on pages. Could you support this feature. Thanks!
Repository: pytorch
Issue: A mistake in PyTorch Docs for nn.RNN
Labels: module: docs,module: nn,module: rnn,triaged

### 📚 The doc issue

The code snippet in PyTorch docs for [`nn.RNN`](https://pytorch.org/docs/stable/generated/torch.nn.RNN.html#torch.nn.RNN) seems to have a mistake. 

Inside the `forward` function, `h_t[layer]` is defined as 

```
h_t[layer] = torch.tanh(
                x[t] @ weight_ih[layer].T
                + bias_ih[layer]
                + h_t_minus_1[layer] @ weight_hh[layer].T
                + bias_hh[layer]
            )
```

For `layer != 0`, we should write `h_t[layer-1]` instead of `x[t]`. A multi-layer RNN acts on the hidden state of the previous layer when layer > 0. 

### Suggest a potential alternative/fix

We could change the code snippet to the following. 

```
# Efficient implementation equivalent to the following with bidirectional=False
def forward(x, h_0=None):
    if batch_first:
        x = x.transpose(0, 1)
    seq_len, batch_size, _ = x.size()
    if h_0 is None:
        h_0 = torch.zeros(num_layers, batch_size, hidden_size)
    h_t_minus_1 = h_0
    h_t = h_0
    output = []
    for t in range(seq_len):
        for layer in range(num_layers):
            ih_input = x[t] if layer == 0 else h_t[layer-1]
            h_t[layer] = torch.tanh(
                ih_input @ weight_ih[layer].T
                + bias_ih[layer]
                + h_t_minus_1[layer] @ weight_hh[layer].T
                + bias_hh[layer]
            )
        output.append(h_t[-1].clone())
        h_t_minus_1 = h_t
    output = torch.stack(output)
    if batch_first:
        output = output.transpose(0, 1)
    return output, h_t
```



cc @svekars @brycebortree @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: flutter
Issue: [Feature] API to get Native Surface handle for Flutter Canvas
Labels: c: new feature,engine,c: proposal,P3,team-engine,triaged-engine

### Use case

render with flutter & encode to h264

Currently I:
1. render an image with flutter, using `ui.PictureRecorder()` & `picture.toImage(width, height);`
2. send the pixel bytes over a platform channel
3. encode the picture with MediaCodec / AVFoundation

Example code, from `flutter_quick_video_encoder` package: https://github.com/chipweinberger/flutter_quick_video_encoder/tree/master/example

However, this is far from optimal. And it takes 4 seconds to encode 60 frames of 720p (Pixel 5a)

### Proposal

A way to access the underlying GPU buffer of the canvas

to avoid the main memory copies
Repository: pytorch
Issue: Pytorch of 2.3.0 version loads bool type mask in triton, encountering error when use tl.where.
Labels: triaged,upstream triton

### 🐛 Describe the bug

When I was using triton, pytorch created a mask matrix of type bool. When passing in the triton, the following operation was used:
```
mask = tl.load(M_block_ptr, boundary_check=(0, 1), padding_option="zero")
p = tl.where(mask, p, 0.0)
```
P is float32, and the mask is of type int8 after triton conversion.
I upgraded pytorch to 2.3.0 and encountered the following issue:

```
python3: /root/.triton/llvm/llvm-5e5a22ca-centos-x64/include/llvm/ADT/SmallVector.h:298: const T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) const [with T = long int; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::const_reference = const long int&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]: Assertion `idx < size()' failed.
Fatal Python error: Aborted
Thread 0x00007f6b200a1700 (most recent call first):
<no Python frame>
```
But after being downgraded to 2.2.0, or changed to `p=tl.where(mask.to(p.dtype),p,0.0)` This problem can be solved. What is the reason?

### Versions

torch.version == 2.3.0
CUDA Version: 12.1
python 3.8.10

cc @bertmaher
Repository: puppeteer
Issue: [Bug]: Documentation for ozone-override-screen-size is missing
Labels: bug,confirmed,documentation,P3

### Minimal, reproducible example

```TypeScript
import Puppeteer from "puppeteer";

const browser = await Puppeteer.launch({
  // Puppeteer default viewport is 800x600. By setting to null, the viewport will be full size of the browser window.
  defaultViewport: null,
  headless: true,
  args: ["--window-size=1280,1024", "--headless=new"],
});

const page = await browser.newPage();

// Navigate the page to a URL.
await page.goto("https://whatismyviewport.com/");

await page.screenshot({
  path: "what-is-my-viewport.png",
});

await browser.close();
```


### Error string

no error

### Bug behavior

- [x] Consistent
- [ ] Flaky
- [ ] PDF

### Background

Running the example script under Mac and Linux gives different results

### Expectation

Running chrome headless, setting the window size should mean that both the browser window / viewport & screen dimensions will be set to the same provided value

### Reality

The browser window is sized correctly, however the screen size itself is not. 

This also means that `window.screen.width` & `window.screen.height` are also incorrect.

The issue is not present on Mac, but IS present on Linux.


| Mac (correct screen size) | Linux (incorrect screen size) |
| --- | --- |
| ![what-is-my-viewport-mac](https://github.com/puppeteer/puppeteer/assets/924/f6987fb0-a41b-4fb3-9e05-e4f1374640b9) | ![what-is-my-viewport-ubuntu](https://github.com/puppeteer/puppeteer/assets/924/39d33adb-7673-4970-ac31-849f75382eed) |


### Puppeteer configuration file (if used)

_No response_

### Puppeteer version

22.12.0, likely others

### Node version

Any

### Package manager

npm

### Package manager version

Latest

### Operating system

Linux
Repository: pytorch
Issue: Move pointwise_scatter from a post_grad pattern to a joint_graph pattern
Labels: triaged,oncall: pt2,module: inductor,internal ramp-up task

### 🐛 Describe the bug

We add pointwise_scatter as a post_grad pattern here: https://github.com/pytorch/pytorch/pull/129043 .

It's in general good to change that to a joint_graph pattern so the partitioner in AOTAutograd may pick better partitioning.

Currently the pattern is implemented as a lowering pattern but joint_graph pattern can not be a lowering pattern. Here is a nice way Elias proposed that can make it work as a graph pattern: https://github.com/pytorch/pytorch/pull/129043#discussion_r1651704403 

We need rerun perf test after the change.

### Error logs

_No response_

### Minified repro

_No response_

### Versions

.

cc @ezyang @anijain2305 @chauhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire
Repository: kubernetes
Issue: Performance optimization for UpdateSnapshot method when there is only one zone
Labels: sig/scheduling,kind/feature,lifecycle/rotten,needs-triage

### What would you like to be added?

When there is a node add or delete event, the UpdateSnapshot method triggers the updateAll logic, which reallocates memory for the entire nodeInfoList. When there is only a single zone, we can operate on the nodeInfoList directly to optimize it and avoid reallocating memory. 

### Why is this needed?

This approach is both CPU and memory-friendly for large clusters where nodes are frequently added or deleted. We don't need additional memory in this scenario, as there is only one zone by default.
Repository: pytorch
Issue: [dynamic][inline-inbuilt-nn-modules] Extra compilation - pytest test/onnx/dynamo/test_dynamo_with_onnxruntime_backend.py::TestDynamoWithONNXRuntime::test_llama_attention_with_local_backend_0
Labels: module: onnx,triaged,oncall: pt2,module: dynamic shapes

### 🐛 Describe the bug

**Note that this is the only failure that prevents us from turning on inlining inbuilt nn modules** (see this [PR](https://github.com/pytorch/pytorch/pull/128148)). So, we should prioritize fixing/skipping this test.

**This test uses dynamic=True which is not recommended for torch.compile**

## Repro instructions

Get CI HF commit - 
```
pip install git+https://github.com/huggingface/transformers.git@243e186efbf7fb93328dd6b34927a4e8c8f24395
```

Run this cmd - 
```
TORCHDYNAMO_INLINE_INBUILT_NN_MODULES=1 TORCH_LOGS="+dynamic,guards,graph_code,recompiles" pytest test/onnx/dynamo/test_dynamo_with_onnxruntime_backend.py::TestDynamoWithONNXRuntime::test_llama_attention_with_local_backend_0
```

Full paste - https://www.internalfb.com/intern/paste/P1442682822/

![image](https://github.com/pytorch/pytorch/assets/13822661/b6d6a495-ac61-4c7e-b04f-2c8f62f53eb2)


There is a recomp happening here on seemingly very different inputs because they are using the same symbol for representing a size. I guess this is just an heuristic to reduce the number of symints if they have the same int value.

Maybe the heuristic should change such that each param/buffer (which are lifted as inputs to the Dynamo graph) have their own symbols, and do not collide with input symbols. Just guessing.

I can definitely skip this test because it uses `dynamic=True`, but I want us to think if the test has exposed some fundamental issue.

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @bdhirsh 

### Error logs

_No response_

### Minified repro

_No response_

### Versions

NA