id int64 393k 2.82B | repo stringclasses 68
values | title stringlengths 1 936 | body stringlengths 0 256k ⌀ | labels stringlengths 2 508 | priority stringclasses 3
values | severity stringclasses 3
values |
|---|---|---|---|---|---|---|
2,480,297,894 | godot | Deadlock in `EditorNode::immediate_confirmation_dialog` when importing in headless mode with GDExtension | ### Tested versions
4.3
### System information
Windows 11, Ubuntu 24
### Issue description
As part of our CI/CD pipeline we run `./godot --editor --import --headless`. After the update to godot 4.3 we were experiencing deadlocks during this step. It seems the culprit is the confirmation dialog which is never accepted (since it is headless mode) causing this line here https://github.com/godotengine/godot/blob/568589c9d8c763bfb3a4348174d53b42d7c59f21/editor/editor_node.cpp#L5439 to never evaluate to true and the loop continuing on forever.
It seems the reason for the popup is that we are using the godot-jolt extension which requires an editor restart:
```
Some extensions need the editor to restart to take effect.
```
### Steps to reproduce
Add godot-jolt to your project
delete the .godot folder
run `./godot --editor --import --headless`
### Minimal reproduction project (MRP)
- | bug,confirmed,topic:gdextension,topic:import | low | Major |
2,480,313,372 | material-ui | MUI Context Menu should close on onPointerDown, not onClick | ### Steps to reproduce
_No response_
### Current behavior
_No response_
### Expected behavior
_No response_
### Context
In this [example](https://mui.com/material-ui/react-menu/#context-menu) context menu should close on mouse key down (on backdrop, not item), not waiting for it's release - this is how all typical context menus (in Windows, Chrome) behave.
Are there any ways to achieve such behavior?
### Your environment
_No response_
**Search keywords**: Menu Context Menu | support: question,component: menu,enhancement | low | Minor |
2,480,344,676 | bitcoin | Split socket handling out of CConnman | ### Please describe the feature you'd like to see added.
Split `CConnman` in two pieces:
* protocol agnostic low level socket and connection handler and
* bitcoin-p2p protocol specific handler.
This way the first part can be reused for Stratum V2 and for libevent-less RPC/HTTP server.
### Is your feature related to a problem, if so please describe it.
Doing Stratum V2 and removing libevent from RPC requires duplicating some of the code from `CConnman` - binding and listening and the send/recv io loop.
### Describe the solution you'd like
Split `CConnman` in such a way that the code can be reused.
### Describe any alternatives you've considered
Duplicate code. | Feature | low | Minor |
2,480,362,471 | react-native | When using TextInput with secureTextEntry={true} on iOS, pressing the back button erases the entire text instead of just the last character. | ### Description
When using TextInput with secureTextEntry={true} on iOS, pressing the back button erases the entire text instead of just the last character.
Expected Behavior:
The back button should erase only the last character of the input in the TextInput.
Current Behavior:
The entire text is erased when pressing the back button once.
### Steps to reproduce
1. Enter text in a TextInput with secureTextEntry={true}.
2. Focus out of the input (e.g., move to the next input field).
3. Refocus on the TextInput.
4. Press the back button to erase text.
### React Native Version
0.72.5
### Affected Platforms
Runtime - iOS
### Output of `npx react-native info`
```text
System:
OS: macOS 14.5
CPU: (8) arm64 Apple M2
Memory: 49.34 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.16.0
path: ~/.nvm/versions/node/v20.16.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.1
path: ~/.nvm/versions/node/v20.16.0/bin/npm
Watchman:
version: 2024.08.05.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2411.12071903
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac
Ruby:
version: 3.1.4
path: /Users/testUser/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.5
wanted: 0.72.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: false
newArchEnabled: false
```
### Stacktrace or Logs
```text
### Stacktrace or Logs
N/A
```
### Reproducer
https://github.com/S170209/TextInputIssueRepro.git
### Screenshots and Videos
https://github.com/user-attachments/assets/fcb30253-405d-48d2-9636-2c4b576e5b51
| Platform: iOS,Resolution: PR Submitted,Component: TextInput,Component: Button,Type: Unsupported Version | low | Major |
2,480,383,624 | deno | Feat: add `--open` to `deno serve` to open server in browser | Most dev servers allow you to pass `--open` to open the page automatically in the browser. It's a neat minor DX enhancement compared to having to click the link yourself.
When passing `deno serve --open` the browser should open the address where the server is running on. Vite goes a bit the extra mile to ensure that the same tab is re-used via some apple script vodoo https://github.com/vitejs/vite/blob/561b940f6f963fbb78058a6e23b4adad53a2edb9/packages/vite/src/node/server/openBrowser.ts#L71-L141 | feat | low | Minor |
2,480,394,160 | godot | InputEventScreenDrag and InputEventScreenTouch event.index are bug values on iOS/iPadOS web export | ### Tested versions
- Reproducible in 4.3.stable
### System information
Godot v4.3.stable - macOS 14.5.0 - GLES3 (Compatibility) - Apple M1 - Apple M1 (8 Threads)
### Issue description
On android and on my mac with mouse to touch emulation, event.index displays the expected value of 0 with the first finger, 1 with the second etc. on the web export:
<img width="273" alt="Screenshot 2024-08-22 at 11 10 21" src="https://github.com/user-attachments/assets/5cbf292a-48ac-468f-babc-942ed3188248">
On iOS/iPadOS, an overflow? value is displayed, and each subsequent touch event will increase the counter, regardless of which finger caused the event:
<img width="162" alt="Screenshot 2024-08-22 at 11 08 09" src="https://github.com/user-attachments/assets/6c3236ed-0985-40ad-9aee-ebd3ff7134ce">
I was unable to load the web export prior to 4.3.stable, due to the no threads update, so was unable to test previous versions.
### Steps to reproduce
Create a new project, paste the following code, export to web and test,
```gdscript
func _input(event: InputEvent) -> void:
if event is InputEventScreenDrag or event is InputEventScreenTouch:
print("_input: %s"%[event.index])
```
### Minimal reproduction project (MRP)
N/A | bug,platform:web,platform:macos,topic:porting,topic:input | low | Critical |
2,480,437,462 | pytorch | [Operator Benchmark] [CPU]OP: weight_norm_sparsifier_step functionality failed with parts of long config shapes | ### 🐛 Describe the bug
OP: weight_norm_sparsifier_step functionality failed with parts of long config shapes on CPU.
Reproduce:
```
pip3 install torch
```
Please refer to https://github.com/DiweiSun/pytorch/tree/molly/op_microbenchmark/benchmarks/operator_benchmark to install pt extension for operator benchmark.
And then run cmd:
```
python -m pt.ao_sparsifier_test --tag_filter long
```
Error logs:
```
# Benchmarking PyTorch: weight_norm_sparsifier_step
# Mode: Eager
# Name: weight_norm_sparsifier_step_M(255,324)_SL1.0_SBS(1,4)_ZPBNone
# Input: M: (255, 324), SL: 1.0, SBS: (1, 4), ZPB: None
Forward Execution Time (us) : 31.321
# Benchmarking PyTorch: weight_norm_sparsifier_step
# Mode: Eager
# Name: weight_norm_sparsifier_step_M(255,324)_SL1.0_SBS(8,1)_ZPB0
# Input: M: (255, 324), SL: 1.0, SBS: (8, 1), ZPB: 0
Forward Execution Time (us) : 30.981
# Benchmarking PyTorch: weight_norm_sparsifier_step
Traceback (most recent call last):
File "/home/pytorch/miniforge/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/pytorch/miniforge/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/pt/ao_sparsifier_test.py", line 54, in <module>
op_bench.benchmark_runner.main()
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/benchmark_runner.py", line 179, in main
benchmark_core.BenchmarkRunner(args).run()
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/benchmark_core.py", line 467, in run
launch_func(
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/benchmark_core.py", line 280, in _launch_forward
forward_time = timeit.timeit(
File "/home/pytorch/miniforge/lib/python3.10/timeit.py", line 234, in timeit
return Timer(stmt, setup, timer, globals).timeit(number)
File "/home/pytorch/miniforge/lib/python3.10/timeit.py", line 178, in timeit
timing = self.inner(it, self.timer)
File "<timeit-src>", line 6, in inner
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/benchmark_pytorch.py", line 160, in run_forward
self.output = self.op_bench.forward_impl()
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/benchmark_pytorch.py", line 66, in forward_impl
return self.forward(*self.get_inputs())
File "/home/pytorch/molly/04-pytorch/benchmarks/operator_benchmark/pt/ao_sparsifier_test.py", line 46, in forward
self.sparsifier.step()
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/ao/pruning/sparsifier/base_sparsifier.py", line 350, in step
self.update_mask(**config)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/ao/pruning/sparsifier/weight_norm_sparsifier.py", line 193, in update_mask
ww = self.norm_fn(getattr(module, tensor_name))
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/utils/parametrize.py", line 379, in get_parametrized
return parametrization()
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/utils/parametrize.py", line 276, in forward
x = self[0](self.original)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/pytorch/miniforge/lib/python3.10/site-packages/torch/ao/pruning/sparsifier/utils.py", line 130, in forward
assert self.mask.shape == x.shape
AssertionError
```
### Versions
[pip3] flake8==6.1.0
[pip3] flake8-bugbear==23.3.23
[pip3] flake8-comprehensions==3.15.0
[pip3] flake8-executable==2.1.3
[pip3] flake8-logging-format==0.9.0
[pip3] flake8-pyi==23.3.1
[pip3] flake8-simplify==0.19.3
[pip3] mypy==1.10.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.0
[pip3] optree==0.12.1
[pip3] torch==2.4.0
[pip3] triton==3.0.0
[conda] numpy 1.26.0 pypi_0 pypi
[conda] optree 0.12.1 pypi_0 pypi
[conda] torch 2.4.0 pypi_0 pypi
[conda] torchfix 0.4.0 pypi_0 pypi
[conda] triton 3.0.0 pypi_0 pypi
cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @msaroufim | oncall: quantization | low | Critical |
2,480,492,536 | langchain | langchain dumps not always implemented - Improve langchain runnable serialization | ### Checked other resources
- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
### Example Code
```python
from langchain_openai import ChatOpenAI
from langchain_core.prompts import PromptTemplate
from langchain.agents import AgentExecutor, create_react_agent
from langchain.tools import BaseTool
from langchain_core.load import dumps
prompt = PromptTemplate.from_template("Answer the following questions as best you can. You have access to the following tools:\n\n{tools}\n\nUse the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n\nBegin!\n\nQuestion: {input}\nThought:{agent_scratchpad}")
# Choose the LLM to use
llm = ChatOpenAI(model="gpt-3.5-turbo")
tools: list[BaseTool] = []
# Construct the ReAct agent
agent = create_react_agent(llm, tools, prompt)
# dumps to a file
with open('react-ai-agent.json', 'w') as f:
f.write(dumps(agent))
```
### Error Message and Stack Trace (if applicable)
```python
RUNNABLE_FILE_PATH = "./react-ai-agent.json"
with open(RUNNABLE_FILE_PATH, 'r') as f:
agent = loads(f.read(), secrets_from_env=True)
```
```
NotImplementedError: Trying to load an object that doesn't implement serialization: {'lc': 1, 'type': 'not_implemented', 'id': ['langchain_core', 'runnables', 'base', 'RunnableLambda'], 'repr': "RunnableLambda(lambda x: format_log_to_str(x['intermediate_steps']))"}
```
### Description
Basically i just want to dumps a runnable and loads it, i want it to work for any langchain runnable
### System Info
generic langchain installation | Ɑ: Runnables,Ɑ: core | low | Critical |
2,480,501,617 | neovim | :term duplicates lines on vsplit | ### Problem
Vertically-splitting a terminal results in duplicated lines in Neovim's terminal.
### Steps to reproduce
```
nvim --clean -c 'term bash' -c 'call feedkeys(repeat("a", &columns * 2)) | vsplit'
```
### Expected behavior
No duplicated lines. If you have a hard time noticing the duplicated lines, look for your bash's `$PS1` - you should see it twice in each window.
To confirm this is a bug, close one of the two windows (`<C-\><C-n>:close`) - you should then only see a single `$PS1` in your only window. `:vsplit` again, and the duplicated lines re-appear.
### Neovim version (nvim -v)
nightly/master (currently e48179f)
### Vim (not Nvim) behaves the same?
N/A
### Operating system/version
Linux
### Terminal name/version
foot version: 1.11.0 -pgo +ime -graphemes -assertions
### $TERM environment variable
xterm-256color
### Installation
Appimage/Built from source | bug,terminal | low | Critical |
2,480,528,547 | transformers | Some casualLM models don't get position_ids in their forward pass. | ### Feature request
There are some models such that their forward pass doesn't get position_ids. e.g. we can see that OPTModel doesn't get position_ids, while GPTJModel does get position_ids. most newer models do have position_ids.
### Motivation
There are two main reasons we would like for all LM models to get positions ids.
1. to have the API be consistent with all models.
2. position_ids are very important if you want to use flash-attention without padding, during training. if i want to be able to pack two or more sentences in the same sequence. I would like to know that the model handles the sentences accordingly and treats each sentence as it's own different sentence. flash-attention code uses position_ids to check if some sequences are packed and runs an appropriate function to make sure there is no cross example contamination. but without this the model can't use this feature. the code always checks if position_ids is not None:
https://github.com/huggingface/transformers/blob/v4.44.1/src/transformers/modeling_flash_attention_utils.py#L270
### Your contribution
I may be able to fix this and help with a PR. but would love a more experienced person to guide me. | Good Second Issue,Feature request | low | Minor |
2,480,554,127 | PowerToys | Ability or option to force a shortlink remap for a "single" key (without the need to use a combination/compose key) | ### Description of the new feature / enhancement
Reading the issue (https://github.com/microsoft/PowerToys/issues/7460) I have nearly the same need/problem : I would like to remap the Fn+F2 (= launch default mail application on my Logitech keyboard) to open a new compose mail window (with a shortcut like outlook.exe /c ipm.note) instead of opening the main Outlook window
But as the Fn + smthg is done through hardware and is supposed to be "translated" in the Operating System (in my case, the Fn+F2 key becomes the StartMail key), I suggest the ability to define a shortcut remap without a composition key, which is expected by KeyBoard Manager
### Scenario when this would be used?
This is a workaround of the previously mentionned issue
### Supporting information
Nothing comes to my mind, but I would happy to provide/test if asked | Needs-Triage | low | Minor |
2,480,641,815 | TypeScript | Type is not referred correctly in the while loop | ### 🔎 Search Terms
incorrect type while loop
### 🕗 Version & Regression Information
Worked correctly in version 4.2.3.
It doesn't work since 4.3.5.
### ⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.5.4#code/MYGwhgzhAEDCAWBLEATaBTAHgF3QOxRgAkAVAWQBkBREdAW322gG8AoASAHN0mAHMAE6MAFAEoWHdsAD2eCE2bR+QvNhr1G0AL7QAvNGxIIAblaTEAM2jCAhMOWN1DVdERzsYPMHTSrABUFGUXE2djChbABXATxoPEiQEFMwrTNwnmjYh1UnRmTU1NZQSBgAlSYsXAJicmpaZwUObj5A1TEJMJl3FiVWtXrNHX1DRBM09ktrO2z+jRc3eU9vX2gAcQFPFDKgkMl2CMy4hKTJQvSomN7y3NV81kLiqDWNgm2XSvxCaFJKG8auHhXES7TqyeQ9GZ-bR6AxGUzmKy2ex9KELDxeHxWdboMDYdabN7YYIdc6HeKJZLsM77DKXSEDW4cApmR4wbG4-GvPoYHCfGq-Bn-ZpAtogmkXWLkk5U+4syLyaR0P4QAB0KHQFjc6GEACJgABaYBIVA6gA0cGNKFEpmA8uwiuVao1Wt1BpmZughOtRTtDsFqvVmrw2r1+s4LxQ+vd5s5Wz63ttCqV-qdQZDBvDOOwYYjUb6HvZeIjXvh2AAnrx0J6Uf6YYXY4ToAAfZ4E7ktwnwrrgo3IND6YMAdwtfbE8NoTFtAnKhIAXNXrrWW1KYb3UCqZvDB8aq8IpzP4x1u9JaCqQNJOHvogfytboAB6e-QCDwaQJNAAIyr9eL7dbXPKZsF0YNJ90YRt9DA1RCQ3PpTFSIA
### 💻 Code
```ts
class Child extends HTMLElement {
get parent() {
const { parentElement } = this;
if (!(parentElement instanceof Parent)) {
return null;
}
return parentElement;
}
}
class Parent extends HTMLElement {
get parent() {
const { parentElement } = this;
if (!(parentElement instanceof GrandParent)) {
return null;
}
return parentElement;
}
}
class GrandParent extends HTMLElement {
get parent() {
const { parentElement } = this;
if (!(parentElement instanceof GreatGrandParent)) {
return null;
}
return parentElement;
}
}
class GreatGrandParent extends HTMLElement {
get parent() {
return null;
}
}
// irrelevant code
customElements.define("c-child", Child);
customElements.define("c-parent", Parent);
customElements.define("c-grand-parent", GrandParent);
customElements.define("c-great-grand-parent", GreatGrandParent);
type ParentElements = GreatGrandParent | GrandParent | Parent;
const child = new Child();
let currentParent: ParentElements | null = child.parent;
while (currentParent) {
console.log(currentParent); // should be GreatGrandParent | GrandParent | Parent
currentParent = currentParent.parent;
}
```
### 🙁 Actual behavior
The `curerntParent`'s type is not referred correctly. It became `Parent | GrandParent`.
### 🙂 Expected behavior
The `currentParent`'s type should be `Parent | GrandParent | GreatGrandParent`.
### Additional information about the issue
_No response_ | Bug,Help Wanted | low | Major |
2,480,650,995 | ui | [feat]: Tracker Chart | ### Feature description
How to build this type of chart?
<img width="577" alt="image" src="https://github.com/user-attachments/assets/af4d7690-7665-4201-a63c-76a9acd24518">
### Affected component/components
_No response_
### Additional Context
Additional details here...
### Before submitting
- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs | area: request | low | Minor |
2,480,657,807 | TypeScript | Interface type coercion fails with unsatisfied properties in unions | ### 🔎 Search Terms
interface type coercion
type coercion
unsatisfied union constraints
property missing in but required
conditional interference
### 🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about type coercion
### ⏯ Playground Link
https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgILIN4Chm+QZ0gAcAuZARiwF8stRJZEUAhTHPQiU5AJmtvrR4SZMwD6AUQAeYZBBkQQAE3yi2eAsTJ8N8sFDj4yAIgBu0AJ7IEAexsAbY-yxgLRFAGViyALwVkAD68Lm4oAMI2IPgArgC20L5ogcgAFKxB4tJgAJQA3LS2UbIw0SAIiSnZZF5cvgB8yACycGAAFgB0Bso2sZXIDQAM7QCsyAD8vMhk5PmFhNaRMfFQFQDurS0Q5lBkEVFx0Nn1mMg0BYuynESJJWWV+VgA9I-IgKDkyKs2UADW+HQwKSuvh8fnIR2wGjmBygKQwmlqVGy1Dk9nwKAheChy1h8OuiOcz2QgBlyZDwYCorBY6A4oGIoA
### 💻 Code
```ts
interface A {
step: 1
}
interface B {
step: 2
}
interface B_Ext extends B {
step: 2
extras: "very cool"
}
type Step = 1 | 2
type Consumer = A | (B | B_Ext);
const func = (): Step => Math.random() > 0.5 ? 2 : 1;
const consumer = (whatever: Consumer) => { }
const step = func();
// ✅ works
if(step === 1) {
consumer({ step })
} else {
consumer({ step })
}
// ❌ fails
consumer({ step })
```
### 🙁 Actual behavior
The compiler expects that all properties of a sub-constituent be satisfied
### 🙂 Expected behavior
The union defines that it is either `A | B` and `B` might be `B` or `B & Extras`
### Additional information about the issue
The same happens with types instead of interfaces as well as a the extras being passed as union of the type:
```ts
// causes the same issues
type A = { step: 1 }
type B = { step: 2 } & ({} | { extras: 'very good' })
``` | Bug,Help Wanted | low | Minor |
2,480,705,096 | flutter | Crash in SliverAnimatedList: AssertionError in Debug mode / "Null check operator used on a null value" in Release mode | EDIT: I created a much better example code, with much better step by step instructions to reproduce. See here: https://github.com/flutter/flutter/issues/153922#issuecomment-2304830850
### Steps to reproduce
Run the provided code sample and quickly change the text in the filter field.
You'll hit the bug almost instantly after a few characters and delete key presses.
### Expected results
The filter text field should filter the items of the list.
Changing `SilverAnimatedList` to `AnimatedList` in the code sample, fixes the issue as the app becomes impossible to crash, however, it makes me lose the possibility to use the `findChildIndexCallback` property of `SliverAnimatedList` which is not available in its non sliver counterpart.
### Actual results
In debug mode, an assertion fails, as shown in the logs.
In release mode, a null check fails, as shown in the other block of logs.
### Code sample
<details open><summary>Code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("Conversations"),
),
body: ConversationsWidget(),
),
)
);
}
class ConversationsWidget extends StatefulWidget {
final List<String> conversations = [
"John Doe",
"Jane Doe",
"Alice",
"Bob",
"Charlie",
"David",
"Eve",
"Frank",
"Grace",
"Heidi",
"Ivan",
"Judy",
"Mallory",
"Oscar",
"Peggy",
"Trent",
"Victor",
"Walter",
"Zoe",
"Mallory",
];
ConversationsWidget({super.key});
@override
State<ConversationsWidget> createState() => _SearchWidgetState();
}
class _SearchWidgetState extends State<ConversationsWidget> {
final GlobalKey<SliverAnimatedListState> _listKey = GlobalKey<SliverAnimatedListState>();
late final ListModel<String> _list = ListModel<String>(
listKey: _listKey,
initialItems: widget.conversations,
removedItemBuilder: _buildRemovedItem,
);
late final TextEditingController filterController = TextEditingController();
late final FocusNode filterFocus = FocusNode();
@override
void dispose() {
filterController.dispose();
filterFocus.dispose();
super.dispose();
}
@override
void didUpdateWidget(ConversationsWidget oldWidget) {
super.didUpdateWidget(oldWidget);
if (widget.conversations != oldWidget.conversations) {
_onChanged();
}
}
Widget _buildItem(BuildContext context, int index, Animation<double> animation) {
print("calling _buildItem at index $index");
return _buildConversationTile(
context, animation, _list[index]
);
}
Widget _buildRemovedItem(
String item, BuildContext context, Animation<double> animation) {
return _buildConversationTile(
context, animation, item
);
}
void _onChanged() {
setState(() {
});
final convs = widget.conversations;
final filterNormalized = filterController.text.toLowerCase();
final filteredConvs = convs.where((conv) => conv.toLowerCase().contains(filterNormalized)).toList();
for (final conv in filteredConvs) {
if (!_list._items.contains(conv)) {
_list.insert(filteredConvs.indexOf(conv), conv);
}
}
final itemsCopy = List<String>.from(_list._items);
int offset = 0;
for (final (i, conv) in itemsCopy.indexed) {
if (!filteredConvs.contains(conv)) {
_list.removeAt(i-offset);
offset++;
}
}
}
@override
Widget build(BuildContext context) {
return Column(
children: [
Row(
children: [
const Icon(Icons.filter_list),
Expanded(
child: TextField(
focusNode: filterFocus,
controller: filterController,
autocorrect: false,
autofillHints: const [
AutofillHints.nickname,
AutofillHints.givenName,
AutofillHints.name,
AutofillHints.username
],
keyboardType: TextInputType.name,
decoration: const InputDecoration(
hintText: 'Filter...',
hintStyle: TextStyle(color: Colors.grey),
hintFadeDuration: Durations.medium1,
border: InputBorder.none,
),
onChanged: (_) => _onChanged(),
onTapOutside: (_) => filterFocus.unfocus(),
),
),
IconButton(
icon: const Icon(Icons.clear),
color: Colors.grey[600],
onPressed: () {
filterController.clear();
_onChanged();
},
)
],
),
Expanded(
child: CustomScrollView(
slivers: <Widget>[
SliverAnimatedList(
key: _listKey,
findChildIndexCallback: (key) {
final k = (key as ValueKey).value as String;
final i = _list.indexWhere((conv) => conv == k);
return i == -1 ? null : i;
},
initialItemCount: _list.length,
itemBuilder: _buildItem,
),
],
),
),
],
);
}
}
typedef RemovedItemBuilder<E> = Widget Function(
E item, BuildContext context, Animation<double> animation);
class ListModel<E> {
ListModel({
required this.listKey,
required this.removedItemBuilder,
Iterable<E>? initialItems,
}) : _items = List<E>.from(initialItems ?? <E>[]);
final GlobalKey<SliverAnimatedListState> listKey;
final RemovedItemBuilder<E> removedItemBuilder;
final List<E> _items;
SliverAnimatedListState get _animatedList => listKey.currentState!;
void insert(int index, E item) {
_items.insert(index, item);
_animatedList.insertItem(index, duration: const Duration(milliseconds: 800));
}
E removeAt(int index) {
final E removedItem = _items.removeAt(index);
if (removedItem != null) {
_animatedList.removeItem(
index,
duration: const Duration(milliseconds: 800),
(BuildContext context, Animation<double> animation) =>
removedItemBuilder(removedItem, context, animation),
);
}
return removedItem;
}
int get length => _items.length;
E operator [](int index) => _items[index];
int indexOf(E item) => _items.indexOf(item);
int indexWhere(bool Function(E) test) => _items.indexWhere(test);
}
Widget _buildConversationTile(BuildContext context, Animation<double> animation, String name) {
return TileTransition(
key: ValueKey(name),
animation: animation,
child: ListTile(
leading: const Icon(Icons.person),
title: Text(name),
onTap: () {
},
),
);
}
class TileTransition extends StatelessWidget {
final Widget child;
final Animation<double> animation;
const TileTransition({
super.key,
required this.child,
required this.animation,
});
@override
Widget build(BuildContext context) {
return SizeTransition(
key: key,
sizeFactor: animation.drive(CurveTween(curve: Curves.easeInOutCubic)),
child: SlideTransition(
position: Tween<Offset>(begin: const Offset(1,0), end: const Offset(0,0)).animate(CurvedAnimation(
parent: animation,
curve: Curves.easeOutCubic,
)),
child: FadeTransition(
opacity: Tween<double>(begin: 0, end: 1).animate(CurvedAnimation(
parent: animation,
curve: const Interval(0.5, 1.0),
)),
child: child,
),
)
);//.animate().color(end: Colors.red, delay: Duration(milliseconds: 500));
}
}
```
</details>
### Screenshots or Video
_No response_
### Logs
<details open><summary>Debug Logs</summary>
```console
Restarted application in 1,116ms.
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/flutter (31340): calling _buildItem at index 3
I/flutter (31340): calling _buildItem at index 4
I/flutter (31340): calling _buildItem at index 5
I/flutter (31340): calling _buildItem at index 6
I/flutter (31340): calling _buildItem at index 7
I/flutter (31340): calling _buildItem at index 8
I/flutter (31340): calling _buildItem at index 9
I/flutter (31340): calling _buildItem at index 10
I/flutter (31340): calling _buildItem at index 11
I/flutter (31340): calling _buildItem at index 12
I/flutter (31340): calling _buildItem at index 13
I/flutter (31340): calling _buildItem at index 14
I/flutter (31340): calling _buildItem at index 15
I/flutter (31340): calling _buildItem at index 16
I/flutter (31340): calling _buildItem at index 17
W/Choreographer(31340): Frame time is 0.153323 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
I/ImeTracker(31340): com.test.test:3dd6aa77: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F....ID 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
I/AssistStructure(31340): Flattened final assist data: 596 bytes, containing 1 windows, 3 views
D/InputConnectionAdaptor(31340): The input method toggled cursor monitoring on
D/InsetsController(31340): show(ime(), fromIme=true)
W/InteractionJankMonitor(31340): Initializing without READ_DEVICE_CONFIG permission. enabled=false, interval=1, missedFrameThreshold=3, frameTimeThreshold=64, package=com.test.test
I/ImeTracker(31340): com.test.test:3dd6aa77: onShown
I/ImeTracker(31340): com.test.test:7d2b217f: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:7d2b217f: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/ImeTracker(31340): com.test.test:5216683c: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:5216683c: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/flutter (31340): calling _buildItem at index 4
I/flutter (31340): calling _buildItem at index 9
I/flutter (31340): calling _buildItem at index 3
I/flutter (31340): calling _buildItem at index 5
I/flutter (31340): calling _buildItem at index 6
I/flutter (31340): calling _buildItem at index 7
I/flutter (31340): calling _buildItem at index 8
I/flutter (31340): calling _buildItem at index 10
I/flutter (31340): calling _buildItem at index 11
I/flutter (31340): calling _buildItem at index 12
I/flutter (31340): calling _buildItem at index 13
I/flutter (31340): calling _buildItem at index 14
I/flutter (31340): calling _buildItem at index 15
I/flutter (31340): calling _buildItem at index 16
I/flutter (31340): calling _buildItem at index 17
I/flutter (31340): calling _buildItem at index 18
I/ImeTracker(31340): com.test.test:5daf4e56: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:5daf4e56: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/ImeTracker(31340): com.test.test:a878887b: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:a878887b: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/ImeTracker(31340): com.test.test:67dc10a9: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:67dc10a9: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/flutter (31340): calling _buildItem at index 3
I/ImeTracker(31340): com.test.test:9e9e0b0c: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT fromUser false
D/InputMethodManager(31340): showSoftInput() view=io.flutter.embedding.android.FlutterView{30e961e VFED..... .F...... 0,0-1080,2277 #1 aid=1073741824} flags=0 reason=SHOW_SOFT_INPUT
D/InsetsController(31340): show(ime(), fromIme=true)
I/ImeTracker(31340): com.test.test:9e9e0b0c: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
I/flutter (31340): calling _buildItem at index 0
I/flutter (31340): calling _buildItem at index 1
I/flutter (31340): calling _buildItem at index 2
I/flutter (31340): calling _buildItem at index 3
I/flutter (31340): calling _buildItem at index 4
I/flutter (31340): calling _buildItem at index 5
I/flutter (31340): calling _buildItem at index 6
I/flutter (31340): calling _buildItem at index 7
I/flutter (31340): calling _buildItem at index 8
I/flutter (31340): calling _buildItem at index 9
I/flutter (31340): calling _buildItem at index 10
I/flutter (31340): calling _buildItem at index 11
I/flutter (31340): calling _buildItem at index 12
I/flutter (31340): calling _buildItem at index 13
I/flutter (31340): calling _buildItem at index 14
I/flutter (31340): calling _buildItem at index 15
I/flutter (31340): calling _buildItem at index 16
I/flutter (31340): calling _buildItem at index 17
I/flutter (31340): calling _buildItem at index 18
════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building SliverAnimatedList-[LabeledGlobalKey<SliverAnimatedListState>#f1275](state: SliverAnimatedListState#a9f18(tickers: tracking 36 tickers)):
'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 269 pos 16: 'child == null || indexOf(child) > index': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.yml
The relevant error-causing widget was:
SliverAnimatedList-[LabeledGlobalKey<SliverAnimatedListState>#f1275] SliverAnimatedList:file:///home/paulg/Repos/test_client/lib/main.dart:154:19
When the exception was thrown, this was the stack:
#2 RenderSliverMultiBoxAdaptor._debugVerifyChildOrder (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:269:16)
#3 RenderSliverMultiBoxAdaptor.debugChildIntegrityEnabled=.<anonymous closure> (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:243:14)
#4 RenderSliverMultiBoxAdaptor.debugChildIntegrityEnabled= (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:245:6)
#5 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:933:20)
#6 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:844:7)
#7 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#9 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#10 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#11 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803:5)
#12 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#13 Element.updateChildren (package:flutter/src/widgets/framework.dart:4090:32)
#14 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:7060:17)
#15 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:235:11)
#16 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#17 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#18 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#19 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#20 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#21 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#22 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#23 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#24 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#26 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#27 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#28 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803:5)
#29 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#30 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#31 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#33 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#34 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946:5)
#35 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#36 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#37 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#39 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#40 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946:5)
#41 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#43 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907:14)
#45 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#47 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#48 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#49 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803:5)
#50 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#52 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#53 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946:5)
#54 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#56 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#57 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#58 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803:5)
#59 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#61 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#62 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#63 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803:5)
#64 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#66 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#67 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946:5)
#68 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#70 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#71 StatelessElement.update (package:flutter/src/widgets/framework.dart:5693:5)
#72 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#73 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#74 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#75 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946:5)
#76 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#77 Element.updateChildren (package:flutter/src/widgets/framework.dart:4090:32)
#78 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:7060:17)
#79 Element.updateChild (package:flutter/src/widgets/framework.dart:3941:15)
#80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642:16)
#81 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780:11)
#82 Element.rebuild (package:flutter/src/widgets/framework.dart:5333:7)
#83 BuildScope._tryRebuild (package:flutter/src/widgets/framework.dart:2693:15)
#84 BuildScope._flushDirtyElements (package:flutter/src/widgets/framework.dart:2752:11)
#85 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3048:18)
#86 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1162:21)
#87 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468:5)
#88 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397:15)
#89 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318:9)
#90 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176:5)
#91 _invoke (dart:ui/hooks.dart:312:13)
#92 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419:5)
#93 _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _AssertionError)
════════════════════════════════════════════════════════════════════════════════
```
</details>
<details open><summary>Debug Logs</summary>
```console
I/flutter (32456): [IMPORTANT:flutter/shell/platform/android/android_context_vulkan_impeller.cc(67)] Using the Impeller rendering backend (Vulkan).
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): calling _buildItem at index 5
I/flutter (32456): calling _buildItem at index 6
I/flutter (32456): calling _buildItem at index 7
I/flutter (32456): calling _buildItem at index 8
I/flutter (32456): calling _buildItem at index 9
I/flutter (32456): calling _buildItem at index 10
I/flutter (32456): calling _buildItem at index 11
I/flutter (32456): calling _buildItem at index 12
I/flutter (32456): calling _buildItem at index 13
I/flutter (32456): calling _buildItem at index 14
I/flutter (32456): calling _buildItem at index 15
I/flutter (32456): calling _buildItem at index 16
I/flutter (32456): calling _buildItem at index 17
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): calling _buildItem at index 5
I/flutter (32456): calling _buildItem at index 6
I/flutter (32456): calling _buildItem at index 7
I/flutter (32456): calling _buildItem at index 8
I/flutter (32456): calling _buildItem at index 9
I/flutter (32456): calling _buildItem at index 10
I/flutter (32456): calling _buildItem at index 11
I/flutter (32456): calling _buildItem at index 5
I/flutter (32456): calling _buildItem at index 6
I/flutter (32456): calling _buildItem at index 7
I/flutter (32456): calling _buildItem at index 8
I/flutter (32456): calling _buildItem at index 9
I/flutter (32456): calling _buildItem at index 10
I/flutter (32456): calling _buildItem at index 11
I/flutter (32456): calling _buildItem at index 12
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): Null check operator used on a null value
I/flutter (32456): #0 RenderSliverMultiBoxAdaptor.childMainAxisPosition (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:627)
I/flutter (32456): #1 RenderSliverMultiBoxAdaptor.paint (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:693)
I/flutter (32456): #2 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3268)
I/flutter (32456): #3 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:251)
I/flutter (32456): #4 RenderViewportBase._paintContents (package:flutter/src/rendering/viewport.dart:757)
I/flutter (32456): #5 PaintingContext.pushLayer (package:flutter/src/rendering/object.dart:487)
I/flutter (32456): #6 PaintingContext.pushClipRect (package:flutter/src/rendering/object.dart:547)
I/flutter (32456): #7 RenderViewportBase.paint (package:flutter/src/rendering/viewport.dart:732)
I/flutter (32456): #8 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:3268)
I/flutter (32456): #9 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:167)
I/flutter (32456): #10 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:110)
I/flutter (32456): #11 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:1183)
I/flutter (32456): #12 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:1193)
I/flutter (32456): #13 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:604)
I/flutter (32456): #14 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1164)
I/flutter (32456): #15 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468)
I/flutter (32456): #16 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397)
I/flutter (32456): #17 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318)
I/flutter (32456): #18 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176)
I/flutter (32456): #19 _invoke (dart:ui/hooks.dart:312)
I/flutter (32456): #20 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419)
I/flutter (32456): #21 _drawFrame (dart:ui/hooks.dart:283)
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): calling _buildItem at index 5
I/flutter (32456): calling _buildItem at index 6
I/flutter (32456): calling _buildItem at index 7
I/flutter (32456): calling _buildItem at index 8
I/flutter (32456): calling _buildItem at index 9
I/flutter (32456): calling _buildItem at index 10
I/flutter (32456): calling _buildItem at index 11
I/flutter (32456): calling _buildItem at index 12
I/flutter (32456): calling _buildItem at index 13
I/flutter (32456): calling _buildItem at index 14
I/flutter (32456): calling _buildItem at index 15
I/flutter (32456): calling _buildItem at index 16
I/flutter (32456): calling _buildItem at index 17
I/flutter (32456): calling _buildItem at index 18
I/flutter (32456): calling _buildItem at index 19
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): calling _buildItem at index 0
I/flutter (32456): calling _buildItem at index 1
I/flutter (32456): calling _buildItem at index 2
I/flutter (32456): calling _buildItem at index 3
I/flutter (32456): calling _buildItem at index 4
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
I/flutter (32456): Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
```
</details>
### Flutter Doctor output
<details open><summary>Doctor output</summary>
```console
[!] Flutter (Channel stable, 3.24.1-0.0.pre.1, on NixOS 24.05 (Uakari) 6.8.12, locale en_US.UTF-8)
• Flutter version 3.24.1-0.0.pre.1 on channel stable at /home/paulg/Repos/flutter
! Upstream repository git@github.com:PaulGrandperrin/flutter.git is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to git@github.com:PaulGrandperrin/flutter.git to dismiss this error.
• Framework revision e917673199 (5 days ago), 2024-08-17 20:19:14 +0200
• Engine revision b8800d88be
• Dart version 3.5.0
• DevTools version 2.37.2
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and
upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /nix/store/nzwnj7rq8a6cvzbsszf4n9zfvx101zm5-androidsdk/libexec/android-sdk
• Platform android-34, build-tools 30.0.3
• ANDROID_HOME = /nix/store/nzwnj7rq8a6cvzbsszf4n9zfvx101zm5-androidsdk/libexec/android-sdk
• ANDROID_SDK_ROOT = /nix/store/nzwnj7rq8a6cvzbsszf4n9zfvx101zm5-androidsdk/libexec/android-sdk
• Java binary at: /nix/store/l7pwy1rxdrb13svqandm720d06fycd8c-openjdk-17.0.11+9/lib/openjdk/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.11+9-nixos)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /nix/store/cg5bvzxml5bbdw8wlrywb6q7hpdjq0ij-google-chrome-127.0.6533.88/bin/google-chrome-stable
[✓] Linux toolchain - develop for Linux desktop
• clang version 16.0.6
• cmake version 3.29.6
• ninja version 1.12.1
• pkg-config version 0.29.2
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
[✓] Connected device (3 available)
• Pixel 7 Pro (mobile) • 192.168.1.13:33015 • android-arm64 • Android 15 (API 35)
• Linux (desktop) • linux • linux-x64 • NixOS 24.05 (Uakari) 6.8.12
• Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.88
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.
```
</details>
| c: crash,framework,f: scrolling,a: error message,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.24,found in release: 3.25 | low | Critical |
2,480,746,389 | node | node:events once isn't working as expected in node-redis tests | ### Version
v18.19.1
### Platform
```text
Linux spotterT490 6.8.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:25:01 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```
### Subsystem
node:events
### What steps will reproduce the bug?
In node-redis we fire events (such as a connection being made to a server 'connect', the connection being ready 'ready', and the connection being shutdown, 'end') amongst others. In practice, these are proxied to the user from an underlying object.
see - https://github.com/redis/node-redis/blob/949b944b0f01fa207980b5aa925590d7c32f6073/packages/client/lib/client/index.ts#L438-L464
We have a test to make sure these fires correctly, but that test is failing at the moment in a manner that we can't figure out (but can play around with to get to work, which makes us scratch our head even more)
test - https://github.com/redis/node-redis/blob/949b944b0f01fa207980b5aa925590d7c32f6073/packages/client/lib/client/index.spec.ts#L119-L133
If I rewrite the test to be
```
const p1 = once(client, 'connect');
const p2 = once(client, 'ready');
const p3 = once(client, 'end');
await Promise.all([
p1,
p2,
client.connect()
]);
await Promise.all([
p3,
client.close()
]);
```
the test reliably passes as the once receives the 'end' event that it expects. However, if I rewrite it to be
```
const p1 = once(client, 'connect');
const p2 = once(client, 'ready');
await Promise.all([
p1,
p2,
client.connect()
]);
const p3 = once(client, 'end');
await Promise.all([
p3,
client.close()
]);
```
the test now reliably fails again.
In the code in index.ts (that I linked to above) where we listen and refire the events, for 'end' I stuck in a console.log to indicate that the event is being received, and it prints out as expected always, i just don't receive the 'end' event that should be fired unless the test is structured as noted above.
I'm very confused.
### How often does it reproduce? Is there a required condition?
always as noted
### What is the expected behavior? Why is that the expected behavior?
the promise that events.once() returns should be satisfied.
### What do you see instead?
event promise not being satisfied.
### Additional information
_No response_ | events | low | Critical |
2,480,769,672 | tauri | [feat] [ios] native background color | ### Describe the problem
cant change native background color(native navbar color)

### Describe the solution you'd like
Provides a method to change native's background color in Rust
### Alternatives considered
Provides a method to change native's background color in Rust
### Additional context
_No response_ | type: feature request,platform: iOS | low | Minor |
2,480,835,418 | flutter | Builds on mac in prod are occasionally much slower than usual | For example
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20Production%20Engine%20Drone/429218/infra <- ninja build 44 minutes on x64
vs
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20Production%20Engine%20Drone/430933/overview <- 14 minutes on arm64
This is possibly only due to the arm64 machines being faster, but I also want to investigate whether we have to worry about thermal throttling on the intel machines. | team-infra,P2,triaged-infra | low | Major |
2,480,859,844 | pytorch | Loss of size-like ness when size-like expression is involved in expression that makes it smaller | ### 🐛 Describe the bug
Internal xref: https://fb.workplace.com/groups/1075192433118967/posts/1486796491958557/
Repro:
```
import torch
import torch._dynamo
torch._dynamo.config.capture_scalar_outputs = True
@torch.compile(backend="eager", fullgraph=True)
def fn(x):
u0, *_ = x.tolist()
t = torch.empty(u0)
return t[:-1] + t[1:]
fn(torch.tensor([3, 1]))
```
Fails with
```
torch._dynamo.exc.UserError: Tried to use data-dependent value in the subsequent computation. This can happen when we encounter unbounded dynamic value that is unknown during tracing time. You will need to explicitly give hint to the compiler. Please take a look at torch._check OR torch._check_is_size APIs. Could not guard on data-dependent expression Eq(u0 + 1, 0) (unhinted: Eq(u0 + 1, 0)). (Size-like symbols: none)
Potential framework code culprit (scroll up for full backtrace):
File "/data/users/ezyang/b/pytorch/torch/utils/_stats.py", line 21, in wrapper
return fn(*args, **kwargs)
For more information, run with TORCH_LOGS="dynamic"
For extended logs when we create symbols, also add TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL="u0"
If you suspect the guard was triggered from C++, add TORCHDYNAMO_EXTENDED_DEBUG_CPP=1
For more debugging help, see https://docs.google.com/document/d/1HSuTTVvYH1pTew89Rtpeu84Ht3nQEFTYhAX3Ypa_xJs/edit?usp=sharing
User Stack (most recent call last):
(snipped, see stack below for prefix)
File "/data/users/ezyang/b/pytorch/a.py", line 9, in fn
t = torch.empty(u0+1)
For C++ stack trace, run with TORCHDYNAMO_EXTENDED_DEBUG_CPP=1
For more information about this error, see: https://pytorch.org/docs/main/generated/exportdb/index.html#constrain-as-size-example
from user code:
File "/data/users/ezyang/b/pytorch/a.py", line 9, in fn
t = torch.empty(u0+1)
```
The problem is that although we give a VR [2, inf] when u0 is size like, when we subtract one from the expression, we end up with VR [1, inf], and so we no longer can conclude that the size is no longer equal to one.
In this particular example, you can work around it with a change of variables:
```
import torch
import torch._dynamo
torch._dynamo.config.capture_scalar_outputs = True
@torch.compile(backend="eager", fullgraph=True)
def fn(x):
u0, *_ = (x - 1).tolist()
torch._check_is_size(u0)
t = torch.empty(u0 + 1)
return t[:-1] + t[1:]
fn(torch.tensor([3, 1]))
```
But it's not obvious to me that this is always convenient to do.
### Versions
main
cc @penguinwu | triaged,module: dynamic shapes | low | Critical |
2,480,862,144 | vscode | ERROR: unable to resolve text model content for notebook cell output | <!-- ⚠️⚠️ 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/No - Another error takes over preventing this:

<!-- 🪓 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.92.2
- OS Version: Windows_NT x64 10.0.22631
Steps to Reproduce:
1. Run a Jupyter notebook cell with output spanning >500 outputs
2. Click on openLargeOutput link: _There are more than 500 outputs, show more (open the raw output data in a text editor)_ _command:workbench.action.openLargeOutput_
3. Watch the command fail with error
"The editor could not be opened due to an unexpected error: Unable to resolve text model content for resource vscode-notebook-cell-output:/xxxxxxx_redacted_xxxxxxx
Unfortunately, I am unable to run the insiders build as requested due to organizational constraints. I see this bug should've been fixed "in the next release" per bug report ticket #189673, closed on Sep 6, 2023. I seem to be unable to open Jupyter notebooks without enabling the Jupyter extension and so don't know how to test with all extensions disabled.
| bug,notebook-output | low | Critical |
2,480,920,662 | storybook | [Bug]: Storybook index crashes when directories match glob as stories | When running vitest tests where `test.browser.screenshotFailures` is set to true, upon test failures a screenshot is stored in a path like `src/components/__screenshots__/Button.stories.tsx/Primary.png`.
Because there is a directory named `Button.stories.tsx`, it causes Storybooks indexer to crash.
We should probably handle directories as not stories, or at least add `__screenshots__` as a default ignored path in the indexer.
More context: https://github.com/vitest-dev/vitest/issues/6239 | bug,sev:S3,portable stories | low | Critical |
2,480,972,281 | PowerToys | 在浏览器地址栏等自动补全的位置应用快速重音时原字母不删除 | ### Microsoft PowerToys version
0.83.0
### Installation method
GitHub
### Running as admin
Yes
### Area(s) with issue?
Quick Accent
### Steps to reproduce
1. 光标选定地址栏
2. 按下键盘按键不放,此时输入框显示该字母与选定状态下的自动补全,如g|<font style="background: blue">ithub.com</font>,其中 `|` 为光标
4. 按下 空格、左箭头或右箭头
5. 松开后,原有字符未删除
### ✔️ Expected Behavior
ğ
### ❌ Actual Behavior
gğ
### Other Software
Microsoft Edge 127.0.2651.105 (正式版本) (64 位)
Google Chrome 127.0.6533.120(正式版本) (64 位) | Issue-Bug,Needs-Triage | low | Minor |
2,480,995,868 | neovim | Terminal softwrapping | ### Problem
It is not possible to yank (`ggyG`, `"+yj`...) text from Neovim's terminal buffers without Neovim hard-wrapping lines that were longer than the terminal buffer's width.
### Expected behavior
Now that libvterm is vendored and that reflow is enabled, Neovim might have access to enough information to not hard-wrap yanked text? | enhancement,terminal | low | Minor |
2,481,011,755 | TypeScript | Generic type narrowing for truthy check has inconsistent / incorrect behavior | ### 🔎 Search Terms
generic truthy narrowing generic index
### 🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about narrowing truthy generic types
### ⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.7.0-dev.20240821&ssl=29&ssc=2&pln=1&pc=1#code/MYewdgzgLgBATgU1HAJgLhgJSSVAeaOASzAHMAaGAVzAGswQB3MAPhgF4YBvAXwG4AsAChhAMxrAoRcDFEgQeACowEADygIwKCDEIlSMAD6yAhgBsICIzDBUzZlgAoAbuYyKAlN2ExfMIqIwLuZeXD5+Ea5mgkIREQD08QB6APzhcTAARiZwwWYeMRm+iMgoANpRALocMACshX48KhZWYbFFUelxialdPML9IkLiYJLSYLLyAEx5GHpk1qLmlta29qFdAUFRG+0ZUQ0ZPWl7cdm5O4dxJbjlVTX1fc0rbUUwnacJyScRg4NiEikMnOs10UGIZF2EUQUCocAmBwGQA
### 💻 Code
```ts
const record: Record<string, unknown> = {};
function foo<T extends string | false | null>(val: T) {
if (val) {
val;
//^?
bar(val);
record[val] = 5;
} else {
val
//^?
}
}
function foo2(val: string | false | null) {
if (val) {
val;
//^?
bar(val);
record[val] = 5;
} else {
val
//^?
}
}
function bar(val: string) {
return val;
}
```
### 🙁 Actual behavior
Error on line 8, cannot use val to index object type with string key.
Val appears to be narrowed to `NonNullable<T>` yet I can use it as string when calling functions?
Note: `foo2` does not use generics and has more expected bahavior.
### 🙂 Expected behavior
`type Falsy = false | null | undefined | 0 | "";`
(might remove `0 | ""` from this because that gets into negated types... false seems like a common enough one to matter though)
On line 5 inside of the if check, I expect val to be narrowed to `Exclude<T, Falsy>` but instead, is incorrectly (imo) narrowed to `NonNullable<T>` which does not exclude false.
What is exceptionally strange, is that the type narrowing behavior seems to differ depending on how `val` is used. I can pass it to the function that takes a string parameter, but when I try to use it to index an object on line 8, I get an error.
### Additional information about the issue
This issue was discussed in detail by others more experienced than me in this typescript discord thread:
https://discord.com/channels/508357248330760243/1275942751724372110
Invite to server if you aren't a member:
https://discord.com/invite/typescript | Needs Investigation | low | Critical |
2,481,028,994 | pytorch | [CI] Binary Test Workflows are failing when updating triton hash | ### 🐛 Describe the bug
Example this PR: https://github.com/pytorch/pytorch/pull/133438
Comment: https://github.com/pytorch/pytorch/pull/133438#issuecomment-2304178969
Seeing errors like this during test:
```
2024-08-21T16:56:46.0878306Z ERROR: Could not find a version that satisfies the requirement pytorch-triton==3.0.0+55a4ab051c; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.13" (from torch) (from versions: 2.0.0+0d7e753227, 2.0.0+3aa3d7024e, 2.0.0+af76c989eb, 2.0.0+b8b470bc59, 2.0.0+c8bfe3f548, 2.0.0+d54c04abe2, 2.1.0, 2.1.0+2c32f43999, 2.1.0+3c400e7818, 2.1.0+440fd1bf20, 2.1.0+46672772b4, 2.1.0+6e4932cda8, 2.1.0+7d1a95b046, 2.1.0+9820899b38, 2.1.0+9e3e10c5ed, 2.1.0+bcad9dabe1, 2.1.0+e6216047b8, 2.1.0+e650d3708b, 2.2.0+e28a256d71, 3.0.0+45fff310c8, 3.0.0+901819d2b6, 3.0.0+989adb9a29, 3.0.0+a9bc1a3647, 3.0.0+dedb7bdf33)
2024-08-21T16:56:46.1309596Z ERROR: No matching distribution found for pytorch-triton==3.0.0+55a4ab051c; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.13"
```
We do build triton pytorch-triton==3.0.0+55a4ab051c however since we are on PR we are running upload step with dryrun ON. Hence these binaries are not uploaded to download.pytorch.org. However build and test jobs builds pytorch with version+hash. During the test pip install is failing since these binaries can't be found on our index.
### Versions
2.5.0
cc @seemethere @malfet @osalpekar | module: binaries,oncall: releng,triaged | low | Critical |
2,481,068,001 | godot | [Web] Bus volume ignored for `AudioStreamPolyphonic` | ### Tested versions
4.4.dev [568589c]
4.2.3.dev [12ae52fd7d345330ec716ce5738cd67144a83c75]
### System information
Windows 11 - Chrome 127.0.6533.120 (Official Build) (64-bit)
### Issue description
`AudioStreamPolyphonic` does not update the volume from assigned bus (except from `Master`) once played, doesn't seem related to sampling as it happens in 4.2.3.dev, happens both with and without threads
Possibly related to:
* https://github.com/godotengine/godot/issues/95811
* https://github.com/godotengine/godot/issues/91605
But isn't related to the volumes of other options here but specifically the server itself
Works correctly on Windows
### Steps to reproduce
See MRP
### Minimal reproduction project (MRP)
[audio_mrp.zip](https://github.com/user-attachments/files/16714029/audio_mrp.zip)
| bug,platform:web,topic:audio | low | Minor |
2,481,095,915 | opencv | DNN Input Remains The Same Even After Setting New Input | ### System Information
OpenCV Java Version 4.10.0
Operating System: Fedora 39
Java Version 17
### Detailed description
I am successfully loading ResNet50 into a `Net` object with OpenCV's DNN module and running inference on an image. However, when i set the input again with the `setInput()` method, the output of the model does not change. Moreover, if I reload the model before setting the input again, the output does change and I get the expected results.
In this example, the `main()` method is calculating the cosine similarity. The similarity will be 1.0, as the input remains the same on the model. However, if the `model` object is re-instantiated after the first call to `embed()`, then the cosine similarity will be a more reasonable number such as 0.5.
Another way I was able to resolve this issue was by calling `model.setInput(new Mat())`, setting the input to an empty mat, before setting the new input. This doesn't seem right though and I am wondering if there is a bug in the module.
### Steps to reproduce
Code:
```java
package com.sadcaptcha.opencv_dnn;
import java.io.File;
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.MatOfFloat;
import org.opencv.core.Scalar;
import org.opencv.core.Size;
import org.opencv.dnn.Dnn;
import org.opencv.dnn.Net;
import org.opencv.imgcodecs.Imgcodecs;
import org.opencv.imgproc.Imgproc;
public class ResNet {
private static int OUT_FEATURES = 1000;
private static int INPUT_WIDTH = 224;
private static int INPUT_HEIGHT = 224;
private static float SCALE_FACTOR = 1.0f / 255.0f;
private static Net model;
public static void main(String[] args) {
String filename = new File("src/main/resources/opencv_4100.so").getAbsolutePath();
System.load(filename);
model = Dnn.readNetFromONNX(new File("src/main/resources/resnet50-v2-7.onnx").getAbsolutePath());
Mat out = embed("src/test/resources/dug1.jpg");
Mat out1 = embed("src/test/resources/dug2.jpg");
System.out.println(cosineSimilarity(matToArray(out), matToArray(out1)));
}
private static double[] matToArray(Mat mat) {
double[] array = new double[mat.size(1)];
for (int i = 0; i < mat.cols(); i++) {
array[i] = mat.get(0, i)[0];
}
return array;
}
private static Mat embed(String filename) {
Mat input = Imgcodecs.imread(filename, Imgcodecs.IMREAD_COLOR);
Mat blob = preprocess(input);
model.setInput(blob);
Mat out = model.forward();
return out;
}
/**
* https://docs.opencv.org/4.x/dc/d70/pytorch_cls_tutorial_dnn_conversion.html
* regarding the mean/std:
* https://discuss.pytorch.org/t/how-to-preprocess-input-for-pre-trained-networks/683/30
*/
private static Mat preprocess(Mat input) {
input.convertTo(input, CvType.CV_32F);
Imgproc.resize(input, input, new Size(256, 256));
Scalar mean = new Scalar(0.485 * 255, 0.456 * 255, 0.406 * 255);
Size size = new Size(INPUT_WIDTH, INPUT_HEIGHT);
Mat blob = Dnn.blobFromImage(input, SCALE_FACTOR, size, mean, true, true);
Scalar std = new Scalar(0.229f, 0.224f, 0.225f);
Core.divide(blob, std, blob);
return blob;
}
private static void printMatInfo(Mat mat) {
for (int i = 0; i < mat.dims(); i++) {
System.out.println("Dim %d size: %s".formatted(i, mat.size(i)));
}
}
private static double cosineSimilarity(Mat vectorA, Mat vectorB) {
if (vectorA.size(0) != 1 || vectorB.size(0) != 1)
throw new IllegalArgumentException("vectorA and vectorB must be 1d arrays");
if (vectorA.size(1) != vectorB.size(1))
throw new IllegalArgumentException("vectorA and vectorB must be same length");
double dotProduct = 0.0;
double normA = 0.0;
double normB = 0.0;
for (int i = 0; i < vectorA.size(1); i++) {
dotProduct += vectorA.get(0, i)[0] * vectorB.get(0, i)[0];
normA += Math.pow(vectorA.get(0, i)[0], 2);
normB += Math.pow(vectorB.get(0, i)[0], 2);
}
return dotProduct / (Math.sqrt(normA) * Math.sqrt(normB));
}
private static double cosineSimilarity(double[] vectorA, double[] vectorB) {
if (vectorA.length != vectorB.length)
throw new IllegalArgumentException("vectorA and vectorB must be same length");
double dotProduct = 0.0;
double normA = 0.0;
double normB = 0.0;
for (int i = 0; i < vectorA.length; i++) {
dotProduct += vectorA[i] * vectorB[i];
normA += Math.pow(vectorA[i], 2);
normB += Math.pow(vectorB[i], 2);
}
return dotProduct / (Math.sqrt(normA) * Math.sqrt(normB));
}
}
```
### Issue submission checklist
- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc) | bug,category: java bindings,category: dnn | low | Critical |
2,481,108,101 | flutter | Go Router nested navigation state is not fully restored | ### What package does this bug report belong to?
go_router
### What target platforms are you seeing this bug on?
Android
### Have you already upgraded your packages?
Yes
### Dependency versions
<details><summary>pubspec.lock</summary>
```lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
async:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev"
source: hosted
version: "2.11.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
characters:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.18.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
url: "https://pub.dev"
source: hosted
version: "1.0.8"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
source: hosted
version: "1.3.1"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
go_router:
dependency: "direct main"
description:
name: go_router
sha256: "48d03a1e4887b00fe622695139246e3c778ac814eeb32421467b56d23fa64034"
url: "https://pub.dev"
source: hosted
version: "14.2.6"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
url: "https://pub.dev"
source: hosted
version: "10.0.4"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
url: "https://pub.dev"
source: hosted
version: "3.0.3"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
lints:
dependency: transitive
description:
name: lints
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "3.0.0"
logging:
dependency: transitive
description:
name: logging
sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
matcher:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
url: "https://pub.dev"
source: hosted
version: "1.12.0"
path:
dependency: transitive
description:
name: path
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.10.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.2"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
url: "https://pub.dev"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
url: "https://pub.dev"
source: hosted
version: "14.2.1"
sdks:
dart: ">=3.4.1 <4.0.0"
flutter: ">=3.19.0"
```
</details>
### Steps to reproduce
1. Enable 'Don't keep activities" flag on Android device.
2. Run the code sample on this device.
3. On SignUp page, tap on "Go to Bottom Navigation" button.
4. On Home page tab, tap on "Open nested page" button, so that "Nested home page" is opened.
5. Switch to the second tab via bottom menu.
6. Tap on "Open nested page" button, so that "Nested second tab page" is opened.
7. Tap on the third tab via bottom menu.
8. Put the app to background. Due to 'Don't keep activities" flag the process will be killed.
9. Bring the app back, so that the app restored its state.
10. The third tab is opened.
### Expected results
When switching to the first tab via bottom menu, "Nested home page" is shown, meaning that navigation state of the first StatefulShellBranch is correctly restored.
### Actual results
When switching to the first tab via bottom menu, "Home page" is shown, meaning that navigation state of the first StatefulShellBranch is lost.
### Code sample
<details open><summary>Code sample</summary>
```dart
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
////////////////////////////////////////////////////////////
void main() {
NavigationHelper.instance;
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp.router(
debugShowCheckedModeBanner: false,
routerConfig: NavigationHelper.router,
restorationScopeId: 'app',
);
}
}
////////////////////////////////////////////////////////////
const String signUpPageName = 'signup';
const String signUpPagePath = '/$signUpPageName';
class SignUpPage extends StatelessWidget {
const SignUpPage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Sign Up page'),
),
body: Center(
child: Column(
children: [
const Text("Sign Up page"),
ElevatedButton(
onPressed: _onBtnClick,
child: const Text("Go to Bottom Navigation"),
)
],
),
),
);
}
void _onBtnClick() {
NavigationHelper.router.goNamed(homePageName);
}
}
////////////////////////////////////////////////////////////
class BottomNavigationPage extends StatelessWidget {
const BottomNavigationPage({
super.key,
required this.child,
});
final StatefulNavigationShell child;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Bottom Navigator Page'),
),
body: SafeArea(
child: child,
),
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
currentIndex: child.currentIndex,
onTap: (index) {
child.goBranch(
index,
initialLocation: index == child.currentIndex,
);
},
items: const [
BottomNavigationBarItem(
icon: Icon(Icons.home),
label: 'home',
),
BottomNavigationBarItem(
icon: Icon(Icons.move_up),
label: 'second',
),
BottomNavigationBarItem(
icon: Icon(Icons.settings),
label: 'third',
),
],
),
);
}
}
////////////////////////////////////////////////////////////
const String homePageName = 'home';
const String homePagePath = '/$homePageName';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Text("Home page"),
ElevatedButton(
onPressed: _onInternalBtnClick,
child: const Text("Open nested page"),
),
],
),
);
}
void _onInternalBtnClick() {
NavigationHelper.router.pushNamed(nestedHomePageName);
}
}
////////////////////////////////////////////////////////////
const String nestedHomePageName = 'nested_home';
const String nestedHomePagePath = nestedHomePageName;
class NestedHomePage extends StatelessWidget {
const NestedHomePage({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Text("Nested home page"),
ElevatedButton(
onPressed: () {
_onBtnClick(context);
},
child: const Text("Next page"),
),
],
),
);
}
void _onBtnClick(BuildContext context) {
GoRouter.of(context).pushNamed(nestedHomePageName);
}
}
////////////////////////////////////////////////////////////
const String secondTabPageName = 'second_tab';
const String secondTabPagePath = '/$secondTabPageName';
class SecondTabPage extends StatelessWidget {
const SecondTabPage({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Text("SecondTab page"),
ElevatedButton(
onPressed: _onInternalBtnClick,
child: const Text("Open nested page"),
),
],
),
);
}
void _onInternalBtnClick() {
NavigationHelper.router.pushNamed(nestedSecondTabPageName);
}
}
////////////////////////////////////////////////////////////
const String nestedSecondTabPageName = 'nested_second_tab';
const String nestedSecondTabPagePath = nestedSecondTabPageName;
class NestedSecondTabPage extends StatelessWidget {
const NestedSecondTabPage({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
children: [
const Text("Nested Second Tab page"),
ElevatedButton(
onPressed: () {
_onBtnClick(context);
},
child: const Text("Next page"),
),
],
),
);
}
void _onBtnClick(BuildContext context) {
GoRouter.of(context).pushNamed(nestedSecondTabPageName);
}
}
////////////////////////////////////////////////////////////
const String thirdTabPageName = 'third_tab';
const String thirdTabPagePath = '/$thirdTabPageName';
class ThirdTabPage extends StatelessWidget {
const ThirdTabPage({super.key});
@override
Widget build(BuildContext context) {
return const Center(
child: Text("Third Tab page"),
);
}
}
////////////////////////////////////////////////////////////
class NavigationHelper {
static final GlobalKey<NavigatorState> parentNavigatorKey =
GlobalKey<NavigatorState>();
static final GlobalKey<NavigatorState> homeTabNavigatorKey =
GlobalKey<NavigatorState>();
static final GlobalKey<NavigatorState> secondTabNavigatorKey =
GlobalKey<NavigatorState>();
static final GlobalKey<NavigatorState> thirdTabNavigatorKey =
GlobalKey<NavigatorState>();
static final NavigationHelper _instance = NavigationHelper._internal();
static NavigationHelper get instance => _instance;
factory NavigationHelper() {
return _instance;
}
static late GoRouter router;
NavigationHelper._internal() {
final routes = [
GoRoute(
name: signUpPageName,
path: signUpPagePath,
builder: (
BuildContext context,
GoRouterState state,
) {
return const SignUpPage();
},
),
StatefulShellRoute.indexedStack(
parentNavigatorKey: parentNavigatorKey,
restorationScopeId: 'bottom_bar_route',
branches: [
StatefulShellBranch(
navigatorKey: homeTabNavigatorKey,
restorationScopeId: homePageName,
routes: [
GoRoute(
name: homePageName,
path: homePagePath,
routes: [
GoRoute(
name: nestedHomePageName,
path: nestedHomePagePath,
builder: (context, GoRouterState state) {
return const NestedHomePage();
},
),
],
builder: (context, GoRouterState state) {
return const HomePage();
},
),
],
),
StatefulShellBranch(
navigatorKey: secondTabNavigatorKey,
restorationScopeId: secondTabPageName,
routes: [
GoRoute(
name: secondTabPageName,
path: secondTabPagePath,
builder: (context, state) {
return const SecondTabPage();
},
routes: [
GoRoute(
name: nestedSecondTabPageName,
path: nestedSecondTabPagePath,
builder: (context, GoRouterState state) {
return const NestedSecondTabPage();
},
),
],
),
],
),
StatefulShellBranch(
restorationScopeId: thirdTabPageName,
navigatorKey: thirdTabNavigatorKey,
routes: [
GoRoute(
name: thirdTabPageName,
path: thirdTabPagePath,
builder: (context, state) {
return const ThirdTabPage();
},
),
],
),
],
pageBuilder: (
BuildContext context,
GoRouterState state,
StatefulNavigationShell navigationShell,
) {
return MaterialPage(
key: state.pageKey,
child: BottomNavigationPage(
child: navigationShell,
),
restorationId: 'bottom_bar_page',
);
},
),
];
router = GoRouter(
navigatorKey: parentNavigatorKey,
initialLocation: signUpPagePath,
routes: routes,
debugLogDiagnostics: true,
restorationScopeId: 'go_router',
);
}
}
```
</details>
### Screenshots or Videos
<details open>
<summary>Screenshots / Video demonstration</summary>
https://drive.google.com/file/d/1-mGtMUa5krlO2aSdvyZthoHdnoyyLM2t/view?usp=sharing
</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 stable, 3.22.1, on Microsoft Windows [Version 10.0.22631.4037], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.1)
[√] Connected device (4 available)
[√] Network resources
```
</details>
I did some investigations on this issue and found a possible reason and fix. `StatefulNavigationShellState `stores the state of the nested navigation. To restore it after state restoration on Android, it saves the nested navigation stack in `_RestorableRouteMatchList`:
```
final Map<StatefulShellBranch, _RestorableRouteMatchList> _branchLocations =
<StatefulShellBranch, _RestorableRouteMatchList>{};
```
When `_RestorableRouteMatchList `is created, it is supposed to be registered as restorable:
```
_RestorableRouteMatchList _branchLocation(StatefulShellBranch branch,
[bool register = true]) {
return _branchLocations.putIfAbsent(branch, () {
final _RestorableRouteMatchList branchLocation =
_RestorableRouteMatchList(_router.configuration);
if (register) {
registerForRestoration(
branchLocation, _branchLocationRestorationScopeId(branch));
}
return branchLocation;
});
}
```
Normally `registerForRestoration` should be called for all branches. But it doesn't happen to the initial branch. This happens because `_branchLocation(branch, false)` is called inside `_updateCurrentBranchStateFromWidget()`, which is called from `initState` method:
```
@override
void initState() {
super.initState();
_updateCurrentBranchStateFromWidget();
}
```
```
void _updateCurrentBranchStateFromWidget() {
...
final _RestorableRouteMatchList branchLocation =
_branchLocation(branch, false);
...
}
```
After that _branchLocation is called in `restoreState` for each branch:
```
@override
void restoreState(RestorationBucket? oldBucket, bool initialRestore) {
route.branches.forEach(_branchLocation);
}
```
At this point `registerForRestoration` is not called for the active branch, because it was already initialized earlier, during `initState`.
I suggest the following fix to this logic:
```
_RestorableRouteMatchList _branchLocation(StatefulShellBranch branch,
[bool register = true]) {
final branchLocation = _branchLocations.putIfAbsent(branch, () {
return _RestorableRouteMatchList(_router.configuration);
});
if (register) {
registerForRestoration(
branchLocation, _branchLocationRestorationScopeId(branch));
}
return branchLocation;
}
```
This way `registerForRestoration` is properly called once for each branch. I have tested this fix and it worked in my code sample. | platform-android,package,has reproducible steps,P2,p: go_router,team-go_router,triaged-go_router,found in release: 3.24,found in release: 3.25 | low | Critical |
2,481,177,165 | flutter | Add a CupertinoCollapsible widget | ### Use case
A an animated "container" widget that can be expanded/collapsed similar to many native iOS apps.
Examples:
- iPadOS sidebar (#60762) (source: iOS 17 Music app)
https://github.com/user-attachments/assets/bccc61d2-5225-4b21-876d-986c2fac50a4
- "Show-on-load" list groups
- Calendar/Time inline widget (#63693) (source: iOS 17 Calendar app)
https://github.com/user-attachments/assets/ad463b2a-0ac8-47d4-8e7f-7714ce753b96
- Collapsible groups (source: iOS 17 Mail app)
https://github.com/user-attachments/assets/1f7427ee-1d14-4c61-9378-bedadaaaf9a3
### Proposal
I've already started working on it as a part of https://github.com/flutter/flutter/issues/60762 and I'm ready to open a PR to contribute this feature.
I suggest the name "collapsible" due to it being closer to native iOS SwiftUI nomenclature (https://developer.apple.com/documentation/swiftui/section/collapsible(_:))
The suggested API is very simple something along the lines of:
```dart
CupertinoCollapsibleContainer(
collapsed: true,
child: Text("Hello World!"),
),
``` | c: new feature,framework,f: cupertino,P3,team-design,triaged-design | low | Major |
2,481,187,393 | transformers | clarify the label shifting behavior of llama models when `labels` is given. | ### Feature request
i believe `labels` in the training of causal LMs means the value to predict at time `n`, i.e., the next token. in other words, i'd assume, if `labels` is given, it should be already shifted by one in the data loader w.r.t. the `input_ids`.
however, in `LlamaForCausalLM.forward()`, i found the labels are always shifted, silently.
https://github.com/huggingface/transformers/blob/f1d822ba337499d429f832855622b97d90ac1406/src/transformers/models/llama/modeling_llama.py#L1205-L1210
```python
Args:
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
Labels for computing the masked language modeling loss. Indices should either be in `[0, ...,
config.vocab_size]` or -100 (see `input_ids` docstring). Tokens with indices set to `-100` are ignored
(masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`.
```
...
```python
if labels is not None:
# Shift so that tokens < n predict n
shift_logits = logits[..., :-1, :].contiguous()
shift_labels = labels[..., 1:].contiguous()
# Flatten the tokens
loss_fct = CrossEntropyLoss()
shift_logits = shift_logits.view(-1, self.config.vocab_size)
shift_labels = shift_labels.view(-1)
# Enable model parallelism
shift_labels = shift_labels.to(shift_logits.device)
loss = loss_fct(shift_logits, shift_labels)
```
i found it quite unexpected hence calling it "silently". as this is for a causal LM, shouldn't it be not shifting the labels by default? in modeling GPT2, this is at least documented explicitly.
https://github.com/huggingface/transformers/blob/f1d822ba337499d429f832855622b97d90ac1406/src/transformers/models/gpt2/modeling_gpt2.py#L1309-1314
in gemma2, it has the same behavior and no explicit mentioning in the docstring.
https://github.com/huggingface/transformers/blob/f1d822ba337499d429f832855622b97d90ac1406/src/transformers/models/gemma2/modeling_gemma2.py#L978-L982
i think at least we should force the docstring to mention this, if making a change is too dangerous at this point.
### Motivation
i didn't expect this behavior and used my data loader, which does the shifting already, as i believe that is what `labels` should mean. as a result, i ended up finetuning a model to predict the next next token, which outputted gibberish.
### Your contribution
- hopefully leaving this issue helps communication across users
- i can make a one line change in the docstring.
- not sure how exactly, but if this potential misunderstanding could be checked, it'd be great. technically, we can check if the labels are already shifted. though i don't know where is the best place for this. | Feature request | low | Major |
2,481,196,598 | terminal | enable Intel CET | <!--
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.
All good? Then proceed!
-->
# Description of the new feature/enhancement
Compile Windows Terminal with `/guard:ehcont` and link with `/guard:ehcont /cetcompat`
<!--
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
# Proposed technical implementation details (optional)
<!--
A clear and concise description of what you want to happen.
-->
| Product-Meta,Issue-Task,Area-CodeHealth | low | Critical |
2,481,227,306 | rust | [CODE IMPROVEMENT] handle `doc(hidden)` differently in rustdoc | Currently, the handle of `doc(hidden)` in rustdoc is very complex and needs to go through multiple strip passes which are all very fine-tuned, making the whole very fragile and difficult to keep up with.
Instead of these passes, we could instead check whether or not an item is doc hidden directly when rendering them. With a top-down approach, if an item is `doc(hidden)`, none of its children will be rendered either.
Gonna give it a try in the few weeks to see how much of it is actually doable. | C-cleanup,T-rustdoc | low | Minor |
2,481,269,249 | flutter | IntelliJ is not recognized as IDE (cannot set Java version for Android) [macos] | ### Steps to reproduce
1. **Uninstall** every instance of `Android Studio`
1. Install `IntelliJ` or `IntelliJ CE`
1. Make sure you haven't set the Java JDK manually `flutter config --jdk-dir ""`
1. Install a JAVA SDK **incompatible** with the Flutter project (here Java 22, with Flutter 3.22.x), which is accessible globally via JAVA_HOME (or specify non at all should also work).
1. Open a Flutter project (here I used `flutter create intellij_example`)
1. Open the `Project settings` in IntelliJ and set the Java JDK to a compatible version (e.g. jbr-17)
1. On the run configuration add the `Additional run args`: `-v`
1. Try to run the project on Android Emulator within IntelliJ (not in the console). Then the selected Java SDK should be used, but it isn't, so the project cannot be built
1. **Workaround**: run `flutter config --jdk-dir=/Users/[username]/Library/Java/JavaVirtualMachines/jbr-17.0.11/Contents/Home` -> Now the app can be build.
The validator is working fine (e.g. for flutter doctor), but it fails using intellijs settings in flutter, such as selecting the JAVA SDK in the IntelliJs `Project settings`, in contrast to Android Studio.
This is due to the fact that IntelliJ is not considered as "AndroidStudio" and therefore is not taken into account, when selecting a JAVA SDK.
https://github.com/flutter/flutter/blob/4a6fbef83f9bef2d227844e5f1255c4d18fb00ea/packages/flutter_tools/lib/src/android/android_studio.dart#L279
vs
https://github.com/flutter/flutter/blob/4a6fbef83f9bef2d227844e5f1255c4d18fb00ea/packages/flutter_tools/lib/src/intellij/intellij_validator.dart#L51
But in this function latestValid, all Studio versions should be considered:
https://github.com/flutter/flutter/blob/4a6fbef83f9bef2d227844e5f1255c4d18fb00ea/packages/flutter_tools/lib/src/android/android_studio.dart#L238
As e.g. here it checks, that no Android Studio is installed and won't do any migration:
https://github.com/flutter/flutter/blob/4a6fbef83f9bef2d227844e5f1255c4d18fb00ea/packages/flutter_tools/lib/src/android/migrations/android_studio_java_gradle_conflict_migration.dart#L94
Although IntelliJ is capable of doing this and also support selecting a JAVA SDK
### Expected results
To be able to select a JAVA SDK in the Project settings in IntelliJ
### Actual results
The selected JAVA SDK has no influcence on the used SDK of Flutter, therefore the app doesn't build.
So when trying to run a Flutter project within the IntelliJ IDE, and add the flag `-v` to the run configuration, I get this log message:
`Android Studio version could not be detected, skipping Gradle-Java version compatibility check.`
Edit: I get this log message only on projcets which need migrating. But still projects don't use the proper Java SDK version of the IDE and therefore cannot be build, so I get: `Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle.`
### Code sample
<details open><summary>Code sample</summary>
I propose to create a class `IntelliJ` to be a base for AndroidStudio, as basically it is IntelliJ. Then every reference to Android Studio could be replaced with IntelliJ and then the functionality could be applied to it.
```dart
class IntelliJ {} // in intellij.dart
class AndroidStudio extends IntelliJ {} // in android_studio.dart
```
</details>
### Screenshots or Video
<details open>
<summary>Screenshots / Video demonstration</summary>
[Upload media here]
</details>
### Logs
Also tried setting the config:
`flutter config --android-studio-dir="/Applications/IntelliJ IDEA.app"` with no success.
But
`flutter config --jdk-dir=/Users/[username]/Library/Java/JavaVirtualMachines/jbr-17.0.11/Contents/Home`
did work!
<details open><summary>Logs</summary>
```console
[ +2 ms] Could not interpret results of "git describe": 3.22.4-0.0.pre.1
[ +18 ms] executing: sysctl hw.optional.arm64
[ +9 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ +21 ms] executing: sysctl hw.optional.arm64
[ +2 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ +39 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version
[ ] Xcode 15.4
Build version 15F31d
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 5
[ +3 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +27 ms] executing: /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb devices -l
[ ] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2
[ ] /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[ ] executing: /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun simctl list devices booted
[ +199 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun simctl list devices booted
[ ] == Devices ==
-- iOS 17.5 --
[ +31 ms] List of devices attached
emulator-5554 device product:sdk_gphone64_arm64 model:sdk_gphone64_arm64 device:emu64a transport_id:4
[ +3 ms] /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +34 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +27 ms] executing: /usr/bin/arch -arm64e xcrun xcdevice list --timeout 2
[ ] /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[ ] executing: /usr/bin/arch -arm64e xcrun simctl list devices booted iOS --json
[ +36 ms] Skipping pub get: version match.
[ +9 ms] {
"devices" : {
"com.apple.CoreSimulator.SimRuntime.iOS-17-5" : [
]
}
}
[ +87 ms] {
"devices" : {
"com.apple.CoreSimulator.SimRuntime.iOS-17-5" : [
]
}
}
[ +27 ms] Generating /Users/swi-oberhauser/Documents/git/playground/intellij_example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +18 ms] ro.hardware = ranchu
[ +57 ms] executing: /usr/bin/plutil -convert xml1 -o - /Applications/IntelliJ IDEA.app/Contents/Info.plist
[ +9 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o - /Applications/IntelliJ IDEA.app/Contents/Info.plist
[ ] <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ipr</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeName</key>
<string>IntelliJ IDEA Project File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>java</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>groovy</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>kt</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>kts</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>jfr</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>hprof</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>All documents</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSTypeIsPackage</key>
<false/>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>idea</string>
<key>CFBundleGetInfoString</key>
<string>IntelliJ IDEA 2024.2.0.2, build IU-242.20224.419. Copyright JetBrains s.r.o., (c) 2000-2024</string>
<key>CFBundleIconFile</key>
<string>idea.icns</string>
<key>CFBundleIdentifier</key>
<string>com.jetbrains.intellij</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>IntelliJ IDEA</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2024.2.0.2</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Stacktrace</string>
<key>CFBundleURLSchemes</key>
<array>
<string>idea</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>IU-242.20224.419</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSArchitecturePriority</key>
<array>
<string>arm64</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<key>LSRequiresNativeExecution</key>
<string>YES</string>
<key>NSAppleEventsUsageDescription</key>
<string>An application in IntelliJ IDEA requests the ability to send Apple events.</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to Bluetooth.</string>
<key>NSCameraUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the device's camera.</string>
<key>NSDesktopFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Desktop folder.</string>
<key>NSDocumentsFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Documents folder.</string>
<key>NSDownloadsFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Downloads folder.</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSLocationUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's location information.</string>
<key>NSMicrophoneUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the device's microphone.</string>
<key>NSNetworkVolumesUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to files on a network volume.</string>
<key>NSRemovableVolumesUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to files on a removable volume.</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
[ +5 ms] executing: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java -version
[ +58 ms] Exit code 0 from: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java -version
[ ] openjdk version "21.0.3" 2024-04-16
OpenJDK Runtime Environment JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4)
OpenJDK 64-Bit Server VM JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4, mixed mode)
[ ] executing: /usr/bin/plutil -convert xml1 -o - /Applications/IntelliJ IDEA CE.app/Contents/Info.plist
[ +5 ms] Exit code 0 from: /usr/bin/plutil -convert xml1 -o - /Applications/IntelliJ IDEA CE.app/Contents/Info.plist
[ ] <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>ipr</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeName</key>
<string>IntelliJ IDEA Project File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>java</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>groovy</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>kt</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>kts</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>idea.icns</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>All documents</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSTypeIsPackage</key>
<false/>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>idea</string>
<key>CFBundleGetInfoString</key>
<string>IntelliJ IDEA 2024.1.4, build IC-241.18034.62. Copyright JetBrains s.r.o., (c) 2000-2024</string>
<key>CFBundleIconFile</key>
<string>idea.icns</string>
<key>CFBundleIdentifier</key>
<string>com.jetbrains.intellij.ce</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>IntelliJ IDEA</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2024.1.4</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Stacktrace</string>
<key>CFBundleURLSchemes</key>
<array>
<string>idea</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>IC-241.18034.62</string>
<key>JVMOptions</key>
<dict>
<key>ClassPath</key>
<string>$APP_PACKAGE/Contents/lib/platform-loader.jar:$APP_PACKAGE/Contents/lib/util-8.jar:$APP_PACKAGE/Contents/lib/util.jar:$APP_PACKAGE/Contents/lib/app-client.jar:$APP_PACKAGE/Contents/lib/util_rt.jar:$APP_PACKAGE/Contents/lib/product.jar:$APP_PACKAGE/Contents/lib/opentelemetry.jar:$APP_PACKAGE/Contents/lib/app.jar:$APP_PACKAGE/Contents/lib/modules.jar:$APP_PACKAGE/Contents/lib/lib-client.jar:$APP_PACKAGE/Contents/lib/stats.jar:$APP_PACKAGE/Contents/lib/jps-model.jar:$APP_PACKAGE/Contents/lib/external-system-rt.jar:$APP_PACKAGE/Contents/lib/rd.jar:$APP_PACKAGE/Contents/lib/bouncy-castle.jar:$APP_PACKAGE/Contents/lib/protobuf.jar:$APP_PACKAGE/Contents/lib/intellij-test-discovery.jar:$APP_PACKAGE/Contents/lib/intellij-coverage-agent-1.0.744.jar:$APP_PACKAGE/Contents/lib/forms_rt.jar:$APP_PACKAGE/Contents/lib/lib.jar:$APP_PACKAGE/Contents/lib/externalProcess-rt.jar:$APP_PACKAGE/Contents/lib/groovy.jar:$APP_PACKAGE/Contents/lib/annotations.jar:$APP_PACKAGE/Contents/lib/grpc.jar:$APP_PACKAGE/Contents/lib/idea_rt.jar:$APP_PACKAGE/Contents/lib/jsch-agent.jar:$APP_PACKAGE/Contents/lib/junit4.jar:$APP_PACKAGE/Contents/lib/trove.jar</string>
<key>ErrorFile</key>
<string>-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log</string>
<key>HeapDump</key>
<string>-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof</string>
<key>JVMVersion</key>
<string>1.8*,1.8+</string>
<key>MainClass</key>
<string>com/intellij/idea/Main</string>
<key>Options</key>
<array>
<string>--add-opens=java.base/java.io=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.lang=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.lang.ref=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.lang.reflect=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.net=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.nio=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.nio.charset=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.text=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.time=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.util=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.util.concurrent=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED</string>
<string>--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED</string>
<string>--add-opens=java.base/jdk.internal.vm=ALL-UNNAMED</string>
<string>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</string>
<string>--add-opens=java.base/sun.nio.fs=ALL-UNNAMED</string>
<string>--add-opens=java.base/sun.security.ssl=ALL-UNNAMED</string>
<string>--add-opens=java.base/sun.security.util=ALL-UNNAMED</string>
<string>--add-opens=java.base/sun.net.dns=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/com.apple.eawt=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/com.apple.eawt.event=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/com.apple.laf=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt.event=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt.image=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt.peer=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/java.awt.font=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/javax.swing=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.awt.image=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.awt=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.font=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.java2d=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.lwawt=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/sun.swing=ALL-UNNAMED</string>
<string>--add-opens=java.desktop/com.sun.java.swing=ALL-UNNAMED</string>
<string>--add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED</string>
<string>--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</string>
<string>--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</string>
<string>--add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED</string>
</array>
<key>Properties</key>
<dict>
<key>aether.connector.resumeDownloads</key>
<string>false</string>
<key>idea.executable</key>
<string>idea</string>
<key>idea.home.path</key>
<string>$APP_PACKAGE/Contents</string>
<key>idea.paths.selector</key>
<string>IdeaIC2024.1</string>
<key>idea.platform.prefix</key>
<string>Idea</string>
<key>idea.vendor.name</key>
<string>JetBrains</string>
<key>intellij.platform.runtime.repository.path</key>
<string>$APP_PACKAGE/Contents/modules/module-descriptors.jar</string>
<key>java.system.class.loader</key>
<string>com.intellij.util.lang.PathClassLoader</string>
<key>jna.boot.library.path</key>
<string>$APP_PACKAGE/Contents/lib/jna/aarch64</string>
<key>jna.noclasspath</key>
<string>true</string>
<key>jna.nosys</key>
<string>true</string>
<key>pty4j.preferred.native.folder</key>
<string>$APP_PACKAGE/Contents/lib/pty4j</string>
<key>splash</key>
<string>true</string>
</dict>
</dict>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSArchitecturePriority</key>
<array>
<string>arm64</string>
</array>
<key>LSMinimumSystemVersion</key>
<string>10.13</string>
<key>LSRequiresNativeExecution</key>
<string>YES</string>
<key>NSAppleEventsUsageDescription</key>
<string>An application in IntelliJ IDEA requests the ability to send Apple events.</string>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to Bluetooth.</string>
<key>NSCameraUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the device's camera.</string>
<key>NSDesktopFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Desktop folder.</string>
<key>NSDocumentsFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Documents folder.</string>
<key>NSDownloadsFolderUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's Downloads folder.</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSLocationUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the user's location information.</string>
<key>NSMicrophoneUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to the device's microphone.</string>
<key>NSNetworkVolumesUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to files on a network volume.</string>
<key>NSRemovableVolumesUsageDescription</key>
<string>An application in IntelliJ IDEA requests access to files on a removable volume.</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
</dict>
</plist>
[ +5 ms] executing: /Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home/bin/java -version
[ +64 ms] Exit code 0 from: /Applications/IntelliJ IDEA CE.app/Contents/jbr/Contents/Home/bin/java -version
[ ] openjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment JBR-17.0.11+1-1207.24-jcef (build 17.0.11+1-b1207.24)
OpenJDK 64-Bit Server VM JBR-17.0.11+1-1207.24-jcef (build 17.0.11+1-b1207.24, mixed mode)
[ +25 ms] No packages with native assets. Skipping native assets compilation.
[ +1 ms] Initializing file store
[ +5 ms] Skipping target: gen_localizations
[ +2 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/swi-oberhauser/Documents/git/playground/intellij_example/.dart_tool/package_config_subset}
[ +21 ms] gen_dart_plugin_registrant: Complete
[ ] Skipping target: _composite
[ ] complete
[ +1 ms] Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
[ +1 ms] /opt/homebrew/Caskroom/flutter/3.22.2/flutter/bin/cache/dart-sdk/bin/dartaotruntime --disable-dart-dev /opt/homebrew/Caskroom/flutter/3.22.2/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server_aot.dart.snapshot --sdk-root /opt/homebrew/Caskroom/flutter/3.22.2/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -Dflutter.inspector.structuredErrors=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/235db911ba279722f5e685f38b0ed30fa7e8570a/ --output-dill /var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/flutter_tool.71p6Ja/app.dill --packages /Users/swi-oberhauser/Documents/git/playground/intellij_example/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/4f65a39a55e0d605b7b8e2606861282c.cache.dill.track.dill --verbosity=error --enable-experiment=alternative-invalidation-strategy
[ +2 ms] executing: /Users/swi-oberhauser/Library/Android/sdk/build-tools/35.0.0/aapt dump xmltree /Users/swi-oberhauser/Documents/git/playground/intellij_example/build/app/outputs/flutter-apk/app-debug.apk AndroidManifest.xml
[ +14 ms] Exit code 0 from: /Users/swi-oberhauser/Library/Android/sdk/build-tools/35.0.0/aapt dump xmltree /Users/swi-oberhauser/Documents/git/playground/intellij_example/build/app/outputs/flutter-apk/app-debug.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x22
A: android:compileSdkVersionCodename(0x01010573)="14" (Raw: "14")
A: package="com.example.intellij_example" (Raw: "com.example.intellij_example")
A: platformBuildVersionCode=(type 0x10)0x22
A: platformBuildVersionName=(type 0x10)0xe
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x22
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: queries (line=23)
E: intent (line=24)
E: action (line=25)
A: android:name(0x01010003)="android.intent.action.PROCESS_TEXT" (Raw: "android.intent.action.PROCESS_TEXT")
E: data (line=27)
A: android:mimeType(0x01010026)="text/plain" (Raw: "text/plain")
E: application (line=31)
A: android:label(0x01010001)="intellij_example" (Raw: "intellij_example")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=37)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.intellij_example.MainActivity" (Raw: "com.example.intellij_example.MainActivity")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:taskAffinity(0x01010012)="" (Raw: "")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=53)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: intent-filter (line=57)
E: action (line=58)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=60)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=67)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: uses-library (line=71)
A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-library (line=74)
A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
A: android:required(0x0101028e)=(type 0x12)0x0
[ +2 ms] executing: /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +3 ms] <- compile package:intellij_example/main.dart
[ +92 ms] --------- beginning of main
08-26 10:38:00.048 D/EGL_emulation( 1225): app_time_stats: avg=60017.70ms min=60017.70ms max=60017.70ms count=1
[ +4 ms] executing: /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb version
[ +11 ms] Android Debug Bridge version 1.0.41
Version 35.0.2-12147458
Installed as /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb
Running on Darwin 23.6.0 (arm64)
[ +1 ms] executing: /Users/swi-oberhauser/Library/Android/sdk/platform-tools/adb start-server
[ +13 ms] Building APK
[ +8 ms] executing: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java --version
[ +57 ms] Exit code 0 from: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java --version
[ ] openjdk 21.0.3 2024-04-16
OpenJDK Runtime Environment JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4)
OpenJDK 64-Bit Server VM JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4, mixed mode)
[ +1 ms] Version of Java is different than impacted version, no migration attempted.
[ +9 ms] Using gradle from /Users/swi-oberhauser/Documents/git/playground/intellij_example/android/gradlew.
Running Gradle task 'assembleDebug'...
[ +9 ms] executing: [/Users/swi-oberhauser/Documents/git/playground/intellij_example/android/] /Users/swi-oberhauser/Documents/git/playground/intellij_example/android/gradlew --full-stacktrace --info -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=/Users/swi-oberhauser/Documents/git/playground/intellij_example/lib/main.dart -Pbase-application-name=android.app.Application -Pdart-defines=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC8yMzVkYjkxMWJhMjc5NzIyZjVlNjg1ZjM4YjBlZDMwZmE3ZTg1NzBhLw== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +300 ms] Initialized native services in: /Users/swi-oberhauser/.gradle/native
[ ] Initialized jansi services in: /Users/swi-oberhauser/.gradle/native
[ +110 ms] Received JVM installation metadata from '/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home': {JAVA_HOME=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home, JAVA_VERSION=21.0.3, JAVA_VENDOR=JetBrains s.r.o., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+13-b509.4, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+13-b509.4, VM_VENDOR=JetBrains s.r.o., OS_ARCH=aarch64}
[ ] Found daemon DaemonInfo{pid=1486, address=[dba279ee-dbb6-43aa-b74a-c3caad133ce7 port:54054, addresses:[/127.0.0.1]], state=Idle, lastBusy=1724660787784, context=DefaultDaemonContext[uid=e97fd443-a1c5-4f76-972c-e8a265ac8ca6,javaHome=/Users/swi-oberhauser/Library/Java/JavaVirtualMachines/jbr-17.0.11/Contents/Home,daemonRegistryDir=/Users/swi-oberhauser/.gradle/daemon,pid=1486,idleTimeout=10800000,priority=NORMAL,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,--add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} however its context does not match the desired criteria.
[ ] Java home is different.
[ ] Wanted: DefaultDaemonContext[uid=null,javaHome=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home,daemonRegistryDir=/Users/swi-oberhauser/.gradle/daemon,pid=11369,idleTimeout=null,priority=NORMAL,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,--add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
[ ] Actual: DefaultDaemonContext[uid=e97fd443-a1c5-4f76-972c-e8a265ac8ca6,javaHome=/Users/swi-oberhauser/Library/Java/JavaVirtualMachines/jbr-17.0.11/Contents/Home,daemonRegistryDir=/Users/swi-oberhauser/.gradle/daemon,pid=1486,idleTimeout=10800000,priority=NORMAL,daemonOpts=-XX:+HeapDumpOnOutOfMemoryError,--add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx4G,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
[ ] Looking for a different daemon...
[ ] Removing 0 daemon stop events from registry
[ ] Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
[ ] Starting process 'Gradle build daemon'. Working directory: /Users/swi-oberhauser/.gradle/daemon/7.6.3 Command: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java -XX:+HeapDumpOnOutOfMemoryError --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx4G -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /Users/swi-oberhauser/.gradle/wrapper/dists/gradle-7.6.3-all/aocdy2d2z8kodnny3rsumj8i8/gradle-7.6.3/lib/gradle-launcher-7.6.3.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.6.3
[ +94 ms] Successfully started process 'Gradle build daemon'
[ +401 ms] An attempt to start the daemon took 0.479 secs.
[ +101 ms] The client will now receive all logging from the daemon (pid: 11381). The daemon log file: /Users/swi-oberhauser/.gradle/daemon/7.6.3/daemon-11381.out.log
[ ] Starting build in new daemon [memory: 4 GiB]
[ ] Using 12 worker leases.
[ +198 ms] Received JVM installation metadata from '/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home': {JAVA_HOME=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home, JAVA_VERSION=21.0.3, JAVA_VENDOR=JetBrains s.r.o., RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=21.0.3+13-b509.4, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=21.0.3+13-b509.4, VM_VENDOR=JetBrains s.r.o., OS_ARCH=aarch64}
[ +102 ms] Watching the file system is configured to be enabled if available
[ ] Now considering [/Users/swi-oberhauser/Documents/git/playground/intellij_example/android] as hierarchies to watch
[ ] File system watching is active
[ +295 ms] Starting Build
[ +104 ms] Now considering [/opt/homebrew/Caskroom/flutter/3.22.2/flutter/packages/flutter_tools/gradle, /Users/swi-oberhauser/Documents/git/playground/intellij_example/android] as hierarchies to watch
[ +13 ms] [
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,6",
"identifier" : "2CAD479D-4E8F-49C8-ABF0-74BA06CAF91B",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-13-1",
"modelName" : "iPad Pro 13-inch (M4)",
"name" : "iPad Pro 13-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,5",
"identifier" : "5B2D5320-3BC2-4A4A-BE17-7A6215BFE629",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-plus-1",
"modelName" : "iPhone 15 Plus",
"name" : "iPhone 15 Plus",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,9",
"identifier" : "FBC69881-2BCA-4240-8976-8469EF46E395",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-1",
"modelName" : "iPad Air 11-inch (M2)",
"name" : "iPad Air 11-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,4",
"identifier" : "3882AC2B-E288-4652-B814-DB9882F461B9",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-1",
"modelName" : "iPad Pro 11-inch (M4)",
"name" : "iPad Pro 11-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,1",
"identifier" : "28234578-AEB9-4605-8302-EA686DE5E0EB",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-1",
"modelName" : "iPhone 15 Pro",
"name" : "iPhone 15 Pro",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,4",
"identifier" : "DB884F08-2C3E-4E10-BF6E-42C4C1349598",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-1",
"modelName" : "iPhone 15",
"name" : "iPhone 15",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad13,18",
"identifier" : "BA48F2FE-5B42-4FFD-9FFB-AF360D7F3A00",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-10-1",
"modelName" : "iPad (10th generation)",
"name" : "iPad (10th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,11",
"identifier" : "D0A97352-BDF3-48DD-87EA-93FF4B092383",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-13-1",
"modelName" : "iPad Air 13-inch (M2)",
"name" : "iPad Air 13-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,1",
"identifier" : "DD15981C-6CD3-4AF9-8489-8A962F971150",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-mini6-1",
"modelName" : "iPad mini (6th generation)",
"name" : "iPad mini (6th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,2",
"identifier" : "9360C75A-52C5-45F6-AEC1-C2B4430905E8",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-max-1",
"modelName" : "iPhone 15 Pro Max",
"name" : "iPhone 15 Pro Max",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone14,6",
"identifier" : "F4732CBA-F1D2-4743-92DF-F36158594867",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-se3-1",
"modelName" : "iPhone SE (3rd generation)",
"name" : "iPhone SE (3rd generation)",
"ignored" : false
},
{
"ignored" : false,
"modelCode" : "Mac15,7",
"simulator" : false,
"modelName" : "MacBook Pro",
"operatingSystemVersion" : "14.6 (23G5066c)",
"identifier" : "00006030-0008311802D0001C",
"platform" : "com.apple.platform.macosx",
"architecture" : "arm64e",
"interface" : "usb",
"available" : true,
"name" : "My Mac",
"modelUTI" : "com.apple.macbookpro-16-late-2023-2"
}
]
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun devicectl --version
[ +41 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun devicectl --version
[ ] 355.28
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun devicectl list devices --timeout 5 --json-output /var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/core_devices.Kgqczk/core_device_list.json
[ +40 ms] Skipping Kotlin DSL script compilation (Settings/TopLevel/stage1) as it is up-to-date.
[ +104 ms] [
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,6",
"identifier" : "2CAD479D-4E8F-49C8-ABF0-74BA06CAF91B",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-13-1",
"modelName" : "iPad Pro 13-inch (M4)",
"name" : "iPad Pro 13-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,5",
"identifier" : "5B2D5320-3BC2-4A4A-BE17-7A6215BFE629",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-plus-1",
"modelName" : "iPhone 15 Plus",
"name" : "iPhone 15 Plus",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,9",
"identifier" : "FBC69881-2BCA-4240-8976-8469EF46E395",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-1",
"modelName" : "iPad Air 11-inch (M2)",
"name" : "iPad Air 11-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,4",
"identifier" : "3882AC2B-E288-4652-B814-DB9882F461B9",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-1",
"modelName" : "iPad Pro 11-inch (M4)",
"name" : "iPad Pro 11-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,1",
"identifier" : "28234578-AEB9-4605-8302-EA686DE5E0EB",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-1",
"modelName" : "iPhone 15 Pro",
"name" : "iPhone 15 Pro",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,4",
"identifier" : "DB884F08-2C3E-4E10-BF6E-42C4C1349598",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-1",
"modelName" : "iPhone 15",
"name" : "iPhone 15",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad13,18",
"identifier" : "BA48F2FE-5B42-4FFD-9FFB-AF360D7F3A00",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-10-1",
"modelName" : "iPad (10th generation)",
"name" : "iPad (10th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,11",
"identifier" : "D0A97352-BDF3-48DD-87EA-93FF4B092383",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-13-1",
"modelName" : "iPad Air 13-inch (M2)",
"name" : "iPad Air 13-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,1",
"identifier" : "DD15981C-6CD3-4AF9-8489-8A962F971150",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-mini6-1",
"modelName" : "iPad mini (6th generation)",
"name" : "iPad mini (6th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,2",
"identifier" : "9360C75A-52C5-45F6-AEC1-C2B4430905E8",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-max-1",
"modelName" : "iPhone 15 Pro Max",
"name" : "iPhone 15 Pro Max",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone14,6",
"identifier" : "F4732CBA-F1D2-4743-92DF-F36158594867",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-se3-1",
"modelName" : "iPhone SE (3rd generation)",
"name" : "iPhone SE (3rd generation)",
"ignored" : false
},
{
"ignored" : false,
"modelCode" : "Mac15,7",
"simulator" : false,
"modelName" : "MacBook Pro",
"operatingSystemVersion" : "14.6 (23G5066c)",
"identifier" : "00006030-0008311802D0001C",
"platform" : "com.apple.platform.macosx",
"architecture" : "arm64e",
"interface" : "usb",
"available" : true,
"name" : "My Mac",
"modelUTI" : "com.apple.macbookpro-16-late-2023-2"
}
]
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun devicectl list devices --timeout 5 --json-output /var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/core_devices.LhNovX/core_device_list.json
[ +395 ms] > Configure project :gradle
[ ] Evaluating project ':gradle' using build file '/opt/homebrew/Caskroom/flutter/3.22.2/flutter/packages/flutter_tools/gradle/build.gradle.kts'.
[ ] Caching disabled for Kotlin DSL plugin accessors for classpath 'b1ac9cac8f71b9ff3dcd3e55caac4de4' because:
[ ] Build cache is disabled
[ ] Skipping Kotlin DSL plugin accessors for classpath 'b1ac9cac8f71b9ff3dcd3e55caac4de4' as it is up-to-date.
[ ] Caching disabled for Kotlin DSL script compilation (Project/TopLevel/stage1) because:
[ ] Build cache is disabled
[ ] Skipping Kotlin DSL script compilation (Project/TopLevel/stage1) as it is up-to-date.
[ ] Caching disabled for Kotlin DSL accessors for project ':gradle' because:
[ ] Build cache is disabled
[ ] Skipping Kotlin DSL accessors for project ':gradle' as it is up-to-date.
[ ] Caching disabled for Kotlin DSL script compilation (Project/TopLevel/stage2) because:
[ ] Build cache is disabled
[ ] Skipping Kotlin DSL script compilation (Project/TopLevel/stage2) as it is up-to-date.
[ +199 ms] Resolve mutations for :gradle:compileJava (Thread[#64,Execution worker,5,main]) started.
[ ] :gradle:compileJava (Thread[#64,Execution worker,5,main]) started.
[ ] > Task :gradle:compileJava NO-SOURCE
[ ] Skipping task ':gradle:compileJava' as it has no source files and no previous output files.
[ ] Resolve mutations for :gradle:compileGroovy (Thread[#64,Execution worker,5,main]) started.
[ ] :gradle:compileGroovy (Thread[#64,Execution worker,5,main]) started.
[ +308 ms] No devices found.
[ ] {
"info" : {
"arguments" : [
"devicectl",
"list",
"devices",
"--timeout",
"5",
"--json-output",
"/var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/core_devices.Kgqczk/core_device_list.json"
],
"commandType" : "devicectl.list.devices",
"environment" : {
},
"jsonVersion" : 2,
"outcome" : "success",
"version" : "355.28"
},
"result" : {
"devices" : [
]
}
}
[ +90 ms] This JVM does not support getting OS memory, so no OS memory status updates will be broadcast
[ +53 ms] No devices found.
[ ] {
"info" : {
"arguments" : [
"devicectl",
"list",
"devices",
"--timeout",
"5",
"--json-output",
"/var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/core_devices.LhNovX/core_device_list.json"
],
"commandType" : "devicectl.list.devices",
"environment" : {
},
"jsonVersion" : 2,
"outcome" : "success",
"version" : "355.28"
},
"result" : {
"devices" : [
]
}
}
[+1546 ms] > Task :gradle:compileGroovy
[ ] Watching 1 directory hierarchies to track changes
[ ] Caching disabled for task ':gradle:compileGroovy' because:
[ ] Build cache is disabled
[ ] Task ':gradle:compileGroovy' is not up-to-date because:
[ ] Value of input property 'groovyCompilerJvmVersion' has changed for task ':gradle:compileGroovy'
[ ] Value of input property 'sourceCompatibility' has changed for task ':gradle:compileGroovy'
[ ] Value of input property 'targetCompatibility' has changed for task ':gradle:compileGroovy'
[ ] The input changes require a full rebuild for incremental task ':gradle:compileGroovy'.
[ ] Starting process 'Gradle Worker Daemon 1'. Working directory: /Users/swi-oberhauser/.gradle/workers Command: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED @/Users/swi-oberhauser/.gradle/.tmp/gradle-worker-classpath13210169534591223546txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1'
[ ] Successfully started process 'Gradle Worker Daemon 1'
[ ] Started Gradle worker daemon (0.238 secs) with fork options DaemonForkOptions{executable=/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java, minHeapSize=null, maxHeapSize=null, jvmArgs=[--add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.lang.invoke=ALL-UNNAMED, --add-opens=java.base/java.util=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED], keepAliveMode=SESSION}.
[ +205 ms] [
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,6",
"identifier" : "2CAD479D-4E8F-49C8-ABF0-74BA06CAF91B",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-13-1",
"modelName" : "iPad Pro 13-inch (M4)",
"name" : "iPad Pro 13-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,5",
"identifier" : "5B2D5320-3BC2-4A4A-BE17-7A6215BFE629",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-plus-1",
"modelName" : "iPhone 15 Plus",
"name" : "iPhone 15 Plus",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,9",
"identifier" : "FBC69881-2BCA-4240-8976-8469EF46E395",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-1",
"modelName" : "iPad Air 11-inch (M2)",
"name" : "iPad Air 11-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad16,4",
"identifier" : "3882AC2B-E288-4652-B814-DB9882F461B9",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-pro-m4-1",
"modelName" : "iPad Pro 11-inch (M4)",
"name" : "iPad Pro 11-inch (M4)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,1",
"identifier" : "28234578-AEB9-4605-8302-EA686DE5E0EB",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-1",
"modelName" : "iPhone 15 Pro",
"name" : "iPhone 15 Pro",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone15,4",
"identifier" : "DB884F08-2C3E-4E10-BF6E-42C4C1349598",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-1",
"modelName" : "iPhone 15",
"name" : "iPhone 15",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad13,18",
"identifier" : "BA48F2FE-5B42-4FFD-9FFB-AF360D7F3A00",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-10-1",
"modelName" : "iPad (10th generation)",
"name" : "iPad (10th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,11",
"identifier" : "D0A97352-BDF3-48DD-87EA-93FF4B092383",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-air-m2-13-1",
"modelName" : "iPad Air 13-inch (M2)",
"name" : "iPad Air 13-inch (M2)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPad14,1",
"identifier" : "DD15981C-6CD3-4AF9-8489-8A962F971150",
"architecture" : "arm64",
"modelUTI" : "com.apple.ipad-mini6-1",
"modelName" : "iPad mini (6th generation)",
"name" : "iPad mini (6th generation)",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone16,2",
"identifier" : "9360C75A-52C5-45F6-AEC1-C2B4430905E8",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-15-pro-max-1",
"modelName" : "iPhone 15 Pro Max",
"name" : "iPhone 15 Pro Max",
"ignored" : false
},
{
"simulator" : true,
"operatingSystemVersion" : "17.5 (21F79)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone14,6",
"identifier" : "F4732CBA-F1D2-4743-92DF-F36158594867",
"architecture" : "arm64",
"modelUTI" : "com.apple.iphone-se3-1",
"modelName" : "iPhone SE (3rd generation)",
"name" : "iPhone SE (3rd generation)",
"ignored" : false
},
{
"ignored" : false,
"modelCode" : "Mac15,7",
"simulator" : false,
"modelName" : "MacBook Pro",
"operatingSystemVersion" : "14.6 (23G5066c)",
"identifier" : "00006030-0008311802D0001C",
"platform" : "com.apple.platform.macosx",
"architecture" : "arm64e",
"interface" : "usb",
"available" : true,
"name" : "My Mac",
"modelUTI" : "com.apple.macbookpro-16-late-2023-2"
}
]
[ +1 ms] executing: /usr/bin/arch -arm64e xcrun devicectl list devices --timeout 5 --json-output /var/folders/bf/q7knlxvj1ml6ybf5bst9y5300000gn/T/flutter_tools.4wASYv/core_devices.S50wpS/core_device_list.json
[ +589 ms] > Task :gradle:compileGroovy FAILED
[ ] 1 actionable task: 1 executed
[ ] Watched directory hierarchies: [/opt/homebrew/Caskroom/flutter/3.22.2/flutter/packages/flutter_tools/gradle]
[ ] Stopped 1 worker daemon(s).
[ ] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':gradle:compileGroovy'.
[ ] > BUG! exception in phase 'semantic analysis' in source unit '/opt/homebrew/Caskroom/flutter/3.22.2/flutter/packages/flutter_tools/gradle/src/main/groovy/app_plugin_loader.groovy' Unsupported class file major version 65
[ ] * Try:
[ ] > Run with --debug option to get more log output.
[ ] > Run with --scan to get full insights.
[ ] * Exception is:
[ ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':gradle:compileGroovy'.
[ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
[ ] at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
[ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:140)
[ ] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:128)
[ ] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:77)
[ ] at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
[ ] at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
[ ] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
[ ] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:57)
[ ] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
[ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
[ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
[ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
[ ] at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
[ ] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
[ ] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
[ ] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:69)
[ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:322)
[ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:309)
[ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:302)
[ ] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:288)
[ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:462)
[ ] at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
[ ] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
[ ] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
[ ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[ ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[ ] at java.base/java.lang.Thread.run(Thread.java:1583)
[ ] Caused by: BUG! exception in phase 'semantic analysis' in source unit '/opt/homebrew/Caskroom/flutter/3.22.2/flutter/packages/flutter_tools/gradle/src/main/groovy/app_plugin_loader.groovy' Unsupported class file major version 65
[ ] at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:905)
[ ] at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:627)
[ ] at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:610)
[ ] at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:285)
[ ] at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:67)
[ ] at org.gradle.api.internal.tasks.compile.GroovyCompilerFactory$DaemonSideCompiler.execute(GroovyCompilerFactory.java:97)
[ ] at org.gradle.api.internal.tasks.compile.GroovyCompilerFactory$DaemonSideCompiler.execute(GroovyCompilerFactory.java:76)
[ ] at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkAction.execute(AbstractDaemonCompiler.java:135)
[ ] at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
[ ] at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:49)
[ ] at org.gradle.workers.internal.AbstractClassLoaderWorker$1.create(AbstractClassLoaderWorker.java:43)
[ ] at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:100)
[ ] at org.gradle.workers.internal.AbstractClassLoaderWorker.executeInClassLoader(AbstractClassLoaderWorker.java:43)
[ ] at org.gradle.workers.internal.IsolatedClassloaderWorker.run(IsolatedClassloaderWorker.java:49)
[ ] at org.gradle.workers.internal.IsolatedClassloaderWorker.run(IsolatedClassloaderWorker.java:30)
[ ] at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:87)
[ ] at org.gradle.workers.internal.WorkerDaemonServer.run(WorkerDaemonServer.java:56)
[ ] at org.gradle.process.internal.worker.request.WorkerAction$1.call(WorkerAction.java:138)
[ ] at org.gradle.process.internal.worker.child.WorkerLogEventListener.withWorkerLoggingProtocol(WorkerLogEventListener.java:41)
[ ] at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:135)
[ ] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[ ] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[ ] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
[ ] at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[ ] at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
[ ] at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
[ ] at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:414)
[ ] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
[ ] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
[ ] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[ ] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[ ] at java.base/java.lang.Thread.run(Thread.java:1583)
[ ] Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
[ ] at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
[ ] at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
[ ] at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
[ ] at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
[ ] at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
[ ] at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
[ ] at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)
[ ] at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNodeResolver.java:169)
[ ] at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeResolver.java:125)
[ ] at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisitor.java:869)
[ ] at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.java:506)
[ ] at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1429)
[ ] at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:262)
[ ] at org.codehaus.groovy.control.CompilationUnit.lambda$new$16(CompilationUnit.java:738)
[ ] at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation(CompilationUnit.java:901)
[ ] ... 31 more
[ ] * Get more help at https://help.gradle.org
[ ] BUILD FAILED in 5s
[ +384 ms]
┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │
│ for Gradle. │
│ │
│ If you recently upgraded Android Studio, consult the migration guide at │
│ docs.flutter.dev/go/android-java-gradle-error. │
│ │
│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter │
│ doctor --verbose`. │
│ │
│ Then, update the Gradle version specified in │
│ /Users/swi-oberhauser/Documents/git/playground/intellij_example/android/gradle/wrapper/gradle-wr │
│ apper.properties to be compatible with that Java version. See the link below for more │
│ information on compatible Java/Gradle versions: │
│ https://docs.gradle.org/current/userguide/compatibility.html#java │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
[ +2 ms] Error: Gradle task assembleDebug failed with exit code 1
[ +1 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:755:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:93:3)
<asynchronous suspension>
[ +4 ms] "flutter run" took 6,768ms.
[ ] ensureAnalyticsSent: 0ms
[ ] Running 1 shutdown hook
[ +1 ms] Shutdown hooks complete
[ +1 ms] exiting with code 1
```
</details>
### Flutter Doctor output
<details open><summary>Doctor output</summary>
```console
Building flutter tool...
Resolving dependencies...
Downloading packages...
Got dependencies.
[!] Flutter (Channel [user-branch], 3.22.4-0.0.pre.1, on macOS 14.6 23G5066c darwin-arm64, locale en-US)
! Flutter version 3.22.4-0.0.pre.1 on channel [user-branch] at /opt/homebrew/Caskroom/flutter/3.22.2/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
• Framework revision 53aef47328 (44 minutes ago), 2024-08-22 17:49:49 +0200
• Engine revision 235db911ba
• Dart version 3.4.4
• DevTools version 2.34.3
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/swi-oberhauser/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2.0.2)
• Android Studio at /Applications/IntelliJ IDEA.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment JBR-21.0.3+13-509.4-jcef (build 21.0.3+13-b509.4)
[✓] Android Studio (version 2024.1.4)
• Android Studio at /Applications/IntelliJ IDEA CE.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment JBR-17.0.11+1-1207.24-jcef (build 17.0.11+1-b1207.24)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.0.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 81.1.3
• Dart plugin version 242.20629
[✓] IntelliJ IDEA Community Edition (version 2024.1.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 80.0.2
• Dart plugin version 241.17890.8
[✓] Connected device (4 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 15 (API 35) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.6 23G5066c darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.6 23G5066c darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.84
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.
```
</details>
| platform-android,tool,team-tool | low | Critical |
2,481,310,708 | pytorch | Setting a 1D tensor as `input` and a 0D tensor as `index` and vice versa for `gather()` works against the error message | ### 🐛 Describe the bug
Setting a 1D tensor as `input` and a 2D tensor as `index` for [gather()](https://pytorch.org/docs/stable/generated/torch.gather.html) gets the error message as shown below:
```python
import torch
torch.gather(input=torch.tensor([10, 11, 12]), # 1D tensor
dim=0,
index=torch.tensor([[2]])) # 2D tensor
# Error
```
> RuntimeError: Index tensor must have the same number of dimensions as input tensor
But setting a 1D tensor as `input` and a 0D tensor as `index` for `gather()` works against the error message as shown below:
```python
import torch
torch.gather(input=torch.tensor([10, 11, 12]), # 1D tensor
dim=0,
index=torch.tensor(2)) # 0D tensor
# tensor(12)
```
Also, setting a 0D tensor as `input` and a 1D tensor as `index` for `gather()` works against the error message as shown below:
```python
import torch
torch.gather(input=torch.tensor(2), # 0D tensor
dim=0,
index=torch.tensor([0, 0, 0])) # 1D tensor
tensor([2, 2, 2])
```
### Versions
```python
import torch
torch.__version__ # 2.3.1+cu121
```
cc @malfet | module: error checking,triaged,actionable,module: scatter & gather ops,module: edge cases | low | Critical |
2,481,347,341 | svelte | Svelte 5: Docs - Migration of multiple named slots to children/snippets pattern | ### Describe the bug
Migrating `named slots` to `snippets` and the `@render children()` pattern is not documented well, or is very difficult to find.
The new `snippet` system is great and a big step forward, thank you all for your hard work.
That being said, `snippets` and their relationship to a component's `children` seems under-documented.
The examples I found resembled the following:
```svelte
<script>
let { children } = $props();
</script>
{#if children}
{@render children()}
{/if}
```
The only information I could find online about migrating `named slots` to `snippets` was [this stack overflow article](https://stackoverflow.com/questions/78664060/how-do-we-do-named-slots-in-in-svelte-5).
Proposed Documentation (adapted from the linked stack overflow post):
### Svelte 4
<strong>Component Definition</strong>
```svelte
<!-- ContactCard.svelte -->
<article>
<!-- With fallback content -->
<slot name="name">
<span>No name found!</span>
</slot>
<!-- Without fallback content -->
<slot name="address"></slot>
</article>
```
<strong>Component Usage</strong>
```svelte
<script>
import ContactCard from './ContactCard.svelte';
</script>
<ContactCard>
<span slot="name"> P. Sherman </span>
<span slot="address"> 34 Wallaby Way </span>
</ContactCard>
```
### Svelte 5
<strong>Component Definition</strong>
```svelte
<!-- ContactCard.svelte -->
<script>
let { name, address } = $props();
</script>
<article>
<!-- With fallback content -->
{#if name}
{@render name()}
{:else}
<span>No name found!</span>
{/if}
<!-- Without fallback content -->
{@render address?.()}
</article>
```
<strong>Component Usage</strong>
```svelte
<script>
import ContactCard from './ContactCard.svelte';
</script>
<ContactCard>
{#snippet name()}
P. Sherman
{/snippet}
{#snippet address()}
42 Wallaby Way <br />
Sydney
{/snippet}
</ContactCard>
```
### Reproduction
docs issue
### Logs
_No response_
### System Info
```shell
docs issue
```
### Severity
annoyance | documentation | low | Critical |
2,481,366,710 | transformers | Support `StaticCache` in assisted generation | Looking for contributions!
Assisted generation (or speculative decoding) is a strategy to speed up generation. Using `StaticCache` and `torch.compile` is another strategy to speed up generation. Currently, the two are not compatible. It would be nice to be able to use both at the same time, for maximum speed 😎
In a nutshell, assisted generation has to clear the cache of the models for the tokens that were rejected. `StaticCache` doesn't have the functions to do it implemented. | Good Difficult Issue,Generation,Cache | low | Minor |
2,481,369,660 | pytorch | Footgun: Dynamo x tensors created inside or outside of inference_mode | The problem:
- Dynamo guards against the DispatchKeys of tensors.
- If a Tensor is created inside inference_mode, then it does not have the ADInplaceOrView key.
- If a Tensor is created outside inference_mode, then it does have the ADInplaceOrView key.
- Passing Tensors that were created inside/outside of inference_mode to a torch.compile'd function triggers recompilations.
Potential solutions:
- better logging: TORCH_LOGS=recompiles should recognize this situation and explain it in english (like the above). End users don't know what DispatchKeys are.
- Changing the semantics of inference_mode to make it so that we don't need to guard on ADInplaceOrView. I'm not sure if this is feasible, because people can turn inference_mode off
cc @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @rec | triaged,inference mode,module: dynamo | low | Minor |
2,481,372,918 | go | crypto/aes: add generic bitsliced implementation | The generic pure-Go AES implementation, used when a platform lacks AES-NI hardware support, operates in variable-time. This is a (very) long running issue (see #19413, #16821, #13795, #4299, etc) which is noted in the crypto/aes package documentation.
While documented explicitly in crypto/aes, it may not be obvious to consumers of crypto/tls. In Go 1.16, we deprioritized AES ciphers on systems that lacked hardware support, but despite this there are still scenarios where users who lack AES-NI may end up negotiating AES based ciphers, resulting in usage of a variable-time implementation.
It is probably time to throw out the variable-time generic implementation, and finally add a bitsliced version. This would mean that all of our AES implementations would be constant-time, regardless of the platform. Since this was last considered there have been a slew of reasonable bitsliced implementations developed in the community, so there is a lot of prior art to consult on the best way to go about this.
We'll also need to add a constant-time GHASH implementation for AES-GCM to be constant-time. BearSSL has a novel approach to this, which spreads the bits out to avoid the need for separate carrying: https://www.bearssl.org/constanttime.html#ghash-for-gcm.
We expect bitslicing will result in reduced performance over the current generic implementation, but it seems like that is a reasonable trade-off for having full constant-time platform coverage.
cc @golang/security @FiloSottile | NeedsFix | low | Major |
2,481,412,346 | three.js | Support advanced (property mangling) minify tools | ### Description
Some JavaScript minification tools support reducing the size of code even further by renaming properties. This is called property mangling in UglifyJS, or ADVANCED optimization mode in Closure Compiler. In summary it works like this: suppose you have the following code.
```js
const obj = {
apples: 1,
oranges: 2
};
console.log(obj.apples, obj.oranges);
```
Property mangling will rename the object properties consistently, so `apples` is renamed to `a`, `oranges` is renamed to `b`, and so on, producing output that looks like this:
```js
const obj = {
a: 1,
b: 2
};
console.log(obj.a, obj.b);
```
This can however break code that is not written to expect this. The main problem is mixing string and dot property syntax. For example if you access a property in `obj` using a runtime string like `obj[someStr]`, then the names are different and the code is broken. To better support this case, both Closure Compiler and UglifyJS support preserving the names of properties that use string syntax. For example code written this way would not have its properties renamed:
```js
const obj = {
"apples": 1,
"oranges": 2
};
console.log(obj["apples"], obj["oranges"]);
```
That allows for using property mangling as well as string lookups, providing property accesses consistently use either string syntax or dot syntax, but not a mix, as that means only dot syntax is renamed and then no longer matches the string syntax.
Using data from [Construct](https://www.construct.net/) - a large JavaScript-based game engine - property mangling can further reduce the code size over "simple" (non-property-mangling) minification by ~35-45% uncompressed and ~15-25% compressed. (The range depends on the tool used - Closure Compiler tends to do better than UglifyJS.)
### Solution
Currently three.js mixes dot and string property syntax and so is broken after property mangling minification. After debugging this, one area I identified was the use of `ShaderLib`: in [ShaderLib.js](https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderLib.js) the `ShaderLib` defines properties with unquoted syntax (e.g. `basic`); however in [WebGLPrograms.js](https://github.com/mrdoob/three.js/blob/dev/src/renderers/webgl/WebGLPrograms.js#L93) it does a runtime string lookup with `ShaderLib[ shaderID ]`. It looks like this pattern is used in a few places.
The fix is to ensure all uses of property accesses are consistently string syntax or dot (unquoted) syntax. For example in this case, the fix would be to ensure `ShaderLib` properties use string syntax, e.g. `"basic"`. Other such cases will need to be reviewed across the codebase. I would also suggest to use `Map` for dictionary-style storage like this, as it's a natural fit, avoids some pitfalls with object properties (like `prototype`), and you can only use string syntax, so it actually prevents using dot syntax and so avoids any syntax mix-ups.
Both Closure Compiler and UglifyJS provide a "debug" mode for property mangling to help identify problems. This renames properties but keeps the original name - for example UglifyJS renames `obj.apples` to `obj._$apples$_`, so the property is renamed, but you can still see what it was meant to be when debugging problems.
Once set up it's pretty straightforward to keep things working - it just needs consistency across the codebase with property syntax. It may be a relatively easy change to make, but it should probably be done by someone familiar with the codebase. I don't think it's an onerous requirement to maintain in future, and it helps further reduce the download size and parse/load time as three.js is a pretty large library.
### Alternatives
I think the only alternative is to keep using "simple" (non-property-mangling) minification. This doesn't require any code changes and tends to just work with whatever code you write, so is a bit easier to maintain. However it may turn out to be straightforward to support and maintain support for property mangling, which would make it a relatively easy win.
### Additional context
With Construct we've supported property mangling in our engine for years, and I wouldn't say it's a significant burden. | Suggestion | low | Critical |
2,481,453,664 | godot | Moving Files via Script Does Not Update Resources in Scene | ### Tested versions
Tested in v4.3.stable.mono.official [77dcf97d8]
### System information
Windows 11, RX 6600, Intel 10400 CPU
### Issue description
## TL;DR: `DirAccess.Rename()` and `DirAccess.RenameAbsolute()` do not update resource paths when scene.tscn files are moved from A to B
Moving files via code will break the resources in scenes. Have a look at "Steps to Reproduce" and the attached MRP below for more info.
> [!IMPORTANT]
> Manually dragging the resource files directly in the Godot editor will auto update the resource paths with no issues.
Although manually clicking "Fix Dependencies" on the scene when opening it will fix all resource paths *(that is after moving the files via script)*
Perhaps something like `.FixDependencies()` should be called whenever `directory.Rename(...)` is executed. Maybe this could also be done if a developer does something like `System.File.IO.Move(...)` instead of using the Godot methods.
I have tried searching for a similar already submitted issue to this and I could not find anything.
## Why do I need this?
Look at the "Caution" note I put in the README of this repo [here](https://github.com/ValksGodotTools/Template?tab=readme-ov-file#four-double-click-on-the-main-scene-in-resscenesyour_scenetscn) *(if the link isn't taking you to the correct spot in the readme because of all the media that loads in, the caution note I'm referring to is under "Setup Guide" right after Step 4)*
### Steps to reproduce
1. Create a new scene "sub" inside the main scene "main" with a script attached inside "sub"
2. Create a new script in `res://Scripts` and attach this script to be inside the "sub" scene
3. Create a new script in "main" that moves the "sub" script from `res://Scripts` to `res://`
```cs
using DirAccess dir = DirAccess.Open(ProjectSettings.GlobalizePath("res://"));
// this "Player.cs" script is the "sub" script I'm referring to
Error error = dir.Rename("Scripts/Player.cs", "Player.cs");
if (error != Error.Ok)
GD.Print(error); // no error will be printed because it will move the file with no issues
```
5. Run the game
6. Click on the console output so it updates or close the game to update console output and you will notice errors similar to this

> [!NOTE]
> Please use the MRP attached below instead of trying to re-create this scenario I've described above.
### Minimal reproduction project (MRP)
1. Press `F5` to run the game and `res://Scripts/Player.cs` will be moved to `res://Player.cs`
2. Close the game and the following errors will appear in console

https://github.com/user-attachments/assets/8576de8f-962a-4fee-9022-c0134b3ad0f0
> [!NOTE]
> MRP: [filemovetest.zip](https://github.com/user-attachments/files/16715888/filemovetest.zip) *(requires v4.3.stable.mono.official [77dcf97d8] to run)*
| enhancement,discussion,topic:editor | low | Critical |
2,481,497,650 | flutter | `PredictiveBackPageTransitionsBuilder` background color not changeable | ### Steps to reproduce
1. Add a theme to the MaterialApp that includes `PredictiveBackPageTransitionsBuilder` as transition (see code sample).
2. Enable predictive back in developer settings
3. Use predictive back, but don't pop it
=> There's no way of setting the black background to a different color (correct me if I'm wrong)
<img src="https://github.com/user-attachments/assets/f69d4080-2644-4db1-aa8d-260d1e271828" height="720" />
### Code sample
<details open><summary>Code sample</summary>
```dart
pageTransitionsTheme: const PageTransitionsTheme(
builders: <TargetPlatform, PageTransitionsBuilder>{
TargetPlatform.android: PredictiveBackPageTransitionsBuilder(),
},
)
```
</details>
### What target platforms are you seeing this bug on?
Android
### OS/Browser name and version | Device information
Android 14
### Does the problem occur on emulator/simulator as well as on physical devices?
Yes
### Logs
<details open><summary>Logs</summary>
Not needed
</details>
### Flutter Doctor output
<details open><summary>Doctor output</summary>
```console
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.4037], locale de-DE)
• Flutter version 3.22.2 on channel stable at E:\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\jakob\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
• All Android licenses accepted.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.10.35201.131
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2023.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
[√] VS Code (version 1.92.2)
• VS Code at C:\Users\jakob\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.86.0
[√] Connected device (2 available)
• Pixel 6 (mobile) • 25141FDF6001LD • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4037]
[√] Network resources
• All expected network resources are available.
• No issues found!
```
</details>
| platform-android,framework,f: routes,has reproducible steps,P2,team-design,triaged-design,found in release: 3.24,found in release: 3.25 | low | Critical |
2,481,558,523 | ollama | I can not push 8g model to Ollama | ### What is the issue?
using
>ollama push me/mymodel
im getting upload rate like this
> 39 MB/8.5 GB 1.4 MB/s 1h41m
it will chug chug chug to 40 or 50% then i get the error
> Error: max retries exceeded: http status 502 Bad Gateway: <?xml version="1.0" encoding="UTF-8"?><Error><Code>InternalError</Code><Message>We encountered an internal connectivity issue. Please try again.</Message></Error>
im wondering if my ISP is getting me off? Or perhaps im not uploading fast enough so ollama server cuts me off?
any tips on how to push largish models? it will do 4g ok
### OS
macOS
### GPU
Apple
### CPU
Apple
### Ollama version
0.3.6 | bug | low | Critical |
2,481,627,088 | material-ui | [TablePaginationActions]: Add ability to add a component between the left navigation and right navigation in TablePaginationActions. | ### Summary
The default `ActionsComponent` for `TablePagination` is `TablePaginationActions` which renders the page navigation buttons. If `TablePaginationActions` can accept a custom component as a prop to render between the left navigation and right navigation, `TablePaginationActions` can be used to create a custom Action Component.
### Examples
<img width="522" alt="Screen Shot 2024-08-22 at 1 08 06 PM" src="https://github.com/user-attachments/assets/84754c9b-b07e-43ae-84d4-48ec5683be2a">
### Motivation
We have a design to add a `TextField` between the Left Navigation and Right Navigation to enter the page number.
Currently, there is no way to add this `TextField` component in `TablePaginationActions`. We have to fork the `TablePaginationActions` component and add the `TextField`.
If MUI can provide a prop to add a component between the left navigation and right navigation in `TablePaginationActions`, we can avoid the fork.
**Search keywords**: TablePaginationActions | component: TablePagination,enhancement,customization: dom | low | Minor |
2,481,627,786 | rust | ICE: `errors selecting obligation during MIR typeck: [TrueError]` | <!--
[31mICE[0m: Rustc ./a.rs '--crate-type=lib -ooutputfile -Zdump-mir-dir=dir' 'error: internal compiler error: errors selecting obligation during MIR typeck: [TrueError]', 'error: internal compiler error: errors selecting obligation during MIR typeck: [TrueError]'
File: /tmp/im/a.rs
-->
snippet:
````rust
#![feature(generic_const_exprs)]
fn foo<'a, T: 'a>(_: [(); std::mem::offset_of!((T,), 0)]) {}
````
Version information
````
rustc 1.82.0-nightly (5ad98b402 2024-08-22)
binary: rustc
commit-hash: 5ad98b4026d5172f27615b105658bc8bfd677be8
commit-date: 2024-08-22
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0
````
Command:
`/home/matthias/.rustup/toolchains/master/bin/rustc --crate-type=lib`
<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary><strong>Program output</strong></summary>
<p>
```
warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
--> /tmp/icemaker_global_tempdir.tDpCHeI4R4t9/rustc_testrunner_tmpdir_reporting.Lo4fDYzUFauY/mvce.rs:1:12
|
1 | #![feature(generic_const_exprs)]
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
= note: `#[warn(incomplete_features)]` on by default
warning: function `foo` is never used
--> /tmp/icemaker_global_tempdir.tDpCHeI4R4t9/rustc_testrunner_tmpdir_reporting.Lo4fDYzUFauY/mvce.rs:2:4
|
2 | fn foo<'a, T: 'a>(_: [(); std::mem::offset_of!((T,), 0)]) {}
| ^^^
|
= note: `#[warn(dead_code)]` on by default
warning: 2 warnings emitted
note: no errors encountered even though delayed bugs were created
note: those delayed bugs will now be shown as internal compiler errors
error: internal compiler error: Missing value for constant, but no error reported?
--> /tmp/icemaker_global_tempdir.tDpCHeI4R4t9/rustc_testrunner_tmpdir_reporting.Lo4fDYzUFauY/mvce.rs:2:27
|
2 | fn foo<'a, T: 'a>(_: [(); std::mem::offset_of!((T,), 0)]) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: delayed at compiler/rustc_trait_selection/src/traits/const_evaluatable.rs:74:68 - disabled backtrace
--> /tmp/icemaker_global_tempdir.tDpCHeI4R4t9/rustc_testrunner_tmpdir_reporting.Lo4fDYzUFauY/mvce.rs:2:27
|
2 | fn foo<'a, T: 'a>(_: [(); std::mem::offset_of!((T,), 0)]) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error: internal compiler error originates in the macro `std::mem::offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
error: internal compiler error: errors selecting obligation during MIR typeck: [TrueError]
|
= note: delayed at /rustc/5ad98b4026d5172f27615b105658bc8bfd677be8/compiler/rustc_trait_selection/src/traits/query/type_op/custom.rs:94:18 - disabled backtrace
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: please make sure that you have updated to the latest nightly
note: rustc 1.82.0-nightly (5ad98b402 2024-08-22) running on x86_64-unknown-linux-gnu
note: compiler flags: --crate-type lib -Z dump-mir-dir=dir
query stack during panic:
end of query stack
```
</p>
</details>
<!--
query stack:
-->
@rustbot label +F-generic_const_exprs | I-ICE,T-compiler,C-bug,F-generic_const_exprs,S-bug-has-test,T-types | low | Critical |
2,481,629,473 | pytorch | Data corruption when reading data as CUDA tensor from a different process | ### 🐛 Describe the bug
For performance reasons, I want to separate IO tasks by reading video frames in a separate process and then moving them to the GPU. This way, the main process can focus solely on running the processing logic. However, I'm encountering data corruption issues when passing CUDA tensors across processes.
Here's a minimal example of how to reproduce it.
```
import torch
import cv2
import os
import torch.multiprocessing as mp
import numpy as np
def producer(queue, event, video_path):
cap = cv2.VideoCapture(video_path)
frame_count = 0
while True:
ret, frame = cap.read()
if not ret:
break
# Convert frame to tensor and move to CUDA
tensor_frame = torch.from_numpy(frame).cuda()
# Put the tensor into the queue
queue.put(tensor_frame)
print(f'Frame {frame_count} added to queue')
frame_count += 1
# Indicate end of stream
queue.put(None)
event.wait()
cap.release()
def consumer(queue, event, output_folder):
frame_count = 0
while True:
tensor_frame = queue.get()
if tensor_frame is None:
break
# Move the tensor back to CPU and convert to numpy array
frame = tensor_frame.cpu().numpy()
# Write the frame to disk
output_path = f"{output_folder}/frame_{frame_count:04d}.png"
# Detect if frame is all 0s
if np.all(frame == 0):
print(f"CORRUPTED: Frame {frame_count} is all 0s")
cv2.imwrite(output_path, frame)
frame_count += 1
print(f'Frame {frame_count} read from queue')
event.set()
if __name__ == "__main__":
mp.freeze_support()
mp.set_start_method("spawn", force=True)
video_path = "input.mp4"
output_folder = "output_frames"
# mkdir
os.makedirs(output_folder, exist_ok=True)
queue = mp.Queue()
event = mp.Event()
# Launch producer and consumer processes
producer_process = mp.Process(target=producer, args=(queue, event, video_path))
consumer_process = mp.Process(target=consumer, args=(queue, event, output_folder))
producer_process.start()
consumer_process.start()
producer_process.join()
consumer_process.join()
```
I used [this video](https://drive.google.com/file/d/1gKs5eRnsUCIRgmJaMXYN77YAQCvuiJvx/view?usp=sharing) for testing. In the output folder, some of the frames are saved without any issues, but others are corrupted, with the data containing all zeros. The corrupted frames vary from run to run, but there seems to be a pattern.
Here is a visual representation of the issue:

If removing `.cuda()` in producer, output frames have no corruption:

According to [documentation](https://pytorch.org/docs/stable/multiprocessing.html#multiprocessing-cuda-sharing-details), I believe I was passing data correctly with `mp.Queue()`. I have also attempted to preserve the CUDA tensor in producer with an extra `tensor_cache`, but corruption issue did not improve.
```
def producer(queue, event, video_path):
cap = cv2.VideoCapture(video_path)
frame_count = 0
tensor_cache = []
while True:
ret, frame = cap.read()
if not ret:
break
# Convert frame to tensor and move to CUDA
tensor_frame = torch.from_numpy(frame).cuda()
tensor_cache.append(tensor_frame)
# Put the tensor into the queue
queue.put(tensor_frame)
print(f'Frame {frame_count} added to queue')
frame_count += 1
# Indicate end of stream
queue.put(None)
event.wait()
cap.release()
```
Thanks a lot for your help!
### Versions
```
PyTorch version: 2.4.0+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 10 Home
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Python version: 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:33:45) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19045-SP0
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 3090
Nvidia driver version: 536.23
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture=9
CurrentClockSpeed=3401
DeviceID=CPU0
Family=107
L2CacheSize=8192
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=3401
Name=AMD Ryzen 9 5950X 16-Core Processor
ProcessorType=3
Revision=8448
Versions of relevant libraries:
[pip3] numpy==1.26.3
[pip3] torch==2.4.0+cu118
[pip3] torchaudio==2.4.0+cu118
[pip3] torchvision==0.19.0+cu118
[conda] Could not collect
```
cc @VitalyFedyunin | module: multiprocessing,triaged | low | Critical |
2,481,769,130 | yt-dlp | [Panopto] Streams starting at different times | ### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field
### Checklist
- [X] I'm requesting a site-specific feature
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required
### Region
UK
### Example URLs
https://cambridgelectures.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=074cbf7a-04bb-4d1d-ae60-b11b00da3b2d
### Provide a description that is worded well enough to be understood
I downloaded a video from Panopto by using `yt-dlp -o video.mkv --cookies cookies.txt -f 399+3318 --video-multistreams https://cambridgelectures.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=074cbf7a-04bb-4d1d-ae60-b11b00da3b2d`.
However, the final merged file seems to have two video streams starting at different times, so I fixed it by using `ffmpeg -i video.mkv -itsoffset 400.5 -i video.mkv -c copy -map 0:v:0 -map 1:v:1 -map 1:a video.temp.mkv`.
As mentioned by @coletdjnz in https://github.com/yt-dlp/yt-dlp/issues/389#issuecomment-1110877580:
>I should also note that the streams may not start/end all at the same time.
>
>This can be seen commonly with Panopto (e.g. audio stream may start a little after video stream begins). I've also seen cases where video streams that end and start throughout, overlapping or not.
>
>Panopto provides timing data which is used in the web browser for syncing the streams.
there should be a way to get the timing data from the site, but I don't know how.
### Provide verbose output that clearly demonstrates the problem
- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below
### Complete Verbose Output
```shell
[debug] Command-line config: ['-vU', '-o', 'video.mkv', '--cookies', 'cookies.txt', '-f', '399+3318', '--video-multistreams', 'https://cambridgelectures.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=074cbf7a-04bb-4d1d-ae60-b11b00da3b2d']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.08.21.232751 from yt-dlp/yt-dlp-nightly-builds [6f9e65374] (pip)
[debug] Python 3.11.5 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 4.2.3, ffprobe 7.0.2-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, requests-2.32.3, sqlite3-3.42.0, urllib3-2.1.0, websockets-13.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1830 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.08.21.232751 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.08.21.232751 from yt-dlp/yt-dlp-nightly-builds)
[Panopto] Extracting URL: https://cambridgelectures.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=074cbf7a-04bb-4d1d-ae60-b11b00da3b2d
[Panopto] 074cbf7a-04bb-4d1d-ae60-b11b00da3b2d: Downloading JSON metadata
[Panopto] 074cbf7a-04bb-4d1d-ae60-b11b00da3b2d: Downloading m3u8 information
[Panopto] 074cbf7a-04bb-4d1d-ae60-b11b00da3b2d: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] 074cbf7a-04bb-4d1d-ae60-b11b00da3b2d: Downloading 1 format(s): 399+3318
[debug] Invoking hlsnative downloader on "https://d2hpwsdp0ihr0w.cloudfront.net:443/sessions/759aaae7-5d8d-4357-a628-b11b00da3b26/d530a8cb-ce2e-47d1-b6e8-b17100b70e7f.object.hls/396318/index.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 400
[download] Destination: video.f399.mp4
[debug] File locking is not supported. Proceeding without locking
[download] 100% of 170.98MiB in 00:00:09 at 18.84MiB/s
[debug] Invoking hlsnative downloader on "https://d2hpwsdp0ihr0w.cloudfront.net:443/sessions/759aaae7-5d8d-4357-a628-b11b00da3b26/074cbf7a-04bb-4d1d-ae60-b11b00da3b2d-08cd791f-e4ba-4fec-b71d-b18201498c10.hls/3311131/index.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 332
[download] Destination: video.f3318.mp4
[download] 100% of 1.15GiB in 00:01:55 at 10.20MiB/s
[debug] ffmpeg command line: ffprobe -show_streams file:video.f3318.mp4
[Merger] Merging formats into "video.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i file:video.f399.mp4 -i file:video.f3318.mp4 -c copy -map 0:v:0 -map 1:a:0 -bsf:a:0 aac_adtstoasc -map 1:v:0 -movflags +faststart file:video.temp.mkv
Deleting original file video.f399.mp4 (pass -k to keep)
Deleting original file video.f3318.mp4 (pass -k to keep)
```
| site-enhancement,triage | low | Critical |
2,481,809,627 | material-ui | The scroll bar locking behavior (What if it'd be customizable with this global CSS) | added this
`body {
overflow: auto !important;
}`
To overcome any CSS or JavaScript preventing the body from scrolling or locking the scroll bar.
But I ended up with the MUI offset of the right margin of the screen, like it fluctuates to the opposite.
I made that to stop the fluctuation from the scrollbar hiding, but MUI still got another offset.
_Originally posted by @samueltesfayegari in https://github.com/mui/material-ui/issues/17353#issuecomment-2305711595_
**Search keywords**: | docs,component: select | low | Minor |
2,481,821,024 | terminal | Dim terminal when app terminates | I have a profile which is used for SSH. When the connection is lost, I get a message saying the process has terminated and I am to press ENTER to restart. It's not always easy to spot this message, since it can appear at the top or middle of the screen (wherever the cursor happened to be). I propose that at this time (optionally) dim the entire window. This way it will be easier to notice the app termination and hit ENTER before continuing.
| Issue-Feature,Area-UserInterface,Product-Terminal | low | Minor |
2,481,864,688 | flutter | [Android, iOS] Write integration tests to test `SystemUiMode` expected behavior | We should consider writing integration tests to test the expected behavior of setting different [`SystemUiMode`](https://api.flutter.dev/flutter/services/SystemUiMode.html)s.
We currently test this behavior using unit tests, but integration tests will add value because changes to Android's support of these different modes is likely as it is beginning to prefer edge-to-edge (like [it becoming the default in Android 15](https://developer.android.com/about/versions/15/behavior-changes-15#edge-to-edge)), and these tests will catch any changes that come from Android (or iOS) SDK changes that are unit tests will not catch. | platform-android,platform-ios,P3,team-android,triaged-android | low | Minor |
2,481,868,433 | flutter | [ios 18] Launching debug mode app from the home screen (not from the debugger) segfault crashes on launch at `-createTouchRateCorrectionVSyncClientIfNeeded` | ### Steps to reproduce
1. Under Xcode 16 Beta 5, install and run the app in debug mode on an iOS 18 device.
2. Kill the app
3. Launch from springboard
### Expected results
The app should show a full screen saying that Launching app in debug mode springboard is not supported
### Actual results
Crashes
### Code sample
Empty flutter app
### Screenshots or Video
<details open>
<summary>Screenshots / Video demonstration</summary>
[Upload media here]
</details>
I found this related message from the console:
```
[app<com.example.testProj3(07968AC9-DF97-4295-8DF7-7122871E7718)>:1948] Terminating with context: <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:[app<com.example.testProj3>:1948] Failed to terminate gracefully after 5.0s
ProcessVisibility: Unknown
ProcessState: Running
WatchdogEvent: process-exit
WatchdogVisibility: Background
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 9.560 (user 5.530, system 4.030), 27% CPU",
"Elapsed application CPU time (seconds): 0.000, 0% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
```
### Logs
<details open><summary>Logs</summary>
```console
[Paste your logs here]
```
</details>
### Flutter Doctor output
na | platform-ios,P3,team-ios,triaged-ios | low | Critical |
2,481,906,972 | go | x/vulndb: TestLintReports/data/reports/GO-2024-2974.yaml failures | ```
#!watchflakes
default <- pkg == "golang.org/x/vulndb" && test == "TestLintReports/data/reports/GO-2024-2974.yaml"
```
Issue created automatically to collect these failures.
Example ([log](https://ci.chromium.org/b/8738885417329807217)):
=== RUN TestLintReports/data/reports/GO-2024-2974.yaml
all_test.go:116: modules[18] "github.com/evmos/evmos/v19": version &{19.0.0 fixed} does not exist
--- FAIL: TestLintReports/data/reports/GO-2024-2974.yaml (0.07s)
— [watchflakes](https://go.dev/wiki/Watchflakes)
| NeedsInvestigation,vulncheck or vulndb | low | Critical |
2,481,907,005 | go | x/sys/windows: TestAddRemoveDllDirectory failures | ```
#!watchflakes
default <- pkg == "golang.org/x/sys/windows" && test == "TestAddRemoveDllDirectory"
```
Issue created automatically to collect these failures.
Example ([log](https://ci.chromium.org/b/8738870700785974897)):
=== RUN TestAddRemoveDllDirectory
Exception 0xc0000005 0x0 0x1869b8f1000 0x7ffbf29e95c8
PC=0x7ffbf29e95c8
runtime.cgocall(0x7ff68c2657f0, 0x7ff68c580200)
C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/cgocall.go:157 +0x38 fp=0x400004fcf0 sp=0x400004fcb0 pc=0x7ff68c1f48a8
syscall.SyscallN(0x7ffbeee76910?, {0x400004fda0?, 0x3?, 0x1?})
C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/syscall_windows.go:544 +0xe8 fp=0x400004fd70 sp=0x400004fcf0 pc=0x7ff68c2616c8
syscall.Syscall(0x40000900f0?, 0xffffffffffffffff?, 0x7ff68c56fea0?, 0x1869b852460?, 0x0?)
C:/Users/swarming/.swarming/w/ir/x/w/goroot/src/runtime/syscall_windows.go:482 +0x30 fp=0x400004fdc0 sp=0x400004fd70 pc=0x7ff68c2614b0
...
r24 0x77659ff7c8
r25 0x77659ffc48
r26 0x0
r27 0x77659ff7f0
r28 0x7ff68c57f580
r29 0x77659ff750
lr 0x7ffbf29e9580
sp 0x77659ff6c0
pc 0x7ffbf29e95c8
cpsr 0x20000000
— [watchflakes](https://go.dev/wiki/Watchflakes)
| OS-Windows,NeedsInvestigation,compiler/runtime | low | Critical |
2,481,920,165 | flutter | ☂️ HTML renderer post-deprecation tasks | This is the umbrella for non-blocking [HTML deprecation](https://github.com/flutter/flutter/issues/145954) issues. We should address them as soon as possible, but they will not block the deprecation process. Each bullet is an issue, and the sub-bullets explain why it regresses due the HTML deprecation and why it's non-blocking:
- [x] Switch to sliced CJK fallback fonts (https://github.com/flutter/flutter/issues/138288). Currently, CJK fonts are not sliced. To render a single character of, say, Korean, we fetch a 6MB font file. Instead, sliced fonts are 30-60kb per file, and you only need a few of them to cover text that fits on one screen.
- **Regression**: because the HTML renderer can use browser built-in fonts, the 6MB fallback will be observed as a big regression.
- **Non-blocking**: because developers can supply their own fonts, and employ strategies such as prefetching fonts based on the user locale/language preferences (e.g. `window.navigator.languages`).
- [x] Switch to COLRv1 emoji font (https://github.com/flutter/flutter/issues/119536). The `useColorEmoji` is available, but it fetches a 24MB font file, which is not practical for most apps. The reason why it's so big is because the font bundles a bitmap for every emoji. Flutter supports COLRv1 vector format, which is orders of magnitude more compact:
- **Regression**: same as with the CJK fonts, HTML renderer can use browser built-in emojis. Switching to CanvasKit would cause emojis to become grayscale, and `useColorEmoji` is too expensive.
- **Non-blocking**: because the developer can provide their own trimmed emoji font, and not need our fallback.
- [ ] High-quality image scaling (https://github.com/flutter/flutter/issues/135655). Our current image options seem to be too confusing to get good image scaling results. On the web, as a developer, one rarely needs to do anything about images, and they just show up at high quality. The HTML renderer inherits it from the browser.
- **Regression**: image quality can degrade when scaled in some situations, and CanvasKit needs hand-holding to get to the right quality.
- **Non-blocking**: there is a way to get decent quality using the available options like `FilterQuality`. The developer can use browser APIs to scale the image and then render it into Flutter without scaling.
- [ ] Backdrop filter support in platform views (https://github.com/flutter/flutter/issues/143747). This is simply not implemented in CanvasKit and Skwasm.
- **Regression**: apps that rely on HTML renderer's BDF support will stop applying the effect to platform views.
- **Non-blocking**: this only affects the case when BDF and platform views are used at the same time. The vast majority of apps are able to alter their UX in a way that does not hit this case. A good amount of prep work has been done to implement support in CanvasKit. Worse case, an app that critically needs this, can skip a Flutter SDK release, and get the feature in the next release. | engine,platform-web,e: web_canvaskit,P2,team-web,triaged-web | low | Major |
2,481,964,873 | rust | Apple deployment target, SDK root and SDK version | I've been looking into our handling of the deployment targets and SDK paths on Apple platforms, and I've found it to be somewhat inconsistent and in some places outright incorrect. I'm opening this issue to give context to the PRs I've been (and will be) opening to fix it.
## Deployment targets
The "deployment target" is the minimum operating system version that the final binary will work on. It can be configured with the `*_DEPLOYMENT_TARGET` environment variables, and setting it allows us to enable certain optimizations. Currently this is done primarily in the codegen backend LLVM, though it could also be done by Cranelift or GCC if they wanted to, and also by `std` or other library crates.
By default, Clang takes the default deployment target from the SDK, which is usually quite high. `rustc` chooses a different approach here, and compiles by default for the minimum supported version, which I believe is the right choice, as it forces users to use the correct `*_DEPLOYMENT_TARGET` if they need to use newer features.
I've aligned the default/minimum versions of this variable with Clang in https://github.com/rust-lang/rust/pull/129367, and made sure we rebuild when the user changes it in https://github.com/rust-lang/rust/pull/129342.
## `SDKROOT`
The SDK root contains system header files and linker Text-Based stub files (`.tbd`). The SDK path is passed to the static linker (`ld`) so that it can tell which system library a given symbol comes from, and in turn write this information in the final Mach-O, so that it can be read by the dynamic linker (`dyld`) at runtime.
System libraries have been "hidden away" in the `dyld` cache since macOS 11 Big Sur, and since Rust does not distribute the linker stubs (unlike e.g. `zig cc` does on macOS), the SDK root is effectively always required to link anything (whether it's a cross-compile or not).
The correct way to invoke e.g. Clang, then, is using `xcrun` to pass the desired SDK in the `SDKROOT` environment variable, e.g.:
```console
$ xcrun --sdk iphoneos clang -target aarch64-apple-ios-macabi foo.c -o foo
```
This is not the full story, however: The binary at `/usr/bin/clang` is actually a trampoline that (effectively) invokes `xcrun` and then calls out to the actual `clang` binary distributed with Xcode, which means that a plain `clang foo.c` command usually works, at least when compiling for the host macOS. (In the case where you've compiled Clang from source instead, then this won't work, and you _have_ to provide the SDK root).
`rustc` is in a bit of a trickier position than Clang though:
- We're not a system built-in under `/usr/bin`, and as such don't get the affordances of automatically having `SDKROOT` set.
- The design of Cargo means that `rustc` will be invoked for different targets, but with the same `SDKROOT`. E.g. compiling build scripts when running Cargo under Xcode, `SDKROOT` will usually be set for an iOS SDK, while the build script will be targetting the host macOS.
- We try to make it easy to cross-compile by default, so we want to figure out the SDK root from the target instead of forcing the user to specify it.
Some of this already works (and kudos to the people that have implemented this in the past), but it's currently incomplete, which means we as a stop-gap end up shelling out to `xcrun` to let it figure out a SDK root for us. I believe that `rustc` should, when linking, re-implement the SDK discovery logic that `xcrun` does, see https://github.com/rust-lang/rust/pull/131433, and should always set the SDK root when invoking the linker, see https://github.com/rust-lang/rust/pull/131477.
## SDK version and `LC_BUILD_VERSION`
The SDK root is also used for something else in Clang: To find the SDK version, and embed it, together with the deployment target, in the `LC_BUILD_VERSION` of the produced (Mach-O) binary. It is quite important that this load command is present, otherwise the linker may refuse to link the binary (see https://github.com/rust-lang/rust/pull/114114 and https://github.com/rust-lang/rust/pull/111384), as it cannot reliably figure out the target OS and ABI.
The SDK version is used by `dyld` to emit more errors on newer binaries (see [here](https://github.com/apple-oss-distributions/dyld/blob/dyld-1165.3/common/MachOFile.cpp#L3029) and [here](https://github.com/apple-oss-distributions/dyld/blob/dyld-1165.3/common/MachOFile.cpp#L3738-L3857)), but also by system frameworks internally to change behaviour when compiled for an older SDK, for example [`-[NSView wantsBestResolutionOpenGLSurface]`](https://developer.apple.com/documentation/appkit/nsview/1414938-wantsbestresolutionopenglsurface?language=objc). I suspect the deployment target to be used to similar purposes.
https://github.com/rust-lang/rust/pull/129369 ensures that we consistently set the deployment target for all produced binaries.
The SDK version is set differently by `rustc` depending on what kind of binary is being produced:
- Raw object files: Delegate to the codegen backend (LLVM sets it to `0` or `n/a`).
- Other object files: Currently [a hard-coded value](https://github.com/rust-lang/rust/blob/5ad98b4026d5172f27615b105658bc8bfd677be8/compiler/rustc_target/src/spec/base/apple/mod.rs#L200-L213), but I've changed it to `0` in https://github.com/rust-lang/rust/pull/131016 to match LLVM.
- Everything linked with `cc`: Give Clang the SDK root, and let them figure it out.
- Everything linked with `ld`: Set to be equal to the deployment target. I think a better approach here would be to read the SDK version from the `SDKSettings.json`, to match what Clang does. I have implemented this in https://github.com/rust-lang/rust/pull/131478.
## Conclusion
Within the constraints that we have (Cargo is target agnostic, and won't deal with this, though it's better positioned to do so IMO), I think that the approach that `rustc` takes is a fairly good, and would be even better with a few fixes ;).
Just to clarify, in the end, `rustc`'s dependency on these variables (i.e. the effect on incremental compilation) would be roughly:
- `*_DEPLOYMENT_TARGET`: Codegen.
- `SDKROOT`/`DEVELOPER_DIR`/`/var/db/xcode_select_link`/...: Linking.
That is, ideally `cargo check` shouldn't be influenced by them at all, and `cargo build` only re-link the last binaries if the SDK root changed, and should recompile all binaries if the deployment target changed.
We will also need to ensure that the `cc` crate also handles all of this correctly too (see for example https://github.com/rust-lang/rust/issues/128419 for a current issue) (it's much more difficult there, since they have backwards compatibility issues).
---
@rustbot label O-apple
CC the Apple experts I know of:
@simlay, @BlackHoleFox, @thomcc, @shepmaster
| C-discussion,O-apple | low | Critical |
2,481,971,574 | pytorch | [PrivateUse1 Backend] Unable to register backend to PrivateUse1 dispatch key: ModuleNotFoundError: No module named 'torch.privateuseone' | ### 🐛 Describe the bug
As of `torch==2.4`, we're unable to register an out-of-tree backend using the `PrivateUse1` mechanism described in [this documentation](https://pytorch.org/tutorials/advanced/extend_dispatcher.html) using C++. We've verified the backend is successfully registered from `torch==1.13` to `torch==2.3`, using the below code:
```python
import torch
import torch_neuronx # here we'd call torch.ops.load_library('libtorchneuron.so') which would register our backend via PrivateUse1
print(torch.ops.loaded_libraries) # prints out the above library is loaded
a = torch.rand(1,4).to("privateuseone:0")
```
For `torch==2.4` we see the last line fail with: `ModuleNotFoundError: No module named 'torch.privateuseone'`
Furthermore, if we simply do:
```python
import torch
a = torch.rand(1,4).to("privateuseone:0")
```
We see differing behavior in the two mentioned torch version groups. For the non pt2.4 versions, we see the below error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NotImplementedError: Could not run 'aten::empty_strided' with arguments from the 'PrivateUse1' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'aten::empty_strided' is only available for these backends: [CPU, CUDA, Meta, QuantizedCPU, QuantizedCUDA, BackendSelect, Python, FuncTorchDynamicLayerBackMode, Functionalize, Named, Conjugate, Negative, ZeroTensor, ADInplaceOrView, AutogradOther, AutogradCPU, AutogradCUDA, AutogradHIP, AutogradXLA, AutogradMPS, AutogradIPU, AutogradXPU, AutogradHPU, AutogradVE, AutogradLazy, AutogradMTIA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, AutogradMeta, AutogradNestedTensor, Tracer, AutocastCPU, AutocastCUDA, FuncTorchBatched, BatchedNestedTensor, FuncTorchVmapMode, Batched, VmapMode, FuncTorchGradWrapper, PythonTLSSnapshot, FuncTorchDynamicLayerFrontMode, PreDispatch, PythonDispatcher].
CPU: registered at aten/src/ATen/RegisterCPU.cpp:31419 [kernel]
CUDA: registered at aten/src/ATen/RegisterCUDA.cpp:44504 [kernel]
Meta: registered at aten/src/ATen/RegisterMeta.cpp:26984 [kernel]
QuantizedCPU: registered at aten/src/ATen/RegisterQuantizedCPU.cpp:951 [kernel]
QuantizedCUDA: registered at aten/src/ATen/RegisterQuantizedCUDA.cpp:459 [kernel]
BackendSelect: registered at aten/src/ATen/RegisterBackendSelect.cpp:807 [kernel]
Python: registered at ../aten/src/ATen/core/PythonFallbackKernel.cpp:154 [backend fallback]
FuncTorchDynamicLayerBackMode: registered at ../aten/src/ATen/functorch/DynamicLayer.cpp:497 [backend fallback]
Functionalize: registered at ../aten/src/ATen/FunctionalizeFallbackKernel.cpp:324 [backend fallback]
Named: registered at ../aten/src/ATen/core/NamedRegistrations.cpp:7 [backend fallback]
Conjugate: fallthrough registered at ../aten/src/ATen/ConjugateFallback.cpp:21 [kernel]
Negative: fallthrough registered at ../aten/src/ATen/native/NegateFallback.cpp:22 [kernel]
ZeroTensor: fallthrough registered at ../aten/src/ATen/ZeroTensorFallback.cpp:90 [kernel]
ADInplaceOrView: fallthrough registered at ../aten/src/ATen/core/VariableFallbackKernel.cpp:86 [backend fallback]
AutogradOther: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradCPU: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradCUDA: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradHIP: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradXLA: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradMPS: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradIPU: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradXPU: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradHPU: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradVE: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradLazy: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradMTIA: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradPrivateUse1: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradPrivateUse2: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradPrivateUse3: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradMeta: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
AutogradNestedTensor: registered at ../torch/csrc/autograd/generated/VariableType_2.cpp:19078 [autograd kernel]
Tracer: registered at ../torch/csrc/autograd/generated/TraceType_2.cpp:17415 [kernel]
AutocastCPU: fallthrough registered at ../aten/src/ATen/autocast_mode.cpp:378 [backend fallback]
AutocastCUDA: fallthrough registered at ../aten/src/ATen/autocast_mode.cpp:244 [backend fallback]
FuncTorchBatched: registered at ../aten/src/ATen/functorch/LegacyBatchingRegistrations.cpp:731 [backend fallback]
BatchedNestedTensor: registered at ../aten/src/ATen/functorch/LegacyBatchingRegistrations.cpp:758 [backend fallback]
FuncTorchVmapMode: fallthrough registered at ../aten/src/ATen/functorch/VmapModeRegistrations.cpp:27 [backend fallback]
Batched: registered at ../aten/src/ATen/LegacyBatchingRegistrations.cpp:1075 [backend fallback]
VmapMode: fallthrough registered at ../aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback]
FuncTorchGradWrapper: registered at ../aten/src/ATen/functorch/TensorWrapper.cpp:202 [backend fallback]
PythonTLSSnapshot: registered at ../aten/src/ATen/core/PythonFallbackKernel.cpp:162 [backend fallback]
FuncTorchDynamicLayerFrontMode: registered at ../aten/src/ATen/functorch/DynamicLayer.cpp:493 [backend fallback]
PreDispatch: registered at ../aten/src/ATen/core/PythonFallbackKernel.cpp:166 [backend fallback]
PythonDispatcher: registered at ../aten/src/ATen/core/PythonFallbackKernel.cpp:158 [backend fallback]
```
This makes sense, because nothing is registered to the `PrivateUseOne` dispatcher.
However for pt2.4, we only see the `ModuleNotFoundError: No module named 'torch.privateuseone'`. This makes me think that there's a change in pt2.4 that hasn't been documented or there's a bug.
Please let me know if more details are required. We'd like to get this issue resolved, as we'd like to have pt2.4 support with the PrivateUseOne backend registration feature. Thanks!
### Versions
```
Collecting environment information...
PyTorch version: 2.4.0+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.35
Python version: 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-1031-aws-x86_64-with-glibc2.35
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Vendor ID: AuthenticAMD
Model name: AMD EPYC 7R13 Processor
CPU family: 25
Model: 1
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 1
Stepping: 1
BogoMIPS: 5299.99
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch topoext invpcid_single ssbd ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr rdpru wbnoinvd arat npt nrip_save vaes vpclmulqdq rdpid
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 512 KiB (16 instances)
L1i cache: 512 KiB (16 instances)
L2 cache: 8 MiB (16 instances)
L3 cache: 64 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-7,16-23
NUMA node1 CPU(s): 8-15,24-31
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
Versions of relevant libraries:
[pip3] numpy==1.25.2
[pip3] torch==2.4.0
[pip3] torch-neuronx==2.4.0.2.4.0
[pip3] torch-xla==2.4.0
[pip3] torchvision==0.16.2
[pip3] triton==3.0.0
[conda] Could not collect
```
cc @NmomoN @mengpenghui @fwenguang @cdzhan @1274085042 @PHLens | triaged,module: PrivateUse1 | low | Critical |
2,482,005,447 | terminal | encountered errors while loading user settings | ### Windows Terminal version
1.20.11781.0
### Windows build number
10.0.26100.1586
### Other Software
_No response_
### Steps to reproduce
launch cmd.exe
### Expected Behavior
No errors, how do I make this go away?
### Actual Behavior
This is what started happening to day on one of my Windows 11 machines and it keeps happening each time I open a new terminal...

| Issue-Bug,Area-Settings,Product-Terminal | low | Critical |
2,482,028,327 | rust | LLVM's peephole-opt pass shreds debug info for aggregate types | I'm filling this here for tracking even though this is entirely an LLVM issue.
Consider this program:
```rust
use std::env;
fn main() {
if env::args().any(|s| s == "Hello, world!") {
println!("Said hello!");
}
}
```
The closure here takes a `String` argument. Looking at the DWARF for this closure:
```
< 7><0x00001c02 GOFF=0x00001c02> DW_TAG_inlined_subroutine
DW_AT_abstract_origin 0x00001b5a<.debug_info+0x00001b5a>
DW_AT_low_pc 0x13d94
DW_AT_high_pc <offset-from-lowpc>78
DW_AT_call_file 0x0000000f /rustc/636d7ff91b9847d6d43c7bbe023568828f6e3246/library/core/src/iter/traits/iterator.rs
DW_AT_call_line 0x00000af7
DW_AT_call_column 0x00000014
< 8><0x00001c17 GOFF=0x00001c17> DW_TAG_formal_parameter
DW_AT_location <loclist at .debug_loc+0x000006c8>
[ 0]<base-address 0x13d30>
[ 1]<offset-pair 0x64, 0xb0> [0x13d94, 0x13de0]DW_OP_reg4 DW_OP_piece 8 DW_OP_reg5 DW_OP_piece 8
DW_AT_abstract_origin 0x00001b71<.debug_info+0x00001b71>
```
we can see that only 16 bytes of the 24 byte `String` are accounted for in the `DW_AT_location` for `s`. If we build with `-Cllvm-args="--disable-peephole"` we instead get.
```
< 7><0x00001c02 GOFF=0x00001c02> DW_TAG_inlined_subroutine
DW_AT_abstract_origin 0x00001b5a<.debug_info+0x00001b5a>
DW_AT_low_pc 0x13d99
DW_AT_high_pc <offset-from-lowpc>73
DW_AT_call_file 0x0000000f /rustc/636d7ff91b9847d6d43c7bbe023568828f6e3246/library/core/src/iter/traits/iterator.rs
DW_AT_call_line 0x00000af7
DW_AT_call_column 0x00000014
< 8><0x00001c17 GOFF=0x00001c17> DW_TAG_formal_parameter
DW_AT_location <loclist at .debug_loc+0x00000716>
[ 0]<base-address 0x13d30>
[ 1]<offset-pair 0x69, 0x6d> [0x13d99, 0x13d9d]DW_OP_reg4 DW_OP_piece 8 DW_OP_reg5 DW_OP_piece 8 DW_OP_reg0 DW_OP_piece 8
[ 2]<offset-pair 0x6d, 0xb0> [0x13d9d, 0x13de0]DW_OP_reg4 DW_OP_piece 8 DW_OP_reg5 DW_OP_piece 8
DW_AT_abstract_origin 0x00001b71<.debug_info+0x00001b71>
```
We can see here that (at least at the beginning of the closure) all 24 bytes of the `String` are accounted for. It's clear that some form of SROA has split the `String` into its constituent components to fit in registers. It's instructive to look at the assembly for the `--disable-peephole` version first. Annotations mine.
```asm
13d4a: 4c 8d 74 24 30 lea 0x30(%rsp),%r14 # `String` outparam address
[snip]
13d79: 4c 89 f7 mov %r14,%rdi # Outparam address is moved to the first argument slot
[snip]
13d7f: 41 ff d4 call *%r12 # Call a function that will allocate the `String`
13d82: 48 8b 74 24 30 mov 0x30(%rsp),%rsi # Move `String`'s `RawVec`'s cap into %rsi
13d87: 48 89 f0 mov %rsi,%rax
13d8a: 48 f7 d8 neg %rax
13d8d: 70 53 jo 13de2 <_ZN3tmp4main17h1b868ff7e3686bfaE+0xb2>
13d8f: 48 8b 7c 24 38 mov 0x38(%rsp),%rdi # Move `String`'s `RawVec`'s ptr into %rdi
13d94: 48 8b 44 24 40 mov 0x40(%rsp),%rax # Move `String's` len into %rax
13d99: 48 83 e8 0d sub $0xd,%rax # Subtract the length of "Hello, world!" from %rax
13d9d: 75 31 jne 13dd0 <_ZN3tmp4main17h50c4fe792b52af98E+0xa0> # If `String` isn't the same length as "Hello, world!", jump to the deallocation.
[snip partially inlined string comparison]
13dc0: 75 16 jne 13dd8 <_ZN3tmp4main17h50c4fe792b52af98E+0xa8> # Jump to deallocation
13dc2: eb ac jmp 13d70 <_ZN3tmp4main17h50c4fe792b52af98E+0x40> # Compare strings for real
13dc4: 66 66 66 2e 0f 1f 84 data16 data16 cs nopw 0x0(%rax,%rax,1)
13dcb: 00 00 00 00 00
13dd0: 45 31 ed xor %r13d,%r13d
13dd3: 48 85 f6 test %rsi,%rsi
13dd6: 74 98 je 13d70 <_ZN3tmp4main17h50c4fe792b52af98E+0x40>
13dd8: ba 01 00 00 00 mov $0x1,%edx
13ddd: 41 ff d7 call *%r15 # Free the string buffer.
13de0: eb 8e jmp 13d70 <_ZN3tmp4main17h50c4fe792b52af98E+0x40>
```
With LLVM's peephole optimization pass enabled, the assembly is almost the same, except that the compiler fuses the instructions at `13d94/13d99`. That "load to a register and compare" sequence (the `sub` is used solely to set ZF and branch, the actual result is thrown away) is replaced by a direct `cmpq $0xd,0x40(%rsp)`. The peephole pass doesn't make any effort to fix up the debug info though, and instead the 8 bytes of `String`'s `len` are just lost.
@rustbot label: +A-debuginfo | A-LLVM,A-debuginfo,C-bug,WG-llvm,S-waiting-on-LLVM | low | Critical |
2,482,065,413 | go | runtime: frame pointer stored past the stack pointer on arm64, resulting in inaccurate backtraces in LLDB | ### Go version
go version go1.22.6 darwin/arm64
### Output of `go env` in your module/workspace:
```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/larry/Library/Caches/go-build'
GOENV='/Users/larry/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/larry/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/larry/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.22.6/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.22.6/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.6'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/larry/src/go/src/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/zs/c12p66m91mq_vm_88c68lwh00000gp/T/go-build3146866747=/tmp/go-build -gno-record-gcc-switches -fno-common'
```
### What did you do?
Built a [hello world program](https://go.dev/play/p/xY2BPIIxBbk).
```
➜ ~ go build -o hello hello.go
```
run it in a debugger.
```
➜ ~ lldb hello
(lldb) target create "hello"
Current executable set to '/Users/larry/hello' (arm64).
```
Breakpoint on a system function which is called by the go runtime before main.
```
(lldb) b notify_is_valid_token
Breakpoint 1: where = libsystem_notify.dylib`notify_is_valid_token, address = 0x0000000183ce75e8
(lldb) r
Process 82185 launched: '/Users/larry/hello/hello' (arm64)
Process 82185 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x00000001889b75e8 libsystem_notify.dylib`notify_is_valid_token
Target 0: (hello) stopped.
```
Take a backtrace
```
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0: 0x00000001889b75e8 libsystem_notify.dylib`notify_is_valid_token
frame #1: 0x0000000100064db4 hello`runtime.osinit_hack_trampoline.abi0 + 20
frame #2: 0x00000001000637f8 hello`runtime.asmcgocall.abi0 + 200
frame #3: 0x00000001000523fc hello`runtime.libcCall + 92
```
Take a look at `osinit_hack_trampoline`. It saves the frame pointer past the end of the stack.
```
(lldb) up
frame #1: 0x0000000100064db4 hello`runtime.osinit_hack_trampoline.abi0 + 20
(lldb) disas
hello`runtime.osinit_hack_trampoline.abi0:
0x100064da0 <+0>: str x30, [sp, #-0x10]!
0x100064da4 <+4>: stur x29, [sp, #-0x8]
0x100064da8 <+8>: sub x29, sp, #0x8
0x100064dac <+12>: mov x0, xzr
0x100064db0 <+16>: bl 0x10008ce2c
-> 0x100064db4 <+20>: bl 0x10008ce38
0x100064db8 <+24>: ldp x29, x30, [sp, #-0x8]
0x100064dbc <+28>: add sp, sp, #0x10
0x100064dc0 <+32>: ret
0x100064dc4 <+36>: udf #0x0
0x100064dc8 <+40>: udf #0x0
0x100064dcc <+44>: udf #0x0
```
Take a look at the C function it calls. It's function prelude clobbers the frame pointer that go's prelude saved.
```
(lldb) down
frame #0: 0x00000001889b75e8 libsystem_notify.dylib`notify_is_valid_token
libsystem_notify.dylib`notify_is_valid_token:
(lldb) disas
libsystem_notify.dylib`notify_is_valid_token:
-> 0x1889b75e8 <+0>: pacibsp
0x1889b75ec <+4>: sub sp, sp, #0x70
0x1889b75f0 <+8>: stp x22, x21, [sp, #0x40]
0x1889b75f4 <+12>: stp x20, x19, [sp, #0x50]
0x1889b75f8 <+16>: stp x29, x30, [sp, #0x60]
0x1889b75fc <+20>: add x29, sp, #0x60
0x1889b7600 <+24>: mov x19, x0
0x1889b7604 <+28>: adrp x8, 398022
0x1889b7608 <+32>: ldr x8, [x8, #0x320]
0x1889b760c <+36>: ldr x8, [x8]
....
```
Continue past the prelude.
```
(lldb) b -a 0x1889b7600
Breakpoint 2: where = libsystem_notify.dylib`notify_is_valid_token + 24, address = 0x00000001889b7600
(lldb) c
Process 82185 resuming
Process 82185 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
frame #0: 0x00000001889b7600 libsystem_notify.dylib`notify_is_valid_token + 24
libsystem_notify.dylib`notify_is_valid_token:
-> 0x1889b7600 <+24>: mov x19, x0
0x1889b7604 <+28>: adrp x8, 398022
0x1889b7608 <+32>: ldr x8, [x8, #0x320]
0x1889b760c <+36>: ldr x8, [x8]
Target 0: (hello) stopped.
```
Now the backtrace is no longer valid. It has lost frames because the FP got clobbered.
```
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
* frame #0: 0x00000001889b7600 libsystem_notify.dylib`notify_is_valid_token + 24
frame #1: 0x0000000100064db4 hello`runtime.osinit_hack_trampoline.abi0 + 20
(lldb)
```
### What did you see happen?
Backtraces were not accurate because go's function prelude stored the frame pointer past the edge of the stack.
### What did you expect to see?
Accurate backtraces. | NeedsInvestigation,arch-arm64,compiler/runtime | low | Critical |
2,482,075,094 | tensorflow | Using --config=cuda_clang ignores compute capabilities and TensorRT values set by the configuration script | ### Issue type
Build/Install
### Have you reproduced the bug with TensorFlow Nightly?
No
### Source
source
### TensorFlow version
2.17.0
### Custom code
No
### OS platform and distribution
_No response_
### 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?
When running the configuration script, using Clang for CUDA (`--config=cuda_clang`) is an option. When this is enabled, however, the compute capability and TensorRT settings (which set `TF_CUDA_COMPUTE_CAPABILITIES` and `TF_NEED_TENSORRT` respectively) are ignored, as `--config=cuda_clang` [sets these unconditionally](https://github.com/tensorflow/tensorflow/blob/v2.17.0/.bazelrc#L229-L243).
### Standalone code to reproduce the issue
```shell
$ TF_NEED_CUDA=1 TF_CUDA_CLANG=1 TF_CUDA_COMPUTE_CAPABILITIES=sm_87 TF_NEED_TENSORRT=0 ./configure
# The following does not respect the given compute capability and TensorRT options
$ bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow
# As a workaround, the variables can be set manually in the build command
$ bazel build //tensorflow/tools/pip_package:wheel --repo_env=WHEEL_NAME=tensorflow --repo_env=TF_CUDA_COMPUTE_CAPABILITIES=... --repo_env=TF_NEED_TENSORRT=...
```
### Relevant log output
_No response_ | stat:awaiting tensorflower,type:build/install,2.17 | medium | Critical |
2,482,078,673 | godot | TileMapLayer tiles aren't batching | ### Tested versions
reproduced
- v4.3.stable.official [77dcf97d8]
### System information
Ubuntu 22.04.4 LTS, GTX1060 6GB, NVIDIA 535.183.01, Compatibility mode
### Issue description
noticed that Godot 4 `TileMapLayer` tiles aren't batched if tiles not in same texture, even if textures in same atlas. However in Godot 3 tiles are batching (if textures in same atlas)
## godot 4
separate textures, 16x16 rect, 2 tile-types, same atlas texture = **34 drawcalls**

same texture, 16x16 rect, 2 tiles, same atlas = **1 drawcall**

## godot 3
separate textures, 16x16 rect, 2 tile-types, same atlas texture = **2 drawcalls**


### Steps to reproduce
1. run attached files
2. check raster monitor
### Minimal reproduction project (MRP)
[for_godot3.zip](https://github.com/user-attachments/files/16720806/for_godot3.zip)
[for_godot4.zip](https://github.com/user-attachments/files/16720808/for_godot4.zip)
| enhancement,topic:2d,performance | low | Minor |
2,482,119,489 | vscode | [Feature request] I would like to run a command to create a new profile without opening the app because after I want to install an extension | <!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Describe the feature you'd like. -->
Hello!
Firstly, I know the command `code --profile "Blablabla"`. It automatically creates a new profile, but it opens the app.
I do not have a profile called "Codebraid Pandoc" and I wanted to install an extension like:
```sh
code --install-extension published.extension --profile "Codebraid Pandoc"
```
I received the information:
```sh
Profile 'Codebraid Pandoc' not found.
```
I could run the command `code --profile "Codebraid Pandoc"`, but I do not want it to open the app after creating automatically a new empty profile because I also need to install an extension after.
I use the Shell Script to install automatically by user and by profile:
```sh
# Universal and user profile
extensions=("publisher.extension-01" "publisher.extension-02" "publisher.extension-03")
icons_themes=("publisher.icon-theme-extension-01" "publisher.icon-theme-extension-02" "publisher.icon-theme-extension-03")
themes=("publisher.skin-theme-01" "publisher.skin-theme-02" "publisher.skin-theme-03")
install_extensions()
{
local -n items=$1
local type=$2
for item in "${items[@]}"; do
code --install-extension "$item"
echo "Installed $type: $item"
done
}
install_extensions extensions "extension"
install_extensions icons_themes "icons_theme"
# Codebraid Pandoc profile
extensions_for_codebraid_profile=("publisher.extension-for-codebraid-01" "publisher.extension-for-codebraid-02" "publisher.extension-for-codebraid-03")
# Pure Markdown profile
extensions_for_pure_markdown_profile=("publisher.extension-for-pure-markdown-01" "publisher.extension-for-pure-markdown-02" "publisher.extension-for-pure-markdown-03")
install_profile_extensions()
{
local -n items=$1
local profile=$2
for item in "${items[@]}"; do
code --install-extension "$item" --profile "$profile"
done
}
install_profile_extensions extensions_for_codebraid_profile "Codebraid Pandoc"
install_profile_extensions extensions_for_pure_markdown_profile "Pure Markdown"
```
If possible, I also would like to disable an extension when installing it with or without a profile. I know the command `code disable-extension <ext-id>`, but I want to install it and disable it after without opening the app because I am going to install another extension. Maybe it would look like:
```sh
code --install-extension publisher.extension --enable-extension false
code --install-extension publisher.extension --enable-extension false --profile "Codebraid Pandoc"
``` | feature-request,user-profiles | low | Minor |
2,482,128,516 | TypeScript | Readonly shorthand cast for expression where `as const` is forbidden | ### 🔍 Search Terms
readonly, const readonly, readonly cast, readonly cast expression
### ✅ Viability Checklist
- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
### ⭐ Suggestion
Adding a `readonly` modifier keyword to an expression to cast it automatically to its `readonly T` counterpart using the `T` type resulting from the expression.
My main fear is that it could be considered an <q>expression-level syntax</q> and consequently rejected. If this syntax is problematic, is there another possible syntax for providing the same behavior? I have considered `as readonly auto`, but this `auto` keyword should then be introduced in TS.
### 📃 Motivating Example
Assigning a mutable object to a `const` can lead to subtle bugs (or at least, undesired behaviors) if we expect it to not be modified:
```typescript
const t = [1, 2, 3] as const
const doubles = t.map(x => x * 2)
doubles.push(4) // OK!
```
The solution could be to write:
```typescript
const t = [1, 2, 3] as const
const doubles: readonly number[] = t.map(x => x * 2)
// Or: const doubles = t.map(x => x * 2) as readonly number[]
doubles.push(4) // Error!
```
But it is more verbose than necessary, since the actual `T` in the `readonly T` type could be automatically determined based on the expression.
With this proposal, we could just write:
```typescript
const t = [1, 2, 3] as const
const doubles = readonly t.map(x => x * 2)
doubles.push(4) // Error!
```
To cast the expression as its `readonly` equivalent type.
### 💻 Use Cases
The main goal is to make converting a type to its `readonly` counterpart easy to write, to make trivial expressing the appropriate type for `const`-assigned objects to be truly immutable when it is relevant.
The actual solution works, but is too verbose, since it requires to explicitly write the full type of the expression, making it very undesirable to use, and therefore unlikely to be. | Suggestion,Awaiting More Feedback | low | Critical |
2,482,135,582 | rust | Tracking Issue for `string_from_utf8_lossy_owned` | Feature gate: `#![feature(string_from_utf8_lossy_owned)]`
This is a tracking issue for lossy UTF-8 conversion from `Vec<u8>` to `String`.
### Public API
```rust
impl String {
pub fn from_utf8_lossy_owned(v: Vec<u8>) -> String;
}
impl FromUtf8Error {
pub fn into_utf8_lossy(self) -> String {
}
```
### Steps / History
<!--
For larger features, more steps might be involved.
If the feature is changed later, please add those PRs here as well.
-->
- [x] Implementation:
- ACP accepted: https://github.com/rust-lang/libs-team/issues/116
- Implementation PR: #129439
- #130408
- [ ] Final comment period (FCP)[^1]
- [ ] Stabilization PR
<!--
Once the feature has gone through a few release cycles and there are no
unresolved questions left, the feature might be ready for stabilization.
If this feature didn't go through the RFC process, a final comment period
(FCP) is always needed before stabilization. This works as follows:
A library API team member can kick off the stabilization process, at which point
the rfcbot will ask all the team members to verify they agree with
stabilization. Once enough members agree and there are no concerns, the final
comment period begins: this issue will be marked as such and will be listed
in the next This Week in Rust newsletter. If no blocking concerns are raised in
that period of 10 days, a stabilization PR can be opened by anyone.
-->
### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised. If multiple (unrelated) big questions come up, it can be a good idea
to open a separate issue for each, to make it easier to keep track of the
discussions.
It's useful to link any relevant discussions and conclusions (whether on GitHub,
Zulip, or the internals forum) here.
-->
- None yet.
[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
| T-libs-api,C-tracking-issue,F-string_from_utf8_lossy_owned | low | Critical |
2,482,138,206 | godot | Exported variable resets to default after collapsing the structure | ### Tested versions
4.3 Stable
### System information
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 32.0.15.6070) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)
### Issue description
One of two exported variables in a scene will not save anything when changed in the editor.
### Steps to reproduce
I have a scene with two exported variables. One in an Array and I can add things to it just fine. The other, I've tried several different things, but it always resets when I collapse it. For instance if I have it as `@export var cats = Array[Dictionary]`. In the editor, I add a Dictionary element to the 'cats' exported variable. I give the key a String value 'test'. I then add an Array as the value of the test key in the cats array. I add a couple int values into that "test" array. Now I should have the structure below
```
cats [
{"test":[0,1,2,3]}
]
```
I hit ctrl+s to save. I click the button for the 'cats' exported variable to collapse the structure.
Click the 'cats' exported variable button again to look at the structure, and it's all gone. Nothing saved. It's not in the scene file.
I've tried changing variable names, I've tried reloading the project, etc. It always disappaers.
### Minimal reproduction project (MRP)
[test.zip](https://github.com/user-attachments/files/16721430/test.zip)
| topic:editor,needs testing | low | Minor |
2,482,164,168 | pytorch | [FakeTensor] Error: SymIntArrayRef expected to contain only concrete integers in UpSample2D block | ### 🐛 Describe the bug
I was trying to export the DiffSTE model from this [repo](https://github.com/UCSB-NLP-Chang/DiffSTE) to onnx using **dynamo_export**. The model is able to be trained and run inference normally. However, when I export the model, it complains that `RuntimeError: aten/src/ATen/RegisterCompositeExplicitAutograd.cpp:2305: SymIntArrayRef expected to contain only concrete integers` for the UpBlock2D, which is calling the Upsample2D subsequently. I also attach the Dynmo Export report below.
```python
# diffusers/models/unets/unet_2d_blocks.py", line 2685
if self.upsamplers is not None:
for upsampler in self.upsamplers:
hidden_states = upsampler(hidden_states, upsample_size) <--------------- this part
return hidden_states
```
```python
# diffusers/models/upsampling.py", line 171, in forward
hidden_states = F.interpolate(hidden_states, size=output_size, mode="nearest") <--------------- this part
```
# Export Code
``` python
def onnx_export(
model,
model_args: tuple,
output_path: Path,
ordered_input_names,
output_names,
dynamic_axes,
opset,
use_external_data_format=False,
):
output_path.parent.mkdir(parents=True, exist_ok=True)
with torch.no_grad():
model.eval()
export_options = torch.onnx.ExportOptions(dynamic_shapes=True)
if isinstance(model_args, tuple):
torch.onnx.dynamo_export(
model,
*model_args,
export_options=export_options
).save(output_path.as_posix())
else:
torch.onnx.dynamo_export(
model,
model_args,
export_options=export_options
).save(output_path.as_posix())
# UNET
unet_in_channels = model.unet.config.in_channels
unet_path = output_path / "unet" / "model.onnx"
onnx_export(
model.unet,
model_args=(
torch.randn(2, unet_in_channels, img_size // 8, img_size // 8).to(device=device, dtype=dtype),
torch.tensor(100, dtype=torch.float32),
torch.randn(2, num_tokens, config.model.unet.cross_attention_dim["text"]).to(device=device, dtype=dtype),
torch.randn(2, num_tokens, config.model.unet.cross_attention_dim["char"]).to(device=device, dtype=dtype),
),
output_path=unet_path,
ordered_input_names=["sample", "timestep", "text_hidden_states", "char_hidden_states"],
output_names=["out_sample"], # has to be different from "sample" for correct tracing
dynamic_axes={
"sample": {0: "batch", 1: "channels", 2: "height", 3: "width"},
"timestep": {},
"text_hidden_states": {0: "batch", 1: "sequence"},
"char_hidden_states": {0: "batch", 1: "sequence"},
},
opset=opset,
use_external_data_format=True, # UNet is > 2GB, so the weights need to be split
)
unet_model_path = str(unet_path.absolute().as_posix())
unet_dir = os.path.dirname(unet_model_path)
unet = onnx.load(unet_model_path)
# clean up existing tensor files
shutil.rmtree(unet_dir)
os.mkdir(unet_dir)
# collate external tensor files into one
onnx.save_model(
unet,
unet_model_path,
save_as_external_data=True,
all_tensors_to_one_file=True,
location="weights.pb",
convert_attribute=False,
)
del model.unet
```
# Some stack traces
```
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] failed while attempting to run meta for aten._unsafe_index.Tensor
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] Traceback (most recent call last):
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_subclasses/fake_tensor.py", line 1757, in _dispatch_impl
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] r = func(*args, **kwargs)
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_ops.py", line 667, in __call__
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] return self_._op(*args, **kwargs)
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_meta_registrations.py", line 3019, in meta_index_Tensor
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] indices = list(refs._maybe_broadcast(*indices))
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 439, in _maybe_broadcast
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] return tuple(__maybe_broadcast(x, common_shape) for x in args)
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 439, in <genexpr>
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] return tuple(__maybe_broadcast(x, common_shape) for x in args)
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 431, in __maybe_broadcast
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] return x.expand(common_shape)
E0822 23:10:34.280457 139634357630784 torch/_subclasses/fake_tensor.py:1761] RuntimeError: aten/src/ATen/RegisterCompositeExplicitAutograd.cpp:2305: SymIntArrayRef expected to contain only concrete integers
Traceback (most recent call last):
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/exporter.py", line 1504, in dynamo_export
return Exporter(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/exporter.py", line 1236, in export
graph_module = self.options.fx_tracer.generate_fx(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/dynamo_graph_extractor.py", line 233, in generate_fx
return self.pre_export_passes(options, model, graph_module, updated_model_args) # type: ignore[return-value]
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/dynamo_graph_extractor.py", line 243, in pre_export_passes
return exporter.common_pre_export_passes(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/exporter.py", line 1548, in common_pre_export_passes
module = passes.Functionalize(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/diagnostics/infra/decorator.py", line 152, in wrapper
ctx.log_and_raise_if_error(diag)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/diagnostics/infra/context.py", line 369, in log_and_raise_if_error
raise diagnostic.source_exception
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/diagnostics/infra/decorator.py", line 136, in wrapper
return_values = fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/_pass.py", line 278, in run
module = self._run(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/passes/functionalization.py", line 124, in _run
graph_module = proxy_tensor.make_fx(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 1421, in wrapped
return make_fx_tracer.trace(f, *args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 1367, in trace
return self._trace_inner(f, *args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 1354, in _trace_inner
t = dispatch_trace(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_compile.py", line 31, in inner
return disable_fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_dynamo/eval_frame.py", line 600, in _fn
return fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 642, in dispatch_trace
graph = tracer.trace(root, concrete_args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_dynamo/eval_frame.py", line 600, in _fn
return fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/_symbolic_trace.py", line 822, in trace
(self.create_arg(fn(*args)),),
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 660, in wrapped
out = f(*tensors)
File "<string>", line 1, in <lambda>
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/passes/functionalization.py", line 87, in wrapped
out = function(*inputs_functional)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/onnx/_internal/fx/passes/_utils.py", line 31, in wrapped
return torch.fx.Interpreter(graph_module).run(*args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/interpreter.py", line 146, in run
self.env[node] = self.run_node(node)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/interpreter.py", line 203, in run_node
return getattr(self, n.op)(n.target, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/interpreter.py", line 275, in call_function
return target(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_ops.py", line 667, in __call__
return self_._op(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 705, in __torch_function__
return func(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_ops.py", line 667, in __call__
return self_._op(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/utils/_stats.py", line 21, in wrapper
return fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 755, in __torch_dispatch__
return self.inner_torch_dispatch(func, types, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 790, in inner_torch_dispatch
return proxy_call(self, func, self.pre_dispatch, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/fx/experimental/proxy_tensor.py", line 467, in proxy_call
out = func(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_ops.py", line 667, in __call__
return self_._op(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/utils/_stats.py", line 21, in wrapper
return fn(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_subclasses/fake_tensor.py", line 1061, in __torch_dispatch__
return self.dispatch(func, types, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_subclasses/fake_tensor.py", line 1450, in dispatch
return self._cached_dispatch_impl(func, types, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_subclasses/fake_tensor.py", line 1153, in _cached_dispatch_impl
output = self._dispatch_impl(func, types, args, kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_subclasses/fake_tensor.py", line 1757, in _dispatch_impl
r = func(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_ops.py", line 667, in __call__
return self_._op(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_meta_registrations.py", line 3019, in meta_index_Tensor
indices = list(refs._maybe_broadcast(*indices))
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 439, in _maybe_broadcast
return tuple(__maybe_broadcast(x, common_shape) for x in args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 439, in <genexpr>
return tuple(__maybe_broadcast(x, common_shape) for x in args)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/_refs/__init__.py", line 431, in __maybe_broadcast
return x.expand(common_shape)
RuntimeError: aten/src/ATen/RegisterCompositeExplicitAutograd.cpp:2305: SymIntArrayRef expected to contain only concrete integers
While executing %_unsafe_index : [num_users=1] = call_function[target=torch.ops.aten._unsafe_index.Tensor](args = (%div_41, [None, None, %unsqueeze_29, %_to_copy_2]), kwargs = {})
Original traceback:
File "/home/ltruong/synthetic_license_plate/models/diffste/unet_2d_multicondition.py", line 387, in forward
sample = upsample_block(
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/diffusers/models/unets/unet_2d_blocks.py", line 2685, in forward
hidden_states = upsampler(hidden_states, upsample_size)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/home/ltruong/miniconda3/envs/synth/lib/python3.8/site-packages/diffusers/models/upsampling.py", line 171, in forward
hidden_states = F.interpolate(hidden_states, size=output_size, mode="nearest")
```
cc @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @penguinwu @jbschlosser @bhosmer @cpuhrsch @erichan1 @drisspg @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng @eellison
### Versions
```
[pip3] numpy==1.24.4
[pip3] onnx==1.15.0
[pip3] onnx-graphsurgeon==0.5.2
[pip3] onnxoptimizer==0.3.13
[pip3] onnxruntime==1.19.0
[pip3] onnxscript==0.1.0.dev20240822
[pip3] pytorch-lightning==2.4.0
[pip3] torch==2.4.0+cu124
[pip3] torch-fidelity==0.3.0
[pip3] torchaudio==2.4.0+cu124
[pip3] torchmetrics==1.4.0.post0
[pip3] torchtext==0.18.0
[pip3] torchvision==0.19.0+cu124
[pip3] triton==3.0.0
[pip3] tritonclient==2.48.0
[conda] numpy 1.24.4 pypi_0 pypi
[conda] pytorch-lightning 2.4.0 pypi_0 pypi
[conda] torch 2.4.0+cu124 pypi_0 pypi
[conda] torch-fidelity 0.3.0 pypi_0 pypi
[conda] torchaudio 2.4.0+cu124 pypi_0 pypi
[conda] torchmetrics 1.4.0.post0 pypi_0 pypi
[conda] torchtext 0.18.0 pypi_0 pypi
[conda] torchvision 0.19.0+cu124 pypi_0 pypi
[conda] triton 3.0.0 pypi_0 pypi
[conda] tritonclient 2.48.0 pypi_0 pypi
``` | module: onnx,oncall: export | low | Critical |
2,482,184,669 | godot | Some warnings and undefined behavior wehen building godot. | ### Tested versions
- Reproducible in 4.3-stable
### System information
Kubuntu 24.04
### Issue description
Got some error when building with these parameters...
```bash
scons -j4 platform=linuxbsd target=editor
```
here is my custom.py...
```python
# Generated using https://godot-build-options-generator.github.io
production = "yes"
optimize = "size"
deprecated = "no"
module_mono_enabled = "yes"
```
```bash
...
[Initial build] Linking Static Library core/libcore.linuxbsd.editor.x86_64.a ...
Ranlib Library core/libcore.linuxbsd.editor.x86_64.a ...
[Initial build] Linking Program bin/godot.linuxbsd.editor.x86_64.mono ...
modules/mono/csharp_script.h:58: warning: type 'struct CSharpScript' violates the C++ One Definition Rule [-Wodr]
58 | class CSharpScript : public Script {
|
./modules/mono/csharp_script.h:58: note: a different type is defined in another translation unit
58 | class CSharpScript : public Script {
|
modules/mono/csharp_script.h:158: note: the first difference of corresponding definitions is field 'pending_reload_instances'
158 | HashSet<ObjectID> pending_reload_instances;
|
./modules/mono/csharp_script.h:168: note: a field with different name is defined in another translation unit
168 | String source;
|
thirdparty/icu4c/common/udata.cpp:646: warning: type of 'icudt_godot75_dat' does not match original declaration [-Wlto-type-mismatch]
646 | extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
|
thirdparty/icu4c/icudata.gen.h:10: note: 'icudt_godot75_dat' was previously declared here
10 | extern "C" U_EXPORT const unsigned char U_ICUDATA_ENTRY_POINT[] = {
|
./modules/mono/csharp_script.h:59: warning: type of '_get_class_namev' does not match original declaration [-Wlto-type-mismatch]
59 | GDCLASS(CSharpScript, Script);
|
modules/mono/csharp_script.h:59: note: '_get_class_namev' was previously declared here
59 | GDCLASS(CSharpScript, Script);
|
./modules/mono/csharp_script.h:241: warning: type of 'get_documentation' does not match original declaration [-Wlto-type-mismatch]
241 | virtual Vector<DocData::ClassDoc> get_documentation() const override {
|
modules/mono/csharp_script.h:241: note: 'get_documentation' was previously declared here
241 | virtual Vector<DocData::ClassDoc> get_documentation() const override {
|
./modules/mono/csharp_script.h:59: warning: type of 'get_class' does not match original declaration [-Wlto-type-mismatch]
59 | GDCLASS(CSharpScript, Script);
|
modules/mono/csharp_script.h:59: note: 'get_class' was previously declared here
59 | GDCLASS(CSharpScript, Script);
|
thirdparty/vulkan/include/vulkan/vulkan_core.h:1431: warning: type 'VkFormat' violates the C++ One Definition Rule [-Wodr]
1431 | typedef enum VkFormat {
|
thirdparty/libktx/lib/vkformat_enum.h:21: note: an enum with different value name is defined in another translation unit
21 | typedef enum VkFormat {
|
thirdparty/vulkan/include/vulkan/vulkan_core.h:1679: note: name 'VK_FORMAT_R16G16_SFIXED5_NV' differs from name 'VK_FORMAT_ASTC_3x3x3_UNORM_BLOCK_EXT' defined in another translation unit
1679 | VK_FORMAT_R16G16_SFIXED5_NV = 1000464000,
|
thirdparty/libktx/lib/vkformat_enum.h:269: note: mismatching definition
269 | VK_FORMAT_ASTC_3x3x3_UNORM_BLOCK_EXT = 1000288000,
|
In member function 'SingleCellular',
inlined from 'GenNoiseSingle' at ./thirdparty/noise/FastNoiseLite.h:650:34:
./thirdparty/noise/FastNoiseLite.h:1732:33: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
1732 | zPrimed += PrimeZ;
| ^
./thirdparty/noise/FastNoiseLite.h:1715:46: note: within this loop
1715 | for (int zi = zr - 1; zi <= zr + 1; zi++)
| ^
./thirdparty/noise/FastNoiseLite.h:1699:33: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
1699 | zPrimed += PrimeZ;
| ^
./thirdparty/noise/FastNoiseLite.h:1682:46: note: within this loop
1682 | for (int zi = zr - 1; zi <= zr + 1; zi++)
| ^
./thirdparty/noise/FastNoiseLite.h:1666:33: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
1666 | zPrimed += PrimeZ;
| ^
./thirdparty/noise/FastNoiseLite.h:1649:46: note: within this loop
1649 | for (int zi = zr - 1; zi <= zr + 1; zi++)
| ^
```
### Steps to reproduce
Idk I guess just build godot with the same flags as I did.
### Minimal reproduction project (MRP)
NA | bug,topic:buildsystem,needs testing | low | Critical |
2,482,267,791 | rust | Decide whether we want MSRV-gating | There's an open proposal to add an `--msrv` flag to the compiler:
- https://github.com/rust-lang/compiler-team/issues/772
The idea is that this could be used, in a similar way to the current `--edition` flag, to gate lints (or features?) based on the MSRV.
As a process matter, since lang approves new lints and how they are gated, it seems that it might be helpful to T-compiler to know whether and how lang might intend to use this gating. So let's discuss that.
@rustbot labels +T-lang +C-discussion +I-lang-nominated
cc @rust-lang/lang @compiler-errors
| T-lang,C-discussion | low | Critical |
2,482,282,956 | tauri | [bug] DragDropEvent payload position is incorrect | ### Describe the bug
I'm using `getCurrentWebview().onDragDropEvent()` and `event.payload.position`. I'm using `HTMLDivElement.getBoundingClientRect()` to check if the pointer is over a div. It's possible I'm doing this incorrectly.
It does appear that the div is reporting it's own coordinates correctly when I enable the rulers in devtools.
The y position is off (value is too small), so it appears that the pointer is over the div when it's a bit above the top of the div, and not over it when it's a bit above the bottom.
Probably not coincidentally, it appears to align with the bottom of the pointer icon, i.e. the bottom of the green + in the icon image:
<img width="56" alt="image" src="https://github.com/user-attachments/assets/0e78e3e1-07e7-407b-a8d7-0c9b7530a564">
I'm on OSX 14.3.1, M1 chipset.
### Reproduction
A minimal example is here: https://github.com/lendle/dragndrop
I created the app with `npm create tauri-app@latest -- --rc` and made the following changes:
* enabled the `"core:event:default"` permission
* Removed a couple plugins that aren't necessary for the example
* Added a div and handlers in [+page.svelte](https://github.com/lendle/dragndrop/blob/main/src/routes/%2Bpage.svelte#L15-L38)
I've found that it's off by about 28 pixels, and if I adjust the y position by that amount, things work as expected. I have that commented out in the example.
### Expected behavior
The y position of the drag event position should align with the pointy end of the pointer.
### Full `tauri info` output
```text
> drangndrop@0.1.0 tauri
> tauri info
[⚠] Environment
- OS: Mac OS 14.3.1 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.79.0 (129f3b996 2024-06-10) (Homebrew)
✔ cargo: 1.79.0
⚠ rustup: not installed!
If you have rust installed some other way, we recommend uninstalling it
then use rustup instead. Visit https://rustup.rs/
⚠ Rust toolchain: couldn't be detected!
Maybe you don't have rustup installed? if so, Visit https://rustup.rs/
- node: 22.5.1
- npm: 10.8.2
[-] Packages
- tauri [RUST]: 2.0.0-rc.6
- tauri-build [RUST]: 2.0.0-rc.6
- wry [RUST]: 0.42.0
- tao [RUST]: 0.29.1
- @tauri-apps/api [NPM]: 2.0.0-rc.3
- @tauri-apps/cli [NPM]: 2.0.0-rc.7
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
```
### Stack trace
_No response_
### Additional context
_No response_ | type: bug,platform: macOS,status: needs triage | low | Critical |
2,482,331,023 | godot | Slow import with a ton of small files. | ### Tested versions
Reproducible in 4.3 stable, 4.4 https://github.com/godotengine/godot/pull/93064
### System information
Sansung galaxy s23+ Forward mobile
### Issue description
This issue might seem related to https://github.com/godotengine/godot/issues/93877 , but not, because the import is alr using vsync dissabled and update continously, so it not that , and also is not the speed itself because importing each files is instant( due to the minimal size in project.
Anyways , to start with, in a project where you have to import tons of tons of images like over 100k small image files it quite slow, as sure mobile is alrays slower, but taking 2 HOURS to get the import to 50% , is kind of suspicious, as the impprt of each files is instant as most just have small kbs on memory, they are easy to import, and mipmap or compression do not look like they aggregate time( as it still total instant again, they don't even take 1 second to import one) , so the cause must be on something else( also note this can be reproducible on model files tho).
The possible cause:
An idea i had on what is causing the slow import might be that is just processing 1 file after another then repeat, when it has the chance to procced way more at the same time as i said due to importing each being really fast. Another cause might just be the lack of having the import process in parallel, but i am not aware if it there in this side or not..
Ways to solve it?
1. Make the reimport process instead of reading one file at a time, make it proceed like 10 or 20 at the same time as a list and then repeat with other 10 and etc..For it we can use the info we recieved from the mport preparation to classify the files by 10 or 20 as i mentioned.
2. Make the import process to use threads if not done ( idk if it done alr), ie divide the process by the number of threads and each file reimported has it own thread, or even combine it with what i mentioned of processing 10 files at the same time without being blocked on just processing 1 by 1 file.(Edit, it seems it multithreaded alr based on some stuff i heard)
### Steps to reproduce
- Open the project
- Wait for everything is scanned until reimport assets popup.
- Notices how the files reading instantly, are still quite slow to import everythimg
Edit notes: you can also reproduce this easily just by duplicating small files a lot of times, i kind of reproduced it a bit on tps demo by duplicating the models folder multiple times until gettting to 15 gb, but it takes 50 minutes to reimport as it more like over 25k files( though combined with .godot folder it like almost 40 gbs 😅), which further confirms it not the size, but the amount of size on the texture were 1k, 2k and 4k.
### Minimal reproduction project (MRP)
It pretty big so i rediret to it page https://github.com/PMDCollab/SpriteCollab/tree/master | bug,needs testing,topic:import,performance | low | Major |
2,482,331,917 | rust | Should debuginfo special-case vectors? | In #129403 I'm seeing that using array-based SIMD types changes the debug info you get from them, and thus #128866 has in fact already changed the debuginfo you get from platform types like `__m256`.
```diff
// gdb-command:print vi8x16
-// gdb-check:$1 = simd::i8x16 (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
+// gdb-check:$1 = simd::i8x16 ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])
```
Should debug-info notice the `Vector` ABI and emit something that doesn't get double-braced? Or does it not matter and the `([1, 2])` is completely fine so it's not worth changing? | A-debuginfo,T-compiler,WG-debugging | low | Critical |
2,482,377,595 | kubernetes | when 'hostPort' is unset from pre-existing deployment using hostNetwork, it spawns new replicaset but fails to delete pre-existing replicaset | ### What happened?
- i prepared an nginx container to listen on port 9033
- deployed it with a deployment that was configured to use 'hostNetwork: true' and explicitly set 'hostPort: 9033'
- i edited the deployment by simply deleting the 'hostPort' entry
- i then applied the edited deployment manifest
- a second pod was launched, but got stuck in 'Pending' state. The pre-existing pod was not deleted as expected. It kept running
- a second replicaset was launched, but its pod (above) was stuck in pending state. The pre-existing replicaset was not deleted as expected.
```
# diff manifest-original.yaml manifest-tweak.yaml
32d31
< hostPort: 9033
# KUBECONFIG=kconf kubectl apply -f manifest-original.yaml
deployment.apps/myapp created
$ KUBECONFIG=kconf kubectl get rs -n my-system
NAME DESIRED CURRENT READY AGE
myapp-55758c985 1 1 1 8s
$ KUBECONFIG=kconf kubectl get pods -n my-system
NAME READY STATUS RESTARTS AGE
myapp-55758c985-dft2b 1/1 Running 0 20s
$ KUBECONFIG=kconf kubectl apply -f manifest-tweak.yaml
deployment.apps/myapp configured
$ KUBECONFIG=kconf kubectl get rs -n my-system
NAME DESIRED CURRENT READY AGE
myapp-5564fdd866 1 1 0 7s
myapp-55758c985 1 1 1 59s
$ KUBECONFIG=kconf kubectl get pods -n my-system
NAME READY STATUS RESTARTS AGE
myapp-5564fdd866-2wwbg 0/1 Pending 0 18s
myapp-55758c985-dft2b 1/1 Running 0 70s
$ cat manifest-original.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
namespace: my-system
spec:
progressDeadlineSeconds: 600
replicas: 1
selector:
matchLabels:
app: myapp
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: mgr
image: docker-local.artifactory.eng.yadayada.com/tilt/nginx:v0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9033
hostPort: 9033
name: api
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: false
runAsNonRoot: false
dnsPolicy: ClusterFirst
hostNetwork: true
nodeSelector:
node-role.kubernetes.io/control-plane: ""
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: my-sa
serviceAccountName: my-sa
terminationGracePeriodSeconds: 30
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node.kubernetes.io/not-ready
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
$ KUBECONFIG=kconf kubectl version
Client Version: v1.29.7
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.10
```
### What did you expect to happen?
- i expected the pre-existing replicaset & its corresponding pod to be completely deleted, and another replicaset created which then successfully runs its pod.
- i did NOT expect the pre-existing replicaset & its corresponding pod to persist, and another replicaset launched whose pod gets stuck in 'Pending' state
### How can we reproduce it (as minimally and precisely as possible)?
- see linux terminal output in "What happened?" section above.
### Anything else we need to know?
_No response_
### Kubernetes version
<details>
```console
$ KUBECONFIG=kconf kubectl version
Client Version: v1.29.7
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.10
```
</details>
### Cloud provider
<details>
vsphere
</details>
### OS version
<details>
```console
# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ uname -a
# paste output here
Linux bug-repro-grpch-jrrd4 5.15.0-117-generic #127-Ubuntu SMP Fri Jul 5 20:13:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```
</details>
### Install tools
<details>
</details>
### Container runtime (CRI) and version (if applicable)
<details>
</details>
### Related plugins (CNI, CSI, ...) and versions (if applicable)
<details>
</details>
| kind/bug,sig/apps,needs-triage | low | Critical |
2,482,387,639 | godot | CanvasTexture can't use AtlasTexture as an input for either Diffuse, Normal nor Specular maps | ### Tested versions
- Reproducible in Godot v4.3.stable.official [77dcf97d8]
### System information
Windows 11; Godot 4.3-stable; Forward+
### Issue description
When creating a CanvasTexture and placing an AtlasTexture as one of the input inside the CanvasTexture, it will only generate a white rectangle (that sometimes disappears). CanvasTexture works well with a regular CompressedTexture2D.
### Steps to reproduce
1. Create Sprite2D
2. Assign it a new CanvasTexture
3. In the CanvasTexture assign a new AtlasTexture as Diffuse
4. Configure the AtlasTexture by dragging in a .png file and choosing a region
5. BAM! White rectangle :(
### Minimal reproduction project (MRP)
So basic that it's not really needed. | discussion,documentation,topic:2d | low | Minor |
2,482,408,950 | vscode | Commands `Go To Next Change` and `Show Next/Previous Change` do not work in Multi-File diff viewer | <!-- ⚠️⚠️ 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/No
<!-- 🪓 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: N/A
- OS Version: N/A
Steps to Reproduce:
1. Open multi-file diff view
2. None of the commands two `Go To Next Change` (from command palette) work
3. Similarly the `Show Next/Previous Change` doesn't work
Found these while testing the notebook diff viewer. | bug,multi-diff-editor | low | Critical |
2,482,411,509 | flutter | TextOverflow ellipsis with TextStyle height 1 cut off the letter | ### Steps to reproduce
1. `flutter create .`
1. apply code sample
1. see result
### Expected results
Text should show clear, full height
### Actual results
Text cut off under baseline
### Code sample
<details open><summary>Code sample</summary>
```dart
const Text(
'gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg',
overflow: TextOverflow.ellipsis,
style: TextStyle(height: 1),
),
```
</details>
### Screenshots or Video
<details open>
<summary>Screenshots / Video demonstration</summary>

</details>
### Logs
<details open><summary>Logs</summary>
```console
[Paste your logs here]
```
</details>
### Flutter Doctor output
<details open><summary>Doctor output</summary>
```console
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 3.25.0-1.0.pre.102, on Microsoft Windows [Version 10.0.22631.4037], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2024.1)
[√] VS Code, 64-bit edition (version 1.92.2)
[√] Connected device (5 available)
[√] Network resources
! Doctor found issues in 1 category.
```
</details>
| framework,a: typography,has reproducible steps,P2,team-engine,triaged-engine,found in release: 3.24,found in release: 3.25 | low | Major |
2,482,415,710 | kubernetes | Volume expand controller doesn't have a support for the flexvolume plugin | ### What happened?
The flexVolume plugin implements the `ExpandableVolumePlugin` interface, but the expander controller does not add support for it.
- https://github.com/kubernetes/kubernetes/blob/remove-unnecessary-permissions/pkg/controller/volume/expand/expand_controller.go#L118
- https://github.com/kubernetes/kubernetes/blob/remove-unnecessary-permissions/pkg/volume/flexvolume/plugin.go#L59
Is it a bug? the flexVolume plugin has been marked as `deprecated` since v1.23, but it still works.
https://github.com/kubernetes/kubernetes/pull/67851 implemented the Flexvolume resize and said that the flex plugins are not installed on the controller.
@gnufied said that the flex volume plugin IMO does support allowing expansion from control-plane too. It is just that, most deployments typically don't install the flex volume plugin in the control-plane for various reasons, but if they do and plugin implements expandvolume command, then control-plane expansion will work.
> if they do and plugin implements expandvolume command, then control-plane expansion will work.
The prequisite is that the expand controller needs to add support for the flexVolume plugin, but it doesn't now.
What did you expect to happen?
### What did you expect to happen?
One of the following:
- [ ] The expand controller should add support for the flexVolume plugin. (may not be recommended because the flexVolume plugin is deprecated since v1.23. And no users reported this issue in my knowledge)
- [ ] Once the portworx plugin completes csi migration, can we deprecated the expand controller and then remove it in the future. (recommended) but flex plugin also optionally supports attach which can be executed from control-plane. it means that the flex plugin can be installed on the controller.
### How can we reproduce it (as minimally and precisely as possible)?
NONE
### Anything else we need to know?
_No response_
### Kubernetes version
<details>
```console
All supported versions
```
</details>
### Cloud provider
<details>
NONE
</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>
| kind/bug,sig/storage,lifecycle/frozen,triage/accepted | low | Critical |
2,482,416,442 | vscode | VSC crashes at launch installed ver: code_1.92.2-1723660989_amd64.deb | <!-- ⚠️⚠️ 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/No 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.92.2-1723660989
- OS Version: ubuntu 24.04
Steps to Reproduce:
1. VSC crashes on launch.
2. AMDGPU drivers installed for rocm support.
3. Tried code --disable-gpu, code --in-process-gpu, code --disable-extensions, tried removing mesa-va-drivers,
4. code --verbose output: "failed to load driver: radeonsi
failed to load driver: radeonsi
[123281:0823/120127.814239:ERROR:angle_platform_impl.cc(44)] Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[123281:0823/120127.814359:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[123281:0823/120127.814418:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[123281:0823/120127.815492:ERROR:angle_platform_impl.cc(44)] Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[123281:0823/120127.815544:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[123281:0823/120127.815572:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[123281:0823/120127.815599:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[123281:0823/120127.815633:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[123281:0823/120127.847426:ERROR:angle_platform_impl.cc(44)] Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[123281:0823/120127.847533:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[123281:0823/120127.847561:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[123281:0823/120127.848320:ERROR:angle_platform_impl.cc(44)] Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1086 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[123281:0823/120127.848400:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[123281:0823/120127.848427:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[123281:0823/120127.848452:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[123281:0823/120127.848477:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[123281:0823/120127.849560:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120128.091362:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120128.091375:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 1 time(s)
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120128.331360:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120128.331374:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 2 time(s)
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120128.563966:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120128.563980:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 3 time(s)
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120128.759232:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120128.759246:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 4 time(s)
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120128.951905:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120128.951919:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 5 time(s)
ac: Unknown GPU, using 0 for raster_config
Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)
[123195:0823/120129.149234:ERROR:gpu_process_host.cc(1001)] GPU process exited unexpectedly: exit_code=139
[123195:0823/120129.149248:WARNING:gpu_process_host.cc(1435)] The GPU process has crashed 6 time(s)
[123195:0823/120129.149258:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[0823/120129.155746:ERROR:elf_dynamic_array_reader.h(64)] tag not found
"
| bug,upstream,linux,gpu,chromium,mitigated | low | Critical |
2,482,494,503 | ollama | Issue when running smollm:360m and also smollm:135m | ### What is the issue?
I tried running with the 1.7b version, and it ran successfully.

However, when running these two smaller versions, it shows the following error.

### OS
Windows
### GPU
Nvidia
### CPU
Intel
### Ollama version
0.3.6 | bug | low | Critical |
2,482,563,856 | deno | Suggestion: Add TLS option to `deno serve` command | The `Deno.serve()` method can enable TLS.
If `deno serve` command also had an option to enable TLS, would be easier to build secure server.
For example, like this:
- `--tls-key <file>` ... Path to private key in PEM format
- `--tls-cert <file>` ... Path to server certificate in PEM format
```sh
deno serve --tls-key ./server.key --tls-cert ./server.crt ./server.ts
``` | feat,serve | low | Minor |
2,482,644,036 | vscode | Already in transaction | ```javascript
Error: Already in transaction
at s.transact (https:/<REDACTED: user-file-path>:96:986)
at L.Y (https:/<REDACTED: user-file-path>:163:12999)
at L.Y (https:/<REDACTED: user-file-path>:1345:51366)
at L.ib (https:/<REDACTED: user-file-path>:163:18163)
at o.B (https:/<REDACTED: user-file-path>:90:732)
at o.C (https:/<REDACTED: user-file-path>:90:802)
at o.fire (https:/<REDACTED: user-file-path>:90:1018)
at d.value (https:/<REDACTED: user-file-path>:159:20304)
at o.B (https:/<REDACTED: user-file-path>:90:732)
at o.fire (https:/<REDACTED: user-file-path>:90:949)
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=fee1edb8d6d72a0ddff41e5f71a671c23ed924b9&bH=0e38863c-84bd-c37f-c922-9185ab8ab25b) | error-telemetry | low | Critical |
2,482,646,467 | vscode | [1537] potential listener LEAK detected, having 1090 listeners already. MOST frequent listener (1090): | ```javascript
Error
at c.create in src/vs/base/common/event.ts:921:15
at k.q [as onDidChange] in src/vs/base/common/event.ts:1128:34
at S in src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.ts:158:59
at bindDocumentChangeListeners in src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.ts:171:4
at o.B in src/vs/base/common/event.ts:1230:13
at o.C in src/vs/base/common/event.ts:1241:9
at o.fire in src/vs/base/common/event.ts:1265:9
at E.register in src/vs/editor/common/languageFeatureRegistry.ts:77:21
at w.$registerDocumentSemanticTokensProvider in src/vs/workbench/api/browser/mainThreadLanguageFeatures.ts:525:96
at S in src/vs/workbench/services/extensions/common/rpcProtocol.ts:458:17
at S.Q in src/vs/workbench/services/extensions/common/rpcProtocol.ts:443:32
at S.M in src/vs/workbench/services/extensions/common/rpcProtocol.ts:373:19
at S.L in src/vs/workbench/services/extensions/common/rpcProtocol.ts:299:10
at u.value in src/vs/workbench/services/extensions/common/rpcProtocol.ts:161:57
at o.B in src/vs/base/common/event.ts:1230:13
at o.fire in src/vs/base/common/event.ts:1261:9
at s.fire in src/vs/base/parts/ipc/common/ipc.net.ts:652:19
at b.A in src/vs/base/parts/ipc/common/ipc.net.ts:1022:23
at u.value in src/vs/base/parts/ipc/common/ipc.net.ts:879:72
at o.B in src/vs/base/common/event.ts:1230:13
at o.fire in src/vs/base/common/event.ts:1261:9
at h.acceptChunk in src/vs/base/parts/ipc/common/ipc.net.ts:394:21
at <anonymous> in src/vs/base/parts/ipc/common/ipc.net.ts:350:51
at listener in src/vs/platform/remote/browser/browserSocketFactory.ts:231:39
at o.B in src/vs/base/common/event.ts:1230:13
at o.fire in src/vs/base/common/event.ts:1261:9
at j.onload in src/vs/platform/remote/browser/browserSocketFactory.ts:92:17
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=fee1edb8d6d72a0ddff41e5f71a671c23ed924b9&bH=1a31847f-6ccb-a4f4-dfd3-ddd2d13b373b) | error-telemetry | low | Critical |
2,482,701,131 | rust | Negative UI test error annotations | I wish there is a negative assertion, saying that here one shall not expect a `HELP` note.
_Originally posted by @dingxiangfei2009 in https://github.com/rust-lang/rust/pull/107251#discussion_r1725678959_
---
Something that might be nice-to-have is *negative* ui test error annotations, i.e. that we explicitly want to make sure some diagnostic is *not* emitted (analogous to FileCheck `check-NOT` annotations).
Obviously, you can rely on checking the blessed stderr, but a negative ui test annotation could help communicate intent in the test itself and is less prone to accidentally letting the blessed stderr though.
Note: we should probably try to make the directive parser more robust and less hacky before attempting to add more syntax. | A-testsuite,C-enhancement,T-bootstrap,E-medium,A-compiletest,E-needs-design,E-needs-investigation | low | Critical |
2,482,704,714 | neovim | "nvim --headless --listen ..." does not unlink socket on signal exit/Ctrl-C | ### Problem
If Neovim is started with `--headless --listen /some/unix/socket`, and `bind` returns `EADDRINUSE` because the socket file already exists, Neovim does not report any error and just continues running, but will not accept any connections on the socket.
### Steps to reproduce
`nvim --headless --listen ./hello.sock`
(Ctrl-C, check that ./hello.sock exists now)
`nvim --headless --listen ./hello.sock`
(Try to connect via `nvim --remote-ui --server ./hello.sock`)
If needed, use `strace nvim --headless --listen ./hello.sock |& grep hello` to verify that `bind` errors.
### Expected behavior
Neovim should handle this situation gracefully, either by exiting with an error, or trying to determine if the socket is actually used, and unlinking/recreating it if not.
### Neovim version (nvim -v)
NVIM v0.11.0-dev-655+g6af9ca492
### Vim (not Nvim) behaves the same?
N/A
### Operating system/version
Arch Linux
### Terminal name/version
wezterm
### $TERM environment variable
xterm-256color
### Installation
`neovim-nightly-bin` AUR package (downloads latest github release) | bug,server,complexity:low,startup | low | Critical |
2,482,712,576 | rust | Remove time-boxed `time` inference regression mitigation note | We should remove the `time` inference regression diagnostics note once sufficient time has passed.
Introduced in #129343 to help guide users to update their `time` version.
See https://github.com/rust-lang/rust/pull/129343#issuecomment-2304993629 for more context.
cc @apiraino as you wanted to make sure it gets removed eventually (thank you!) | C-cleanup,A-diagnostics,T-compiler | low | Minor |
2,482,753,729 | vscode | Watch expressions should allow LSP or debugger to remove inner whitespaces | Watch expressions should allow LSP or debugger to remove inner whitespace.
In languages like Dart, most of the time (and even more so in the future with the new tall formatter) you can select multiple lines that represent a single expression and add them to the watch list.
Currently, we end up with lots of whitespaces between every line because of indentation and such. There could be an option for the LSP or debugger to remove inner spaces when that will not interfere with the expression (like spaces inside strings and such should not be removed).
### Edit
This could be expanded to remove trailing `;` and similar as well. | feature-request,debug | low | Critical |
2,482,778,504 | deno | Perf: `structuredClone` runs slow compared to `bun` and `node` | OS: Windows 11
deno version: 1.46.1
bun version: 1.1.25
node version: 21.5.0
Test script:
```js
const testArray = [{
description: 'Random description.',
testNumber: 123456789,
testBoolean: true,
testObject: {
testString: 'test string',
testNumber: 12345
},
testArray: [{
myName: 'test name',
myNumber: 123245
}]
},{
description: 'Random description.',
testNumber: 123456789,
testBoolean: true,
testObject: {
testString: 'test string',
testNumber: 12345
},
testArray: [{
myName: 'test name',
myNumber: 123245
}]
}];
let testCopy = null;
testCopy = structuredClone(testArray);
```
Result:
```bash
hyperfine -N --warmup=100 "node test.js" "bun run test.js" "deno run test.js"
Benchmark 1: node test.js
Time (mean ± σ): 34.6 ms ± 0.8 ms [User: 18.9 ms, System: 14.4 ms]
Range (min … max): 33.4 ms … 37.4 ms 87 runs
Benchmark 2: bun run test.js
Time (mean ± σ): 43.5 ms ± 1.4 ms [User: 18.4 ms, System: 26.3 ms]
Range (min … max): 41.6 ms … 48.0 ms 63 runs
Benchmark 3: deno run test.js
Time (mean ± σ): 93.5 ms ± 1.4 ms [User: 21.7 ms, System: 18.1 ms]
Range (min … max): 90.4 ms … 96.1 ms 31 runs
Summary
node test.js ran
1.26 ± 0.05 times faster than bun run test.js
2.70 ± 0.08 times faster than deno run test.js
```
It seems that other 2 runtime implements it in native. | perf,needs investigation | low | Major |
2,482,789,321 | PowerToys | Advanced Paste clipboard concatenation | ### Description of the new feature / enhancement
Similar to how copy and paste works with Alfred on Mac, pressing Ctrl+C twice in quick succession would add the current clipboard selection to the previous one.
### Scenario when this would be used?
When copying large pieces of text across multiple documents, cross-referencing from multiple sources, etc.
### Supporting information
_No response_ | Idea-Enhancement,Needs-Triage,Product-Advanced Paste | low | Minor |
2,482,831,932 | TypeScript | Optimal TS monorepos: how to handle project references when projects opt out of composite within dependency chain | ### 🔎 Search Terms
project references
no output
### 🕗 Version & Regression Information
N/A
### ⏯ Playground Link
N/A
### 💻 Code
```ts
// Your code here
```
### 🙁 Actual behavior
Please see full description, repro and video walkthrough
### 🙂 Expected behavior
Please see full description, repro and video walkthrough
### Additional information about the issue
I am reporting this as an issue because @jakebailey advised me that that would make sense for any time a Debug Error is reached in TS, but also to get formal guidance from the TS Team on finalizing our new TypeScript plugin for Nx.
As discussed in our sync between our teams a couple of months ago, we are building a new mechanism to sync Nx project graph (derived from package.json files and import and export statements) automatically to configuration files on disk. This is a generic mechanism, but in the context of TS, this applies to syncing project references in tsconfig.json files.
This should allow us to keep Nx out of the way of `tsc` where appropriate (`tsc` will be directly executed by Nx behind the scenes when using `nx typecheck my-ts-proj` or `nx build my-ts-proj` for example) and still allow users to run raw `tsc` if they wish because all the relevant config will live on disk and be up to date thanks to Nx.
The syncing mechanism is working really well already for repo's which can fully stick to `composite: true` throughout the codebase, but we have already run into one case on the https://github.com/typescript-eslint/typescript-eslint (where @jakebailey and @sheetalkamat kindly help out) where a couple of projects needed to opt out of `composite: true` and not emit declaration files at all.
As explained in detail in attached loom covering the reproduction repo, we would like some advice on how we should attempt to handle cases like this in our syncing logic.
The super brief summary of the issue causing it to hit the Debug Failure is:
- Projects: A -> B -> C
- B is opting out of composite
- The root solution file can happily reference all 3 projects as hoped, despite the composite opt out of B
- We want to be able to typecheck A, B and C
- `tsc -b --emitDeclarationOnly` is used for typechecking (intentionally kept distinct from _building_ with `tsc`, producing JS artifacts)
- When typechecking the whole repo, or typechecking just A, we hit the Debug failure because of B not having any outputs before proceeding onto A
**🎥 Context and issue reproduction:** https://www.loom.com/share/84a7098b3d1e4a819bd598ad7fc3ae7f
**🔗 Reproduction repo:** https://github.com/JamesHenry/tsc-composite-false-repro | Needs Investigation | low | Critical |
2,482,844,471 | ui | [bug]: 404 This page could not be found in nextjs production | ### Describe the bug
404
This page could not be found.
### Affected component/components
build issue
### How to reproduce
module.exports = {
output: "standalone",
images: {
domains: ["meethour.s3.amazonaws.com"],
unoptimized: true,
},
};
"scripts": {
"dev": "node app.js",
"build": "next build",
"start": "export NODE_ENV=production && node app.js",
"release": "sh release.sh",
"lint": "npm run pretty && next lint",
"lint-fix": "next lint --fix",
"sass": "node-sass --watch public/scss/main.scss public/css/style.css --source-map public/css/style.css.map",
"pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json}\""
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@reduxjs/toolkit": "^1.9.7",
"axios": "^1.6.7",
"bootstrap": "^5.3.0",
"dompurify": "^3.1.4",
"express": "^4.19.2",
"fs": "^0.0.1-security",
"html-react-parser": "^5.1.10",
"js-sha256": "^0.11.0",
"mdb-react-ui-kit": "^6.2.0",
"metismenujs": "^1.4.0",
"moment": "^2.30.1",
"next": "^14.2.4",
"next-unused": "^0.0.6",
"node-sass": "^9.0.0",
"path": "^0.12.7",
"react": "^18.3.1",
"react-bootstrap": "^2.7.4",
"react-countup": "^6.4.2",
"react-dom": "^18.3.1",
"react-google-recaptcha": "^3.1.0",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.51.1",
"react-loading-skeleton": "^3.4.0",
"react-player": "^2.13.0",
"react-redux": "^8.1.3",
"react-search-autocomplete": "^8.5.2",
"react-share": "^5.1.0",
"react-slick": "^0.29.0",
"react-visibility-sensor": "^5.1.1",
"redux": "^4.2.1",
"sharp": "^0.32.1",
"slick-carousel": "^1.8.1",
"video-react": "^0.16.0",
"wowjs": "^1.1.3"
},
release.sh
#!/bin/bash
NODE_ENV=production
rm -r out out.zip
npm run build && mkdir out
cd ./.next/standalone
cd ../..
cp -r ./.next/standalone/* ./.next/standalone/.next ./public ./slices ./utils ./out
cp -r ./.next/static ./out/.next/static
mv ./out/server.js ./out/app.js
cp ./app.js ./out/app.js
rm -fr ./out/node_modules
cp -r node_modules ./out/node_modules
cp package.json ./out/package.json
zip -r out.zip ./out
rm -fr ./out && rm -fr ./.next
### Codesandbox/StackBlitz link
_No response_
### Logs
```bash
404
This page could not be found.
```
### System Info
```bash
module.exports = {
output: "standalone",
images: {
domains: ["meethour.s3.amazonaws.com"],
unoptimized: true,
},
};
```
### Before submitting
- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues | bug | low | Critical |
2,482,859,457 | TypeScript | The order of values in a union affects the correct type inference | ### 🔎 Search Terms
union order type infer
### 🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about `union` / `order`
### ⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.5.4#code/C4TwDgpgBAshDO8CGBzaBeKBvKB7MwAlrgHbwD8AXFAEoQDGuATgCYA88wThJKANFACuJANYlcAdxIA+KAF8A3ACgloSFAASSEiwA2EJmwAqszAAoAtgmRpqRgJRR0sgG65CLZUpYNdSJtAAZsL0RKRQ8IIARvD03FEQxlAQAB7AEDrwsNaoENJmSlBFUGBIILq4SCyUhcVFAD7YUFaIuXbyUABkTQAW2noG1Fo6+oYm8rV1jTgtNhDUZo7OUEYd3Th9I4Oa-aPGsnK19tRuHl6RMXGECWZYtbNtUItOsrd4BMRk1DP+IhDA1AA5BZfv9AR05PY+LVNgMmAscPgwmR5EtZHc6pjigB6bFQAB65FqcmhkOUQA
### 💻 Code
```ts
type Message = { options?: Record<string, unknown> };
type Handler<T> = (message: T) => void;
declare function subscribe<T extends Message>(
payload:
| { message: T } & { handler: Handler<T> }
| { message: () => T } & { handler: Handler<T> }
): void;
subscribe({
message: () => ({ options: { market: 'market' } }),
handler: ({ options }) => {
// ^? Record<string, unknown>
},
});
```
### 🙁 Actual behavior
`options` type is `Record<string, unknown>`
### 🙂 Expected behavior
`options` type should be inferred as `{ market: string }`
### Additional information about the issue
if you reverse the order of values in the union:
```ts
declare function subscribe<T extends Message>(
payload:
| { message: () => T } & { handler: Handler<T> }
| { message: T } & { handler: Handler<T> }
): void;
```
then the type will be inferred correctly | Help Wanted,Possible Improvement,Union Order Dependence | low | Minor |
2,482,865,013 | deno | Feat: Add a way to detect if a file is run by `deno serve` or `deno run` | **Add a way to detect if a file is run by `deno serve` or `deno run`.**
Maybe add a variable like `Deno.subcommand` which has the type
```typescript
declare namespace Deno {
export const subcommand: "run" | "serve" | "task" | "test" | "bench" | "jupyter" | "repl" | "eval" | "install" | "uninstall" | "add" | "remove";
}
```
In production I want to use `deno serve --parallel` but locally I want to to use `Deno.serve()`. The reason is a bit complicated but basically my default export takes 5-10 seconds before it's exported which delays `deno serve` starting the server by over 5 seconds, however using `Deno.serve()` allows me to start the server almost instantly. In production I don't have the delay.
(N.B. I can't switch to `deno serve` at all because of this blocker #24099 but I want to!.) | cli,suggestion | low | Major |
2,482,875,247 | ollama | Phi3.5 broken behaviour | ### What is the issue?
As mentioned by a few others in https://github.com/ollama/ollama/issues/6449 the phi3.5 models never stop responding and quickly become nonsensical
example:

### OS
WSL2
### GPU
Nvidia
### CPU
AMD
### Ollama version
0.3.6 | bug | low | Critical |
2,482,882,968 | TypeScript | Inlay variance hints | ### 🔍 Search Terms
inlay hints, variance annotations
### ✅ Viability Checklist
- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
### ⭐ Suggestion
Display missing variance annotations for type parameters as inlay hints.
Examples:
```ts
type Ex1<T> = {}
type Ex2</* out */ T> = () => T
type Ex3</* in */ T> = (in: T) => void
type Ex4</* in out */ T> = (in: T) => T
```
### 📃 Motivating Example
It is convenient to know variance of specific type parameters when you're trying to understand how a type works/should be used.
### 💻 Use Cases
Examining complex 3rd party types. | Suggestion,Awaiting More Feedback | low | Minor |
2,482,884,428 | ant-design | Range slider works incorrectly | ### Reproduction link
[https://gyazo.com/e194a7d02a4faf0855993efa444d5c2a](https://gyazo.com/e194a7d02a4faf0855993efa444d5c2a)
### Steps to reproduce
1. hold down the mouse left button
2. select text through the slider https://gyazo.com/9dc434831e262ac8d091139f60b8f9cd
3. release the mouse button
### What is expected?
The slider does not move with the mouse
### What is actually happening?
the slider moves behind the mouse
| Environment | Info |
| --- | --- |
| antd | 5.20.2 |
| React | - |
| System | Mac OS |
| Browser | Chrome 127 |
<!-- generated by ant-design-issue-helper. DO NOT REMOVE --> | help wanted,Inactive | low | Minor |
2,482,892,409 | pytorch | Fix `torch.stft` and `torch.istft` when using `center=False`, non-rectangular windows and `win_length==hop_length` | ### 🚀 The feature, motivation and pitch
Over the past years, multiple issues were opened about using the non-default parameters in `torch.stft` and `torch.istft`. Those issues have not been solved and are still crippling. This is significant as the parameters that can raise errors are commonly used and well motivated in audio signal processing.
This is a non-exhaustive compilation of issues:
- pytorch/audio/issues/427
- pytorch/audio/issues/500
- #62323
- #81428
- #91309
- #118507
- #70073
The importance of those issues is also reflected by the number of re-implementations of iSTFT in audio signal processing repositories (e.g. [this one](https://github.com/charactr-platform/vocos/blob/03c4fcbb321e4b04dd9b5091486eedabf1dc9de0/vocos/spectral_ops.py#L7-L75) by @hubertsiuzdak)
Those issues most commonly happen when setting `center=False` as the NOLA check fails at the edges, or when using windows with zeroes like Hann or the ones proposed by Mauler and Martin in [2007](https://ieeexplore.ieee.org/document/7098797) and [2009](https://doi.org/10.1155/2009/469480) as illustrated by @LXP-Never [here](https://github.com/pytorch/pytorch/issues/62323#issuecomment-1829564313).
The solutions are:
- Adding an option to disable the NOLA check
- Adding support for custom padding
- Fixing the normalization by taking the selected window into account when `normalized=True`.
In my opinion, the current padding is fundamentally wrong and should be reimplemented. As pointed out by @fakufaku [here](https://github.com/pytorch/pytorch/issues/91309#issuecomment-1371755324), the option `center=True` currently does two unrelated things, 1. fitting an integer number of frames and 2. ensuring the signal is invertible by dealing with the first and last samples when using a non-rectangular window, in which case the padding should actually be `win_length - hop_length`, and not `win_length // 2`. As I demonstrated [here](https://github.com/pytorch/pytorch/issues/70073#issuecomment-1495893892), the current padding can cause data loss even when `center=True`!
### Alternatives
_No response_
### Additional context
_No response_
cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @albanD | high priority,triaged,module: python frontend | medium | Critical |
2,482,904,457 | storybook | [Bug]: Local registry process is not killed when sandbox creation fails | ### Describe the bug
If the creation of a sandbox (invoked with `yarn task --task dev --template <> --start-from=install`) fails with some error (say during the `script` execution), then the local registry process is still running in the background and a new run will fail since the port is already taken:

```
shortMessage: 'Command failed with exit code 1: yarn local-registry --publish',
command: 'yarn local-registry --publish',
escapedCommand: '"yarn local-registry --publish"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '📐 reading version of storybook\n' +
'🚛 listing storybook packages\n' +
'🗑 cleaning up cache\n' +
'🎬 starting verdaccio (this takes ±5 seconds, so be patient)\n' +
'\x1B[36minfo \x1B[39m\x1B[37m\x1B[34m---\x1B[37m plugin successfully loaded: \x1B[32mverdaccio\x1B[37m-\x1B[32mauth-memory\x1B[37m\x1B[39m',
stderr: '(node:39764) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\n' +
'(Use `node --trace-deprecation ...` to show where the warning was created)\n' +
'node:events:498\r\n' +
" throw er; // Unhandled 'error' event\r\n" +
' ^\r\n' +
'\r\n' +
'Error: listen EADDRINUSE: address already in use :::6001\r\n' +
' at Server.setupListenHandle [as _listen2] (node:net:1902:16)\r\n' +
' at listenInCluster (node:net:1959:12)\r\n' +
' at Server.listen (node:net:2061:7)\r\n' +
' at D:\\Programming\\storybook\\scripts\\run-registry.ts:65:11\r\n' +
' at new Promise (<anonymous>)\r\n' +
' at startVerdaccio (D:\\Programming\\storybook\\scripts\\run-registry.ts:36:3)\r\n' +
' at run (D:\\Programming\\storybook\\scripts\\run-registry.ts:173:3)\r\n' +
"Emitted 'error' event on Server instance at:\r\n" +
' at emitErrorNT (node:net:1938:8)\r\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {\r\n' +
" code: 'EADDRINUSE',\r\n" +
' errno: -4091,\r\n' +
" syscall: 'listen',\r\n" +
" address: '::',\r\n" +
' port: 6001\r\n' +
'}\r\n' +
'\r\n' +
'Node.js v22.6.0',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
```
### Reproduction link
main repo
### Reproduction steps
_No response_
### System
```bash
latest `next` branch
```
### Additional context
_No response_ | bug,needs triage | low | Critical |
2,482,913,014 | react | [React 19] Upgrading React causes infinite refetching | ## Summary
The reproduction is using Relay, but I came as this seems closer to a bug in React than Relay.
https://stackblitz.com/@cometkim/collections/react-relay-suspend-loop
With this basic setup, using `useLazyLoadQuery` with `network-only` to make a new `fetch()` call on render. The code works fine in v18, but after upgrading to v19, it starts remounting an element infinitely.
- [React v18](https://stackblitz.com/edit/vitejs-vite-ingwz7?file=src%2Fmain.tsx): No issues
- [React v19](https://stackblitz.com/edit/vitejs-vite-ezhrrp?file=src%2Fmain.tsx): No differences, but the children including the suspense boundary is unexpectedly unmounted, resulting in an infinite refetch loop.
- [React v19 workaround 1](https://stackblitz.com/edit/vitejs-vite-jqbsjc?file=src%2Fmain.tsx): Removing `<StrictMode>` seems to solve the issue.
- [React v19 workaround 2](https://stackblitz.com/edit/vitejs-vite-56sxrz?file=src%2Fmain.tsx): Wrap the parent (which is just a context provider with nothing special) by one more `<Suspense>` boundary. It seems to do not make sense, but it works.
The expected behavior is that the `<Suspense>` boundary is retained stable, and the `<NetworkOnly>` is rendered after waiting for the QueryResource fulfilled.
However, this seems to me like the `<Suspense>` could suspend itself.
| React 19 | low | Critical |
2,482,934,031 | langchain | ReAct agent creating own "User Input" and ending up stopping agent with iteration limit | ### Checked other resources
- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
### Example Code
# Agent and Executor setup
```python
agent = create_react_agent(llm, tools, full_prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, handle_parsing_errors=True)
langchain.debug = True```
### Error Message and Stack Trace (if applicable)
Agent stopped due to iteration limit exceeded.
### Description
I was using langchain.agents AgentExecutor, create_react_agent. I got the output for the user input in my chain but it is creating its own user input and keep answering it with the given available tools.
<img width="1512" alt="Screenshot 2024-08-23 at 4 08 40 PM" src="https://github.com/user-attachments/assets/1b9b8537-8ab2-49de-806f-0f85f438b688">
### System Info
langchain==0.2.11
langchain-community==0.2.7
langchain-core==0.2.24
langchain-experimental==0.0.62
langchain-huggingface==0.0.3
langchain-openai==0.1.16
langchain-text-splitters==0.2.1
platform mac
dnspython==2.6.1
opencv-python==4.10.0.82
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.9
| Ɑ: agent,🤖:bug | low | Critical |
2,482,949,317 | vscode | Allow more than 9 items in the title bar | <!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Describe the feature you'd like. -->
Currently, there are only 9 items allowed in the title bar. Is there any specific reason for that?
On the first screenshot, there are only 6 but as soon as I click `Open Changes with Revision...`, and multiple diff-related buttons show up, it’s impossible to have more than 9 in total, despite a lot of free space being available.


| feature-request,workbench-tabs,layout | low | Minor |
2,482,963,010 | pytorch | Kohya SS FLUX LoRA training is way faster on Linux than Windows any ideas to debug? Same settings, libraries and GPU | ### Describe the bug
I am using Kohya SS to train FLUX LoRA
On Linux RTX 3090 gets like 5.5 second / it - batch size 1 and 1024x1024 px resolution
On Windows RTX 3090 TI gets 7.7 second / it - has the most powerful CPU 13900 K
This speed dispercany is huge between Windows and Linux for some reason
Torch upgrade from 2.1 to 2.4 on Linux caused huge speed up and VRAM usage reduction but on Windows only VRAM usage dropped - speed same
Any ideas for how to fix? Using SDPA Cross Attention
I am sharing venv pip freeze of both Windows and Linux
Both has Python 3.10.11
**Windows pip freeze**
```
Microsoft Windows [Version 10.0.19045.4717]
(c) Microsoft Corporation. All rights reserved.
R:\Kohya_GUI_Flux_Installer\kohya_ss\venv\Scripts>activate
(venv) R:\Kohya_GUI_Flux_Installer\kohya_ss\venv\Scripts>pip freeze
absl-py==2.1.0
accelerate==0.33.0
aiofiles==23.2.1
aiohappyeyeballs==2.4.0
aiohttp==3.10.5
aiosignal==1.3.1
altair==4.2.2
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
anyio==4.4.0
appdirs==1.4.4
astunparse==1.6.3
async-timeout==4.0.3
attrs==24.2.0
bitsandbytes==0.43.3
certifi==2022.12.7
charset-normalizer==2.1.1
click==8.1.7
colorama==0.4.6
coloredlogs==15.0.1
contourpy==1.2.1
cycler==0.12.1
dadaptation==3.2
diffusers==0.25.0
docker-pycreds==0.4.0
easygui==0.98.3
einops==0.7.0
entrypoints==0.4
exceptiongroup==1.2.2
fairscale==0.4.13
fastapi==0.112.1
ffmpy==0.4.0
filelock==3.13.1
flatbuffers==24.3.25
fonttools==4.53.1
frozenlist==1.4.1
fsspec==2024.2.0
ftfy==6.1.1
gast==0.6.0
gitdb==4.0.11
GitPython==3.1.43
google-pasta==0.2.0
gradio==4.41.0
gradio_client==1.3.0
grpcio==1.65.5
h11==0.14.0
h5py==3.11.0
httpcore==1.0.5
httpx==0.27.0
huggingface-hub==0.24.5
humanfriendly==10.0
idna==3.4
imagesize==1.4.1
importlib_metadata==8.4.0
importlib_resources==6.4.4
invisible-watermark==0.2.0
Jinja2==3.1.3
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
keras==3.5.0
kiwisolver==1.4.5
libclang==18.1.1
-e git+https://github.com/kohya-ss/sd-scripts.git@e1cd19c0c0ef55709e8eb1e5babe25045f65031f#egg=library&subdirectory=..\..\sd-scripts
lightning-utilities==0.11.6
lion-pytorch==0.0.6
lycoris-lora==2.2.0.post3
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.2
mdurl==0.1.2
ml-dtypes==0.4.0
mpmath==1.3.0
multidict==6.0.5
namex==0.0.8
networkx==3.2.1
numpy==1.26.3
nvidia-cublas-cu12==12.4.2.65
nvidia-cuda-cupti-cu12==12.4.99
nvidia-cuda-nvrtc-cu12==12.4.99
nvidia-cuda-runtime-cu12==12.4.99
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.2.0.44
nvidia-curand-cu12==10.3.5.119
nvidia-cusolver-cu12==11.6.0.99
nvidia-cusparse-cu12==12.3.0.142
nvidia-nvjitlink-cu12==12.4.99
nvidia-nvtx-cu12==12.4.99
omegaconf==2.3.0
onnx==1.16.1
onnxruntime-gpu==1.17.1
open-clip-torch==2.20.0
opencv-python==4.7.0.68
opt-einsum==3.3.0
optree==0.12.1
orjson==3.10.7
packaging==24.1
pandas==2.2.2
pathtools==0.1.2
pillow==10.2.0
prodigyopt==1.0
protobuf==3.20.3
psutil==6.0.0
pydantic==2.8.2
pydantic_core==2.20.1
pydub==0.25.1
Pygments==2.18.0
pyparsing==3.1.2
pyreadline3==3.4.1
python-dateutil==2.9.0.post0
python-multipart==0.0.9
pytorch-lightning==1.9.0
pytz==2024.1
PyWavelets==1.7.0
PyYAML==6.0.2
referencing==0.35.1
regex==2024.7.24
requests==2.32.3
rich==13.7.1
rpds-py==0.20.0
ruff==0.6.1
safetensors==0.4.4
scipy==1.11.4
semantic-version==2.10.0
sentencepiece==0.2.0
sentry-sdk==2.13.0
setproctitle==1.3.3
shellingham==1.5.4
six==1.16.0
smmap==5.0.1
sniffio==1.3.1
starlette==0.38.2
sympy==1.12
tensorboard==2.17.1
tensorboard-data-server==0.7.2
tensorflow==2.17.0
tensorflow-intel==2.17.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==2.4.0
timm==0.6.12
tk==0.1.0
tokenizers==0.19.1
toml==0.10.2
tomlkit==0.12.0
toolz==0.12.1
torch==2.4.0+cu124
torchmetrics==1.4.1
torchvision==0.19.0+cu124
tqdm==4.66.5
transformers==4.44.0
typer==0.12.4
typing_extensions==4.9.0
tzdata==2024.1
urllib3==2.2.2
uvicorn==0.30.6
voluptuous==0.13.1
wandb==0.15.11
wcwidth==0.2.13
websockets==12.0
Werkzeug==3.0.4
wrapt==1.16.0
xformers==0.0.27.post2
yarl==1.9.4
zipp==3.20.0
(venv) R:\Kohya_GUI_Flux_Installer\kohya_ss\venv\Scripts>
```
**Ubuntu pip freeze**
```
(venv) Ubuntu@0054-kci-prxmx10136:~/apps/kohya_ss$ pip freeze
absl-py==2.1.0
accelerate==0.33.0
aiofiles==23.2.1
aiohttp==3.9.5
aiosignal==1.3.1
altair==4.2.2
annotated-types==0.7.0
antlr4-python3-runtime==4.9.3
anyio==4.4.0
appdirs==1.4.4
astunparse==1.6.3
async-timeout==4.0.3
attrs==23.2.0
bitsandbytes==0.43.3
cachetools==5.3.3
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
coloredlogs==15.0.1
contourpy==1.2.1
cycler==0.12.1
dadaptation==3.1
diffusers==0.25.0
dnspython==2.6.1
docker-pycreds==0.4.0
easygui==0.98.3
einops==0.7.0
email_validator==2.1.1
entrypoints==0.4
exceptiongroup==1.2.1
fairscale==0.4.13
fastapi==0.111.0
fastapi-cli==0.0.4
ffmpy==0.3.2
filelock==3.14.0
flatbuffers==24.3.25
fonttools==4.53.0
frozenlist==1.4.1
fsspec==2024.5.0
ftfy==6.1.1
gast==0.5.4
gitdb==4.0.11
GitPython==3.1.43
google-auth==2.29.0
google-auth-oauthlib==1.2.0
google-pasta==0.2.0
gradio==4.41.0
gradio_client==1.3.0
grpcio==1.64.0
h11==0.14.0
h5py==3.11.0
httpcore==1.0.5
httptools==0.6.1
httpx==0.27.0
huggingface-hub==0.24.5
humanfriendly==10.0
idna==3.7
imagesize==1.4.1
importlib_metadata==7.1.0
importlib_resources==6.4.0
invisible-watermark==0.2.0
Jinja2==3.1.4
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
keras==2.15.0
kiwisolver==1.4.5
libclang==18.1.1
-e git+https://github.com/kohya-ss/sd-scripts.git@e1cd19c0c0ef55709e8eb1e5babe25045f65031f#egg=library&subdirectory=../../sd-scripts
lightning-utilities==0.11.2
lion-pytorch==0.0.6
lycoris-lora==2.2.0.post3
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.0
mdurl==0.1.2
ml-dtypes==0.2.0
mpmath==1.3.0
multidict==6.0.5
networkx==3.3
numpy==1.26.4
nvidia-cublas-cu12==12.4.2.65
nvidia-cuda-cupti-cu12==12.4.99
nvidia-cuda-nvrtc-cu12==12.4.99
nvidia-cuda-runtime-cu12==12.4.99
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.2.0.44
nvidia-curand-cu12==10.3.5.119
nvidia-cusolver-cu12==11.6.0.99
nvidia-cusparse-cu12==12.3.0.142
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.4.99
nvidia-nvtx-cu12==12.4.99
oauthlib==3.2.2
omegaconf==2.3.0
onnx==1.16.1
onnxruntime-gpu==1.17.1
open-clip-torch==2.20.0
opencv-python==4.7.0.68
opt-einsum==3.3.0
orjson==3.10.3
packaging==24.0
pandas==2.2.2
pathtools==0.1.2
pillow==10.3.0
prodigyopt==1.0
protobuf==3.20.3
psutil==5.9.8
pyasn1==0.6.0
pyasn1_modules==0.4.0
pydantic==2.7.2
pydantic_core==2.18.3
pydub==0.25.1
Pygments==2.18.0
pyparsing==3.1.2
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.9
pytorch-lightning==1.9.0
pytz==2024.1
PyWavelets==1.6.0
PyYAML==6.0.1
referencing==0.35.1
regex==2024.5.15
requests==2.32.3
requests-oauthlib==2.0.0
rich==13.7.1
rpds-py==0.18.1
rsa==4.9
ruff==0.4.6
safetensors==0.4.2
scipy==1.11.4
semantic-version==2.10.0
sentencepiece==0.2.0
sentry-sdk==2.3.1
setproctitle==1.3.3
shellingham==1.5.4
six==1.16.0
smmap==5.0.1
sniffio==1.3.1
starlette==0.37.2
sympy==1.12.1
tensorboard==2.15.2
tensorboard-data-server==0.7.2
tensorflow==2.15.0.post1
tensorflow-estimator==2.15.0
tensorflow-io-gcs-filesystem==0.37.0
termcolor==2.4.0
timm==0.6.12
tk==0.1.0
tokenizers==0.19.1
toml==0.10.2
tomlkit==0.12.0
toolz==0.12.1
torch==2.4.0+cu124
torchmetrics==1.4.0.post0
torchvision==0.19.0+cu124
tqdm==4.66.4
transformers==4.44.0
triton==3.0.0
typer==0.12.3
typing_extensions==4.12.0
tzdata==2024.1
ujson==5.10.0
urllib3==2.2.1
uvicorn==0.30.0
uvloop==0.19.0
voluptuous==0.13.1
wandb==0.15.11
watchfiles==0.22.0
wcwidth==0.2.13
websockets==11.0.3
Werkzeug==3.0.3
wrapt==1.14.1
xformers==0.0.23.post1+cu118
yarl==1.9.4
zipp==3.19.1
```
cc @msaroufim @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @ptrblck | module: performance,module: windows,module: cuda,triaged | low | Critical |
2,482,964,924 | pytorch | Proposal: When serializing to state_dict/parameters use different separators for ParameterList and ParameterDict | ### 🚀 The feature, motivation and pitch
JAX has the idea of pytrees--combinations of lists, dictionaries, and custom objects which can have subtrees. When working in JAX, a model is represented by a pytree and its parameters are the leaves of the pytree.
I've been writing a pytree to safetensors converter, and I found it convenient to use different separators depending on whether the pytree is a list, dictionary, or object. In particular, I'm using "#" when the subtree is the index of a list, "@" when the subtree is the value of a dictionary, and "." when the subtree is an object.
I like this approach, and I wish PyTorch also used "#" as the separator before the index of ParameterList and "@" as the separator before the value of a ParameterDict, both for interoperability and for readability.
### Alternatives
_No response_
### Additional context
_No response_
cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki | module: nn,module: serialization,triaged,needs research | low | Minor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.