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
524,388,328
bitcoin
gen-manpages output depends on build options, so needs to check them
The [gen-manpages.py](https://github.com/bitcoin/bitcoin/blob/master/contrib/devtools/gen-manpages.py) generates UNIX manual pages based on the `-help` output from the binairies that result from the build. This means that the options documented vary based on the build system settings. In the manual pages that are checked in, we would like to document as many options as possible. Ideally the script needs to check for: - `HAVE_SYSTEM` so that `-alertnotify` and other notifications are documented - `ENABLE_WALLET` so that wallet specific arguments are documented - `USE_UPNP` so that UPnP arguments are documented - `ENABLE_ZMQ` so that ZMQ arguments are documented An alternative would be to generate the manual page from the source code instead (e.g. pick up and parse `AddArg`). This is much more complicated, though, due to use of `strprintf` and such. ## Good first issue The purpose of the `good first issue` label is to highlight which issues are suitable for a new contributor without a deep understanding of the codebase. Useful skills: *shell scripting* Want to work on this issue? You do not need to request permission to start working on this. You are encouraged to comment on the issue if you are planning to work on it. This will help other contributors monitor which issues are actively being addressed and is also an effective way to request assistance if and when you need it. For guidance on contributing, please read [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md) before opening your pull request.
Scripts and tools,good first issue
low
Major
524,402,203
godot
[Bullet] Angular limits in Generic6DOFJoint doesn't work
**Godot version:** 3.1.1 **OS/device including version:** Win 7 **Issue description:** Im trying to use rigid body physics for car simulation with 6DOF Joint Angular limits in Y/Z axis enabled, but wheel still can rotate around Y/Z axis. This parameters doesnt work for me: angular_limit_x/softness angular_limit_x/restitution angular_limit_x/damping angular_limit_x/force_limit **Steps to reproduce:** Arrow keys - control vehicle. Accelerate, turn in any direction - rear wheels will be rotated in Y/Z axis, despite of angular limits ![bug1](https://user-images.githubusercontent.com/6958185/69060534-eaaaee00-0a30-11ea-9909-a6d102325d42.png) **Minimal reproduction project:** [Car Using Physics.zip](https://github.com/godotengine/godot/files/3859023/Car.Using.Physics.zip)
bug,confirmed,topic:physics,topic:3d
low
Critical
524,427,538
go
testing: t.Parallel in a subtest masks races with the outer test function
The following test should reliably fail when run with `-race`, because it has multiple goroutines (via `t.Parallel()`) that all read from the (unsynchronized, changing) loop variable. https://play.golang.org/p/nHo8MaTpS3o ```go func TestParallelRace(t *testing.T) { testCases := []struct { i int }{ {0}, {1}, {2}, } for _, tc := range testCases { t.Run(fmt.Sprint(tc.i), func(t *testing.T) { t.Parallel() t.Log(tc.i) }) } } ``` However, because `t.Parallel` blocks the goroutine until the main test function returns, the race goes undetected: as far as the race detector is concerned, the program unambiguously meant to use only the last value of the loop variable. This unintended synchronization masks real bugs, such as the one reported in #35632. #16520 requests a `vet` check that would detect this and similar cases, but perhaps there is something we can do within the implementation of `t.Parallel` in order to expose these races too. ``` $ go version go version devel +2bde3c13 Mon Nov 18 05:26:46 2019 +0000 linux/amd64 ``` CC @ianthehat @matloob @randall77
NeedsInvestigation
low
Critical
524,473,639
bitcoin
Simpler settings interpretation
Settings code cleanup in #15934 uncovered some surprising ways settings are being interpreted. Most or all of unexpected behaviors should be possible to simplify in some followup changes, and this issue tracks the followups: | Bug | Fix | Notes | - | - | - | | [Ignored network-qualified arguments](https://github.com/bitcoin/bitcoin/blob/397c6d32c8f8a20a3605ef0d51d159adc21fd125/src/util/system.cpp#L334-L337) | #17482 | [Release notes (Command line)](https://github.com/ryanofsky/bitcoin/blob/pr/wdqual/doc/release-notes.md#command-line) [Ignored chain arguments](https://github.com/bitcoin/bitcoin/blob/397c6d32c8f8a20a3605ef0d51d159adc21fd125/src/util/settings.cpp#L73-L78) | _tbd_ [Reversed config precedence](https://github.com/bitcoin/bitcoin/blob/397c6d32c8f8a20a3605ef0d51d159adc21fd125/src/util/settings.cpp#L66-L71) | #17581 | [Release notes (Configuration file)](https://github.com/ryanofsky/bitcoin/blob/pr/wdmult/doc/release-notes.md#configuration-file). PR depends on #17493 to disallow multiple config assignments, which depends #17556 to fix a fragile python test and #17580 to apply `ALLOW_LIST` flags, which depends on #16545 to implement `ALLOW_LIST` flags [Misapplied default section config values](https://github.com/bitcoin/bitcoin/blob/397c6d32c8f8a20a3605ef0d51d159adc21fd125/src/util/settings.cpp#L60-L63) | _tbd_ [Zombie config values](https://github.com/bitcoin/bitcoin/blob/397c6d32c8f8a20a3605ef0d51d159adc21fd125/src/util/settings.cpp#L107-L114) | _tbd_
Utils/log/libs
low
Critical
524,481,913
flutter
Dark Theme for google maps flutter plugin: https://pub.dev/packages/google_maps_flutter
Hi Guys, Is there a dark theme for the google_maps_flutter package?
c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem
low
Major
524,525,019
go
x/tools/cmd/present: remove/hide/disable Native Client for Go 1.14 or newer
Go 1.13 is the last release that runs on Native Client (NaCl), as mentioned at https://golang.org/doc/go1.13#ports. `present` has a flag and mode to use Native Client: ``` $ present -help ... -nacl use Native Client environment playground (prevents non-Go code execution) when using local WebSocket transport ... ``` It won't work with Go 1.14 and newer, so we need to deal with that. First step is coming up with a plan.
help wanted,NeedsInvestigation,Tools
low
Minor
524,528,323
flutter
CupertinoTabScaffold prevents Textfield from gaining focus
I want to put TextField on AppBar. When i tap on TextField keyboard just appear for a second and then it disapear without any debug or error message. <details> <summary>sample code</summary> ```dart import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter/cupertino.dart'; import 'dart:math'; class MainPage extends StatefulWidget { @override _MyMainPageState createState() => _MyMainPageState(); } class _MyMainPageState extends State<MainPage> with SingleTickerProviderStateMixin { final _scaffoldKey = GlobalKey<ScaffoldState>(); GlobalKey globalKey = new GlobalKey(debugLabel: 'btm_app_bar'); final _navigatorKey = GlobalKey<NavigatorState>(); CupertinoTabController _tabController; TextEditingController _txtContrSearch; FocusNode _focusSearch; var rng = new Random(); @override void initState() { super.initState(); _tabController = new CupertinoTabController(); _txtContrSearch=TextEditingController(); _focusSearch = FocusNode(); } @override void dispose() { _tabController.dispose(); _txtContrSearch?.dispose(); _focusSearch?.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( key: _scaffoldKey, backgroundColor: Colors.grey[100], resizeToAvoidBottomInset: false, appBar: AppBar( titleSpacing: 0, leading: GestureDetector( child: Icon(Icons.menu, size: 30, color: Colors.black, ), onTap: () { SystemSound.play(SystemSoundType.click); _scaffoldKey.currentState.openDrawer(); }, ), title: Padding(padding: EdgeInsets.only(right: 5), child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded(flex: 1, child: Container(alignment: Alignment.center, margin: EdgeInsets.only(top: 6, bottom: 5), padding: EdgeInsets.only(left: 5, right: 5), decoration: BoxDecoration(shape: BoxShape.rectangle, borderRadius: BorderRadius.circular(8), color: Colors.white, border: Border.all(width: 1, color: Colors.grey[350]) ), child: CupertinoTextField( controller: _txtContrSearch, focusNode: _focusSearch, decoration: null, textInputAction: TextInputAction.done, onSubmitted: (x) { }, )), ), SizedBox( width: 5, ), SizedBox(height: 40, width: 40, child: Stack(alignment: Alignment.center, children: [ Icon(Icons.chat_bubble_outline, size: 30, color: Color(0xFF6985AB),), Positioned(left: 30/4, top: 6, child: Container(alignment: Alignment.center, height: 13, width: 13, decoration: BoxDecoration(shape: BoxShape.circle, color: Colors.redAccent), child: Text(rng.nextInt(100).toString(), textScaleFactor: 1.0, softWrap: false, overflow: TextOverflow.visible,), )) ])), Icon(AntDesign.getIconData('pushpino'), size: 30, color: Colors.black), ]) ), toolbarOpacity: 1, ), //bottomSheet: _bottomSheet(), drawer: ....drawer(), body: SafeArea(child: CupertinoTabScaffold( resizeToAvoidBottomInset: false, tabBar: CupertinoTabBar( key: globalKey, backgroundColor: Colors.white, activeColor: Colors.blue, inactiveColor: Colors.grey, currentIndex: 0, items: ...getTabItems(), onTap: (x) { SystemSound.play(SystemSoundType.click); }, ), tabBuilder: (_context, _index) { return Container(); } ) ), ); } } ``` </details> If i remove `CupertinoTabScaffold` keyboard appear and work as intended. Tested on Android 7. ## Flutter doctor ``` > Doctor summary (to see all details, run flutter doctor -v): > [√] Flutter (Channel stable, v1.9.1+hotfix.4, on Microsoft Windows [Version 10.0.14393], locale en-US) > > [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) > [√] Android Studio (version 3.4) > [√] IntelliJ IDEA Ultimate Edition (version 2017.2) > [√] Connected device (1 available) > > • No issues found! ```
a: text input,platform-android,framework,f: material design,f: cupertino,has reproducible steps,P3,found in release: 3.3,found in release: 3.6,team-design,triaged-design
low
Critical
524,530,411
go
encoding/xml: struct tag "a>b>c" not valid on XMLName fields
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.13.4 windows/amd64 </pre> ### Does this issue reproduce with the latest release? Yes. ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GOOS=windows GOARCH=amd64 </pre></details> ### What did you do? ```go package main import ( "encoding/xml" "fmt" ) type NestedField struct { Field string `xml:"a>b>c"` } type NestedNameStructTag struct { XMLName xml.Name `xml:"a>b>c"` } type NestedNameValue struct { XMLName xml.Name } func main() { nf := NestedField{} xmlBytes, _ := xml.MarshalIndent(nf, "", " ") fmt.Println(string(xmlBytes)) fmt.Println() nnst := NestedNameStructTag{} xmlBytes, _ = xml.MarshalIndent(nnst, "", " ") fmt.Println(string(xmlBytes)) fmt.Println() nnv := NestedNameValue{XMLName: xml.Name{Local: "a>b>c"}} xmlBytes, _ = xml.MarshalIndent(nnv, "", " ") fmt.Println(string(xmlBytes)) } ``` Output: ```xml <NestedField> <a> <b> <c></c> </b> </a> </NestedField> <a>b>c></a>b>c> <a>b>c></a>b>c> ``` ### What did you expect to see? Nested struct tags on XMLName fields should produce nested elements as shown in the "NestedField" example above. Unless I've missed an exception in the documentation, this is what I expected. ### What did you see instead? The element name used the provided struct tag verbatim without escaping invalid characters or nesting elements as expected. I think it's probably reasonable for marshal to behave this way, but the documentation should be updated to match. ### Related issue: https://github.com/golang/go/issues/2119 encoding/xml: Marshal doesn't understand "parent>child" struct tags
Documentation,NeedsInvestigation
low
Minor
524,539,211
kubernetes
Add Conformance kubectl test for cluster urls not in the form of <ip>:<port>
**What would you like to be added**: kubectl supports a "server" argument where the value could be a base URL/IP address (<ip_addr>:443) or an URL with a path attached (<ip_addr>:443/clusterA). Our e2e tests rely on the former scheme, and we have no e2e tests testing the latter. kubectl already has a unit test for the "<ip_addr>:443/clusterA" format (https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/kubectl/pkg/cmd/config/config_test.go#L165) It'd be beneficial to have this as a Conformance test. **Why is this needed**: This is useful in scenarios where the master is behind a load balancer, and cannot be represented via a base URL/IP address. Even though this currently works out of the box, it'd be useful having a Conformance test to validate this. /sig testing /area conformance /cc @johnbelamaric /cc @ianchakeres
kind/feature,sig/testing,area/conformance,lifecycle/frozen
low
Major
524,543,199
You-Dont-Know-JS
numbersCloseEnoughToEqual function is not valid for all numbers
`numbersCloseEnoughToEqual` function is not valid for all numbers. Try this example ```js numbersCloseEnoughToEqual(2.02 + 1.135, 3.155); // false ``` Please see snippit in the end of this commet https://stackoverflow.com/a/56967003
for second edition
medium
Minor
524,581,457
go
runtime: large address space footprint on 32-bit linux
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.13.4 linux/arm </pre> ### Summary Running a simple golang program on linux/arm (or other 32-bit linux arch) shows ~800MB of the virtual address space is reserved up front: ```golang package main import ( "fmt" "os" "os/exec" ) func main() { cmd := exec.Command("pmap", "-x", fmt.Sprint(os.Getpid())) cmd.Stdout = os.Stdout cmd.Run() } ``` ``` 8627: /tmp/testpmap Address Kbytes RSS Dirty Mode Mapping 00010000 624 444 444 r-x-- testpmap 000b0000 704 176 176 r---- testpmap 00160000 72 36 36 rw--- testpmap 00172000 68 28 28 rw--- [ anon ] 01400000 4096 196 196 rw--- [ anon ] 01800000 524288 0 0 ----- [ anon ] 66cb4000 644 52 52 rw--- [ anon ] 66d55000 264060 0 0 ----- [ anon ] 76f34000 256 32 32 rw--- [ anon ] 76f74000 4 0 0 r-x-- [ anon ] 7ee2c000 132 12 12 rw--- [ stack ] ffff0000 4 0 0 r-x-- [ anon ] -------- ------- ------- ------- total kB 794952 976 976 ``` --- The Linux kernel can be compiled with one of three different vmsplit modes: [VMSPLIT_3G, VMSPLIT_2G, VMSPLIT_1G](http://thinkiii.blogspot.com/2014/02/arm32-linux-kernel-virtual-address-space.html) ![](http://1.bp.blogspot.com/-6l3o55sxVDQ/Uv8nW6TqGMI/AAAAAAAAK7c/iy1EeB0tb90/s1600/source.png) --- I have a golang program that makes heavy use of memory mapped files, and runs on ARM appliances where the vendor has compiled their kernel with VMSPLIT_2G. Since the golang runtime reserves 40% of the available address space up-front, my program is limited in the amount of files it can `mmap` for its own purposes. When the address space is exhausted, bad things happen including panics when trying to spawn threads: ``` runtime/cgo: pthread_create failed: Resource temporarily unavailable SIGABRT: abort PC=0xb68bd6 m=2 sigcode=4294967290 ``` --- The golang runtime documents its memory mappings in malloc.go. The ~800MB reserved is made up of two large reservations: the first is ~258MB and the second is 512MB. https://github.com/golang/go/blob/a23f9afd9899160b525dbc10d01045d9a3f072a0/src/runtime/malloc.go#L541-L545 https://github.com/golang/go/blob/a23f9afd9899160b525dbc10d01045d9a3f072a0/src/runtime/malloc.go#L551-L552 --- The 512MB initial reservation can be tweaked with a patch to `arenaSizes`: https://github.com/golang/go/blob/a23f9afd9899160b525dbc10d01045d9a3f072a0/src/runtime/malloc.go#L586-L592 However, it is not clear to me how I can reduce the ~258MB reservation. The code comment states "We could reserve a smaller amount of space up front if this is problem.", so I'm looking for some guidance on how to do this. Since userspace on 32-bit linux can access a maximum of 3GB of memory (when the kernel is compiled with `VMSPLIT_3G` [which is the default]), it seems like at the very least the 258MB reservation could be reduced by 1/4 to ~198MB. cc @aclements
NeedsInvestigation,compiler/runtime
low
Critical
524,591,342
flutter
A widget that skips / stops / prevents rebuilding it's child(ren)
## Use case In some specific cases it would be great to be able to decide if a specific child should rebuild or not. E.g. I have a widget tree in which I embed another widget from a library or package. This widget itself can be composed out of a lot of different widgets that again can listen to specific events and then react / modify their layout regarding those. Take [MediaQuery](https://api.flutter.dev/flutter/widgets/MediaQuery-class.html) for example. If someone inherits MediaQuery in their widget and then reacts to the change in window insets (e.g. when a keyboard pops up), it may push its contents up on the screen - even when the actual content is not covered by the keyboard. So if I would use the widget in a way the creator did not have in mind (assuming it would always be at the very bottom of the screen so it will pop up when the keyboard is pressed), it may destroy my layout. In order to help with that it would be cool to have a more fine-grained control on what gets rebuilt in some specific cases. It could be a widget that 'locks down' the current state of a specific subtree and skips re-drawing of that child(ren). There's already [TickerMode](https://api.flutter.dev/flutter/widgets/TickerMode-class.html) which prevents animations from playing in the subtree, so why not have a widget that completely skips rebuilding of it's child(ren)? ## Proposal Creating a widget (called 'Freeze, 'Skip', 'Stop' or maybe add the functionality to [RepaintBoundrary](https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html)?) that will completely skip the 're-layouting' / redrawing of it's child(ren) if the corresponding parameter is set to true, e.g. ```dart _shouldSkipDrawing = true; Freeze( frozen: _shouldSkipDrawing; child: Container( child: // beautiful widget tree in here ), ) ```
c: new feature,framework,P3,team-framework,triaged-framework
low
Major
524,603,400
ant-design
Unable to mention a user via email - new search firing after '@' sign before domain - @gmail.com for example.
- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate. ### Reproduction link [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/sad-cohen-p5bs3) ### Steps to reproduce type in `@` then write an email - `[email protected]` ### What is expected? only `[email protected]` should be in the dropdown ### What is actually happening? both `[email protected]` and `[email protected]` appear in the dropdown - this is because the new search fired after second @ sign and the search string is `gaml.com` | Environment | Info | |---|---| | antd | 3.21.1 | | React | 16.10.2 | | System | macOS 10.14.6 | | Browser | chrome | --- Search shouldn't be triggered second time until user selected from dropdown or search cancelled <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
🐛 Bug,Inactive
low
Minor
524,633,656
TypeScript
`extends ArrayBufferLike` works for own package; but causes errors for downstream users
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with the latest published version. It may have already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly --> **TypeScript Version:** 3.5.1 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** + `extends ArrayBufferLike` + TS2312 + An interface can only extend an object type or intersection of object types with statically known members. **Code** Repro, https://github.com/AnyhowStep/ts-issue-35172 The line of code that introduced the problem, https://github.com/AnyhowStep/type-mapping/commit/cb420b8e14dda4de5bf017bcc4a3ab3f35e71de5#diff-f84343d86daf9a112cfa32bdb89c7cdaR2 The following is safe to use on own package and downstream packages, ```ts interface Buffer { ___doesNotExist? : any; } ``` The following causes downstream packages to break, ```ts interface Buffer extends ArrayBufferLike { ___doesNotExist? : any; } ``` **Expected behavior:** Option A: + Should crash for own package + Should crash for downstream packages Option B: + Should not crash for own package + Should not crash for downstream packages **Actual behavior:** + Does not crash for own package + Crashes for downstream packages **Playground Link:** None. But I have repro steps, https://github.com/AnyhowStep/ts-issue-35172 **Related Issues:** None that I could find.
Suggestion,Needs Proposal
low
Critical
524,640,304
rust
cargo doc: add option to document specific private items
## Problem I often find myself wanting to expose documentation for a private API that shouldn't be called directly, but is an important enough implementation detail for the advanced users of my library to benefit from reading it. ## Proposal I want to propose a `#[doc(visible)]` attribute that is analogous to the `#[doc(hidden)]` one. The new attribute would exclude the labeled item from being removed by the [`strip-private`](https://doc.rust-lang.org/rustdoc/passes.html#strip-private) rustdoc pass. ## Alternative solutions considered: ### Making the API public. Solves the problem, but also creates a new one. Especially bad if the API in question is by itself unsafe and relies heavily on implementation of other parts of the library to guarantee safety. I really don't want users to call such an API. ### Fake item I could create a fake public struct / method and add my "hidden" documentation to it. This however does not really solve the problem, as the documentation has links to private items that wouldn't work without making the items public. In addition, it's just a nightmare to debug and support such documentation. ### Module-level documentation Same problem as above, links still will not work. ### `cargo doc --document-private-items` See https://github.com/rust-lang/cargo/issues/1520. Also solves the problem, but creates a new one: it adds a ton of clutter making all the documentation much less readable and useful.
T-rustdoc,C-feature-request
low
Critical
524,667,053
pytorch
CPU Memory Leak for JIT ScriptModule on DataParallel
## 🐛 Bug I am encountering CPU memory leakage issues when training my custom torchscript RNN models in a DataParallel environment. I am implementing custom RNN cells, using torchscript for speedups. These models perform great in a single-GPU environment, and torchscript gives me an ~2.0x speedup. However, when I deploy my models on multiple GPUs using DataParallel, I encounter a CPU memory leak. This leak eventually leads to an overflow that kills the training. I believe that I have determined that the issue stems from torch internal rather than from my own code. A similar issue page https://github.com/pytorch/pytorch/issues/4865, provides the advice that DataParallel leads to CPU leakage when there are cycles in data structures. I wanted to distill whether the issue comes from my own custom RNN layers (which are fairly complex) or if it originates in the interaction between torchscript and DataParallel. To this end, I implemented a simple Linear layer as both a `jit.ScriptModule` and a `nn.Module`. This serves as a minimal stand-in for my more complicated RNN layers to replicate the issue that I am encountering. I ran these Linear layers in inference mode (just forward pass, no training) as DataParallel on a g3.8xlarge AWS instance (2 NVIDIA Tesla M60s). As you will see below, I have validated that the interaction between torchscript and DataParallel leads to CPU memory leakage at a constant rate, independent of model/minibatch size. Although the models explored in this study are toy models, I believe that this gets to the core of the issue that I am experiencing. ## To Reproduce Steps to reproduce the behavior: 1. Implement Linear layer as `nn.Module` and `jit.ScriptModule`: ```python import torch from torch import nn, jit import math import psutil # for tracking CPU memory usage # Regular nn.Module implementation of a Linear layer class Linear(nn.Module): def __init__(self, Din, Dout): super(Linear, self).__init__() self.weight = nn.Parameter(torch.Tensor(Din, Dout)) self.bias = nn.Parameter(torch.Tensor(Dout)) stdv = 1.0/math.sqrt(0.5*(Dout+Din)) def forward(self, x): return torch.mm(x, self.weight) + self.bias # Torchscript implementation of a Linear Layer class jitLinear(jit.ScriptModule): def __init__(self, Din, Dout): super(jitLinear, self).__init__() self.weight = nn.Parameter(torch.Tensor(Din, Dout)) self.bias = nn.Parameter(torch.Tensor(Dout)) stdv = 1.0/math.sqrt(0.5*(Dout+Din)) @jit.script_method def forward(self, x): # type: (Tensor) -> (Tensor) return torch.mm(x, self.weight) + self.bias ``` 2. Define a simple inference loop that measures CPU memory ```python def inference(model, batch_size, Din, device='cuda', N=10000, Nprint=500): model.train(False) cpu_memory = [] for i in range(N): x = torch.randn(batch_size, Din, device=device) y = model(x) # measure CPU memory memory = psutil.virtual_memory().used*1e-9 cpu_memory.append(memory) if i % Nprint == 0: print('Memory: {:.3f} Gb'.format(memory)) return cpu_memory ``` 3. Run inference loop to measure CPU memory for different combinations of layer implementation ('nn.Module' or 'jit.ScriptModule') and multi-GPU (DataParallel or not). ```python # Batch and model size B = 1024 Din = 1024 Dout = 1024 #-----nn.Module------ model = Linear(Din, Dout).to('cuda') nn_memory = inference(model, B, Din) #-----nn.Module + DataParallel----- model = Linear(Din, Dout).to('cuda') model = nn.DataParallel(model) nn_DP_memory = inference(model, B, Din) #-----jit.ScriptModule----- model = jitLinear(Din, Dout).to('cuda') jit_memory = inference(model, B, Din) #-----jit.ScriptModule + DataParallel----- model = jitLinear(Din, Dout).to('cuda') model = nn.DataParallel(model) jit_DP_memory = inference(model, B, Din) #-----jit.ScriptModule + DataParallel, larger minibatch----- # batch size of 2048 instead of 1024 model = jitLinear(Din, Dout).to('cuda') model = nn.DataParallel(model) large_minibatch_jit_DP_memory = inference(model, 2048, Din) #-----jit.ScriptModule + DataParallel, larger model----- # Din=2048 instead of 1024 # Dout = 2048 instead of 1024 model = jitLinear(2048, 2048).to('cuda') model = nn.DataParallel(model) large_model_jit_DP_memory = inference(model, 1024, 2048) ``` ![image](https://user-images.githubusercontent.com/11778463/69099045-b0305980-0a0e-11ea-8807-8a26eb9a0cd5.png) ## Expected behavior I expect the CPU memory to be constant throughout the inference loop. I observe the expected behavior for all combinations except for those that combine torchscript and DataParallel. An interesting observation is that the rate of CPU memory leakage does not seem to be correlated with model size or minibatch size. For all combinations of torchscript and DataParallel, memory leaked at a rate of ~148kb/minibatch. ## Environment PyTorch version: 1.3.0 Is debug build: No CUDA used to build PyTorch: 10.1.243 OS: Ubuntu 16.04.6 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 CMake version: version 3.13.3 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: Tesla M60 GPU 1: Tesla M60 Nvidia driver version: 418.87.00 cuDNN version: Could not collect Versions of relevant libraries: [pip3] numpy==1.15.4 [conda] _pytorch_select 0.2 gpu_0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-service 2.3.0 py36he904b0f_0 [conda] mkl_fft 1.0.14 py36ha843d7b_0 [conda] mkl_random 1.0.2 py36hd81dba3_0 [conda] pytorch 1.3.1 py3.6_cuda10.1.243_cudnn7.6.3_0 pytorch [conda] torch 1.3.0 <pip> [conda] torchaudio 0.3.1 <pip> [conda] torchvision 0.4.2 py36_cu101 pytorch ## Additional context <!-- Add any other context about the problem here. --> cc @suo
oncall: jit,triaged
low
Critical
524,697,991
youtube-dl
Unsupported URL: alphavoice.io
- [x] I'm reporting a new site support request - [x] I've verified that I'm running youtube-dl version **2019.11.05** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that none of provided URLs violate any copyrights - [x] I've searched the bugtracker for similar site support requests including closed ones https://www.alphavoice.io/video/jordan-peterson/the-death-and-resurrection-of-christ-a-commentary-in-five-parts
site-support-request
low
Critical
524,729,338
godot
[3.x] Typing the entire signal name breaks emit_signal autocomplete
**Godot version:** 3.2 beta 1 **OS/device including version:** Windows 10 **Issue description:** Typing the entire signal name wont give you the option to automatically insert quotation marks, and the autocomplete wont appear anymore unless you delete the parenthesis. This may also affect `preload()` file names since it uses a similar autocomplete. **Steps to reproduce:** With a script like this ```GDScript extends Node signal test func _ready() -> void: emit_signal("test") ``` Type `emit_signal(` which will give all the possible signals that can be emitted. Now type `test` entirely. Once the word `test` is completely typed it will no longer show up in the autocomplete list to be selected. This breaks the autocomplete so you have to erase the parenthesis and add the parenthesis again to get the autocomplete back. Here is a demonstration ![gif_output](https://user-images.githubusercontent.com/11450875/69110093-99f2bf80-0a47-11ea-8676-80b99c9b8a1e.gif)
bug,topic:editor,confirmed,usability
low
Minor
524,746,822
TypeScript
Suggestions for property names don't show available keys
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> From https://github.com/microsoft/vscode/issues/84976 <!-- Please try to reproduce the issue with the latest published version. It may have already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly --> **TypeScript Version:** 3.8.0-dev.20191116 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** - suggest / suggestion - completions **Repo** For the code: ```ts interface testObject { 'Type': 'Example 1', 'Option 1': string, 'Option 2': string, 'Option 3': string }; interface otherObject { 'Type': 'Example 2', 'Option 1': string }; class Test { property?: testObject | otherObject; }; const example = new Test(); example.property = { 'Type': 'Example 1', '' } ``` Trigger suggestions inside the `''` in the definition of `example.property` **Expected behavior:** Return suggestions for `'Option 1'`, `'Option 2'`, and `'Option 3'` **Actual behavior:** Only suggestion for `'Option 1'` returned: ``` Trace - 03:11:48.240] <semantic> Response received: completionInfo (16). Request took 1 ms. Success: true Result: { "isGlobalCompletion": false, "isMemberCompletion": true, "isNewIdentifierLocation": false, "entries": [ { "name": "Option 1", "kind": "property", "kindModifiers": "", "sortText": "0" }, { "name": "Type", "kind": "property", "kindModifiers": "", "sortText": "0" } ] } ```
Bug,Help Wanted,Effort: Moderate,Domain: Completion Lists
low
Critical
524,766,914
vue-element-admin
permission 里的next({ ...to, replace: true }) to 加上... 就会出现这个问题Uncaught (in promise) undefined
<!-- 注意:为更好的解决你的问题,请参考模板提供完整信息,准确描述问题,信息不全的 issue 将被关闭。 Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed. --> ## Bug report(问题描述) #### Steps to reproduce(问题复现步骤) <!-- 1. [xxx] 2. [xxx] 3. [xxxx] --> #### Screenshot or Gif(截图或动态图) [https://imgchr.com/i/MgGOYj](https://imgchr.com/i/MgGOYj) [https://imgchr.com/i/MgGLkQ](https://imgchr.com/i/MgGLkQ) #### Link to minimal reproduction(最小可在线还原demo) <!-- Please only use Codepen, JSFiddle, CodeSandbox or a github repo --> #### Other relevant information(格外信息) - Your OS: - Node.js version: - vue-element-admin version:
enhancement :star:
low
Critical
524,835,887
TypeScript
Add a new helper type `Primitive` for JSON
## Search Terms - Primitive - JSON ## Suggestion When you encode an object to a JSON-string and decode the JSON-string to an object again, the object would be primitive. All of the methods defined in the object would be removed and its `prototype` would also be the primitive `Object`. > If the target object has a `toJSON()` method, it would be converted to a pritimive of returned value from the `toJSON()` method. To express those conversions, I suggest a new helper type `Primitive`. I believe that providing the helper type `Primitive` is much better choice rather than hard-coding; enforcing programmers to implement duplicated (primitive) type definition, by themselves, considering the JSON encoding & decoding. Below is the implementation code: ```typescript /** * Primitify a type. * * If target type is an object, all methods defined in the object would be * removed. Also, if the target type has a `toJSON()` method, its return type * would be chosen. * * @typeParam T A type to be primitive */ export type Primitive<Instance> = value_of<Instance> extends object ? Instance extends object ? Instance extends IJsonable<infer Raw> ? value_of<Raw> extends object ? Raw extends object ? PrimitiveObject<Raw> // object would be primitified : never // cannot be : value_of<Raw> // atomic value : PrimitiveObject<Instance> // object would be primitified : never // cannot be : value_of<Instance>; /** * @hidden */ type PrimitiveObject<Instance extends object> = { [P in keyof Instance]: Instance[P] extends Function ? never : Primitive<Instance[P]> }; /** * @hidden */ type value_of<Instance> = is_value_of<Instance, Boolean> extends true ? boolean : is_value_of<Instance, Number> extends true ? number : is_value_of<Instance, String> extends true ? string : Instance; /** * @hidden */ type is_value_of<Instance, Object extends IValueOf<any>> = Instance extends Object ? Object extends IValueOf<infer Primitive> ? Instance extends Primitive ? false : true // not Primitive, but Object : false // cannot be : false; /** * @hidden */ interface IValueOf<T> { valueOf(): T; } ``` ## Use Cases ```typescript interface IMember { id: Number; name: string; email: String; mobile: string; login_histories: LoginHistory[]; } declare class Member { private id_: Number; private name_: string; private email_: String; private mobile_: string; private login_histories_: LoginHistory[]; public activate(password: string): boolean; public isActivated(): boolean; public toJSON(): IMember; } declare class LoginHistory { public readonly timestamp: Date; public readonly success: Boolean; } function main(json: string): void { // Member -> Primitive<ReturnType<Member.prototype.toJSON>> let members: Primitive<Member[]> = JSON.parse(json); // Date -> string throw Date.toJSON() console.log(members[0].login_histories[0].timestamp); } ``` > ```typescript > type Primitive<Member[]> = Array<{ > id: number; // Number -> number > name: string; > email: string; // String -> string > mobile: string; > login_histories: Array<{ > timestamp: string; // Date.toJSON(): string > success: boolean; // Boolean -> boolean > }>; > }>; > ``` ## Checklist My suggestion meets these guidelines: - [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, etc.) - [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Suggestion,Awaiting More Feedback
low
Minor
524,869,112
rust
Borrow checker bug: `cannot return reference to temporary value`
Hi, here is an [example of very strange error](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=94a8a50f292d4414c9bf1fcabe99635b) I have stuck with: ```rust struct Baz { pub foo: &'static str } trait Foo { fn foo() -> &'static str; } trait Bar { fn bar() -> &'static [Baz]; } struct Test; impl Foo for Test { fn foo() -> &'static str { "Hello, World!" } } struct Bat { test: Test } impl Bar for Bat { fn bar() -> &'static [Baz] { use Foo; &[ /// This compiles { Baz { foo: "Hello, World!" } }, /// but, this cause an error "cannot return reference to temporary value" { let foo = "Hello, World!"; Baz { foo } }, /// this cause an error, also { let foo = Test::foo(); Baz { foo } }, /// and this cause an error, too { Baz { foo: Test::foo() } } ] } } ``` and the error message: ``` error[E0515]: cannot return reference to temporary value --> src/lib.rs:29:9 | 29 | &[ | __________^- | | _________| | || 30 | || /// This compiles 31 | || { 32 | || Baz { foo: "Hello, World!" } ... || 50 | || } 51 | || ] | || ^ | ||_________| | |__________returns a reference to data owned by the current function | temporary value created here ```
C-enhancement,A-diagnostics,T-compiler,D-confusing
low
Critical
524,910,921
TypeScript
No information for Error: Debug Failure. No error for last overload signature
**TypeScript Version:** 3.7.2 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** Debug Failure, No error for last overload signature, Typescript 3.7.2, Sonar **Code / Error** Code is not available - executing entity is sonar runner As well formatted image ![image](https://user-images.githubusercontent.com/18653151/69138079-4ff8f080-0abe-11ea-8a0e-a09edf777d20.png) or as code... ``` Analyzing 292 typescript file(s) with the following configuration file /jenkins/workspace/Viper/Nova-Web/trunk/nova/packages/Nova/nova-app/tsconfig.json 00:20:19 00:20:18.347 ERROR - /jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:2137 00:20:19 00:20:18.347 ERROR - throw e; 00:20:19 00:20:18.347 ERROR - ^ 00:20:19 00:20:18.347 ERROR - 00:20:19 00:20:18.347 ERROR - Error: Debug Failure. No error for last overload signature 00:20:19 00:20:18.347 ERROR - at resolveCall (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:55202:38) 00:20:19 00:20:18.348 ERROR - at resolveCallExpression (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:55548:20) 00:20:19 00:20:18.348 ERROR - at resolveSignature (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:55904:28) 00:20:19 00:20:18.348 ERROR - at getResolvedSignature (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:55935:26) 00:20:19 00:20:18.348 ERROR - at getContextualTypeForArgumentAtIndex (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52352:118) 00:20:19 00:20:18.348 ERROR - at getContextualTypeForArgument (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52347:50) 00:20:19 00:20:18.348 ERROR - at getContextualType (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52718:28) 00:20:19 00:20:18.348 ERROR - at getApparentTypeOfContextualType (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52620:17) 00:20:19 00:20:18.348 ERROR - at getContextualSignature (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52924:24) 00:20:19 00:20:18.348 ERROR - at getContextuallyTypedParameterType (/jenkins/workspace/Viper/Nova-Web/trunk/nova/node_modules/typescript/lib/typescript.js:52200:39) 00:20:19 00:20:18.390 ERROR - External process `node --max-old-space-size=2048 /jenkins/workspace/Viper/Nova-Web/trunk/nova/packages/Nova/nova-app/.sonar/sonarts-bundle/node_modules/tslint-sonarts/bin/tsrunner` returned an empty output. Run with -X for more information ``` **Expected behavior:** Should give some additional information what the problem is **Actual behavior:** When looking at the error, I have no idea if it's an issue with my application code, with sonar or with typescript itself
Needs Investigation,Crash
low
Critical
524,980,817
neovim
setqflist called from autocmd does not change current qf list
<!-- Before reporting: search existing issues and check the FAQ. --> - `nvim --version`: NVIM v0.4.3 - `vim -u DEFAULTS` (version: 8.1, patches 1-2268) behaves the same. - Operating system/version: Arch Linux - Terminal name/version: termite v15 - `$TERM`: xterm-termite ### Steps to reproduce using `nvim -u NONE` ``` nvim -u NONE your-project mistype something to populate qf list :autocmd QuickFixCmdPost make call setqflist([], "a", {"nr": 2, "items": []}) :make :cwindow :chistory ``` ### Actual behaviour After qf list is populated, the autocmd above creates another qf list at index 2. The initial qf list is still selected: ``` > error list 1 of 2; 13 errors :make error list 2 of 2; 0 errors :setqflist() ``` ### Expected behaviour After qf list is populated, the autocmd above should create another qf list at index 2 and set it as the selected. Like when I call `setqflist` manually after `:make`. ``` error list 1 of 2; 13 errors :make > error list 2 of 2; 0 errors :setqflist() ```
bug-vim
low
Critical
525,005,718
material-ui
[Autocomplete] support pagination on Asynchronous requests
Would be very nice to add any ability for support pagination on Asynchronous requests Many resources have limitations on requests and we can not get all results at once Also reading everything page by page can lead to exceed limit of requests and it will be too slow We would likely need to extend the API: ```diff diff --git a/packages/material-ui/src/Autocomplete/Autocomplete.d.ts b/packages/material-ui/src/Autocomplete/Autocomplete.d.ts index a2929c4867..39fa7130b3 100644 --- a/packages/material-ui/src/Autocomplete/Autocomplete.d.ts +++ b/packages/material-ui/src/Autocomplete/Autocomplete.d.ts @@ -143,6 +143,11 @@ export interface AutocompleteProps< * @default false */ loading?: boolean; + /** + * If `true`, the `loadingMoreText` message is displayed at the bottom of the displayed options. + * @default false + */ + loadingMore?: boolean; /** * Text to display when in a loading state. * @@ -150,6 +155,13 @@ export interface AutocompleteProps< * @default 'Loading…' */ loadingText?: React.ReactNode; + /** + * Text to display when in a loading more state. + * + * For localization purposes, you can use the provided [translations](/guides/localization/). + * @default 'Loading more…' + */ + loadingMoreText?: React.ReactNode; /** * The maximum number of tags that will be visible when not focused. * Set `-1` to disable the limit. ``` <img width="457" alt="Capture d’écran 2021-07-24 à 19 24 53" src="https://user-images.githubusercontent.com/3165635/126876529-285878f9-02c5-4983-b4d3-d7630ca4af2f.png"> ### Benchmark - https://github.com/JedWatson/react-select/pull/1237 - https://select2.org/data-sources/ajax#pagination
new feature,component: autocomplete,ready to take
high
Major
525,130,220
flutter
[local_auth] plugin drops error in logs (but keeps working)
While using Flutter local_auth plugin I'm facing some error dropped into Run log. It isn't blocking me (all functionality is working) but bothering. Code causing this: ``` LocalAuthentication().authenticateWithBiometrics( stickyAuth: true); ``` Piece of my Android Manifest: ``` <application android:name=".Application" android:label="my-label" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/Theme.AppCompat.Light.NoActionBar" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> ... ``` MainActivity: ``` package com.example.project; import android.os.Bundle; import io.flutter.app.FlutterFragmentActivity; import io.flutter.plugins.GeneratedPluginRegistrant; public class MainActivity extends FlutterFragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); GeneratedPluginRegistrant.registerWith(this); } } ``` Log: ``` I/zygote64(12466): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk"],nativeLibraryDirectories=[/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/lib/arm64, /data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] I/zygote64(12466): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): I/zygote64(12466): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk"],nativeLibraryDirectories=[/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/lib/arm64, /data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] I/zygote64(12466): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): I/zygote64(12466): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk"],nativeLibraryDirectories=[/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/lib/arm64, /data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] I/zygote64(12466): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): I/zygote64(12466): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): at void androidx.appcompat.app.AlertController.installContent() (AlertController.java:232) I/zygote64(12466): at void androidx.appcompat.app.AlertDialog.onCreate(android.os.Bundle) (AlertDialog.java:279) I/zygote64(12466): at void android.app.Dialog.dispatchOnCreate(android.os.Bundle) (Dialog.java:403) I/zygote64(12466): at void android.app.Dialog.show() (Dialog.java:302) I/zygote64(12466): at void androidx.fragment.app.DialogFragment.onStart() (DialogFragment.java:486) I/zygote64(12466): at void androidx.fragment.app.Fragment.performStart() (Fragment.java:2627) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(androidx.fragment.app.Fragment, int, int, int, boolean) (FragmentManagerImpl.java:915) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManagerImpl.java:1238) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.moveToState(int, boolean) (FragmentManagerImpl.java:1303) I/zygote64(12466): at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:439) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:2076) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManagerImpl.java:1866) I/zygote64(12466): at void androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManagerImpl.java:1821) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.execPendingActions() (FragmentManagerImpl.java:1727) I/zygote64(12466): at boolean androidx.fragment.app.FragmentManagerImpl.executePendingTransactions() (FragmentManagerImpl.java:183) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticateInternal(androidx.biometric.BiometricPrompt$PromptInfo, androidx.biometric.BiometricPrompt$CryptoObject) (BiometricPrompt.java:749) I/zygote64(12466): at void androidx.biometric.BiometricPrompt.authenticate(androidx.biometric.BiometricPrompt$PromptInfo) (BiometricPrompt.java:658) I/zygote64(12466): at void io.flutter.plugins.localauth.AuthenticationHelper.authenticate() (AuthenticationHelper.java:87) I/zygote64(12466): at void io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result) (LocalAuthPlugin.java:88) I/zygote64(12466): at void io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(java.nio.ByteBuffer, io.flutter.plugin.common.BinaryMessenger$BinaryReply) (MethodChannel.java:231) I/zygote64(12466): at void io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(java.lang.String, byte[], int) (DartMessenger.java:93) I/zygote64(12466): at void io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(java.lang.String, byte[], int) (FlutterJNI.java:642) I/zygote64(12466): at void android.os.MessageQueue.nativePollOnce(long, int) (MessageQueue.java:-2) I/zygote64(12466): at android.os.Message android.os.MessageQueue.next() (MessageQueue.java:375) I/zygote64(12466): at void android.os.Looper.loop() (Looper.java:225) I/zygote64(12466): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6589) I/zygote64(12466): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) I/zygote64(12466): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) I/zygote64(12466): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) I/zygote64(12466): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk"],nativeLibraryDirectories=[/data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/lib/arm64, /data/app/com.edu.profit-7pndPzn1kTGHhzFp77M_Ow==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]] I/zygote64(12466): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) I/zygote64(12466): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) I/zygote64(12466): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2421) I/zygote64(12466): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:769) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542) I/zygote64(12466): at void androidx.appcompat.app.AppCompatDialog.setContentView(int) (AppCompatDialog.java:95) I/zygote64(12466): Do full code cache collection, code=123KB, data=88KB I/zygote64(12466): After code cache collection, code=83KB, data=42KB I/flutter (12466): unhandled element title; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#058ff(), name: "assets/images/ic_fingerprint.svg", colorFilter: null) I/flutter (12466): unhandled element desc; Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#058ff(), name: "assets/images/ic_fingerprint.svg", colorFilter: null) I/zygote64(12466): Do partial code cache collection, code=90KB, data=56KB I/zygote64(12466): After code cache collection, code=90KB, data=56KB I/zygote64(12466): Increasing code cache capacity to 512KB ``` Flutter doctor ``` [✓] Flutter (Channel master, v1.12.1-pre.8, on Mac OS X 10.15 19A602, locale ru-UA) • Flutter version 1.12.1-pre.8 at /Users/reiven/flutter • Framework revision e7073f9a1f (10 days ago), 2019-11-09 17:08:53 -0800 • Engine revision 31cd2dfca2 • Dart version 2.7.0 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at /Users/reiven/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.1, Build version 11A1027 • CocoaPods version 1.7.5 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio • Android Studio at /Applications/Android Studio 3.6 Preview.app/Contents • Flutter plugin version 41.0.3 • Dart plugin version 192.7402 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 40.1.2 • Dart plugin version 191.8423 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] Connected device (4 available) • F5321 • BH901SWC5P • android-arm64 • Android 8.0.0 (API 26) • iPhone 6s • 698418C7-2F45-45CB-8057-3358AAADCDA1 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator) • Chrome • chrome • web-javascript • Google Chrome 78.0.3904.97 • Web Server • web-server • web-javascript • Flutter Tools • No issues found! ```
platform-android,customer: crowd,p: local_auth,package,P2,team-android,triaged-android
low
Critical
525,201,507
godot
Preview cache is not refreshed after reimport
**Godot version:** 3.2 beta1 **Issue description:** If you change import settings that impact texture ("Invert Color" in my case) the preview is not updated. You can see that it should work, because when you move the texture to another directory it looks correctly. ![yaJpQdcafL](https://user-images.githubusercontent.com/2223172/69177026-1698a300-0b07-11ea-92e4-36367af3f3ee.gif) It will keep happening until you modify the file, which will refresh the cache.
bug,topic:editor,confirmed,topic:import
low
Major
525,204,059
vscode
Web: Comment View should listen to Gesture.Change event to scroll itself
* Open Web on iPad OS * Install GH PR extension * Leave comments * Try to use finger to scroll the comment thread, nothing happens.
debt,web,ios-ipados,touch/pointer
low
Minor
525,205,403
rust
impl Trait cannot work well with lifetime bounds
[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8615db4e00b2b417d3041b1caa27acb7) ```rust pub struct S<'t>(usize, &'t str); impl<'t> S<'t> { // error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds pub fn foo<'s>(&'s mut self) -> impl FnMut() + 's { move || self.0 += 1 } } fn main() { let mut s = S(0, "hello"); s.foo()(); println!("{}", s.0); } ``` The `self: &'s mut S<'t>` implies `'t: 's`, so the signature should be correct. But compiler still complain that `'t` is captured but does not appear in `impl` bounds. I checked the [error description of `E0700`](https://doc.rust-lang.org/stable/error-index.html#E0700) and tried `impl FnMut() + 's where 't: 's` and `impl FnMut() + 's + 't`, while it still fails. Note that when using `dyn Trait` as `pub fn foo<'s>(&'s mut self) -> Box<dyn FnMut() + 's>`, it compiles.
C-enhancement,A-lifetimes,T-lang,A-impl-trait
low
Critical
525,275,082
rust
const fn in panic=abort land
It is untested what happens when const eval panics in panic=abort mode. We should add some tests and fix the implementation as per https://github.com/rust-lang/rust/pull/66507/files#r347262825
A-testsuite,C-enhancement,E-needs-test,T-compiler,A-const-eval
low
Minor
525,286,941
rust
unused imports should not be fixed from `use foo;\n` to `\n`
Right now rustfix fixes unused imports by removing but instead of replacing an unused import `use foo;\n` with ``, it inserts `\n`. This gets really annoying when you have a single block of imports and it ends up looking "hole punched": ```rust use crate::archival::libarchive::bb_archive::file_header_t; use crate::libbb::llist::llist_t; use crate::librb::bb_uidgid_t; use crate::librb::fd_pair; use crate::librb::size_t; use crate::librb::uoff_t; use libc; use libc::close; use libc::fprintf; use libc::free; use libc::gid_t; use libc::lstat; use libc::mode_t; use libc::off_t; use libc::pid_t; use libc::printf; use libc::stat; use libc::strcpy; use libc::uid_t; use libc::FILE; ``` On its own this wouldn't be that big of a deal but since these have now been split into separate import "blocks" rustfmt will no longer condense them.
C-enhancement,A-diagnostics,T-compiler,E-help-wanted,A-suggestion-diagnostics,D-papercut,D-invalid-suggestion
low
Minor
525,305,154
rust
rustc recommends a trait from a crate the current crate doesn't depend on
I ran into this in a crate that depends directly on `anyhow`, and depends very indirectly on `quick-error`. When trying to use the `context` method, in a case that wouldn't work with `anyhow` because the error type didn't implement Error, rustc said: ``` help: the following trait is implemented but not in scope, perhaps add a `use` for it: | 1 | use quick_error::ResultExt; | ``` However, since the crate doesn't directly depend on `quick-error`, it can't add such a `use`. Rough steps to reproduce: - Have a top-level binary crate that depends on library crates `c1` and `c2` - Have crate `c1` provide an extension trait with some requirements (such an extension trait on `Result` that places requirements on the error type). - Have crate `c2` depend on crate `c3`. - Have crate `c3` provide an extension trait that works on any type. - Have the top-level binary crate import the extension trait from `c1`, and attempt to use it, but not satisfy the required trait bounds. This should result in rustc suggesting `use c3::ExtensionTrait` for use in the top-level binary crate, even though the top-level binary crate doesn't depend on `c3`.
A-diagnostics,T-compiler,C-bug,A-suggestion-diagnostics,D-invalid-suggestion,S-has-mcve
low
Critical
525,313,238
flutter
[web] Scrolling error in a11y mode in Desktop
Scrolling only works for going down on a list of contents. It does not work for going up. Tested on: Safari, MacOS, VoiceOver
framework,a: accessibility,f: scrolling,platform-web,P2,team-web,triaged-web
low
Critical
525,332,679
flutter
[web] Toggle error in a11y mode in Desktop Browser
Toggle widget is announcing the value wrong for a11y. For example for toggle on the value is announced as toggle off. Tested on: Safari, MacOS, VoiceOver
framework,a: accessibility,platform-web,a: desktop,P2,team-framework,triaged-framework
low
Critical
525,334,139
flutter
[web] Live area error in a11y mode in Desktop
Live areas (such as a toast, dialog) does not receive the a11y focus. The information in those fields will be either impossible (if the toast disappears) or very hard for the assistive technology user to understand. Tested on: Safari, MacOS, VoiceOver
framework,f: material design,a: accessibility,platform-web,a: desktop,P2,team-design,triaged-design
low
Critical
525,335,688
flutter
[web] a11y support for tables
There are many a11y features for [tables](https://dequeuniversity.com/screenreaders/voiceover-keyboard-shortcuts#vo-mac-tables) which includes: - Read column header - Read row - Read column - Move up or down in a column - Move across a row We should add support for these use cases in Flutter for Web. https://api.flutter.dev/flutter/widgets/Table-class.html https://api.flutter.dev/flutter/material/DataTable-class.html https://api.flutter.dev/flutter/material/PaginatedDataTable-class.html | OS | role | |--------|--------| | web |table | | ios | - | | macos | NSAccessibilityTableRole | | windows | ROLE_SYSTEM_TABLE | | android | android.widget.TableLayout | https://api.flutter.dev/flutter/widgets/TableRow/children.html https://api.flutter.dev/flutter/material/DataCell-class.html | OS | role | |--------|--------| | web |cell | | ios | - | | macos | NSAccessibilityCellRole | | windows | ROLE_SYSTEM_CELL | | android | - | https://api.flutter.dev/flutter/widgets/TableRow-class.html https://api.flutter.dev/flutter/material/DataRow-class.html | OS | role | |--------|--------| | web |row | | ios | - | | macos | NSAccessibilityGroupRole, NSAccessibilityTableRowSubrole | | windows | ROLE_SYSTEM_ROW | | android | android.widget.TableRow | https://api.flutter.dev/flutter/material/DataColumn/label.html | OS | role | |--------|--------| | web |columnheader | | ios | - | | macos | NSAccessibilityCellRole | | windows | ROLE_SYSTEM_COLUMNHEADER | | android | - |
framework,f: material design,a: accessibility,P2,customer: castaway,team-design,triaged-design
low
Minor
525,349,970
flutter
CupertinoTimerPicker's width should not be fixed
Thank @nikitadol for pointing out that the native timer picker does not have a fixed width, e.g., when used as the `inputView`, the separators can be as wide as the screen: `textField.inputView = UIDatePicker()` ![image](https://user-images.githubusercontent.com/31859944/69198771-beec3e80-0aea-11ea-9c16-fe9da7a89ac4.png)
framework,f: cupertino,c: proposal,P3,team-design,triaged-design
low
Minor
525,355,320
flutter
Suppress clutter in console from Android system messages
## Use case The default behavior of the console running on an Android device is to send a set of debug messages every time that a touch event goes high or low. This can often crowd the console, making it difficult to see important information like exceptions or print statements. The proposed solution [in this SO post](https://stackoverflow.com/questions/56677628/how-do-i-hide-this-message-in-the-flutter-console-viewpostime-pointer-0) involves piping the output of flutter run to grep, but that will not affect starting a debug session in VSCode or Android Studio. ## Proposal It would be helpful to add a flag to the `flutter run` command to allow for suppressing these messages and, perhaps, have that enabled by default or otherwise make it so that these messages don't go to the console in an IDE's debugging session.
c: new feature,platform-android,tool,P3,team-android,triaged-android
low
Critical
525,385,389
pytorch
Unable to register custom JIT Operator with AliasAnalysisKind::CONSERVATIVE
## 🐛 Bug Cannot register a custom JIT Operator with `AliasAnalysisKind::CONSERVATIVE`. This is useful to do create operators like ``` RegisterOperators reg({ Operator( Symbol::fromQualString("ops::PrintOp"), [](const Node* node) -> Operation { return [](Stack& stack) { auto input = pop(stack); std::cout << input; return 0; }; }), }); ``` Currently, running this fails the assert at https://github.com/pytorch/pytorch/blob/2367e71f55c8547a674b90912ffc95ca60687844/torch/csrc/jit/operator.cpp#L146-L147 ## Expected behavior This worked before https://github.com/pytorch/pytorch/commit/bbc53bffefa56ca4e296d388c9c69aeb41548870#diff-a3542ce2ffd2bb252f5502783fbe2910L135 Adding the `op.isC10Op()` condition back passes the assert and the op works as expected. - PyTorch Version (e.g., 1.0): 1.3.1 - OS (e.g., Linux): Linux - How you installed PyTorch (`conda`, `pip`, source): Source - Build command you used (if compiling from source): python setup.py develop - Python version: 3.6 cc @suo
oncall: jit,triaged
low
Critical
525,387,244
svelte
Updating a keyed {#each} triggers lifecycles in reverse order
**Describe the bug** Updating a key list causes onDestroy/onMount lifecycles in reverse order **Logs** ``` mount {item: "item 1"} mount {item: "item 2"} mount {item: "item 3"} mount {item: "item 4"} mount {item: "item 5"} mount {item: "item 1"} mount {item: "item 2"} mount {item: "item 3"} mount {item: "item 4"} mount {item: "item 5"} swapping unkeyed list1 destroy {item: "item 4"} destroy {item: "item 5"} swapping keyed list2 destroy {item: "item 5"} destroy {item: "item 4"} destroy {item: "item 3"} destroy {item: "item 2"} destroy {item: "item 1"} mount {item: "item 8"} mount {item: "item 7"} mount {item: "item 6"} ``` **To Reproduce** https://svelte.dev/repl/e8f06d587e3343ba8b4d1c61d94e380f?version=3.15.0 **Expected Behavior** Updating a keyed `{#each}` block calls lifecycles in natural DOM order **Additional context** I'm kind of relying on the initialization order to be "correct" because I have a set of components that (Parent/Child) and the child component registers itself with the parent. It would be nice if this registration happened in order so that I could use it for things like navigation, or other features.
stale-bot,temp-stale,documentation
low
Critical
525,473,660
flutter
Can't inherit a Theme and change the Text Color for a subtree at the same time
I can't find a easy way to use my current `Theme` on a subtree text, but also be able to change that text color. For example, lets suppose I have this widget tree: ```dart Column( children: <Widget>[ Text( 'Text 1', style: Theme.of(context).textTheme.title, ), SizedBox(height: 16,), Text( 'Text 2' style: Theme.of(context).textTheme.body2, ), ], ), ``` And I want to change all my texts colors to white, while maintaining their inherit typography styles. Of course I can edit each one of them and change their individual colors to white, but this is tedious, specially for sub-trees with lots of texts. Using a `DefaultTextStyle` could be a solution, but then I would have to set each individual `Text` `style` as `style: Theme.of(context).textTheme.title.copyWith(color: DefaultTextStyle.of(context).style.color)`, which is A LOT of boilerplate code, and I think that's the opposite of what Flutter stands for. Another solution is to wrap everything in a `Theme`, then a `DefaultTextStyle`, then a `Builder`, which again, is lots of boilerplate code. I would expect from Flutter an easy way to accomplish this, a way to just intercept and change the colors from that point forward in the sub-tree, without losing any previously defined configurations, but so far I can't see a simple way to achieve this and I think the Framework should put some thought on how to streamline this. PS: I firstly introduced this discussion [here](https://stackoverflow.com/questions/57455620/how-to-change-the-text-color-for-a-subtree-in-flutter) and forgot to follow it up in here.
framework,f: material design,c: proposal,P2,team-design,triaged-design
low
Minor
525,667,902
pytorch
I have reconstructed LSTM model and tested by mnist data but the loss is not changed (loss=2.3)
`import torch from torch import nn from torch.autograd import Variable import torchvision.datasets as dsets import torch.utils.data as Data import torchvision.transforms as transforms from torch.nn import Parameter from torch import Tensor import math from torch.nn import init torch.manual_seed(1)` # parameters for our model EPOCH =1 BATCH_SIZE = 64 TIME_STEP = 28 INPUT_SIZE = 28 Hidden_size=128 Num_classes=10 Num_layers=1 LR = 0.01 # MNIST dataset train_dataset = dsets.MNIST(root = '../../data_sets/mnist', train = True, transform = transforms.ToTensor(), download = True ) test_dataset = dsets.MNIST(root = '../../data_sets/mnist', train = False, transform = transforms.ToTensor(), download = True) #load the mnist data train_loader = Data.DataLoader(dataset = train_dataset, batch_size = BATCH_SIZE , shuffle = True) test_loader = Data.DataLoader(dataset = test_dataset, batch_size = BATCH_SIZE , shuffle = True) #define the LSTM cell structure based on Module class LSTM_Cell(nn.Module): def __init__(self, input_size, hidden_size): super(LSTM_Cell, self).__init__() self.input_size = input_size self.hidden_size = hidden_size # parameter of input gate self.w_ii = Parameter(Tensor(hidden_size, input_size)) self.b_ii = Parameter(Tensor(hidden_size, 1)) self.w_hi = Parameter(Tensor(hidden_size, hidden_size)) self.b_hi = Parameter(Tensor(hidden_size, 1)) # parameter of forget gate self.w_if = Parameter(Tensor(hidden_size, input_size)) self.b_if = Parameter(Tensor(hidden_size, 1)) self.w_hf = Parameter(Tensor(hidden_size, hidden_size)) self.b_hf = Parameter(Tensor(hidden_size, 1)) # parameter of output gate self.w_io = Parameter(Tensor(hidden_size, input_size)) self.b_io = Parameter(Tensor(hidden_size, 1)) self.w_ho = Parameter(Tensor(hidden_size, hidden_size)) self.b_ho = Parameter(Tensor(hidden_size, 1)) # parameter of cell memory self.w_ic = Parameter(Tensor(hidden_size, input_size)) self.b_ic = Parameter(Tensor(hidden_size, 1)) self.w_hc = Parameter(Tensor(hidden_size, hidden_size)) self.b_hc = Parameter(Tensor(hidden_size, 1)) self.reset_weights() def reset_weights(self): stdv = 1.0 / math.sqrt(self.hidden_size) for weight in self.parameters(): init.uniform_(weight, -stdv, stdv) # forward propagation of LSTM cell def forward(self,inputs, h, c): # input gate output i = torch.sigmoid(self.w_ii @ inputs + self.b_ii + self.w_hi @ h + self.b_hi) # forget gate output f = torch.sigmoid(self.w_if @ inputs + self.b_if + self.w_hf @ h + self.b_hf) # output gate output o = torch.sigmoid(self.w_io @ inputs + self.b_io + self.w_ho @ h + self.b_ho) # candidate state g = torch.tanh(self.w_ic @ inputs + self.b_ic + self.w_hc @ h + self.b_hc) # cell memory of current time step c_current = f * c + i * g # hidden state of current time step h_current = o * torch.tanh(c_current) return h_current, c_current # initialization of hidden state and cell memory def init_hidden(self, batch_size, hidden_size): h_init = Parameter(torch.ones(batch_size,hidden_size).t()) c_init = Parameter(torch.ones(batch_size,hidden_size).t()) return h_init, c_init #define the multi-layer LSTM model class LSTM_layer(nn.Module): def __init__(self,input_size,hidden_size,layer_num): super(LSTM_layer,self).__init__() self.input_size = input_size self.hidden_size = hidden_size self.num_layers = layer_num # LSTM Cell list self._all_layers = [] for i in range(self.num_layers): layer_name = 'cell{}'.format(i) if i==0: cell = LSTM_Cell(self.input_size, self.hidden_size) cell.reset_weights() setattr(self, layer_name, cell) self._all_layers.append(cell) else: cell = LSTM_Cell(self.hidden_size, self.hidden_size) cell.reset_weights() setattr(self, layer_name, cell) self._all_layers.append(cell) def forward(self, inputs): # store internal state (hidden state, cell memory) internal_state=[] outputs=[] # for t in range(inputs.size(0)): x_step=inputs[t].t() for layer in range(self.num_layers): layer_name = 'cell{}'.format(layer) if t==0: batch_size = inputs[t].size()[0] h, c= getattr(self, layer_name).init_hidden(batch_size=batch_size,hidden_size=self.hidden_size) internal_state.append((h, c)) (h, c)= internal_state[layer] x_step, c_new= getattr(self,layer_name)(x_step,h,c) internal_state[layer] = (x_step, c_new) outputs.append(x_step.t().unsqueeze(0)) outputs = torch.cat(outputs, dim=0) return outputs,(x_step, c_new) class M_Linear(nn.Module): def __init__(self,hidden_size,output_size): super(M_Linear,self).__init__() self.hidden_size=hidden_size self.output_size=output_size self.w= Parameter(Tensor(hidden_size, output_size)) self.b=Parameter(Tensor(output_size)) self.reset_weights() def reset_weights(self): stdv = 1.0 / math.sqrt(self.hidden_size) for weight in self.parameters(): init.uniform_(weight, -stdv, stdv) def forward( self, x ): x = x.mm(self.w) return x + self.b.expand_as(x) #define the common LSTM model class my_model(nn.Module): def __init__(self,input_size,hidden_size,layer_num,output_size): super(my_model, self).__init__() self.input_size=input_size self.hidden_size=hidden_size self.layer_num=layer_num #self.bidirection=bidirection self.output_size=output_size self.lstm =LSTM_layer(self.input_size, self.hidden_size,self.layer_num) self.linear=M_Linear(self.hidden_size,self.output_size) def forward(self,inputs): r_out,(h_final, c_final)= self.lstm(inputs) out =self.linear(r_out[-1, :, :]) #self.linear(h_final.t()) torch.sigmoid(self.linear(h_final.t())) return out #training rnn = my_model(INPUT_SIZE, Hidden_size, Num_layers, Num_classes) criterion = nn.CrossEntropyLoss() optimizer = torch.optim.Adam(rnn.parameters(),lr=LR) epoch = 0 for epoch in range(EPOCH): for data in train_loader: img, target = data img = img.view(28, -1,28) #img = img.squeeze(0) img = Variable(img) target = Variable(target) out = rnn(img) loss = criterion(out, target) print_loss = loss.data.item() optimizer.zero_grad() loss.backward() optimizer.step() epoch+=1 if epoch%100==0: print('epoch: {}, loss: {:.4}'.format(epoch, loss.data.item())) #model test rnn.eval() eval_loss = 0 eval_acc = 0 for data in test_loader: img, target = data img = img.view(28, -1,28) out = rnn(img) loss = criterion(out, target) eval_loss+=loss.data.item()*target.size(0) _, pred = torch.max(out, 1) num_correct = (pred == target).sum() eval_acc += num_correct.item() print('Test Loss: {:.6f}, Acc: {:.6f}'.format( eval_loss / (len(test_dataset)), eval_acc / (len(test_dataset)) )) the result is as follows: epoch: 100, loss: 2.306 epoch: 200, loss: 2.305 epoch: 300, loss: 2.295 epoch: 400, loss: 2.315 epoch: 500, loss: 2.303 epoch: 600, loss: 2.298 epoch: 700, loss: 2.299 epoch: 800, loss: 2.293 epoch: 900, loss: 2.304 Test Loss: 2.301282, Acc: 0.113500 i can not find what is wrong in my own model based on pytorch nn,module! cc @zou3519
module: rnn,triaged
low
Major
525,756,079
vscode
LCD: greyscale rendering in editor hover
I tested this on Linux: ![image](https://user-images.githubusercontent.com/900690/69236823-ab95ad80-0b94-11ea-91ae-ac7a071863c6.png) I am not sure if a fix is possible, but wanted to report it anyway.
feature-request,editor-hover,lcd-text-rendering
low
Minor
525,763,743
go
runtime: timeout with GDB tests on aix/ppc64
https://build.golang.org/log/98c7edecebf8de8d333d58a2286729cd6d821cef https://build.golang.org/log/66fbb96c7aee8d5b6f191319ed3d8748f238255f https://build.golang.org/log/8fba4a8ce0f6fb1cd3170013f51ff2fdbc35d269 Our GDB on AIX is a bit unstable and it doesn't seem to like the new page allocator for an unknown reason. Even an helloworld can't be run properly. It might be related to #35451 but I think it's more a GDB problem. The team working on it has been contacted. So until now, I would like to disable these tests in order to release our builder.
NeedsInvestigation,compiler/runtime
low
Major
525,802,505
terminal
Allow for custom profiles when running as admin vs user
<!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Having the ability to create different profiles, can be a great visual clue as to what you are doing, or where you are doing it at, e.g dev vs production. The same can be said about running as an administrator vs a regular user. As an admin I can potentially make damaging changes to a system, while as a normal user, I would not have the permissions. Having the ability to not only customize a profile, but have a separate profile that would load when it is detected that I launched the terminal as administrator would be a handy visual clue that I can do something potentially destructive. A red background for admin, or a green background as a user for example. <!-- 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) Add the ability to create a different profile section for running the terminal when I right click and select "Run As Administrator" vs just normally launching the Terminal as a normal user. <!-- A clear and concise description of what you want to happen. -->
Issue-Feature,Area-Settings,Product-Terminal
medium
Critical
525,809,207
pytorch
Transform caffe2 to trt failed
## 🐛 Bug I called transform_caffe2_net(pred_net, {input_name: input_blob_dims}, max_batch_size=1, debug_builder=False, build_serializable_op=False) to transform caffe2 model to trt, got the following exception, input_blob_dims = (1, 3, 800, 832), input_name = pred_net.external_input[0]: Traceback (most recent call last): File "test.py", line 12, in <module> ir = image_recognition_Casrcnn.ImgRecog_detectron(0) File "/work/test_code/image_recognition_Casrcnn.py", line 141, in __init__ build_serializable_op=False) File "/workspace/caffe2-pytorch/build/caffe2/python/trt/transform.py", line 107, in transform_caffe2_net build_serializable_op) RuntimeError: Expected axis_index < ndims to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.) (canonical_axis_index_ at /workspace/caffe2-pytorch/c10/core/TensorImpl.h:92) frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0x6c (0x7fb51c7fbf4c in /workspace/caffe2-pytorch/build/lib/libc10.so) frame #1: <unknown function> + 0x29caf44 (0x7fb4de161f44 in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #2: caffe2::onnx::OnnxExporter::CreateConcatNodes(caffe2::OperatorDef const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, caffe2::TensorShape, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, caffe2::TensorShape> > > const&) + 0xb1f (0x7fb4de2da9ef in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #3: caffe2::onnx::OnnxExporter::Caffe2OpToOnnxNodes(caffe2::OperatorDef const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, caffe2::TensorShape, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, caffe2::TensorShape> > > const&) + 0xd6 (0x7fb4de2cd9d6 in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #4: <unknown function> + 0x4288ec2 (0x7fb4dfa1fec2 in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #5: caffe2::opt::OptimizeForBackend(caffe2::NetDef&, std::function<bool (caffe2::OperatorDef const&)>, std::function<caffe2::NetDef (caffe2::NetDef const&)>, bool) + 0x5ee (0x7fb4de887ace in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #6: caffe2::TensorRTTransformer::Transform(caffe2::Workspace*, caffe2::NetDef*, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, caffe2::TensorShape, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, caffe2::TensorShape> > > const&) + 0x666 (0x7fb4dfa26da6 in /workspace/caffe2-pytorch/build/lib/libtorch.so) frame #7: <unknown function> + 0x105e50 (0x7fb51cd4de50 in /workspace/caffe2-pytorch/build/caffe2/python/caffe2_pybind11_state_gpu.so) frame #8: <unknown function> + 0x9af8d (0x7fb51cce2f8d in /workspace/caffe2-pytorch/build/caffe2/python/caffe2_pybind11_state_gpu.so) <omitting python frames> frame #27: __libc_start_main + 0xe7 (0x7fb5283c3b97 in /lib/x86_64-linux-gnu/libc.so.6)
caffe2,caffe2-op,triaged
low
Critical
525,885,567
godot
Changing radius of RigidBody2D's shape ignores Area2D gravity
**Godot version:** v3.2.beta1.official **OS/device including version:** Ubuntu 18.04.3 LTS **Issue description:** When changing the radius of a `RigidBody2D`'s `CircleShape2D`, an `Area2D`'s gravity is ignored. ![](https://i.imgur.com/v0cqcaH.gif) (Apologies for low frame rate recording) The yellow circle is the `Area2D` in the minimal reproduction project, the red circle is the `RigidBody2D`. Issue might be related to #33369 and #19271 as I also ran into those while running into this issue. Also doesn't work when trying to use with non-gravity point `Area2D`. Also doesn't work when using non `CircleShape2D` shapes for the `Area2D`. **Steps to reproduce:** 1. Create a `RigidBody2D` node with a `CircleShape2D` for a shape that dynamically grows 2. Create an `Area2D` node with `Gravity Point` enabled and `Space Override` set to `Replace` 3. Let `RigidBody2D` grow inside of `Area2D` to observe effect **Minimal reproduction project:** [minimal-reproduction-project.zip](https://github.com/godotengine/godot/files/3869999/minimal-reproduction-project.zip)
bug,confirmed,documentation,topic:physics
low
Minor
525,918,963
godot
Unsigned integer underflow in image_loader_png.cpp
**Godot version:** Godot 3.2 Beta 1 **OS/device including version:** Ubuntu 19.10 **Issue description:** Ubsan error ``` drivers/png/image_loader_png.cpp:67:51: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'size_t' (aka 'unsigned long') changed the value to 18446744073709551615 (64-bit, unsigned) ``` sometimes to this function p_size parameter is set to -1 (in one of Image constructors) and overflow happens when this negative value is set to PNGDriverCommon::png_to_image function which allow only to get uint32_t or uint64_t values. https://github.com/godotengine/godot/blob/73323a2838f4978b1f91d7a941ac40ee17df2d34/drivers/png/image_loader_png.cpp#L62-L71 Putting at begging of this function this `ERR_FAIL_COND_V_MSG(p_size < 0, Ref<Image>, "Cannot convert PNG to Image resource with a negative size.");` to prevent using underflowed value cause crash like in above ![2](https://user-images.githubusercontent.com/41945903/69082402-4cbf1f80-0a40-11ea-8831-71f7e115b573.png) Default value -1 is used in a lot of places in Godot code ![2](https://user-images.githubusercontent.com/41945903/69083195-edfaa580-0a41-11ea-8b1c-8ec4c7744a2c.png) ![2](https://user-images.githubusercontent.com/41945903/69083202-f18e2c80-0a41-11ea-9261-efa66d7d432f.png) ![2](https://user-images.githubusercontent.com/41945903/69083211-f521b380-0a41-11ea-9be7-bd92815693e8.png) to show this errors compile Godot with ubsan support(GCC, LLVM), but if you have more errors you can get when you compile Godot with this branch https://github.com/qarmin/godot/tree/bb **Steps to reproduce:** 1. Run even empty project
bug,topic:core,confirmed
low
Critical
525,949,778
pytorch
Support struct that is initializable / mutable in CPP
## 🚀 Feature ```@torch.jit.script class InferenceConfig(object) def __init__(self): self.inference_threshold = 0.3 self.inference_mode = 'unimodal' self.should_associate = True .... ``` initialize in CPP (where it is the call site of the model) and pass into the model during inference ## Motivation Currently, we can use jit classes to initialize structs. But the struct must be initialized during the export of the model. It would be good if the structs can be initialized at inference time in CPP as it will give a lot more flexibility to the production side without having to re-export everytime cc @suo
oncall: jit,triaged
low
Minor
525,952,547
TypeScript
getTypeAtLocation fails for import specifiers that resolve to a type alias
Baseline test: ```ts // @Filename: /a.ts class A {} export type B = A; // @Filename: /b.ts import { B as C } from './a'; ``` Types baseline: ``` === /a.ts === class A {} >A : A export type B = A; >B : A === /b.ts === import { B as C } from './a'; >B : any >C : any ``` Note that during the normal course of checking, everything works fine, because we don’t ask for the type of the import specifier. If someone were to _use_ `C`, we’d ask for the type of the type reference, and we’d start by resolving the alias all the way to its origin. So only when the baseline writer _specifically_ asks for the type at `B` and `C` do we hit this bug. So, it’s fairly unimportant. I investigated this and an opening the issue to document that some `any` readouts in #35200 are exhibiting some _existing_ poor behavior, and fixing it there would be out of scope.
Bug,API
low
Critical
525,954,114
pytorch
[docs] Newline / whitespace / comma missing in formula for PoissonNLLLoss
![image](https://user-images.githubusercontent.com/1041752/69262021-fcbc9600-0bc2-11ea-97af-236226678212.png)
module: docs,triaged
low
Minor
525,989,314
go
cmd/go: generating C header files for transitive dependencies is awkward
As discovered in [CL 208117](https://golang.org/cl/208117) (#30316), `cmd/go` (as of Go 1.14) lacks a good way to generate C header files for Go libraries in order to use them from C. `go install -buildmode=c-archive` and `go install -buildmode=c-shared` will, as a side-effect, generate header files for the requested package. However, `-buildmode=c-archive` and `-buildmode=c-shared` today require the named package to be a `package main`, and those commands do not generate headers for the (transitive) Go dependencies of the named package. The `-i` flag _does_ generate headers for transitive dependencies, but it _also_ has a second, unwanted side effect: it builds (and attempts to install) libraries for the transitive dependencies of the named package, including transitive dependencies in the standard library. That fails if the user cannot write to `GOROOT/pkg`, such as when a non-root user is working with a `go` tool installed as root. As a workaround, one can run `go tool cgo -exportheader`, but `go tool cgo` accepts a list of files rather than a list of packages, and generates a number of additional outputs (normally in an `_obj` subdirectory) that the C caller does not directly need. So we're still doing extra work, just in a different location. We should see what we can do to make it easier to generate C headers without unnecessary or unwanted side-effects. CC @ianlancetaylor @jayconrod
NeedsInvestigation,GoCommand
low
Major
526,000,901
three.js
NodeMaterial documentation
I'd be willing to write documentation for node-based materials in three.js, but need to get a couple questions answered before I feel comfortable doing so. 1. Is `StandardNodeMaterial` the material that should be documented, and not `MeshStandardNodeMateral`? I believe that's true, based on https://github.com/mrdoob/three.js/pull/14572#issuecomment-430067719 and the goal that `MeshStandardNodeMaterial` will just be a drop-in replacement for `MeshStandardMaterial` but the docs would be very different if this is wrong. 2. Which syntax (see https://github.com/mrdoob/three.js/pull/17105 and https://github.com/mrdoob/three.js/pull/17265) should be documented? I'd prefer to document only one recommended material class, and one recommended syntax style, at the beginning — even if multiple will be available. I'm a bit nervous about having many syntax permutations in use so early with this API. /cc @sunag @bhouston
Documentation
medium
Major
526,044,463
godot
Division by zero in rasterizer_canvas_gles3.cpp
**Godot version:** 3.2 beta 1 **OS/device including version:** Ubuntu 19.10 **Issue description:** ``` drivers/gles3/rasterizer_canvas_gles3.cpp:998:52: runtime error: division by zero drivers/gles3/rasterizer_canvas_gles3.cpp:998:30: runtime error: division by zero drivers/gles3/rasterizer_canvas_gles3.cpp:824:52: runtime error: division by zero drivers/gles3/rasterizer_canvas_gles3.cpp:824:30: runtime error: division by zero ``` One of possible solutions ``` diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index edffe852a2..f9acb184d3 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -820,7 +820,7 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur RasterizerStorageGLES3::Texture *texture = _bind_canvas_texture(mesh->texture, mesh->normal_map); - if (texture) { + if (texture && texture->width != 0 && texture->height != 0) { Size2 texpixel_size(1.0 / texture->width, 1.0 / texture->height); state.canvas_shader.set_uniform(CanvasShaderGLES3::COLOR_TEXPIXEL_SIZE, texpixel_size); } @@ -871,7 +871,7 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur state.using_texture_rect = true; _set_texture_rect_mode(false); - if (texture) { + if (texture && texture->width != 0 && texture->height != 0) { Size2 texpixel_size(1.0 / texture->width, 1.0 / texture->height); state.canvas_shader.set_uniform(CanvasShaderGLES3::COLOR_TEXPIXEL_SIZE, texpixel_size); } @@ -994,7 +994,7 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur RasterizerStorageGLES3::Texture *texture = _bind_canvas_texture(particles_cmd->texture, particles_cmd->normal_map); - if (texture) { + if (texture && texture->width != 0 && texture->height != 0) { Size2 texpixel_size(1.0 / texture->width, 1.0 / texture->height); state.canvas_shader.set_uniform(CanvasShaderGLES3::COLOR_TEXPIXEL_SIZE, texpixel_size); } else { ``` **Steps to reproduce:** To get this error try to compile Godot with ubsan sanitizer(GCC or LLVM) or compile Godot from this branch(find more errors but tgis needs LLVM 9 or GCC 9) - https://github.com/qarmin/godot/tree/bb 1. Read Project README - https://github.com/qarmin/The-worst-Godot-test-project#the-worst-godot-test-project 2. Run Project **Minimal reproduction project:** https://github.com/qarmin/The-worst-Godot-test-project/archive/60944c7930279db20747b8d1835e1687188a10ab.zip
bug,topic:core
low
Critical
526,079,018
flutter
Make thread_checker print out thread names on assertion
Issue https://github.com/flutter/engine/pull/13943 implements this for Apple platforms. We should expand it to support Fuschsia and Windows. Chinmay has notes in the PR conversation about how one might do that.
engine,platform-fuchsia,platform-windows,P2,team-engine,triaged-engine
low
Minor
526,086,664
go
x/tools: fix staticcheck warnings
`gopls` enabled running diagnostics on an entire workspace, which surfaced > 200 staticcheck warnings in x/tools. We are disabling this behavior in `gopls` since it caused a real slowdown, but we should still fix all of the staticcheck warnings that we saw.
NeedsFix,Tools
low
Major
526,162,606
godot
Implicit conversion between int types which result changing value
**Godot version:** 3.2 beta 1 **OS/device including version:** Ubuntu 19.10 **Issue description:** This should be easy to fix ``` core/class_db.cpp:440:29: runtime error: implicit conversion from type 'int' of value -1 (32-bit, signed) to type 'uint64_t' (aka 'unsigned long') changed the value to 18446744073709551615 (64-bit, unsigned) core/command_queue_mt.h:331:48: runtime error: implicit conversion from type 'int' of value -8 (32-bit, signed) to type 'unsigned long' changed the value to 18446744073709551608 (64-bit, unsigned) core/command_queue_mt.h:373:41: runtime error: implicit conversion from type 'int' of value -8 (32-bit, signed) to type 'unsigned long' changed the value to 18446744073709551608 (64-bit, unsigned) core/command_queue_mt.h:431:42: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned) drivers/gles3/rasterizer_storage_gles3.cpp:627:14: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned) drivers/gles3/shader_gles3.cpp:535:15: runtime error: implicit conversion from type 'GLuint' (aka 'unsigned int') of value 4294967295 (32-bit, unsigned) to type 'GLint' (aka 'int') changed the value to -1 (32-bit, signed) drivers/gles3/shader_gles3.h:389:38: runtime error: implicit conversion from type 'int' of value -5 (32-bit, signed) to type 'unsigned int' changed the value to 4294967291 (32-bit, unsigned) platform/x11/os_x11.cpp:1807:28: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned) platform/x11/os_x11.cpp:1808:28: runtime error: implicit conversion from type 'int' of value -5 (32-bit, signed) to type 'unsigned int' changed the value to 4294967291 (32-bit, unsigned) ``` https://github.com/godotengine/godot/blob/73323a2838f4978b1f91d7a941ac40ee17df2d34/core/class_db.cpp#L440 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L331 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L373 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/core/command_queue_mt.h#L431 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/rasterizer_storage_gles3.cpp#L627 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/shader_gles3.cpp#L535 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/drivers/gles3/shader_gles3.h#L389 https://github.com/godotengine/godot/blob/bdf0037a9c78c1a34ce9a00e8544e5aed85ad39b/platform/x11/os_x11.cpp#L1807-L1808 **Steps to reproduce:** To get this error try to compile Godot with ubsan sanitizer(GCC or LLVM) or compile Godot from this branch(find more errors but this needs LLVM 9 or GCC 9) - https://github.com/qarmin/godot/tree/bb 1. Just create and open empty project
bug,topic:core
low
Critical
526,194,760
svelte
Reorderable List example
I'd like to contribute this example. It does not work on mobile which would require DOM Touch support but I think it's still very useful. https://svelte.dev/repl/e5d53d675f444311a908121494f51aa6?version=3.15.0
stale-bot,temp-stale,documentation
low
Minor
526,203,526
rust
error: could not evaluate constant pattern
In the Firefox style system we have this [enum type](https://searchfox.org/mozilla-central/rev/652014ca1183c56bc5f04daf01af180d4e50a91c/servo/components/style/values/generics/grid.rs#738-753) and in the impl I'm adding a const, like so: ` pub const INITIAL_VALUE: Self = Self::None; ` That compiles fine. Then I'd like to add this function: ``` pub fn is_initial(&self) -> bool { matches!(*self, Self::INITIAL_VALUE) } ``` which results in: ``` error: could not evaluate constant pattern --> servo/components/style/values/generics/grid.rs:770:25 | 770 | matches!(*self, Self::INITIAL_VALUE) | ^^^^^^^^^^^^^^^^^^^ ``` which makes no sense to me given that `matches!(*self, Self::None)` compiles just fine. (This is in a local mozilla-central build, and I think the compiler it uses is: rustc 1.39.0-nightly (6e19f3f38 2019-09-06)) BTW, why is the type required in the const declaration? Why can't I just say: `pub const INITIAL_VALUE = Self::None; ` It seems like the compiler should be able to deduce the type I wanted there...
A-associated-items,T-compiler,C-bug,A-const-eval
low
Critical
526,214,984
go
x/tools/gopls: improve support for authoring cgo packages
Forked from #31561. This issue is not for users of cgo packages; that issue is #35720. **Beta instructions:** https://github.com/golang/go/issues/35721#issuecomment-631669061 contains instructions on how to build a version of Go and gopls that should work well for authoring cgo packages. Files that import "C" are not really valid Go. They depend heavily on extra information that is produced by the go tool when it builds the package. They can be parsed, but not type checked, though there is some rudimentary support for working around the issues by setting the `go/types.Config.FakeImportC` flag. Many people have suggested that gopls use the package's GoFiles rather than its CompiledGoFiles. The GoFiles are the original (invalid) files. Using those may give a slightly better experience for people editing the package, but it will completely break anything that depends on the type information, since the package will no longer type check. We would have to evaluate the effects very carefully before making that change in the current architecture. We could consider type checking cgo packages twice, once with the real code and once with the user's code. That would be a significant architectural change. Alternatively, we could run the cgo tool as the .go files change to produce the real code. This is a much more robust approach, but the cost of running cgo processing may be too high, especially on large packages. No matter what, this is a large project that will need a lot of testing and thought. It's unlikely we'll make huge improvements here very soon.
FeatureRequest,gopls,Tools
high
Critical
526,218,367
pytorch
[quantization][graph mode] SubgraphRewriter discards SourceRanges
Example from test_insert_prepack_unpack: https://github.com/pytorch/pytorch/blob/ae6af8d55faa6efa6018d20fec3a4909acd36a4e/test/test_jit.py#L1194 The diff of the module's forward before and after is: ``` graph(%self : ClassType<L>, %x.1 : Tensor): %15 : Function = prim::Constant[name="linear"]() %8 : int = prim::Constant[value=12]() # test/test_jit.py:1159:68 %5 : int = prim::Constant[value=13]() # test/test_jit.py:1158:58 %3 : float = prim::Constant[value=0.2]() # test/test_jit.py:1158:50 %4 : int = prim::Constant[value=1]() # test/test_jit.py:1158:55 %xq.1 : Tensor = aten::quantize_per_tensor(%x.1, %3, %4, %5) # test/test_jit.py:1158:21 %7 : Tensor = prim::GetAttr[name="weight"](%self) %wq.1 : Tensor = aten::quantize_per_tensor(%7, %3, %4, %8) # test/test_jit.py:1159:21 %11 : Tensor = aten::dequantize(%xq.1) # test/test_jit.py:1160:47 - %13 : Tensor = aten::dequantize(%wq.1) # test/test_jit.py:1160:64 %14 : Tensor = prim::GetAttr[name="bias"](%self) + %30 : Tensor = quantized::linear_prepack(%wq.1, %14) + %31 : Tensor, %32 : Tensor? = quantized::linear_unpack(%30) + %33 : Tensor = aten::dequantize(%31) - %r.1 : Tensor = prim::CallFunction(%15, %11, %13, %14) # test/test_jit.py:1160:20 ? ^^^ ^ --------------------------- + %34 : Tensor = prim::CallFunction(%15, %11, %33, %14) ? ^^ ^ - %rq.1 : Tensor = aten::quantize_per_tensor(%r.1, %3, %4, %5) # test/test_jit.py:1161:21 ? ^^^ + %rq.1 : Tensor = aten::quantize_per_tensor(%34, %3, %4, %5) # test/test_jit.py:1161:21 ? ^^ return (%rq.1) ``` We've lost source range information on the CallFunction node, meaning we're losing valuable debug info and possibly making the stack traces less interpretable cc @suo
oncall: jit,triaged
low
Critical
526,234,264
rust
Tone down encouragement to make everything Copy
The docs for `std::marker::Copy` currently say > When should my type be Copy? > Generally speaking, if your type can implement Copy, it should. [...] This piece of advice seems counter-productive to me in it's current, absolute form. It encourages a newcomer to Rust to expect the opposite of what he will experience in the ecosystem and stdlib, where things being `Copy` is the exception, not the norm. As a rule of thumb, almost all "normal" types are _not_ `Copy` to preserve move semantics (detached copies being a mistake, unless explicit through `Clone`) and the performance penalties that come with it. Maybe a more nuanced approach to `When should my type be Copy` is better suited. I'm sorry if this has been bikeshedded previously, feel free to shoot it down.
C-enhancement,T-libs-api,A-docs
low
Major
526,261,064
flutter
[path_provider] Add support for web
We should add web support for `path_provider`
c: new feature,platform-web,p: path_provider,package,P3,team-web,triaged-web
high
Critical
526,269,861
TypeScript
Avoid mentioning source types of object literals in error messages
Whenever a type that originates from an object literal is encountered, we should avoid writing out the whole type. It's rarely useful, and can get painful in a lot of contexts (think React Native styles objects). ```diff - Type '{ goobledeyGock: string, tickTock: number, wakkaFlocka: { stuff: string } }' is not assignable to 'OneType | AnotherType'. + This object is not assignable to 'OneType | AnotherType'. ```
Domain: Error Messages,Experience Enhancement
low
Critical
526,278,265
TypeScript
Avoid printing out expected/actual types in JSX attributes unless a spread is provided
[Playground link](http://www.typescriptlang.org/play/index.html?jsx=2&ssl=23&ssc=14&pln=23&pc=22#code/JYWwDg9gTgLgBAJQKYEMDGMA0cDecASAKgLIAyAgjDFMAEYCuMSAztsujAHIQAmS2AXzgAzKBBBwA5FFQZJAbgCwAKBUqYATzBI4AUXrAAkmggA7OAF5EsmADoACvRkBhcZFNJTMJauUAeACEUHgBzHU1tCwAiAGJheKiAPhU4OGZ6MBU-AHog0KRk32F6UwxgMzg8sIAKMDEwZgAuSuCw+3rmAEpcFLgZGCdzPx5gADc4bMKBNWUkAA9IWDgInSqkdogGyx7lVOyAKn3euH24cjQ0JDAYZjgUUw006mBTEJExCQgnOGATcwAbOhQFBQDTHfbZXq-MyELRIAD8zWYz1ecAAPtYOLZ2BhdP8kCBPN4ZntDuC4IQABY6ZjAPhwCDCZbUuC0VrhFnQ8zMSlff48NLAGDgyG7H5-ADKdIRzWMZilfB8vQORzFJzOFyuNzgSCF1KgDO+YBQ+KoOhM-2gt1qNBAII02GYSD+PHtcFstiQMDQ3Wgdzg1LmcFGJvoOgABjEAGIx2Ph7CRgAMyfDthFvQt0ERcDlplclqgPlJqtS6oA6sB-v8GaMkFAaPT7o9MwbjcwnQKYJSxPQQpTmRGW+G4HVNmm1RCocwACLAZgoWj4njZ2gQCD4+5KsUq8kbLZtjvLCADuBoS1O1mMGBmcelydis8QJ0BK9mPfMbP2EEwYAmvzvgB5YQ-H0Iw-kSRIfCEAAyOBXBAEA3w6OBoN6XQ5jPehaVrABVUxylMPwKy7XMALzQE0AAa2wHABESFC0Iw-4sLGJA8IIoi9QlY1THfbBiMpF8qCQzZmEgmYVhzP58z9KxkRoV4txeJgoGEdAdAE0jyN+SidmLckKyrO4wDAf5HnuBlSgo3Tr3FCoAHc9ReE82XydMxS5MjnGs5piC+J1dFrLx8HuHh8SgPwiDIITr1MPECSJcTfH0iczhoFA4H+BckGrFATMBJBO2PLsdE87SqMvYTTHc1Iyu8nTyHS0hsv+JEURCKCJLhOABO4+5322ACQCFSKSAoKgaAYJhmFGsg+ri-FCS8RJsEkMx6qoyR0SkFtJCS9RutzBUdCsSR8WEGAtoxaRgD7S6lPAaB4BwXpyFKXkoCi8bnimlhMF6GKzC+ygfsYP7eng9wiX+sUoxKMp1rcMxod6PysKQQKiRC0wwrrGHUglKNnBhoRRHEKQZA4BQZnmRZ4GUus1MuODxEQ3jkJeh8svbTgUEJbN5JeDrekkEFfwAWiy2gcskAX2qLKRXRgFBxemmBxfSWgACtZbahTheUaZfFpp7lm67hGpCZwTX+NkqL8Qh6KsapugsejCC3E2lkk5BhGtqs7cokDFqJHU5iYHHbi++KlvgDFTHoKsnbgapehyhKvGaGOiRUV36NGCA6S3bJsjgRhKyFR4ViaGYd12U4y2BLYAO1507EopANFuRyuxHeo6zN7RmDQGhrjgPhhBeIUCIZJkSr6FhE5-VEQWBMF69FL34GKUofwqDuu6Ah3sAAaTDiOeFuA-GQpRJqggbXmkITpmhPgBtABdPSF4GKBzBbrWbdbAH2YPfbW3QUC3Hfh-TqxsFim0koBYCzhk7OHPp4S+cBCbOD8C8YQA9sHvkKKkeEWCibvl6M0NB8wL63DhrvAikNkZeFwaYfBBp6EI3ZqJYhcBSGcL3twholC4LoMjizR6HgWF4IHkwqRMAiG9FIXIokFCxTNA8LWQstdVSUioA0RoJcQh6noLQWwJgQDZGIL8MQzBGQwGyLCbQEoR7AGuNkOc6QWDZAAEwAA4ADMASACcKgNiLgJM0ewOk7g4zgENIU49jymAgPAEYgtfo1gHiUGe1dsD2UpL8fsdp8L4ORN3ak1VlCbEESaYMoYWCsmdOIHQMgACOBgZAChQBdAeGVokVT9Ak+Amw6woEEbYCk1InQqFnBk8utYRDQBALcEw9Y25mQZNoYETBLJl3whUPJfcWBIFGELLZtTASaFvPeSS7EzAn07jNR22xCBiMwU2PhcBr5MjeRo05dYfBb0HjoOZoMfy1gGUHQgp93m3HuaYR5XcHYQVeXC2J68SFwChcfPQ4dgQYD8D8ikp8IIiM0YClQwLJJgsmgspAwzcVnxoRg+FBzEVPJRcnN5LLxFNiUfE4aMBcXoWoBwIlncb4wrgCfMl6i4AUu0b4A4KgnFIBcaPS6tx0muOGqYcZhV9kEVuCCHQEAtGbO2cNdsrFmiQMymYN49rkYgtnieHJFQ5xpHGXOSehV1AslSfqEFJqZAKtSfUwEStDUoBCCgF4yJJlRj9PMPmpkkCNC6toOAybjxWE5qkEMzEM1PH1vjJZEA9ZCxUAIHwkkggGnzb0ItYYNH0BANLKA5a2RQCra8GtKgd5cLgAU8Z1Q5jNFzdtBt3QC0-0GHAOYtgW1IFgSocgtwNBfBHXyAUtM25wHFjMUdMBqh4BXc0UWzAeDCEkNgYQa5L2QJvVtAQnR5ATFLpPDwKgT1nsja2uAABWe9j6pDPtvXAN9H6S46nrNAX9lIx3noac0EDrIQRPuvZB6Dn6RAvCQIh5DAGS1XpfdgHtWGX1QffXhusYgoAzHwBAeyAKu0-CZFOr184fzMD9Z2SpcAt30FPBZA8GKSNCe3fZe48BbINskLcHJHSdCjm2T+FgmblB-pQ8Wqjt7QOVvA9hu9GHe0iBNBeN9eH7LQEoswGYaqNVuPprcCAlEUCPB7v2LsXr7UZUkiEegIIBS2cTgKPgTAMAngfoA6LXqp2hWOUFeA6BLg2tROGHtqYVB4QfbAEoBrNm+duHUAFXhbj4MKoHI87qnQGgXF8eAkAI4-hto8HJXgiQETqUgeIbdWBLINKm8A+ItPrtPKzCoxozR-x+OYXQOFDA-FuLZGQOMB52MJL5leJrx5jHiQgO4e2pqxWwHwbQONzmeqZBZda1k+6bBWyOSBHZxwHnOcEEYlzHtbB4Cx8wXYex9jgKmD0MhkTxhHYUtA-Y0AWWlmkbQaBgD8eO1mnQ81AQd22MDCadAwYzS+vNbOy063dUBqYbHJ1cCWQ2pRXy-kMYpexrjCKX1Kek5gPRWteH7sxK9fPHVtoXiyZUDiOwAjGFI3kX4LHwAccYkp9TwoKhDBdb-u17A88LFQy8Du8LAYUCLIC91ILIXauw+dLpVHv3VlmGVgm0H-OqLDiSxD9ciz5OvipwrpA45RV1n1VWB0AYWNsewMJybhv0Ynl18w1LDnfB+BUfrld0QGAAC9M9REmDMJLKS4MMYN-yBkFxvj2vnvLnHkluM+r48AGNcT56BeC1AULu7kuhzSywWkqJTsVHGeClg44qRerKyl24oBCQjANSIJA1X0A2WKiyPgtZLRgGwElsLpeODBZD5lVARVMTRZk3-IWJrVssnDCu4camS88BUMiSs1Y1MQDjbs-79lAcr5pDxRTdu+SMO-YXqLwRadIkyVIOgD6VYLG5yMAtmZcP4VyVccIpWYgZyjYaQ645cFQ+WKgI8qAy8bw8wmE2EOgHqpgNcvgEutgUuiMkiRIIETELEuE7KcuPE1O2AyufucqJwooKgdc6oyAv8VBcAhIHaA8IC82cAOE4azWEOoczkbyTocmySbGKQpwby+aUgyMpmkgCBEA+hQOC+r6mhsh2weABh3Yphq0D6Tg+hk8tYZh9c86f8twVh9hUAkg-yWidhrEPhCqbGUGmhm88C3s3UcyfMtAt0wWTAEoXouKOEycc6b89gMh6EmEfAEqW6vy2AxKyRH82YiqNaxcZIrh5AsB9kOoeoA8byfoOE2AE+3WK8DwdwPA32PW1Y0hN888QaA8kkZMEg0s5yZWToXgoRVK4Rcm3UmRzE5BCKSRyc1QbyGIOE3QvKmCsWB6sGtuJUYapqEmPIpqAo0h0sCBC+5gbySWOEAq1QURHasRBqCRwq0qyRKEsh3QGI9xc40RTx8RiRjRt8Hxz8fO+xjkF488hAEoRqnqJq-wlMPAHW+EKmIiqxshZRJYpwyaBo8e8iV+4yk2V2lymy62fABofgA+pg9EfofgKAxCpwrgpgQUjepQ4QaBQ27y5ybIF4am1ooJoU5h6cscGsyOqOvwduKc9g3Q3mTwoUFuZ4OkC4+Iv2dYGmSeJw5hUBF4jkRk1OmyiO6MRUYQ+xW+loqIsp4YcxrBbE7K4YWmmprhkkb0sO0ApAfu2w74OJLpH0gQkC6wHQDJrqlO7pOOVgXp0AlOfpToiiTp3UqeCiyEVg6E-waANpixPpbpfu3BPuoZBQ5hfwyIEieuMAk68MgiCZKeMuqigZ7oHokxsw0xrqEZUAmZEU0q6R+adEaKqEYobZeOw+ROY0bZXO9EsEc6qQNhwgcs+sCsqQLulE2YaMAULOoU4Us0FA700Ao5CsME2KnsTZiCHQOJUZHZlh3ZVgbyvZqQlOA5dK00G5nOIcy0HxE5dO1kS5TOmMwUa5dYj5PuO5vQe59gW4B02aAklOA0Ta245Rd4PUL+xkpk5k5gZgipFUtk88rkYQPwNwOUwgNU75OkjO6M35MArO65HOAFz53OW4KUcFjUv4mULUiFBUx+88dUD2VJBFC5DFKAzU0srUpaQsUEHxjKd5BOD5lFVUo5q0C5V0O0640Ae08gQAA) ```ts import React, { HTMLAttributes, ReactNode, } from 'react'; type EuiIcon = React.PureComponent; <Badge type="#fff"> sup </Badge> function Badge(props: BadgeProps) { return <div /> } export type BadgeProps = { /** * Accepts any string from our icon library */ iconType?: string | React.ReactElement; /** * The side of the badge the icon should sit */ iconSide?: IconSide; /** * Accepts either our palette colors (primary, secondary ..etc) or a hex value `#FFFFFF`, `#000`. */ color?: IconColor; /** * Will override any color passed through the `color` prop. */ isDisabled?: boolean; /** * Props passed to the close button. */ closeButtonProps?: Partial<PropsOf<EuiIcon>>; } & CommonProps & ExclusiveUnion<WithIconOnClick, {}> & ExclusiveUnion<WithSpanProps, WithButtonProps>; type IconColor = string; interface WithIconOnClick { /** * Will apply an onclick to icon within the badge */ iconOnClick: MouseEventHandler<HTMLButtonElement>; /** * Aria label applied to the iconOnClick button */ iconOnClickAriaLabel: string; } type WithSpanProps = Omit<HTMLAttributes<HTMLSpanElement>, 'onClick' | 'color'>; type IconSide = 'left' | 'right'; import { AnchorHTMLAttributes, ButtonHTMLAttributes, Component, FunctionComponent, MouseEventHandler, SFC, } from 'react'; export interface CommonProps { className?: string; 'aria-label'?: string; 'data-test-subj'?: string; } export type PropsOf<C> = C extends SFC<infer SFCProps> ? SFCProps : C extends FunctionComponent<infer FunctionProps> ? FunctionProps : C extends Component<infer ComponentProps> ? ComponentProps : never; type UnionKeys<T> = T extends any ? keyof T : never; export type DistributivePick<T, K extends UnionKeys<T>> = T extends any ? Pick<T, Extract<keyof T, K>> : never; export type DistributiveOmit<T, K extends UnionKeys<T>> = T extends any ? Omit<T, Extract<keyof T, K>> : never; /** * Returns member keys in U not present in T set to never * T = { 'one', 'two', 'three' } * U = { 'three', 'four', 'five' } * returns { 'four': never, 'five': never } */ export type DisambiguateSet<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }; /** * Allow either T or U, preventing any additional keys of the other type from being present */ export type ExclusiveUnion<T, U> = (T | U) extends object // if there are any shared keys between T and U ? (DisambiguateSet<T, U> & U) | (DisambiguateSet<U, T> & T) // otherwise the TS union is already unique : T | U; type WithButtonProps = { /** * Will apply an onclick to the badge itself */ onClick: MouseEventHandler<HTMLButtonElement>; /** * Aria label applied to the iconOnClick button */ onClickAriaLabel: string; } & Omit<HTMLAttributes<HTMLButtonElement>, 'onClick' | 'color'>; ``` ## Current ``` Type '{ children: string; type: string; }' is not assignable to type '(IntrinsicAttributes & { iconType?: string | ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)> | null) | (new (props: any) => Component<...>)> | undefined; iconSide?: "left" | ... 1 more ... | undefined; color?: string | undefined; isDisabled...'. Property 'type' does not exist on type '(IntrinsicAttributes & { iconType?: string | ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)> | null) | (new (props: any) => Component<...>)> | undefined; iconSide?: "left" | ... 1 more ... | undefined; color?: string | undefined; isDisabled...'.(2322) ``` ## Proposed ``` The 'Badge' tag does not accept any attribute named 'type'. ```
Help Wanted,Effort: Moderate,Domain: Error Messages,Experience Enhancement
low
Minor
526,289,722
vscode
Web: Mobile Safari support
This is a meta issue for our Safari (on iOS/iPadOS) support ([issue list](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aopen+is%3Aissue+label%3Asafari+label%3Aios+)) and this can be used to track the limitations and gaps we see today on mobile / touch screens. **_updated Oct 2020._** To enable users to use the Web UI in Safari on iOS for some basic work, we need to fix the following blocking issues **Blockers** * [ ] :hand: Missing `wheel` event https://github.com/microsoft/vscode/issues/106232 (upstream https://bugs.webkit.org/show_bug.cgi?id=210071 ) * [ ] Blockers on Safari desktop https://github.com/microsoft/vscode/issues/108637 * [ ] :runner: Workbench size inconsistent with visual viewport https://github.com/microsoft/vscode/issues/108267 * [ ] :runner: Port forwarding blocked https://github.com/MicrosoftDocs/vscodespaces/issues/728 * No authentication flow as it can't open a new window * can not debug extensions * [ ] UI affordance fallback for `cursor: ` styles https://github.com/microsoft/vscode/issues/108832 * [ ] Drag & Drop views/panels with mouse events https://dvcs.w3.org/hg/d4e/raw-file/tip/mouse-event-test.html **Bugs** * [ ] Touch/pointers not working (Settings Editor dropdown, view header, etc) https://github.com/microsoft/vscode/issues?q=is%3Aopen+label%3Atouch%2Fpointer+label%3Aios * [ ] MISC https://github.com/microsoft/vscode/issues?q=is%3Aopen+label%3Aios+label%3Abug+-label%3Atouch%2Fpointer --- With above items finished, users can use the Web UI for basic tasks if they us an external keyboard and mouse. However if you are not using an external keyboard with Escape and Function keys, or a mouse/pointer device, you can easily find the Web UI **difficult** to use and you can't be as productive as on the desktop. Major **blockers** are: * Escape. Escape key is the major key for hiding UI elements in the workbench. For native elements, iOS may know how to map `Ctrl+[` to behave the same as Escape, however for our keybinding service, we always check keyboard event, which doesn't understand `Ctrl+[` at all. * [ ] To mimic the *native* smart keyboard experience, we can build a Keymap extension, which remaps `Ctrl+[` to commands which used to be triggered by `Escape`. * Function keys. Without Fn keys, quite a lot of our core features are not highly accessible: Command Palette (F1), Rename (F2), Next Match (F3), Next Reference (F4), Debug (F5, F9, F10, F11), Next Problem (F8), Go to Definition/Impl (F12), etc. * Hover is missing. Definition/Implementation hovers in editor, View title bar actions, List View quick actions, etc rely on Hover events triggered from mouse move. They are hidden by default and only visible and actionable when hover happens (or sometimes even worse, hover with keyboard shortcuts). On a touch screen, these features are not accessible. * Debug * `window.open` only works if it's triggered from user click and synchronous. For debugging VS Code extension in the Web, it's silently broken as the window will not be opened without any error message. * Most UI elements are small. This is exacerbated by even the smallest mouse cursor being a rather large circle. * Button/Checkbox/ActionbarItem are 10-20 px wide. It requires users to be very precise while acting on them. * Default list view height is small and not customizable. * Editor gutter consists of glyph area (we put breakpoints on it), line number and margin (we put folding icon on it) and users can easily mis-click/touch anyone of them. * Sashes are thin and no indicator for clicking or dragging
feature-request,web,ios-ipados,github-codespaces,ghcs-in-progress
medium
Critical
526,293,146
godot
GraphNode does not organize children properly when child node is hidden
**Godot version:** 3.1.1 stable **OS/device including version:** arch linux **Issue description:** The `GraphNode` type of node doesn't become smaller after a child of its is hidden **Steps to reproduce:** 1. Create a graphnode 2. Add as many label nodes that say "test" as needed to make the graph node expand due to nodes under it needing more space than exists 3. Hide any one of the label nodes **Minimal reproduction project:**
bug,discussion,topic:gui
low
Minor
526,323,640
go
x/net/http2: error message is unclear when connecting to an http 1.x server
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? 1.13 ### Does this issue reproduce with the latest release? yes ### What operating system and processor architecture are you using (`go env`)? GOARCH="amd64" ### What did you do? https://play.studygolang.com/p/_1kMO-E_FEq I use an http2 client try to connect an http client. I expect to see an protocol error or somethig that can tell me the destination is not a valiad http2 service. ### What did you see instead? I get an "unexpected EOF" error. I think we can make the error more clearly. According to the rfc, the last segment of [https://httpwg.org/specs/rfc7540.html#rfc.section.3.5] > Clients and servers MUST treat an invalid connection preface as a connection error (Section 5.4.1) of type PROTOCOL_ERROR. It seems we should return PROTOCOL_ERROR
NeedsInvestigation
low
Critical
526,350,274
go
net: IPNet JSON marshal/unmarshal inconsistency
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.13.4 darwin/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/elad/Library/Caches/go-build" GOENV="/Users/elad/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/elad/go" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/Cellar/go/1.13.4/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.13.4/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/12/1cmrxkzd3mjdw85xz7jj36cr0000gn/T/go-build857110316=/tmp/go-build -gno-record-gcc-switches -fno-common" </pre></details> ### What did you do? Wrote code that uses `net.ParseCIDR()` to create a `*net.IPNet`, then uses `json.Marshal()` to serialize it to JSON, then uses `json.Unmarshal()` to deserialize it back to `*net.IPNet`. Here's a link: https://play.golang.org/p/ryc7rp4KyiZ Code just in case: ```go package main import ( "encoding/json" "net" "testing" "github.com/stretchr/testify/assert" ) func TestMarshal(t *testing.T) { var err error _, cidrOut, err := net.ParseCIDR("192.168.0.0/16") assert.Nil(t, err, "net.ParseCIDR") cidrJson, err := json.Marshal(cidrOut) assert.Nil(t, err, "json.Marshal") var cidrIn *net.IPNet err = json.Unmarshal(cidrJson, &cidrIn) assert.Nil(t, err, "json.Unmarshal") assert.Equal(t, cidrOut, cidrIn, "CIDR value differs") assert.Equal(t, len(cidrOut.IP), len(cidrIn.IP), "IP length differs") } ``` ### What did you expect to see? I expected that the original and deserialized values will be equal. ### What did you see instead? I saw that the original and deserialized values are different. Specifically, I saw that the original value as returned from `net.ParseCIDR()` uses 4-byte representation and the value as deserialized by `json.Unmarshal()` uses 16-byte representation. The values might be semantically equivalent but the internal byte representation is different. Note that this value (`net.IPNet.IP`) is managed internally and not used at all by the calling code. I think this might be because `net.ParseCIDR()` masks the `net.IPNet.IP` field with a mask that is limited by the IP address length and by default assumes IPv4, so 4-byte representation. The result is that for an IPv4 CIDR, the internal `net.IPNet.IP` will always be in 4-byte representation. The `IP.UnmarshalText()` function uses `net.ParseIP()`, though, which calls `parseIPv4()`, which in turn uses `net.IPv4()` to construct the `net.IP` that is returned. But `net.IPv4()` uses 16-byte representation ("v4-in-v6 prefix"). I think this is not ideal since in order to get semantics where input is equal to output one has to add code as below, which alters internal data structures: ```go v4 := cidr.IP.To4(); if v4 != nil { cidr.IP = v4 } ``` If this is indeed considered a problem, a naive suggestion would be to add an unmarshal function for `net.IPNet` that uses `net.ParseCIDR()` and thus retaining semantics. I don't know if that's viable though or what unforeseen effects this might have.
NeedsInvestigation
low
Critical
526,374,463
go
x/sys/windows/registry: error reading/writing Windows Defender Registry
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go 1.13.4 linux/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/user/.cache/go-build" GOENV="/home/user/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/user/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/lib/go-1.13" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.13/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build848002775=/tmp/go-build -gno-record-gcc-switches" </br> However, the code was compiled to Windows executable using: env GOOS=windows GOARCH=386 </pre></details> ### What did you do? <!-- If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best. --> The issue was raised on Go-Nuts: https://groups.google.com/forum/#!topic/golang-nuts/V-0GT02SMIs </br> I have been working with the Golang registry and noticed an issue when attempting to access / read from SOFTWARE\Microsoft\Windows Defender. The following code calls SOFTWARE\Microsoft\Windows NT\CurrentVersion and it outputs the correct information. ``` winInfo, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE) check(err) defer winInfo.Close() CurrentVersion, _, err := winInfo.GetStringValue("CurrentVersion") check(err) fmt.Printf("Value: " + CurrentVersion +"\n") ----------------- Output: ----------------- Value: 6.3 ``` However, when attempting to access the Windows Defender registry key using the following code, it doesn't return any information. ``` regInfo, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows Defender`, registry.QUERY_VALUE) check(err) defer regInfo.Close() BackVersion, _, err := regInfo.GetStringValue("BackupLocation") check(err) fmt.Printf("Value: " + BackVersion) ----------------- Output: ----------------- The system cannot find the file specified. Value: ``` I thought this may be an issue with permissions, so I checked the ACLs for the registry keys and all Authenticated Users do have read access to the object, and Adminstrators have Special permissions to the object. In order to confirm this, I used REG QUERY as shown below from a low privileged user account: ``` REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender" /v BackupLocation HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender BackupLocation REG_SZ C:\ProgramData\Microsoft\Windows Defender\platform\4.18.1909.6-0 ``` After this I thought it may require signed Microsoft binaries in order to access the registry location, I then installed Registry Editor, a 3rd party viewer which was able to access the information. Finally, I thought it could be an issue with programming languages being unable to access the registry, so I tried it using the following Python code: ``` import errno, os, winreg RawKey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion",0, winreg.KEY_READ) print(winreg.QueryValueEx(RawKey,"CurrentVersion")) RawKey = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows Defender",0, winreg.KEY_READ) print(winreg.QueryValueEx(RawKey,"BackupLocation")) ----------------- Output: ----------------- ('6.3', 1) ('C:\\ProgramData\\Microsoft\\Windows Defender\\platform\\4.18.1909.6-0', 1) ``` The code above did return the correct information, which leads me to believe that there is an issue with the Golang registry implementation. Either that, or I am not using the registry correctly with Golang. Any help would be greatly appreciated. ### What did you expect to see? I expected to see a value returned from the Windows Defender registry: HKLM\SOFTWARE\Microsoft\Windows Defender. ### What did you see instead? The following error was returned instead: The system cannot find the file specified
OS-Windows,NeedsInvestigation
low
Critical
526,405,079
youtube-dl
the JSON object must be str, not 'bytes' - atresplayer error
<!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.11.05. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser. - Make sure that all URLs and arguments with special characters are properly quoted or escaped as explained in http://yt-dl.org/escape. - Search the bugtracker for similar issues: http://yt-dl.org/search-issues. DO NOT post duplicates. - Read bugs section in FAQ: http://yt-dl.org/reporting - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a broken site support issue - [x] I've verified that I'm running youtube-dl version **2019.11.05** - [x] I've checked that all provided URLs are alive and playable in a browser - [x] I've checked that all URLs and arguments with special characters are properly quoted or escaped - [x] I've searched the bugtracker for similar bug reports including closed ones - [x] I've read bugs section in FAQ ## Verbose log <!-- Provide the complete verbose output of youtube-dl that clearly demonstrates the problem. Add the `-v` flag to your command line you run youtube-dl with (`youtube-dl -v <your command line>`), copy the WHOLE output and insert it below. It should look similar to this: [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj'] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2019.11.05 [debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2 [debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4 [debug] Proxy map: {} <more lines> --> ``` [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', '-f', 'bestvideo+bestaudio', 'https://www.atresplayer.com/nova/telenovelas/madre/temporada-1/capitulo-30_5d6168177ed1a862e1bc2296'] [debug] Encodings: locale cp1250, fs mbcs, out cp852, pref cp1250 [debug] youtube-dl version 2019.11.05 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362 [debug] exe versions: ffmpeg git-2019-10-28-68f623d, ffprobe git-2019-10-28-68f623d [debug] Proxy map: {} [AtresPlayer] 5d6168177ed1a862e1bc2296: Downloading JSON metadata Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 627, in _request_webpage File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 2237, in urlopen File "C:\Python\Python34\lib\urllib\request.py", line 470, in open File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response File "C:\Python\Python34\lib\urllib\request.py", line 508, in error File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default urllib.error.HTTPError: HTTP Error 403: Forbidden During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\atresplayer.py", line 82, in _real_extract File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 892, in _download_json File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 870, in _download_json_handle File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 660, in _download_webpage_handle File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 645, in _request_webpage youtube_dl.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "__main__.py", line 19, in <module> File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\__init__.py", line 474, in main File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\__init__.py", line 464, in _real_main File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 2018, in download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\YoutubeDL.py", line 796, in extract_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 530, in extract File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\atresplayer.py", line 84, in _real_extract File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\atresplayer.py", line 49, in _handle_error File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp7hc5a09v\build\youtube_dl\extractor\common.py", line 899, in _parse_json File "C:\Python\Python34\lib\json\__init__.py", line 312, in loads TypeError: the JSON object must be str, not 'bytes' ``` ## Description <!-- Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible. If work on your issue requires account credentials please provide them or explain how one can obtain them. --> **When I try to download a video from atresplayer, I get the error: the JSON object must be str, not 'bytes'**
geo-restricted
low
Critical
526,428,247
pytorch
c10:Error: could not unlink the shared memory file
## 🐛 Bug Torch fails while trying to `shm_unlink()`. Stack trace below. Is there a way to get the `shm_unlink` *errno*? ## To Reproduce I am using shared memory for dataloading (via torch's dataloader) and Queues from torch.multiprocessing for async summary writing. This error randomly happens at some point during the training. Fyi I am using `torch.multiprocessing.set_sharing_strategy("file_system")`. <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> ``` terminate called after throwing an instance of 'c10::Error' what(): could not unlink the shared memory file /torch_30417_1951398734 (close at /opt/conda/conda-bld/pytorch_1570710718161/work/aten/src/TH/THAllocator.cpp:475) frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x47 (0x7f4842428687 in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libc10.so) frame #1: THRefcountedMapAllocator::close() + 0x13c (0x7f4845cb3efc in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libtorch.so) frame #2: THManagedMapAllocator::close() + 0x42 (0x7f4875ee7ee2 in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libshm.so) frame #3: <unknown function> + 0x503c (0x7f4875ee803c in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libshm.so) frame #4: c10::TensorImpl::release_resources() + 0x4d (0x7f4842415e9d in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libc10.so) frame #5: <unknown function> + 0x1c8439 (0x7f48753a9439 in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libtorch_python.so) frame #6: <unknown function> + 0x4b19ab (0x7f48756929ab in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libtorch_python.so) frame #7: <unknown function> + 0x4b19e6 (0x7f48756929e6 in /cluster/schroeter/miniconda/envs/clc-lme50/lib/python3.7/site-packages/torch/lib/libtorch_python.so) frame #8: <unknown function> + 0x1a184f (0x561be00ed84f in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #9: <unknown function> + 0x10db9b (0x561be0059b9b in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #10: <unknown function> + 0x1a1831 (0x561be00ed831 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #11: PyDict_SetItem + 0x502 (0x561be00aeed2 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #12: _PyObjectDict_SetItem + 0x54 (0x561be00b55c4 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #13: _PyObject_GenericSetAttrWithDict + 0x87 (0x561be010e827 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #14: PyObject_SetAttr + 0x67 (0x561be010f527 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #15: _PyEval_EvalFrameDefault + 0xdca (0x561be01181ba in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #16: _PyFunction_FastCallKeywords + 0xfb (0x561be00afccb in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #17: _PyEval_EvalFrameDefault + 0x6a3 (0x561be0117a93 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #18: _PyFunction_FastCallKeywords + 0xfb (0x561be00afccb in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #19: _PyEval_EvalFrameDefault + 0x6a3 (0x561be0117a93 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #20: _PyEval_EvalCodeWithName + 0x2f9 (0x561be0060539 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #21: _PyFunction_FastCallDict + 0x400 (0x561be0061860 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #22: _PyEval_EvalFrameDefault + 0x1e42 (0x561be0119232 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #23: _PyEval_EvalCodeWithName + 0xac9 (0x561be0060d09 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #24: _PyFunction_FastCallKeywords + 0x387 (0x561be00aff57 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #25: _PyEval_EvalFrameDefault + 0x14dc (0x561be01188cc in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #26: _PyFunction_FastCallKeywords + 0xfb (0x561be00afccb in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #27: _PyEval_EvalFrameDefault + 0x4b39 (0x561be011bf29 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #28: _PyFunction_FastCallKeywords + 0xfb (0x561be00afccb in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #29: _PyEval_EvalFrameDefault + 0x416 (0x561be0117806 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #30: _PyEval_EvalCodeWithName + 0x2f9 (0x561be0060539 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #31: PyEval_EvalCodeEx + 0x44 (0x561be0061424 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #32: PyEval_EvalCode + 0x1c (0x561be006144c in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #33: <unknown function> + 0x22ab74 (0x561be0176b74 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #34: PyRun_FileExFlags + 0xa1 (0x561be0180eb1 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #35: PyRun_SimpleFileExFlags + 0x1c3 (0x561be01810a3 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #36: <unknown function> + 0x236195 (0x561be0182195 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #37: _Py_UnixMain + 0x3c (0x561be01822bc in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) frame #38: __libc_start_main + 0xe7 (0x7f48846f8b97 in /lib/x86_64-linux-gnu/libc.so.6) frame #39: <unknown function> + 0x1db062 (0x561be0127062 in python train.py /cluster/schroeter/configs/clc/conv_rmse1.cfg /scratch/schroeter/clc-data) ``` ## Expected behavior Don't throw this c10 Error, or provide better error details, i.e. the shm_unlink errno. ## Environment Running on ubuntu 18:10, torch 1.3.0. cc @SsnL
module: multiprocessing,module: dataloader,triaged,better-engineering
low
Critical
526,428,497
ant-design
Layout.Sider has no ability to set breakpoint from custom string
- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate. ### What problem does this feature solve? If I want to make custom onBreakpoint event with size, which not included in default breakpoints { xs: '480px', sm: '576px', md: '768px', lg: '992px', xl: '1200px', xxl: '1600px', } ### What does the proposed API look like? breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; add custom string or, may be, number here <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Inactive
low
Minor
526,447,991
pytorch
Wrong substitution of aten::to
## 🐛 Bug The bug takes place when TorchScript scripting is used from eager Python code. ATen::to in resulting TorchScript code has one extra parameter `None`. Then `C++` cannot deal with it ## To Reproduce This comes from an article on discuss: https://discuss.pytorch.org/t/jit-mobile-wrong-substitution-of-aten-to/60846 <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> ## Expected behavior Substitution doesn't contain extra `None` ## Environment - PyTorch Version (e.g., 1.3.1 or Nightly): - OS (scripted on Linux then tested on Android): - How you installed PyTorch (`conda`): - Python version 3.7: cc @suo
oncall: jit,triaged,oncall: mobile
low
Critical
526,451,598
opencv
Documentation for cmake-gui build flags
Not a bug per se, but may as well be, given the amount of confusion resulting: No one person seems to know, much less understand, the bewildering proliferation of options afforded by cmake/cmake-gui. Especially advanced options. One of the single greatest benefits to users of OpenCV could be the ability to build OpenCV according to a coherent plan, and not having to comb through countless google searches for keywords that should really be documented somewhere. The build process turns into a lengthy trial-and-error, apparently even for some of the experienced veterans of the OpenCV forum. This seems like it would be a very worthwhile effort. I have noted many good programmers who build OpenCV with templates found on various websites, only to find that essential features are missing later. This certainly seems within reach, and worthwhile.
category: documentation
low
Critical
526,462,487
neovim
Neovim allows setting invalid `language` without encoding
I noticed an annoying behavior pasting german text from nvim to other apps. All umlauts appear to become two characters. At first I expected my terminal or terminal emulator to be at fault, but by chance I opened regular vim and noticed it behaves as expected. - `nvim --version`: ``` NVIM v0.4.3 Build type: Release LuaJIT 2.0.5 ``` - `vim -u DEFAULTS` (version: 8.1) behaves differently? yes - Operating system/version: MacOS 10.15.1 - Terminal name/version: Terminal.app, iTerm - `$TERM`: xterm-256color - encoding and fileencoding are UTF-8 ### Steps to reproduce using `nvim -u NORC` ``` nvim -u NORC ``` insert text: Müller (on english mac keyboards ü is typed `<M-u> <u>`, I suppose you could also open a text file containing the string) ``` iMüller ``` Copy to System clipboard ``` <Esc> "+yy ``` ### Actual behaviour Pasting into e.g. notepad results: `M√ºller` ### Expected behaviour Pasting into e.g. notepad results: `Müller`. Vim 8.1 has this behavior.
bug,platform:macos,localization,encoding,complexity:low,has:plan
low
Major
526,472,304
three.js
CompressedTextures: Add support for serialization/deserialization.
##### Description of the problem When calling `toJson()` on an object that contains a CompressedTexture, an error gets thrown: ``` Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)' at Object.getDataURL (js.js?v=000:4184) at CompressedTexture.toJSON (js.js?v=000:4398) at MeshStandardMaterial.toJSON (js.js?v=000:10171) at serialize (js.js?v=000:7295) at Mesh.toJSON (js.js?v=000:7349) at Object3D.toJSON (js.js?v=000:7363) at Scene.toJSON (js.js?v=000:7363) at Scene.toJSON (js.js?v=000:7507) ``` My specific use case is that I load textures in the basis universal format, and I call `toJSON()` to export my entire scene to a file in order to debug it in the threejs editor. I don't think it's easy to convert a compressed texture to a data url. But I'll try to make a pull request that at leasts gives a warning and exports it without the texture. Instead of throwing an error. ##### Three.js version r110 ##### Browser Chrome ##### OS MacOS
Enhancement
low
Critical
526,515,810
vscode
Debugging should handle identical sources in sourceReference better
I'm trying to improve the debugging experience for Flutter when using Hot Reload. There are a few places where the behaviour is currently confusing: 1. The user modifies a file in the editor and then hits a breakpoint - the file contents on screen do not match what the VM is running 2. The user modifies a file *and saves*, which results in new breakpoints being sent to the VM with the new locations - however if the VM was not hot reloaded, we just moved all the breakpoints in incorrect locations 3. Even after a hot reload, it's possible for the VM to pause in a location based on old source code (currently it will take the user to the new source code in the editor, which is not what's actually being executed) I thought many of these issues could be resolved by using `stackTraceRequest` in the `getStackTrace` call to give the real source code back to VS Code. This works reasonable well when the source codes are *different* (eg. the user modified a file and saved, but we did NOT hot reload). They end up getting a new editor window showing the source code we're executing. However, if the source files are identical, the debug experience is poor. VS Code still opens a new editor window (even though the contents are the same as what they already had open) and: 1. This editor is read-only. This prevents the user from making changes to then hot-reload 2. VS Code treats this as a completely different file (even though the paths are the same) and therefore it does not show any of the breakpoints that were set, and adding new breakpoints will result in a "different list" being sent to the debug adapter which is very confusing. For example here, these two files are the same - the one on the left is the "real" file and the one on the right is the `sourceReference`-provided file (but with the same `path`). Notice they have different breakpoints (which cannot be distinguished in the Breakpoints list): ![Screenshot 2019-11-21 at 10 40 10 am](https://user-images.githubusercontent.com/1078012/69330744-697b7300-0c4b-11ea-9659-9ebd11017f6a.png) ![Screenshot 2019-11-21 at 10 41 10 am](https://user-images.githubusercontent.com/1078012/69330764-739d7180-0c4b-11ea-801b-c3f0129c6021.png) If you toggle breakpoints in these files, the DA gets these requests: ```js { "source": { "name": "bp_testing.dart", "path": "/Users/dantup/Desktop/Dart Sample/bin/bp_testing.dart", "sourceReference": 2, }, "breakpoints": [ { "line": 5 } ], "sourceModified": false } { "source": { "name": "bp_testing.dart", "path": "/Users/dantup/Desktop/Dart Sample/bin/bp_testing.dart" }, "breakpoints": [ { "line": 2 }, { "line": 7 } ], "sourceModified": false } ``` This is confusing, because if the DA just passes the breakpoints requests on, it will flip-flop between the breakpoints depending on which file was used to set a breakpoint last. I think VS Code could be smarter when it gets a `sourceReference` file with a `path` that matches a file on disk exactly. It could open the normal editor for that file (so there is only one set of breakpoints, and the file is editable). If the user makes changes and hits step, then on the next request the contents would not match, so VS Code would open the new/different editor (which is readonly, as it represents the contents in the VM). When this new editor is opened, it should also show the breakpoints that were last sent to the DA (currently it shows nothing). I don't think this is solvable by the DA (eg. conditionally using `sourceReference` depending on whether the file is different) because the DA has no access to know whether the file is the same in the VM as the one the user sees in the editor.
bug,debug
low
Critical
526,516,146
flutter
Add TextOverflow "ellipsisStart" , "ellipsisMiddle" and "ellipsisEnd"
<!-- Thank you for using Flutter! If you are looking for support, please check out our documentation or consider asking a question on Stack Overflow: * https://flutter.dev/ * https://api.flutter.dev/ * https://stackoverflow.com/questions/tagged/flutter?sort=frequent If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. Please read our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports --> ## Use case When displaying file-paths, I'd prefer to show the file-name and clip the file-path. In this example, it's not possible to see the filenames: ```dart Text( '/root/sdcard/storage/camera/2019-11-20 12:12:11 a-file-with-a-long-path.png', overflow: TextOverflow.ellipsis, ) ``` <img width="410" alt="Screenshot 2019-11-21 at 10 47 04" src="https://user-images.githubusercontent.com/46879/69331201-43a29e00-0c4c-11ea-833e-9fa115b88926.png"> ## Proposal Allow TextOverflow to clip text on the leading edge rather than the trailing edge. <!-- Briefly but precisely describe what you would like Flutter to be able to do. Consider attaching images showing what you are imagining. Does this have to be provided by Flutter directly, or can it be provided by a package on pub.dev/flutter? If so, maybe consider implementing and publishing such a package rather than filing a bug. --> Internal bug - b/180975303
c: new feature,framework,a: typography,customer: crowd,customer: google,c: proposal,P1,team-framework,triaged-framework,:hourglass_flowing_sand:
medium
Critical
526,548,093
node
fs.copyFile does not actually do a full copy
<!-- Thank you for reporting a possible bug in Node.js. Please fill in as much of the template below as you can. Version: output of `node -v` Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify the affected core module name If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you can. --> * **Version**: 13.1.0 * **Platform**: MacOS * **Subsystem**: fs <!-- Please provide more details below this comment. --> copyFile on MacOS does not correctly copy files. A simple example Here's a .jpg downloaded with Chrome ``` $ ls -l -@ total 6792 -rw-r--r--@ 1 gregg staff 3476085 Nov 21 20:28 original.jpg com.apple.macl 72 com.apple.metadata:_kMDItemUserTags 42 com.apple.metadata:kMDItemWhereFroms 190 com.apple.quarantine 57 ``` copy with it `cp` ``` $ cp original.jpg copied-with-cp.jpg $ls -l -@ total 13584 -rw-r--r--@ 1 gregg staff 3476085 Nov 21 20:48 copied-with-cp.jpg com.apple.macl 72 com.apple.metadata:_kMDItemUserTags 42 com.apple.metadata:kMDItemWhereFroms 190 com.apple.quarantine 57 -rw-r--r--@ 1 gregg staff 3476085 Nov 21 20:28 original.jpg com.apple.macl 72 com.apple.metadata:_kMDItemUserTags 42 com.apple.metadata:kMDItemWhereFroms 190 com.apple.quarantine 57 ``` now copy it with fs.copyFileSync ``` $ node Welcome to Node.js v13.1.0. Type ".help" for more information. > const fs = require('fs') undefined > fs.copyFileSync('original.jpg', 'copied-with-fs-copyFile.jpg'); undefined > $ ls -l -@ total 20376 -rw-r--r--@ 1 gregg staff 3476085 Nov 21 20:48 copied-with-cp.jpg com.apple.macl 72 com.apple.metadata:_kMDItemUserTags 42 com.apple.metadata:kMDItemWhereFroms 190 com.apple.quarantine 57 -rw-r--r-- 1 gregg staff 3476085 Nov 21 20:49 copied-with-fs-copyFile.jpg -rw-r--r--@ 1 gregg staff 3476085 Nov 21 20:28 original.jpg com.apple.macl 72 com.apple.metadata:_kMDItemUserTags 42 com.apple.metadata:kMDItemWhereFroms 190 com.apple.quarantine 57 ``` notice all the metadata is missing. I believe like [windows calls an OS level copy function](https://github.com/nodejs/node/blob/7d433a936bce26707f7a10bb56b121fe0dfb0a66/deps/uv/src/win/fs.c#L1958) in MacOS [`copyItem`](https://developer.apple.com/documentation/foundation/filemanager/1412957-copyitem) needs to be called.
fs,libuv,macos
low
Critical
526,642,214
go
os: TestReadWriteDeadlineRace failure on linux-amd64-clang builder
There was a single failure of `TestReadWriteDeadlineRace` on the `linux-amd64-clang` builder at head: ``` --- FAIL: TestReadWriteDeadlineRace (0.00s) timeout_test.go:498: Read returned non-timeout error read |0: not pollable FAIL FAIL os 0.638s ``` I've only seen this failure once, but recording it here in case it becomes a pattern. [2019-11-20T22:38:34-39a9cb4/linux-amd64-clang](https://build.golang.org/log/704e7ab7a8d45ba1e50da8784b9846a86adad9e3) CC @ianlancetaylor
NeedsInvestigation
low
Critical
526,649,262
go
runtime: TestGdbPythonCgo failure with "malformed backtrace" on linux-amd64 builder
[2019-11-20T20:51:13-9852b4b/linux-amd64](https://build.golang.org/log/70a9e79d71a3e02eba2458eff1169eaea6975305) ``` --- FAIL: TestGdbPythonCgo (1.88s) runtime-gdb_test.go:69: gdb version 7.12 runtime-gdb_test.go:236: gdb output: Loading Go Runtime support. Loading Go Runtime support. Breakpoint 1 at 0x490e7a: file /workdir/tmp/go-build468155886/main.go, line 15. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Thread 1 "a.exe" hit Breakpoint 1, main.main () at /workdir/tmp/go-build468155886/main.go:15 15 fmt.Println("hi") BEGIN info goroutines * 1 running runtime.systemstack_switch * 2 running runtime.forcegchelper 3 waiting runtime.gopark 4 waiting runtime.gopark 18 waiting runtime.gopark END BEGIN print mapvar $1 = map[string]string = {["abc"] = "def", ["ghi"] = "jkl"} END BEGIN print strvar $2 = "abc" END BEGIN info locals mapvar = map[string]string = {["abc"] = "def", ["ghi"] = "jkl"} strvar = "abc" slicevar = []string END BEGIN goroutine 1 bt #0 main.main () at /workdir/tmp/go-build468155886/main.go:15 END BEGIN goroutine 2 bt #0 runtime.cgoSigtramp () at /workdir/go/src/runtime/sys_linux_amd64.s:398 #1 <signal handler called> #2 0x0000000000433464 in runtime.casgstatus (gp=0xc000000d80, oldval=1, newval=2) at /workdir/go/src/runtime/proc.go:786 #3 0x0000000000435dfd in runtime.execute (gp=0xc000000d80, inheritTime=false) at /workdir/go/src/runtime/proc.go:2083 #4 0x00000000004372fc in runtime.schedule () at /workdir/go/src/runtime/proc.go:2597 #5 0x0000000000433e9e in runtime.mstart1 () at /workdir/go/src/runtime/proc.go:1140 #6 0x0000000000433dee in runtime.mstart () at /workdir/go/src/runtime/proc.go:1098 #7 0x00000000004916c3 in crosscall_amd64 () at gcc_amd64.S:35 #8 0x0000000000000003 in ?? () #9 0x00007ffdcf609000 in ?? () #10 0x00007fffffffe48f in ?? () #11 0x00007fffffffe48e in ?? () #12 0x000000c000001080 in ?? () #13 0x0000000000433d80 in ?? () at <autogenerated>:1 #14 0x0000000000491293 in threadentry (v=<optimized out>) at gcc_linux_amd64.c:97 #15 0x00007ffff7bc34a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #16 0x00007ffff7905d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6 END BEGIN goroutine all bt #0 main.main () at /workdir/tmp/go-build468155886/main.go:15 No such goroutine: 17 #0 runtime.cgoSigtramp () at /workdir/go/src/runtime/sys_linux_amd64.s:398 #1 <signal handler called> #2 0x0000000000433464 in runtime.casgstatus (gp=0xc000000d80, oldval=1, newval=2) at /workdir/go/src/runtime/proc.go:786 #3 0x0000000000435dfd in runtime.execute (gp=0xc000000d80, inheritTime=false) at /workdir/go/src/runtime/proc.go:2083 #4 0x00000000004372fc in runtime.schedule () at /workdir/go/src/runtime/proc.go:2597 #5 0x0000000000433e9e in runtime.mstart1 () at /workdir/go/src/runtime/proc.go:1140 #6 0x0000000000433dee in runtime.mstart () at /workdir/go/src/runtime/proc.go:1098 #7 0x00000000004916c3 in crosscall_amd64 () at gcc_amd64.S:35 #8 0x0000000000000003 in ?? () #9 0x00007ffdcf609000 in ?? () #10 0x00007fffffffe48f in ?? () #11 0x00007fffffffe48e in ?? () #12 0x000000c000001080 in ?? () #13 0x0000000000433d80 in ?? () at <autogenerated>:1 #14 0x0000000000491293 in threadentry (v=<optimized out>) at gcc_linux_amd64.c:97 #15 0x00007ffff7bc34a4 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 #16 0x00007ffff7905d0f in clone () from /lib/x86_64-linux-gnu/libc.so.6 #0 runtime.gopark (unlockf={void (runtime.g *, void *, bool *)} 0xc00002d7a8, lock=0x75e920 <runtime.sweep>, reason=12 '\f', traceEv=20 '\024', traceskip=1) at /workdir/go/src/runtime/proc.go:305 #1 0x00000000004200cc in runtime.goparkunlock (lock=<optimized out>, reason=<optimized out>, traceEv=<optimized out>, traceskip=<optimized out>) at /workdir/go/src/runtime/proc.go:310 #2 runtime.bgsweep (c=0xc000016070) at /workdir/go/src/runtime/mgcsweep.go:70 #3 0x000000000045b311 in runtime.goexit () at /workdir/go/src/runtime/asm_amd64.s:1375 #4 0x000000c000016070 in ?? () #5 0x0000000000000000 in ?? () #0 runtime.gopark (unlockf={void (runtime.g *, void *, bool *)} 0xc00002df50, lock=0x75e8e0 <runtime.scavenge>, reason=13 '\r', traceEv=20 '\024', traceskip=1) at /workdir/go/src/runtime/proc.go:305 #1 0x000000000041e8b3 in runtime.goparkunlock (lock=<optimized out>, reason=<optimized out>, traceEv=<optimized out>, traceskip=<optimized out>) at /workdir/go/src/runtime/proc.go:310 #2 runtime.bgscavenge (c=0xc000016070) at /workdir/go/src/runtime/mgcscavenge.go:220 #3 0x000000000045b311 in runtime.goexit () at /workdir/go/src/runtime/asm_amd64.s:1375 #4 0x000000c000016070 in ?? () #5 0x0000000000000000 in ?? () #0 runtime.gopark (unlockf={void (runtime.g *, void *, bool *)} 0xc00002c758, lock=0x777de0 <runtime.finlock>, reason=16 '\020', traceEv=20 '\024', traceskip=1) at /workdir/go/src/runtime/proc.go:305 #1 0x0000000000416053 in runtime.goparkunlock (lock=<optimized out>, reason=<optimized out>, traceEv=<optimized out>, traceskip=<optimized out>) at /workdir/go/src/runtime/proc.go:310 #2 runtime.runfinq () at /workdir/go/src/runtime/mfinal.go:175 #3 0x000000000045b311 in runtime.goexit () at /workdir/go/src/runtime/asm_amd64.s:1375 #4 0x0000000000000000 in ?? () END Breakpoint 2 at 0x490efd: file /workdir/tmp/go-build468155886/main.go, line 19. hi Thread 1 "a.exe" hit Breakpoint 2, main.main () at /workdir/tmp/go-build468155886/main.go:20 20 } // END_OF_PROGRAM BEGIN goroutine 1 bt at the end #0 main.main () at /workdir/tmp/go-build468155886/main.go:20 END runtime-gdb_test.go:98: malformed backtrace at line 10: #10 0x00007fffffffe48f in ?? () FAIL FAIL runtime 29.184s ``` See previously #31569, #27608, and perhaps others. This failure mode is similar, but somewhat different. CC @cherrymui
NeedsInvestigation,compiler/runtime
low
Critical
526,716,697
godot
RID Objects are always "Invalid RID"
**Godot version:** Beta 1 **OS/device including version:** Windows 10 1903 **Issue description:** No matter which function i use, the RID object always gives `Invalid RID`. **Steps to reproduce:** Try any of these: `var ps_rid = get_viewport().get_world().get_space() # ps_rid is Invalid RID` `var vs_rid = get_viewport().get_world().get_canvas() # vs_rid is Invalid RID` ``` var rigidBody = RigidBody2D.new() var rb = rigidBody.instance() add_child(rb) print(rb.get_rid()) # prints Invalid RID ``` ![image](https://user-images.githubusercontent.com/1850856/69358795-1ed01a00-0c90-11ea-94af-c51ca5d259cc.png) ![image](https://user-images.githubusercontent.com/1850856/69358816-2b547280-0c90-11ea-82d5-59fc8196ef0c.png) ![image](https://user-images.githubusercontent.com/1850856/69358839-34454400-0c90-11ea-8874-8eb08b92cc81.png)
enhancement,topic:editor,confirmed,usability
low
Major
526,736,595
go
os: ExpandEnv: Missing curly bracket at end of string substitutes var name whether or not env var is set
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> go version go1.12.9 linux/amd64 </pre> and <pre> Go Playground (1.13.4) </pre> ### Does this issue reproduce with the latest release? Yes. (Go Playground) ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> GOARCH="amd64" GOBIN="" GOCACHE="/home/ceineke/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/ceineke/.gvm/pkgsets/go1.12.9/global" GOPROXY="" GORACE="" GOROOT="/home/ceineke/.gvm/gos/go1.12.9" GOTMPDIR="" GOTOOLDIR="/home/ceineke/.gvm/gos/go1.12.9/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build732428512=/tmp/go-build -gno-record-gcc-switches" </pre> and <pre> Go Playground </pre></details> ### What did you do? https://play.golang.org/p/GSfBKiZqj2L ### What did you expect to see? Either ``` Hello, ${name Hello, ${name ``` or ``` Hello, ${name Hello, foo ``` ### What did you see instead? ``` Hello, name Hello, name ```
Documentation,help wanted,NeedsFix
low
Critical
526,772,247
terminal
Add support for `tmux` Control Mode
From discussion in #532, #1000: > If we're looking at tmux for things like splits, why not implement [Tmux Control Mode](https://medium.com/@gveloper/using-iterm2s-built-in-integration-with-tmux-d5d0ef55ec30) like iTerm on MacOS. I switch back and forth between my Macs (with iTerm2) and my Surface Laptop with WSL but WSL2 combined with a _really_ usable terminal (comparable to iTerm2) would really make me consider leaving the Apple camp. > > In #532, from @zadjii-msft: > > > I did not know that Tmux Control Mode even existed. That sounds really awesome, I'm totally on board with trying to make that work somehow. > > Was there any further thought put into this? I love tmux control mode - it's literally the only thing keeping me tethered to MacOS at work (since only iTerm supports it, and iTerm is mac-only). If it were implemented, I'd trash my Mac and request a Windows laptop immediately. > > I'd love to see it listed as a post-1.0 milestone :) We should do this. Docs link: https://github.com/tmux/tmux/wiki/Control-Mode
Issue-Feature,Help Wanted,Area-Interop,Area-UserInterface,Area-Extensibility,Product-Terminal
high
Critical
526,787,820
go
x/build/cmd/gopherbot: make decision on whether anyone can add/remove release-blocker without specifying reason
gopherbot removed the release-blocker label in https://github.com/golang/go/issues/35482#event-2820741690. Need to investigate and understand why it happened.
Builders,NeedsDecision
low
Major
526,793,098
pytorch
CUDA masked_select uses way too much memory
```py In [1]: x = torch.randn(20000, 20000,device='cuda') In [2]: torch.cuda.max_memory_allocated() Out[2]: 1600126976 In [3]: m = ~torch.eye(20000, dtype=torch.bool, device='cuda') In [4]: torch.cuda.max_memory_allocated() Out[4]: 2401239040 In [5]: x[m] Out[5]: tensor([ 0.6415, 0.2951, -0.7630, ..., 1.0940, 0.3103, 0.3631], device='cuda:0') In [6]: torch.cuda.max_memory_allocated() Out[6]: 10001317888 In [7]: torch.__version__ Out[7]: '1.4.0a0+91c6d2e' ``` Titan XP CUDA: 10.1 Why does it allocate about 4.75x of the indexed tensor, rather than just 1x? cc @ngimel @VitalyFedyunin @mruberry
module: performance,module: cuda,triaged
low
Major
526,803,319
react
SuspenseList revealOrder="forwards" has issues when Suspense is nested in another element
**Do you want to request a *feature* or report a *bug*?** SuspenseList is currently experimental, so it's neither. But I think that this should be fixed before it's stable. **What is the current behavior?** ![Screen Recording 2019-11-21 at 12 39 56 PM](https://user-images.githubusercontent.com/1500684/69371223-a6039a80-0c5c-11ea-9fd4-848a3f1672fa.gif) Note the 1000ms at the bottom (which should show last based on the `revealOrder`) shows at 2000ms for the nested version. The only difference between those two sets of SuspenseLists is that one has nested the two bottom suspense elements in a `div`. Something like this: ```javascript function App() { return ( <SuspenseList revealOrder="forwards"> <Suspense fallback={<div>2000ms loading</div>}> <A /> </Suspense> <div> {/* nesting */} <Suspense fallback={<div>3000ms loading</div>}> <B /> </Suspense> <Suspense fallback={<div>1000ms loading</div>}> <C /> </Suspense> </div> {/* nesting */} </SuspenseList> ) } ``` https://codesandbox.io/s/suspenselist-issues-sdqzb **What is the expected behavior?** I would expect them to behave exactly the same. Nesting things is often necessary for styling reasons. **Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?** I'm experiencing this on `[email protected]` and `[email protected]`. I don't believe this ever worked in previous versions of React.
Type: Needs Investigation,Component: Suspense,Component: Concurrent Features
low
Critical
526,804,291
pytorch
Add scripts for comprehensive benchmark TensorIterator
## 🚀 Feature Proposed in: https://github.com/pytorch/pytorch/pull/29743 TensorIterator is performance-critical but complicated. Changing some parts of it might cause hard-to-realize regression on the other parts. It would be very convenient to have a script that benchmark all the case we could imagine: **Memory layout**: trivial 1D, (contiguous dim, non-contiguous dims) **Problem size**: small, medium, large **Type of computation**: unary ops, binary ops, compare ops, reduction **Data type**: all dtypes with/without promotion **Inplace**: True, False **Device**: CPU, CUDA ## The designed usage of the script could be: **Step 1**: Install a PyTorch build of the master branch, and run ``` python main.py benchmark baseline.json ``` **Step 2**: Go to your branch, build install and run ``` python main.py benchmark new.json ``` **Step 3**: Run the following command to get the report: ``` python main.py compare baseline.json new.json report.html ``` cc: @ngimel @VitalyFedyunin cc: @csarofeen cc @VitalyFedyunin @ngimel @mruberry
module: performance,feature,triaged
low
Major
526,811,773
go
x/build/cmd/gopherbot: add/remove label functionality can be confusing if original comment is deleted
`gopherbot` allows anyone to add or remove labels, as described at https://golang.org/wiki/gopherbot. Normally, it's possible to see who made the label add/remove change because of the comment requesting it. However, if that comment is deleted, it looks like gopherbot did it on its own, and it's not easy to find out why: ![image](https://user-images.githubusercontent.com/1924134/69372489-cbe66a80-0c6f-11ea-8242-4a9ae0708e5a.png) maintner tracks all events and can be helpful in situations like this, but this issue is about finding a better way. This happened recently, see https://github.com/golang/go/issues/35482#event-2820741690 and #35755.
Builders,NeedsInvestigation,Community
low
Minor
526,818,533
go
proposal: crypto/tls: add support for exported authenticators
Proposal to implement support for exported authenticators in `crypto/tls` as described in [draft-ietf-tls-exported-authenticator-10](https://tools.ietf.org/html/draft-ietf-tls-exported-authenticator-10). I'm happy to write a CL for this. cc @grittygrease @wbl
Proposal,Proposal-Hold,Proposal-Crypto
low
Minor
526,820,322
rust
Disambiguate between `()` as type and as value in const generic arguments
```rust #![feature(const_generics)] trait Trait<const U: ()> {} impl Trait<()> for () {} // error (expected const argument, found type argument) ``` I wonder if we can resolve the unit value correctly here (though maybe it'll require a small hack), because this is quite unfortunate. <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":null}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->
T-compiler,A-const-generics
medium
Critical
526,833,783
flutter
[web] Reduce expensive CSS matchers
Some examples include: * `flt-scene p` * `flt-ruler-host p` * `flt-glass-pane *`
engine,c: performance,platform-web,P3,team-web,triaged-web
low
Minor
526,849,718
svelte
Keyed each does not preserve element (re-create) when reordered
**Describe the bug** I try to render a list of input element using keyed each block so that when enter key is pressed when an input is focused it will be swapped with the next input element. Likewise when shift+enter is pressed it will be swapped with the previous input element. Forward swapping works as expected and input keeps the focus. But backwards swap (shift+enter) causes the previous input to be re-created and the focus is lost. I share a sample app written with both Svelte and React. React version work as expected. **Codesandbox Repo** [svelte demo](https://codesandbox.io/s/svelte-move-focus-i49mm) [react demo](https://codesandbox.io/s/react-move-focus-piqis) **Expected behavior** Keyed list should respect the keys and matching elements should be reordered by getting detached and attached to preserve element instance. **Information about your Svelte project:** Svelte 3
feature request,temp-stale
medium
Critical
526,855,660
pytorch
pairwise_dist eps argument is confusing
The doc says that `eps` helps preventing division by zero (without mentioning how). The actual implementation is https://github.com/pytorch/pytorch/blob/0fdbb762d1a9e6b9c262760b6b67bcb3d0814407/aten/src/ATen/native/Distance.cpp#L15-L17 However, `norm(zero_vector)` is perfectly stable and gives correct subgradient. So unless `pairwise_dist` output is used as a denominator, there is no DBZ or any instability. And how to use `pairwise_dist` output should be in users' control, unless we want to automatically add `eps` to every op that can output zeros. Proposal: remove `eps` argument. cc @ezyang @SsnL @gchanan
module: numerical-stability,module: bc-breaking,module: docs,triaged
low
Minor
526,909,562
flutter
Generated files are created for platforms that are not configured
## Steps to Reproduce 1. On Linux machine, remove the `ios` and `android` directory to remove support for those platforms 1. `flutter run` a desktop app ios and android directories are recreated with flutter_export_environment.sh, Generated.xcconfig, GeneratedPluginRegistrant.java, and local.properties.
tool,P2,team-tool,triaged-tool
low
Minor
526,958,926
godot
Can't animate a Shape2D using "Add Track" button
**Godot version:** Godot 3.1.1 Mono Stable **OS/device including version:** Windows 8.1 **Issue description:** Using the "Add Track" button, a CollisionShape2D's `shape` property can be animated, but there is no way to animate `shape:extents:x` or `shape:radius` without manually typing the property name into the property path text box. Because of this issue, I always thought collision shapes couldn't be animated, and I think others may have been confused into thinking this too. To animate a Shape2D, the CollisionShape2D has to be selected in the scene tree. Keys will appear next to the shape's properties, allowing them to be animated. There is no way to do this using the "Add Track" button in the animation player. Instead, only the shape itself can be animated, which is usually not desirable because a Resource can't be animated over time. I don't know what the UX for keying a Shape2D through the 'Add Track' menu should be, or what would be simplest to implement. This problem applies to keying all resources' properties, not just collision shapes. One idea is to display the properties of the current resource in the "Select Property" menu: ![image](https://user-images.githubusercontent.com/42157525/69393797-2ac7d600-0ca8-11ea-83af-69d86c2c8c08.png) It's confusing that there are two ways to add animation tracks, and neither of them can key everything the other can. The key button in the inspector can't do these things (as far as I know): * Add 3D transform tracks * Add call method tracks * Add audio playback tracks * Add animation playback tracks The "Add Track" button can't add keys for properties of resources (like the size of CollisionShapes). To prevent confusion, I think these features should meet one of these conditions: * One of them should be able to do everything, and the other can be for convenience, * _or_ both of them should have feature parity, * _or_ one of them should be merged into the other so there is one, consistent way to key animations **Steps to reproduce:** With an AnimationPlayer and a CollisionShape2D in a scene, try to animate the CollisionShape2D's Shape resource. a) Select the CollisionShape2D in the scene. Open its shape in the inspector, and add a key for its extents (if its a RectangleShape2D). This allows you to animate the shape's properties over time. b) Using the "Add Track" button, this isn't possible. Only the Shape2D resource itself can be animated. The only way to animate its properties is to manually add a dummy track and change its path to `CollisionShape2D:shape:extents` in the path text box.
discussion,topic:editor,usability
low
Major
526,965,624
godot
Incorrect scene thumbnail when saving from script editor
**Godot version:** 3.1.1 **OS/device including version:** Windows 10 x64 **Issue description:** When saving scenes from the script editor using Ctrl+S, the thumbnail used to preview the scene in the file browser uses the last thing the editor viewport saw, even if it was from a different scene. With multiple tabs, switching between code editors means overwriting the thumbnails of the associated scenes with the preview of the last scene which was viewed from the 2d editor before switching to the script editor. (I haven't tested this with the 3d editor but assume it does the same.)
bug,topic:editor,confirmed
low
Major
526,981,671
pytorch
[feature request] A way to restore/assign tensor _version
I'm doing some manual inplace tensor manipulation in custom autograd functions. I have to work with `.data` directly because otherwise version tracking errors out. It would be nice to allow save/restore tensor versions when it's needed. Currently `tensor._version` is not writable. (related https://github.com/pytorch/pytorch/issues/23756, cc @ezyang @SsnL @albanD @zou3519 @gqchen)
feature,module: autograd,triaged
low
Critical
527,033,623
godot
ResourceLoader.LoadInteractive() returns null on cache hit
**Godot version:** v3.2.beta1.mono.official **OS/device including version:** Ubuntu 18.04.3 LTS **Issue description:** The first call to `ResourceLoader.LoadInteractive("res://somescene.tscn")` works as expected. Future calls return `null` and throw some error, instead of returning the cached version (`ResourceLoader.HasCached("res://somescene.tscn")` returns `true`). [Relevant doc](https://docs.godotengine.org/en/3.1/classes/class_resourceloader.html#class-resourceloader-method-has-cached): > "...it is cached in memory for faster access, and future calls to the load or load_interactive methods will use the cached version." **Steps to reproduce:** - Transition from scene A -> scene B using `ResourceLoader.LoadInteractive("res://sceneB.tscn")` - Go back to scene A - Print out `ResourceLoader.HasCached("res://sceneB.tscn")`, assert it's `true` - Try to transition again from scene A -> scene B using `ResourceLoader.LoadInteractive("res://sceneB.tscn")`. You will get this error: - `E 0:00:04:0811 load_interactive: Resource: 'res://sceneToLoad.tscn' is already being loaded. Cyclic reference?` - The returned value from the `LoadInteractive()` call will be null. **Minimal reproduction project:** [resource_loader_cache_bug.zip](https://github.com/godotengine/godot/files/3878333/resource_loader_cache_bug.zip) - Press "space" to transition to scene B - Press "space" again to transition to scene A - Press "space" again to transition to scene B. Godot should crash with the above errors. I have included `GD.Print()` statements that show what I am talking about. I believe this is a bug (unless I am doing something wrong ;) ). Contact me with any concerns!
bug,topic:core,confirmed
low
Critical