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
513,424,961
youtube-dl
Add extractor
<!-- ###################################################################### 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.10.22. 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 site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights. - Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a new site support request - [x] I've verified that I'm running youtube-dl version **2019.10.22** - [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 ## Example URLs <!-- Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours. --> - Single video: https://oiplay.tv/oiplay/play/content/EP032323950001/Cole%C3%A7%C3%A3o%20Oi%28VideoOnDemand%29 - Playlist: https://oiplay.tv/oiplay/content/details/SH032323950000 ## Description <!-- Provide any additional information. If work on your issue requires account credentials please provide them or explain how one can obtain them. --> When you need the credentials I will send them by email [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['https://oiplay.tv/oiplay/play/content/EP032323950001/Cole%C3%A7%C3%A3o%20Oi%28VideoOnDemand%29', '-F', '-v'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.10.22 [debug] Python version 3.6.3 (CPython) - Linux-4.15.0-30deepin-generic-x86_64-with-debian-9.0 [debug] exe versions: avconv 3.2.12-1, avprobe 3.2.12-1, ffmpeg 3.2.12-1, ffprobe 3.2.12-1, rtmpdump 2.4 [debug] Proxy map: {} [generic] Coleção Oi(VideoOnDemand): Requesting header WARNING: Falling back on generic information extractor. [generic] Coleção Oi(VideoOnDemand): Downloading webpage [generic] Coleção Oi(VideoOnDemand): Extracting information ERROR: Unsupported URL: https://oiplay.tv/oiplay/play/content/EP032323950001/Cole%C3%A7%C3%A3o%20Oi%28VideoOnDemand%29 Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info ie_result = ie.extract(url) File "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/common.py", line 530, in extract ie_result = self._real_extract(url) File "/usr/local/lib/python3.6/site-packages/youtube_dl/extractor/generic.py", line 3353, in _real_extract raise UnsupportedError(url) youtube_dl.utils.UnsupportedError: Unsupported URL: https://oiplay.tv/oiplay/play/content/EP032323950001/Cole%C3%A7%C3%A3o%20Oi%28VideoOnDemand%29
site-support-request
low
Critical
513,436,692
pytorch
[CUDA-MEMCHECK] TestTorchDeviceTypeCUDA.test_pin_memory_from_constructor_cuda fails
Run `cuda-memcheck` with unit test `TestTorchDeviceTypeCUDA.test_pin_memory_from_constructor_cuda` in `test_torch.py` gives the following error: ``` ========= CUDA-MEMCHECK ========= Program hit cudaErrorInvalidValue (error 1) due to "invalid argument" on CUDA API call to cudaPointerGetAttributes. ========= Saved host backtrace up to driver entry point at error ========= Host Frame:/usr/lib/x86_64-linux-gnu/libcuda.so.1 [0x38c7b3] ========= Host Frame:/usr/local/cuda/lib64/libcudart.so.10.1 (cudaPointerGetAttributes + 0x1a9) [0x428b9] ========= Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x5b779b9] ========= Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x39d6e1d] ========= Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch.so [0x551dc70] ========= Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so [0x3c2924] ========= Host Frame:/home/xgao/anaconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so [0x37d1b4] ``` cc: @ngimel @mruberry See also: https://github.com/pytorch/pytorch/issues/26052
module: cuda,triaged
low
Critical
513,444,964
pytorch
torch.from_file not documented
## 📚 Documentation The torch.from_file function is not documented. Only the [torch.Storage.from_file](https://pytorch.org/docs/stable/storage.html#torch.FloatStorage.from_file) is documented, but it's not clear how to create a Tensor from that function. Specifically, it requires knowing that you can construct a Tensor from a storage using the constructor `torch.Tensor(storage)`. That constructor is no longer documented.
module: docs,triaged
low
Minor
513,465,428
vscode
[folding] Improve #region support: make it look like Visual Studio IDE
<!-- Please search existing issues to avoid creating duplicates. --> <!-- Describe the feature you'd like. --> The current VSCode region folding is OK (eg. in C# or JS), but it would be very nice to have a viewlet kinda like VS IDE to regions, so this request is purely visual. ![imagen](https://user-images.githubusercontent.com/36938997/67703405-fa2aa000-f978-11e9-92fd-fe3e8bb3a272.png) Something like the image above ⬆ is what I'm talking about. To be clearer: The name of the region wraps into that "commentary style"-like box, and on hover we have a peek of the code written in the region.
feature-request,editor-folding
low
Minor
513,478,957
storybook
addon-jest test total and time total overlap "Todo" text on small screens.
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to 'https://storybookjs.now.sh/official-storybook/?path=/story/addons-jest--with-tests' in a narrow width browser. 2. Click on the Tests panel. 3. Scroll down to see the tests panel. 4. See the total number of tests and total time covering up the "Todo" text. **Expected behavior** The text does not overlap. **Screenshots** If applicable, add screenshots to help explain your problem. ![Screen Shot 2019-10-28 at 1 55 41 PM](https://user-images.githubusercontent.com/2117593/67704061-ceb0b100-f98a-11e9-8114-a58cb10f5a61.png) **Code snippets** If applicable, add code samples to help explain your problem. **System:** Please paste the results of `npx -p @storybook/cli@next sb info` here. ``` System: OS: macOS Mojave 10.14.6 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Binaries: Node: 10.16.3 - /usr/local/bin/node npm: 6.12.0 - /usr/local/bin/npm Browsers: Chrome: 77.0.3865.90 Firefox: 69.0.2 Safari: 12.1.2 npmPackages: @storybook/addon-a11y: ^5.2.5 => 5.2.5 @storybook/addon-actions: ^5.2.5 => 5.2.5 @storybook/addon-docs: ^5.2.5 => 5.2.5 @storybook/addon-jest: ^5.2.5 => 5.2.5 @storybook/addon-knobs: ^5.2.5 => 5.2.5 @storybook/addon-links: ^5.2.5 => 5.2.5 @storybook/addons: ^5.2.5 => 5.2.5 @storybook/react: ^5.2.5 => 5.2.5 @storybook/theming: ^5.2.5 => 5.2.5 ``` **Additional context** I looked into this a little bit and discovered that the Accessibility addon has solved this issue by dropping down the "highlight results" checkbox to the next line. The total tests and total time for for the addon-jest is absolutely positioned and seems to be setup a bit differently than that addon.
bug,feature request,good first issue,help wanted,addon: jest
low
Critical
513,486,039
TypeScript
No IntelliSense for generic literal types
From https://github.com/microsoft/vscode/issues/83375 <!-- 🚨 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:** [email protected] <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** - suggest / completions - intellisense - generic **Repo** For the typescript: ```ts function test<T extends "x" | "y">() {} test<''> ``` 1. Trigger intellisense inside the quotes in `test<''>` **Expected behavior:** Suggestions for `x` and `y` returned. **Actual behavior:** No suggestions returned
Suggestion,Experience Enhancement
low
Critical
513,489,214
TypeScript
Investigate Asynchronous File IO
@amcasey has some ideas for speeding up IO times by making our read/write calls asynchronous. This issue tracks that and should be the place to document the outcome of the investigation. Also related: https://github.com/microsoft/TypeScript/issues/1857, https://github.com/microsoft/TypeScript/issues/16607, https://github.com/microsoft/TypeScript/issues/29100
Suggestion,In Discussion,Domain: Performance,Experimentation Needed
medium
Major
513,493,252
flutter
Enable platform view tests with the Metal backend enabled.
a: tests,c: new feature,platform-ios,engine,a: platform-views,c: proposal,P3,team-ios,triaged-ios
low
Minor
513,501,606
TypeScript
Provide passive `extendedDiagnostics` feedback on PRs
@amcasey had suggested that we provide performance feedback for changes, similar to what we do on DefinitelyTyped. This could be a part of the standard CI process, where @typescript-bot provides the output of `tsc -p src/compiler` as a comment and compares it against a baseline.
Suggestion,Infrastructure
low
Major
513,505,885
TypeScript
Optimize constructing type nodes from types
_Originally posted by @weswigham in https://github.com/microsoft/TypeScript/issues/34119#issuecomment-545640573_ > Yep, looking at the traces I see pretty much all the time spent in `trySymbolTable` and `getAliasForSymbolInContainer`, which are workers user for calculating visible symbol chains. The whole process is uncached and quite naive right now (it's _pretty much_ the same as it was since TS 1.8, but we rely on it more and more). It has been on my backlog as something that needs to be rewritten with a better more cacheable structure for perf. > There's _also_ a fair chunk of time spent in GC and in path component-related operations that might also need some optimization - I'm guessing the large number of import types we manufacture require a large number of path calculations which end up making a lot of garbage - some caching may be in order here.
Bug,Help Wanted,Domain: Performance
low
Minor
513,512,051
TypeScript
Attempt to more-frequently use local aliases when printing out types
When a user imports a type alias like ```ts // ./a.ts export type Foo = number | string | symbol; ``` We should try to print out `Foo` in error messages like in ```ts // ./b.ts import { Foo } from "./a.js" let x: Foo = true; ``` and in declaration emit like in ```ts // ./c.ts import { Foo } from "./a.js" function f(x: Foo) { return x; } ```
Suggestion,Needs Proposal,Domain: Type Display
medium
Critical
513,520,983
bitcoin
contrib: Autogenerate bash completion
We have a bash completion file, which needs to be updated manually: https://github.com/bitcoin/bitcoin/pull/17282#issuecomment-547020006 However, given our argparse module and RPCHelpMan, I believe it should be possible to autogenerate it with maybe a python script. If it should be necessary to run a bitcoind instance as an http server for rpc request to auto-generate the bash completion, this could be implemented as a functional test (written in python).
Feature,good first issue
low
Major
513,546,778
go
os: file write blocks subsequent Open() with "sharing violation" in OneDrive
<!-- 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.3 linux/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? Windows 10, amd64 (_go env_ not available on that machine) ### What did you do? EDIT: updated reproducer ``` package main import ( "io/ioutil"; "time" ) func main() { aFile := "z35219.txt" for { err := ioutil.WriteFile(aFile, []byte("abcdefghijklmnopqrstuvwxyz"), 0600) if err != nil { panic(err) } aTmr := time.NewTimer(10*time.Second) for aRead := true; aRead; { select { case <-aTmr.C: aRead = false default: _, err := ioutil.ReadFile(aFile) if err != nil { panic(err) } } } } } ``` ### What did you expect to see? No error; this is the case on Win7. ### What did you see instead? On Win10: ``` panic: open z35219.txt: The process cannot access the file because it is being used by another process. goroutine 1 [running]: main.main() /.../z35219.go:17 +0x10a ``` ### Discussion I see this intermittently in a real app. EDIT: _the following is related to the initial reproducer_ I wondered whether GetFileAttributesEx() changed in Windows 10 (or 8) to disallow concurrent read access. But the above program still fails (maybe less often?) on Win10 if I patch stat() to only call CreateFile(), like so: ``` const READ_CONTROL, FILE_READ_ATTRIBUTES uint32 = 0x20000, 0x80 // from WinAPI docs h, err = CreateFile(namep, READ_CONTROL|FILE_READ_ATTRIBUTES, FILE_SHARE_READ, nil, OPEN_EXISTING, createFileAttrs, 0) ``` Those arguments are suggested here: https://stackoverflow.com/questions/52813820/createfile-fails-because-of-sharin-violation-because-some-other-os-process-is-us Stat(): https://golang.org/src/os/stat_windows.go#L76 Open(): https://golang.org/src/syscall/syscall_windows.go#L266 @jstarks any ideas? cc @alexbrainman @zx2c4 @bcmills @gopherbot add release-blocker OS-Windows
ExpertNeeded,OS-Windows,NeedsInvestigation
medium
Critical
513,558,788
TypeScript
Investigate Delayed Go-to-Definition Behavior in Editors
Today go-to-definition across files takes a minute in large projects when a file isn't currently opened in an editor. ```ts // a.ts import "./b.js" // <- jump to definition on this path // b.ts export function foo() { } ``` It's not clear why this is the case when the language service is fully initialized and program loading has occured - the file path is already known (even when declaration maps are enabled). So it seems like the editor is taking a bit longer than it needs, or go-to-definition is being blocked by some other operation (which should potentially be considered lower-priority).
Bug,Domain: Performance,Domain: Symbol Navigation
low
Major
513,578,060
TypeScript
Update contributing documentation
@RyanCavanaugh recently walked through `CONTRIBUTING.md` and our wiki and commented that the process is a bit old and crusty. In the interest of making things more obvious for contributors, we need to clean things up here.
Docs,Infrastructure
low
Minor
513,587,128
rust
Cycle detected when using associated type bounds in super trait
I don't know if this is a bug or expected behaviour. But I'm encountering the following error when compiling the following code. ```rust #![feature(associated_type_bounds)] trait A { type T; } trait B: A<T: B> {} ``` ```rust error[E0391]: cycle detected when computing the supertraits of `B` --> src/main.rs:6:15 | 6 | trait B: A<T: B> {} | ^ | = note: ...which again requires computing the supertraits of `B`, completing the cycle note: cycle used when collecting item types in top-level module --> src/main.rs:6:1 | 6 | trait B: A<T: B> {} | ^^^^^^^^^^^^^^^^ ``` But if I merge the traits `A` and `B` into the trait `C` it works. ```rust trait C { type T: C; } ``` I think the first example should work as good as the second since the trait `C` is only split into two traits `A` and `B` with same functionality.
A-diagnostics,A-trait-system,T-compiler,F-associated_type_bounds,D-confusing,D-terse,I-cycle
low
Critical
513,627,619
flutter
google_sign_in plugin example should have an encrypted GoogleSignIn-Info.plist
Right now the Google Sign In plugin isn't adequately integration tested. The iOS version of the example requires following the signup steps in the README or it won't work. Because we don't necessarily want everyone sharing the same GoogleService-Info.plist, we might want to write the file using Cirrus encypted data. Perhaps there's another solution that can run on non-Cirrus infrastructure. We'll also need the EarlGrey bindings for Flutter.
platform-ios,p: google_sign_in,package,c: proposal,P2,team-ios,triaged-ios
low
Minor
513,630,666
flutter
960 grid for web development
<!-- 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 <!-- Please tell us the problem you are running into that led to you wanting a new feature. Is your feature request related to a problem? Please give a clear and concise description of what the problem is. Describe alternative solutions you've considered. Is there a package on pub.dev/flutter that already solves this? --> ## Proposal <!-- 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. --> Just a suggestion, if you could add a feature for displaying 960 grid for web development. example: https://960.gs/demo.html Something similar to debug label where it is displayed during development. Also, it would be nice if there is a possibility to align elements on those grid lines (or guide lines) by code.
c: new feature,framework,P3,team-framework,triaged-framework
low
Critical
513,692,303
neovim
view unexpectedly altered when 'winminheight' is 0
- `nvim --version`: NVIM v0.5.0-116-g4f4f5ef4f - `vim -u DEFAULTS` (version: 8.1 Included patches: 1-2231) behaves differently? Yes - Operating system/version: Ubuntu 16.04.6 LTS - Terminal name/version: XTerm(322) - `$TERM`: xterm-256color ### Steps to reproduce Run this shell command: nvim -Nu NONE +'set wmh=0 | au WinEnter * wincmd _' +'sp|$' <(curl -Ls https://raw.githubusercontent.com/neovim/neovim/master/LICENSE) Then, press `C-w w` twice. ### Actual behaviour The view of the top window has changed. Before pressing `C-w w` twice, the topline was `252` (output of `:echo getwininfo()[0].topline`); now it's `281`. ![gif](https://user-images.githubusercontent.com/8505073/67738442-edf12200-fa0e-11e9-9414-827b38889cd6.gif) ### Expected behaviour The view is preserved; i.e. the topline stays the same. ### Additional information In Vim, the view is preserved: ![gif](https://user-images.githubusercontent.com/8505073/67738487-33155400-fa0f-11e9-91f6-1b52fc785ba4.gif) --- If `'winminheight'` is set to a value different than 0, the view is preserved. --- I searched for the keywords `winminheight` and `squash` in the commit messages of Vim patches, but couldn't find anything which seems relevant (there is [`7.4.372`](https://github.com/vim/vim/releases/tag/v7.4.372) but it's absent from the output of `./scripts/vim-patch.sh -l`).
ui,bug-regression,has:bisected
low
Major
513,700,840
rust
Diagnostic for mismatched pointers type could be improved
The following snippet is build with Rust 1.38.0: https://rust.godbolt.org/z/NGTGo- <details> <summary>snippet</summary> ```rust mod unique { type HANDLE = *mut ::std::os::raw::c_void; type PHANDLE = *mut HANDLE; fn foo(token: PHANDLE) {} fn bar() { let token: HANDLE = ::std::ptr::null_mut(); foo(token as *mut _); foo(&mut token); foo(&token); foo(token); } } mod shared { type HANDLE = *const ::std::os::raw::c_void; type PHANDLE = *const HANDLE; fn foo(token: PHANDLE) {} fn bar() { let token: HANDLE = ::std::ptr::null_mut(); foo(token as *const _); foo(&mut token); foo(&token); foo(token); } } mod unique_mut { type HANDLE = *mut ::std::os::raw::c_void; type PHANDLE = *mut HANDLE; fn foo(token: PHANDLE) {} fn bar() { let mut token: HANDLE = ::std::ptr::null_mut(); foo(token as *mut _); foo(&mut token); foo(&token); foo(token); } } ``` </details> The compiler outputs: <details> <summary>rustc's output</summary> ```rust error[E0308]: mismatched types --> src/lib.rs:10:13 | 10 | foo(&token); | ^^^^^^ types differ in mutability | = note: expected type `*mut *mut std::ffi::c_void` found type `&*mut std::ffi::c_void` error[E0308]: mismatched types --> src/lib.rs:11:13 | 11 | foo(token); | ^^^^^ expected *-ptr, found enum `std::ffi::c_void` | = note: expected type `*mut *mut std::ffi::c_void` found type `*mut std::ffi::c_void` error[E0308]: mismatched types --> src/lib.rs:25:13 | 25 | foo(token); | ^^^^^ expected *-ptr, found enum `std::ffi::c_void` | = note: expected type `*const *const std::ffi::c_void` found type `*const std::ffi::c_void` error[E0308]: mismatched types --> src/lib.rs:38:13 | 38 | foo(&token); | ^^^^^^ types differ in mutability | = note: expected type `*mut *mut std::ffi::c_void` found type `&*mut std::ffi::c_void` error[E0308]: mismatched types --> src/lib.rs:39:13 | 39 | foo(token); | ^^^^^ expected *-ptr, found enum `std::ffi::c_void` | = note: expected type `*mut *mut std::ffi::c_void` found type `*mut std::ffi::c_void` error: aborting due to 5 previous errors ``` </details> I'm a beginner in Rust's FFI. So my questions may seems silly. 1. In module `unique`, line 8: we mutually borrow `token`, but `token` is never defined with `let mut` syntax. Is this accepted? 2. Same question but for module `shared`, line 23. 3. Can we suggest borrowing with appropriate mutability in `foo(token)` lines? For example: ```rust error[E0308]: mismatched types --> src/lib.rs:10:13 | 10 | foo(&token); | ^^^^^^ types differ in mutability | = note: expected type `*mut *mut std::ffi::c_void` found type `&*mut std::ffi::c_void` try: `&mut token` error[E0308]: mismatched types --> src/lib.rs:11:13 | 11 | foo(token); | ^^^^^ expected *-ptr, found enum `std::ffi::c_void` | = note: expected type `*mut *mut std::ffi::c_void` found type `*mut std::ffi::c_void` try: `&mut token` ```
C-enhancement,A-diagnostics,T-compiler
low
Critical
513,710,730
vue
Property '$options' does not exist on type 'VueConstructor<Vue>'.
### Version 2.6.10 ### Reproduction link [https://jsfiddle.net/jafbudpk/3/#&togetherjs=HlrrSLGnsb](https://jsfiddle.net/jafbudpk/3/#&togetherjs=HlrrSLGnsb) ### Steps to reproduce ``` import Vue, { PluginFunction } from 'vue'; interface PluginOptions {} export const Plugin: PluginFunction<PluginOptions> = function Plugin(Vue, PluginOptions): void { Vue.mixin({ created() { this.$options.socket = 1; } }); }; ``` ### What is expected? The `$option` should be already type right. ### What is actually happening? Property '$options' does not exist on type 'VueConstructor<Vue>'.ts(2339) <!-- generated by vue-issues. DO NOT REMOVE -->
typescript
low
Minor
513,822,790
opencv
Segmentation fault when inheriting from openCV cpp-classes in Python
<!-- If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses. If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute). Please: * Read the documentation to test with the latest developer build. * Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue. * Try to be as detailed as possible in your report. * Report only one problem per created issue. This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library. --> ##### System information (version) <!-- Example - OpenCV => 4.1.0 - Operating System / Platform => macOS 10.15 - Compiler => homebrew version --> - OpenCV => 4.1.0 - Operating System / Platform => macOS 10.15 - Compiler => homebrew ##### Detailed description <!-- your description --> I get a segmentation fault when calling a python class which inherits from a openCV-cpp-class (similar to the issue described here: https://github.com/microsoft/ptvsd/issues/1410). This makes extending openCV-classes in Python unreliable. I'm not even sure if it should be possible to inherit openCV classes (as superclass) in Python because the .create()-policy to instantiate a new instance will always return the pure cpp-class not the inherited python class. Instantiation without .create() (like foo = PyDerivedClass()) will lead to a TypeError (incorrect type of self ...) when trying to call the inherited cpp-methods. All in all, it might be worth rethinking which classes etc. should have python bindings (e.g. cv2.ml_StatModel can be called in python but its pretty much useless) and/or make a note somewhere in the documentation. ##### Steps to reproduce ```.py import cv2 class DerivedClass(cv2.ml_NormalBayesClassifier): def __init__(self): super().__init__() for i in range(3): foo = DerivedClass() ```
feature,category: python bindings
low
Critical
513,846,543
pytorch
torch.cuda.close request to be able to reset communications
## 🚀 Feature <!-- A clear and concise description of the feature proposal --> Is it possible to reinitialize communication with the cuda drivers once they have been made? At the moment, `torch.cuda.init()` calls a lazy init function which sets up communication. Is it possible to close that communication and open it again? ## Motivation I want to set the `CUDA_VISIBLE_DEVICES` env variable programmatically. This currently works if it is set before any calls to `torch.cuda.init`, but if any `torch.cuda` functions are called first, then the comms are open and it ignores the env variable. <!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too --> ## Pitch <!-- A clear and concise description of what you want to happen. --> Perhaps a function called `torch.cuda.close()` which calls `nvmlShutdown` and resets the `_initialized` flag. Then we could make a subsequent call to `torch.cuda.init()` to reopen communications. ## Alternatives Perhaps a way to reset the device counts based on the CUDA_VISIBLE_DEVICES environment variable.
feature,module: cuda,triaged
low
Major
513,866,337
rust
Document query modifiers
We should document what the [query modifiers](https://github.com/rust-lang/rust/blob/eb5ef813f0d6e3fe8edd3abb046a18f5b1a8cc48/src/librustc_macros/src/query.rs#L33-L62) mean in a more involved form than currently, ideally in rustc-guide or so, with a comment in src/librustc/query/mod.rs pointing to there.
C-enhancement,P-medium,T-compiler
medium
Major
513,904,944
rust
LLVM is unable to eliminate bounds checks with widening multiply
Demonstration: ```rust pub fn bar(rand: u32, arr: &[u8]) -> u8 { let mul = rand as u64 * arr.len() as u64; let hi = (mul >> 32) as u32; arr[hi as usize] } ``` Note that `hi` *must* be less than `arr.len()`. LLVM is unable to prove this, and inserts a bounds check on array access. Extract from the [compiled assembly](https://play.rust-lang.org/?version=nightly&mode=release&edition=2015&gist=dbcdcfad186ca1b2fce019397931e007): ``` imulq %rdx, %rsi shrq $32, %rsi cmpq %rdx, %rsi jae .LBB0_2 ``` Application: https://github.com/rust-random/rand/issues/592 (Note: we have multiple implementations of widening multiply [here](https://github.com/rust-random/rand/blob/master/src/distributions/utils.rs#L19).)
A-LLVM,I-slow,T-compiler
low
Major
513,924,900
puppeteer
page.emulateMediaFeatures([{ name: 'hover', value: 'hover' }]) throws error
### Steps to reproduce **Tell us about your environment:** * Puppeteer version: 2.0.0, Headless * Platform / OS version: Ubuntu 18.04.3 LTS * URLs (if applicable): * Node.js version: v10.16.3 **What steps will reproduce the problem?** _Please include code that reproduces the issue._ 1. Create a new page: ```js const page = await browser.newPage() ``` 2. Emulate the hover media query: ```js await page.emulateMediaFeatures([{ name: 'hover', value: 'hover' }]) ``` **What is the expected result?** The feature should be emulated. **What happens instead?** The exception `Unsupported media feature: hover` is thrown **Context** When running Puppeteer headlessly on Linux, the result of the following media query is `false`: ```js window.matchMedia('(hover: hover)').matches ``` Meanwhile on a Mac, the same query returns `true`. I would like to test media queries in our e2e tests, and not being able to control this behavior prevents this from being possible.
feature,upstream,good first issue,confirmed
low
Critical
513,936,097
flutter
in_app_purchase plugin - detecting subscription lapse client-side
I'm using the in_app_purchase plugin (v0.2.2) for Flutter to implement in-app auto-renewing subscription purchasing. I'm struggling to figure out how I check if a user's existing subscription has lapsed, which could be because of: - user has cancelled and the remaining time on the current billing period has elapsed - user has not auto-renewed and the remaining time on the current billing period has elapsed - payment error / in grace period Is this supported by the plugin, and if not are there any plans to? I'm struggling to figure out which functions I could use to implement periodic checks on ios and android. Here's what I've figured out so far: IOS: - documentation is on [https://developer.apple.com/documentation/storekit/in-app_purchase/handling_subscriptions_billing](https://developer.apple.com/documentation/storekit/in-app_purchase/handling_subscriptions_billing) > Your app needs to determine which content the user has access to based on the period of time their auto-renewable subscription is active. To provide the customer access to the content to which they are entitled, keep a record of the date that each piece of content is published. Read the original_purchase_date, purchase_date, and expires_date field from each receipt entry to determine the start and end dates of each subscription period How do you get the `expires_date` field from the ios receipt using in_app_purchase? The closest thing i could find is that `PurchaseDetails` has a `PurchaseWrapper` which contains a `purchaseTime` field - but the ios docs specifically say > Do not calculate the subscription period by adding a subscription duration to the purchase date. That approach fails to take into account the free trial period, the marketing opt-in period, and the content made available immediately after the user purchased the subscription. Does in_app_purchase surface an `expires_date` or am I missing something? ANDROID: - documentation [https://developer.android.com/google/play/developer-api.html#subscriptions_api_overview](https://developer.android.com/google/play/developer-api.html#subscriptions_api_overview) It looks like we need to use Google Play Developer API to query a particular subscription to determine if it's still valid. To do this you need: > app package name, purchase or subscription ID, and the purchase token How do you get the `purchaseToken` for Android? It looks like `PurchaseWrapper` contains this field, but the docs say `PurchaseWrapper` is null on Android: ``` /// Points back to the `BillingClient`'s [PurchaseWrapper] object that generated this [PurchaseDetails] object. /// /// This is null on Android. final PurchaseWrapper billingClientPurchase; ``` I'm totally stuck. I don't see how this plugin can be used for subscriptions if you can't detect lapsed subscriptions. Any advice highly appreciated :)
d: api docs,p: in_app_purchase,package,team-ecosystem,P3,triaged-ecosystem
medium
Critical
513,939,980
flutter
[google_maps_flutter] Padding not working on android
<!-- 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 --> ## Steps to Reproduce <!-- Please tell us exactly how to reproduce the problem you are running into. Please attach a small application (ideally just one main.dart file) that reproduces the problem. You could use https://gist.github.com/ for this. If the problem is with your application's rendering, then please attach a screenshot and explain what the problem is. --> 1. https://gist.github.com/krunduev/42983cf78b76448aad5b09d68745b89e 2. Run on android 3. Map padding not working on Android release/debug 4. After hot restart on Android padding is start working, on cold start it not works. 5. iOS is ok <!-- Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows) Which target OS version, for Web, browser, is the test system running? Does the problem occur on emulator/simulator as well as on physical devices? --> **Target Platform: Android** **Target OS version/browser: targetSdkVersion 28** **Devices: All available** ## Logs <!-- Run your application with `flutter run --verbose` and attach all the log output below between the lines with the backticks. If there is an exception, please see if the error message includes enough information to explain how to solve the issue. --> https://gist.github.com/krunduev/0bd3fba8c73c1f4b009abd6238018c06 <!-- Run `flutter analyze` and attach any output of that command below. If there are any analysis errors, try resolving them before filing this issue. --> flutter analyze ``` No issues found! (ran in 3.0s) ``` <!-- Finally, paste the output of running `flutter doctor -v` here. --> <details> <summary>flutter doctor -v</summary> ```console [✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.14.5 18F132, locale en-GB) • Flutter version 1.9.1+hotfix.5 at /Users/krunduev/Documents/Projects/flutter • Framework revision 1aedbb1835 (12 days ago), 2019-10-17 08:37:27 -0700 • Engine revision b863200c37 • Dart version 2.5.0 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0) • Android SDK at /Users/krunduev/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.0 • 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.6.1 [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 40.2.2 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] VS Code (version 1.39.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.5.1 [✓] Connected device (3 available) • TRT LX1 • 172.20.10.2:5555 • android-arm • Android 7.0 (API 24) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) • iPhone 11 Pro • 5E6C6041-EE50-4431-AAE8-4F5FCC1C7931 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-1 (simulator) • No issues found! ``` </details>
platform-android,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-android,triaged-android
low
Critical
513,956,363
godot
JSON fails to parse object keys other than String type
**Godot version:** 3.2-alpha **Issue description:** Converting a variable to JSON with `to_json` method and back with `parse_json` doesn't work on object keys if they are not of type `String`. **Steps to reproduce:** ```gdscript extends Node func _ready(): var dict = { {"key_dict": true}: "value" } var json = to_json(dict) var parsed = parse_json(json) var key_dict = parsed.keys()[0] print("Contents: %s, type: %s" % [key_dict, typeof(key_dict)]) assert(key_dict is Dictionary) # FAIL: got String! ``` Prints: ``` Contents: {key_dict:True}, type: 4 ``` **Minimal reproduction project:** [parse-json-key-dict.zip](https://github.com/godotengine/godot/files/3783978/parse-json-key-dict.zip)
bug,topic:core,confirmed
low
Major
513,972,381
go
proposal: crypto/tls: expose TLS alert type for more precise error checks
<!-- 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.3 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="auto" GOARCH="amd64" GOBIN="" GOCACHE="/Users/me/Library/Caches/go-build" GOENV="/Users/me/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/me/Code/Golang" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" 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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/16/7jt3pcs15570rmz95wf9vlrc0000gn/T/go-build533656385=/tmp/go-build -gno-record-gcc-switches -fno-common" </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. --> I've hooked `http.Server.ConnState` using a function that checks for handshake errors on the `http.StateClosed` state, and logs these. For example: ```go func ConnStateHook(c net.Conn, cstate http.ConnState) { if cstate == http.StateClosed { if cc, ok := c.(*tls.Conn); ok { tlsState := cc.ConnectionState() if err := cc.Handshake(); err != nil { if strings.Contains(err.Error(), "remote error: tls: unknown certificate authority") || strings.Contains(err.Error(), "remote error: tls: unknown certificate") { // Do something } } } } } ``` ### What did you expect to see? This works, but I really don't like using string comparison on error messages. What would be helpful to ensure accurate comparison (especially if these strings change in the future) is to be able to compare the error with the `tls.alert` types. The error above (`err`) is actually a `tls.alert` wrapped in a `*net.OpError` type, but because the `tls.alert` type is not exported, I only get to see the public `Error()` method that outputs a string. The result of this would be similar to the `http` status codes found in `net/http/status.go`.
Proposal,NeedsInvestigation,FeatureRequest,Proposal-Crypto
low
Critical
513,987,710
storybook
[addon-docs] Link to another story
**Is your feature request related to a problem? Please describe.** Well of course. I need to link to another story to sort of build a "See also" or "For more information, see..." section. **Describe the solution you'd like** I would like to be able to just link to another story by writing a MD link, something like: ``` See [this cool component](Components|General/CoolComponent) for more information ``` Storybook would recognize that this is not a regular url, but a link to a story, and transform the link in such a way that it will navigate to that story, instead of trying to open the url as-is. **Describe alternatives you've considered** The best workaround at the moment would be to go to that story using the existing navigation, recording what the url is, and pasting that into the MD link. It doesn't feel like that's the most stable way to go, because I don't think those url's a completely chained to the components that are on them. **Are you able to assist bring the feature to reality?** Not sure I can, sorry. **Additional context** It might be worth noting that the documentation of MDX stories is a bit "all over the place". I feel there isn't a single source of truth when it comes to MDX. All I can find is a couple of use-cases (although very common ones) and their solutions, but not an exhaustive reference. Perhaps working on that may reveal that the feature being requested here, is already possible in some other way, that I have no way of being aware of.
feature request,has workaround,addon: docs
medium
Critical
514,043,715
ant-design
Set Global Tooltip mouseEnterDelay/Other Properties
- [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? Currently tooltips show up after 0.1 seconds by default. We can customise this delay using the "mouseEnterDelay" API. For our use case, we use a lot of tooltips in our application in various locations. With all these tooltips, we want a quick and easy way to standardise our implementation without having to add "mouseEnterDelay={1.5}" and other similar properties to every instance of tooltip in our codebase. This will help keep the design and user experience consistent in larger code base. It will also help streamline refactors should we decided to change our design. ### What does the proposed API look like? A parent component that you can edit with certain properties. ```jsx <ConfigProvider tooltipMouseEnterDelay={1.5} tooltipMouseLeaveDelay={0.5} > <App /> </ConfigProvider> ``` These properties could then be overriden on a case by case basis like so: ```jsx <ConfigProvider tooltipMouseEnterDelay={1.5} tooltipMouseLeaveDelay={0.5} > <App> <Tooltip /> // 1.5 second delay <Tooltip mouseEnterDelay={1.0} /> // 1.0 second delay </App> </ConfigProvider> ``` <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Inactive
low
Major
514,076,664
create-react-app
provide option to use pnpm for installation to avoid file replication across apps.
### Is your proposal related to a problem? using create-react-app uses for installation leads to lots of repeated node_module folders angular cli provides option to use npm or pnpm for installation. ### Describe the solution you'd like give an option during create-react-app process to use pnpm if installed to avoid duplication of node_module files. ### Describe alternatives you've considered pnpm install on a github clone (havent tried it yet). ### Additional context none considered.
issue: proposal
low
Major
514,083,721
TypeScript
Type reference to Image resolves to static side
```js /** * @param {Image} i * @param {Element} l */ function f(i, l) { l.appendChild(i); i.style.display = 'none'; } ``` Expected: `i` should (1) have type `Image` (2) be assignable to Node and (3) should have the property `style`. Actual: `i: new (width?: number, height?: number) => HTMLImageElement`, which is not assignable to Node and doesn't have the property `style`.
Bug,Domain: JavaScript
low
Minor
514,127,002
kubernetes
Admission chain for underlying resource is not called for requests to /scale subresource
**What happened**: When a user makes a modifying request to an object through the /scale subresource, the /scale admission chain is called, but mutating and validating admission for the underlying resource are not. This introduces some unexpected behavior and also makes certain valid use cases impossible to enforce consistently. For example, if a user wants to register a webhook on Deployments which prevents the total resource limits of the deployment from exceeding a certain amount, by validating that the product of replicas*memory is below a certain amount, this is not possible. Because a user could always increase the replicas through /deployments/scale, and bypass the validating webhooks registered for /deployments. **What you expected to happen**: The mutating and validating admission for the underlying resource would be called when making a request to the /scale subresource **How to reproduce it (as minimally and precisely as possible)**: Register a webhook for /deployments which prevents changing replicas Make a request to /deployments/scale /cc @apelisse
kind/bug,priority/backlog,sig/api-machinery,lifecycle/frozen,wg/api-expression
medium
Critical
514,132,209
godot
Spatial Shader with render_mode world_vertex_coords prevents skinning
Characters with a Skeleton stop skinning altogether when their Material uses a Shader that sets **render_mode** to **world_vertex_coords** I'm not sure if this is expected behavior, but I couldn't find any mention of it in the documentation. Simplest shader to reproduce the issue: `shader_type spatial; render_mode world_vertex_coords;` Tested Version: Godot 3.2.alpha3.official OS: Ubuntu 19.10
bug,topic:rendering,confirmed,topic:3d
low
Major
514,152,712
flutter
[flutter_plugin_android_lifecycle] Add a getter for a service lifecycle
Currently the plugin only exposes a getter for the activity lifecycle, a getter for the lifecycle available through ServicePluginBinding should be added as well. The code should be just: ```java @Nullable public static Lifecycle getServiceLifecycle(@NonNull ServicePluginBinding servicePluginBinding) { try { Method getLifecycle = ServicePluginBinding.class.getMethod("getLifecycle"); Object hiddenLifecycle = getLifecycle.invoke(activityPluginBinding); return getHiddenLifecycle(hiddenLifecycle); } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { Log.w( TAG, "You are attempting to use Flutter plugins that are newer than your" + " version of Flutter. Plugins may not work as expected."); } return null; } ``` The part that requires some more work is getting the integration test to launch a service and exercise this code path. I'm starting with landing just an activity lifecycle getter to fix red CI.
platform-android,e: embedder,package,P3,p: flutter_plugin_android_lifecycle,team-android,triaged-android
low
Minor
514,222,748
go
x/crypto/ssh: add example for KeyboardInteractive
I'm having trouble figuring out how to use this method to prompt a user for input and get a password back out. I tried searching on Github but most of the top results are vendored copies of the ssh package. Alternatively, it would be nice to have a default implementation.
Documentation,help wanted,NeedsInvestigation
low
Minor
514,235,632
go
spec: clarify range over maps will produce every non-deleted entry avaiable when it starts
### What version of Go are you using (`go version`)? N/A, but 1.13 ### Does this issue reproduce with the latest release? Sure. ### What operating system and processor architecture are you using (`go env`)? N/A ### What did you do? https://play.golang.org/p/jX-Bp63JDHX ### What did you expect to see? I have no idea. This is a spec question, really. I'm writing it because I brought this up in a couple of places and ended up with a significant range of intuitions and answers from experienced and competent developers, ranging from "that will work" to "that won't work" to "that might work". I think it should perhaps be clearer whether or not this is "safe" -- could this code produce a race condition or concurrency failure? If you have a range loop on a map, and unsynchronized writes to the map, that's a clear violation -- you can't read the map while it's being written to. But let's say, hypothetically, that you want to range over a map slowly -- say, for a low priority background cleanup task. You don't want to run the entire thing with a lock held preventing the map from being updated. You could, of course, lock the map, grab a slice of keys, unlock it, and iterate the keys. But why would you do something sane like that when you can do something *insane*? Enter the example code: Grab a lock, start a range loop, and then inside the body of the loop, release the lock, operate on the k/v pair, and grab the lock again right before resuming at the range statement. Each evaluation of the range statement happens with the lock held. If the same lock controls modifications to the map, that's... maybe... safe? I can't tell whether it's safe. I think it probably is, not because the spec says so, but because the spec says something that implies it, I think: > The iteration order over maps is not specified and is not guaranteed to be the same from one iteration to the next. If a map entry that has not yet been reached is removed during iteration, the corresponding iteration value will not be produced. If a map entry is created during iteration, that entry may be produced during the iteration or may be skipped. The choice may vary for each entry created and from one iteration to the next. If the map is nil, the number of iterations is 0. This suggests that map entries may be removed or created during iteration, which implies that the range statement is expected to function at least somewhat if there's creation or deletion while it's running. It's less obvious whether the creation or deletion will be reliable. Imagine for instance that we have a map with a hundred items, we iterate through 90 of them, and then we add a thousand more items, causing the entire map to get grown and rehashed at least once. Do I reliably expect to see the other 10 items that were in it before I started? I have no idea. It looks to me like the current implementation is at least *trying* to handle that case carefully, and indeed, I can't make it fail; I always hit every item that was present when the range statement started and hasn't been deleted yet, but don't necessarily hit any new items. I can't tell whether I'm safe or (un?)lucky.
Documentation,NeedsDecision
low
Critical
514,238,011
node
Handle windows-style bare specifiers in exports
There's currently a loophole in CJS exports: ```js require('x\\y.js'); ``` The above will load `y.js` at least on Windows even if `x` uses `exports` and didn't whitelist the path. This happens because the specifier isn't recognized as an `exports` specifier. There's three possible ways out: 1. We detect this case and iff `x` uses `exports` treat it as "not mapped", no matter what the subpath is. 2. We accept this as a loophole. 3. We normalize the specifier, turning backslashes into slashes. There are other potential loopholes like the following: * `@scope/../any/file.js`: Doesn't match the RegExp, allows access to `any/file.js`. * TBD It's not quite clear if we *can* plug all holes in CJS but there's likely some way of doing it.
module
low
Major
514,278,346
pytorch
Remove bce_with_logits in derivatives.yaml
Its backward is done through autograd, we don't need explicitly set it at all.
triaged,enhancement,better-engineering
low
Minor
514,279,657
flutter
flutter can't be installed as a shared program
While trying to install flutter 1.9.1+hotfix.6 using Ansible on several Linux servers, I noticed that I can't run flutter if the user is not the one that has been used for the installation (this is a standard use case for any Linux/Unix system) For example, flutter executable tries to create/modify a lock file under bin/cache. It tries apparently to alter a file named version under the installation directory. Lock files should be created under /var/lock (or /run/lock) or under the user home directory and no file under the installation directory should be "touched"
tool,platform-linux,c: proposal,P3,team-tool,triaged-tool
low
Minor
514,295,351
TypeScript
Uncalled Function Checks don't check negative condition
```ts function foo() { } if (!foo) { let x = 10 } else { } ``` **Expected**: Error on `!foo` that the condition is always true because `foo` is defined. **Actual**: No error. Also, any work on this should include the following test: ```ts function foo() { } if (!foo) { } else { foo() } ```
Suggestion,Awaiting More Feedback
low
Critical
514,317,249
flutter
The FlutterPointerEvent coordinate space is not documented.
[This](https://github.com/flutter/engine/blob/e5692949023766c6a42b554a0ded365f1e8a33b3/shell/platform/embedder/embedder.h#L409) has caused some confusion to custom embedder authors. The GLFW example embedder does seem to [handle this correctly](https://github.com/flutter/engine/blob/e5692949023766c6a42b554a0ded365f1e8a33b3/examples/glfw/FlutterEmbedderGLFW.cc#L26).
engine,d: api docs,e: embedder,P2,team-engine,triaged-engine
low
Minor
514,320,573
vue
Add non-passive event modifier
### What problem does this feature solve? An event modifier to support `passive` events was added in #5132. In the last couple of years, browsers have adopted the `passive` behavior by default for `touchstart` and `touchmove` events ([reference](https://www.fxsitecompat.dev/en-CA/docs/2018/touch-event-listeners-are-now-passive-by-default-making-scrolling-faster-on-mobile/)). Thus, to be able to cancel one of these events by calling `e.preventDefault()`, you need to explicitly pass `{ passive: false }` when adding the event listener. With the current API this is impossible to achieve in a Vue template (as far as I can tell). You must manually add and remove the event listener in a component hook like so: ```js this.$refs.someElement.addEventListener('touchstart', this.start, { passive: false }); this.$refs.someElement.addEventListener('touchmove', this.move, { passive: false }); // later this.$refs.someElement.removeEventListener('touchstart', this.start); this.$refs.someElement.removeEventListener('touchmove', this.move); ``` ### What does the proposed API look like? An event modifier that does the opposite of the `passive` event modifier, specifying the option as `false` instead of `true`. Unsure of the naming - perhaps `nonPassive`, `active`, `assertive`, `intentional`. ```html <div @touchstart.active="start" @touchmove.active="move" ></div> ``` <!-- generated by vue-issues. DO NOT REMOVE -->
feature request
medium
Major
514,326,318
flutter
[maps] MissingPluginException when calling methods on maps instance that has been torn down on the native side
Hello, I am experiencing this error below, whenever I use the google map. Also, please find below the flutter doctor -v output as well. ``` E/BufferQueueProducer(12362): [SurfaceTexture-0-12362-4] queueBuffer: BufferQueue has been abandoned E/BufferQueueProducer(12362): [SurfaceTexture-0-12362-4] dequeueBuffer: BufferQueue has been abandoned E/flutter (12362): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method map#update on channel plugins.flutter.io/google_maps_4) E/flutter (12362): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7) E/flutter (12362): <asynchronous suspension> E/flutter (12362): #1 GoogleMapController._updateMapOptions (package:google_maps_flutter/src/controller.dart:96:19) E/flutter (12362): <asynchronous suspension> E/flutter (12362): #2 _GoogleMapState._updateOptions (package:google_maps_flutter/src/google_map.dart:256:16) E/flutter (12362): <asynchronous suspension> E/flutter (12362): #3 _GoogleMapState.didUpdateWidget (package:google_maps_flutter/src/google_map.dart:241:5) E/flutter (12362): #4 StatefulElement.update (package:flutter/src/widgets/framework.dart:4103:58) E/flutter (12362): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #8 ProxyElement.update (package:flutter/src/widgets/framework.dart:4254:5) E/flutter (12362): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #10 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #11 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #12 ProxyElement.update (package:flutter/src/widgets/framework.dart:4254:5) E/flutter (12362): #13 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #14 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4852:32) E/flutter (12362): #15 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5243:17) E/flutter (12362): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #19 StatefulElement.update (package:flutter/src/widgets/framework.dart:4120:5) E/flutter (12362): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #23 ProxyElement.update (package:flutter/src/widgets/framework.dart:4254:5) E/flutter (12362): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #26 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #27 StatefulElement.update (package:flutter/src/widgets/framework.dart:4120:5) E/flutter (12362): #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #29 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5134:14) E/flutter (12362): #30 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #32 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #33 StatelessElement.update (package:flutter/src/widgets/framework.dart:4016:5) E/flutter (12362): #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #35 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5134:14) E/flutter (12362): #36 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #38 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #39 StatefulElement.update (package:flutter/src/widgets/framework.dart:4120:5) E/flutter (12362): #40 Element.updateChild (package:flutter/src/widgets/framework.dart:2893:15) E/flutter (12362): #41 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3961:16) E/flutter (12362): #42 Element.rebuild (package:flutter/src/widgets/framework.dart:3738:5) E/flutter (12362): #43 StatefulElement.update (package:flutter/src/widgets/framework.dart:4120:5) E/flutter (12362): #44 Element.updateChild (package: E/flutter (12362): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] ``` ``` [√] Flutter (Channel stable, v1.9.1+hotfix.2, on Microsoft Windows [versão 10.0.18362.418], locale pt-BR) • Flutter version 1.9.1+hotfix.2 at c:\src\flutter • Framework revision 2d2a1ffec9 (8 weeks ago), 2019-09-06 18:39:49 -0700 • Engine revision b863200c37 • Dart version 2.5.0 [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • Android SDK at C:\Users\rafas\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.2 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03) • All Android licenses accepted. [√] Android Studio (version 3.5) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 39.0.3 • Dart plugin version 191.8423 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03) [!] Connected device ! No devices available ! Doctor found issues in 1 category. ```
c: crash,customer: crowd,p: maps,package,team-ecosystem,P2,triaged-ecosystem
low
Critical
514,328,975
pytorch
Command for downloading torch 1.12.0 CUDA 10 linked to cu92 version
I want to install pytorch 1.12 CUDA 10 in Ubuntu following this step https://pytorch.org/get-started/previous-versions/ . Every time I input this command `pip install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html` I always get the `cu92` version instead of CUDA 10 version. ``` pip3 install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html Collecting torch==1.2.0 Downloading https://download.pytorch.org/whl/cu92/torch-1.2.0%2Bcu92-cp36-cp36m-manylinux1_x86_64.whl (663.1MB) 16% |█████▏ | 106.4MB 116.9MB/s eta 0:00:05^C ``` After the package has been installed, I checked using python and it prints the cu92 version ``` import torch >>> torch.__version__ '1.2.0+cu92' ``` How do I get the torch 1.12 CUDA 10 version? cc @ezyang
module: binaries,triaged
low
Minor
514,372,185
flutter
[webview_flutter]About handle long press gestures
```dart /// Which gestures should be consumed by the web view. /// /// It is possible for other gesture recognizers to be competing with the web view on pointer /// events, e.g if the web view is inside a [ListView] the [ListView] will want to handle /// vertical drags. The web view will claim gestures that are recognized by any of the /// recognizers on this list. /// /// When this set is empty or null, the web view will only handle pointer events for gestures that /// were not claimed by any other gesture recognizer. final Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers; ``` I don't want to handle any gestures, what should I do?
c: new feature,customer: crowd,p: webview,package,team-ecosystem,P3,triaged-ecosystem
low
Major
514,408,856
flutter
Remove delegate setter on FlutterActivity and FlutterFragment
Remove delegate setter on FlutterActivity and FlutterFragment. A more complete and current infrastructure for writing Android tests within the engine should allow a better approach.
a: tests,team,platform-android,engine,c: proposal,P2,team-android,triaged-android
low
Minor
514,412,153
material-ui
[Snackbar] Add imperative methods to display them directly
## Summary 💡 Support imperative calls for the sake of simplicity. ## Examples 🌈 ```jsx import { useSnackbar } from '@material-ui/core'; function MyComponent() { const snackbar = useSnackbar(); return ( <Button onClick={() => { snackbar({ message: "My primary message for the user.", duration: 3000, variant: 'success', }); }} > Trigger </Button> ); } ``` ```jsx import { ConfigProvider } from '@material-ui/core'; <ConfigProvider snackbar={{ maxItems: 3 }} /> ``` ## Motivation 🔦 Without such support, a developer has to set up a global event emitter system. It's cumbersome and tedious. ## Benchmark - https://react-hot-toast.com/ - https://dev.to/dmtrkovalenko/the-neatest-way-to-handle-alert-dialogs-in-react-1aoe - https://blueprintjs.com/docs/#core/components/toast - https://seek-oss.github.io/braid-design-system/components/useToast - https://github.com/fkhadra/react-toastify - https://chakra-ui.com/toast - https://ant.design/components/message/ - https://github.com/iamhosseindhv/notistack/ - https://sancho-ui.com/components/toast/ - https://evergreen.segment.com/components/toaster - https://twitter.com/railto/status/1232997843020996610 - https://baseweb.design/components/toast/ - https://toasted-notes.netlify.com/ - https://github.com/kylecesmat/react-cheers - https://jossmac.github.io/react-toast-notifications/ - https://github.com/mui-org/material-ui/issues/21053#issuecomment-630119128 - https://twitter.com/listenMrUtkarsh/status/1283480376904568833 - https://trello.com/c/tMdlZIb6/1989-snackbar-more-features
new feature,component: snackbar,priority: important
medium
Major
514,477,522
go
x/sys/windows: go test ./... failed on windows
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.12 windows/amd64 </pre> ### Does this issue reproduce with the latest release? ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\xx\AppData\Local\go-build set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=C:\Users\xx\go set GOPROXY=https://goproxy.io set GORACE= set GOROOT=C:\Go set GOTMPDIR= set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set GCCGO=gccgo set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD= set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map==C:\Users\ xx\AppData\Local\Temp\go-build199807830=/tmp/go-build -gno-record-gcc-switches </pre></details> ### What did you do? file.go <pre> import "golang.org/x/sys/windows" func Foo(v ...interface{}) (err error) { var info windows.ConsoleScreenBufferInfo return windows.GetConsoleScreenBufferInfo(windows.Stdout, &info) } </pre> file_test.go <pre> import "testing" func TestFoo(t *testing.T) { if err := Foo("test"); err != nil { t.Error(err) } } </pre> `go test`: <pre> PASS ok github.com/issue9/term 0.386s </pre> `go test ./...` or `go test .`: <pre> --- FAIL: TestFoo (0.00s) file_test.go:11: The handle is invalid. FAIL FAIL github.com/issue9/term 0.380s </pre> ### What did you expect to see? ### What did you see instead?
OS-Windows,NeedsInvestigation,compiler/runtime
low
Critical
514,509,533
flutter
[iOS] Light/Dark mode on iOS should change in the background
<!-- 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 --> Native apps change the theme colors as soon as you change the settings, while Flutter apps changes them when you go back to the app. ## Steps to Reproduce <img src="https://user-images.githubusercontent.com/19904063/67843413-35a1a780-fafc-11e9-8497-9fecf0631aa7.gif" height="300"> <!-- Please tell us exactly how to reproduce the problem you are running into. Please attach a small application (ideally just one main.dart file) that reproduces the problem. You could use https://gist.github.com/ for this. If the problem is with your application's rendering, then please attach a screenshot and explain what the problem is. --> | Safari | Flutter App | | ------------- | ------------- | | <img src="https://user-images.githubusercontent.com/19904063/67844918-ddb87000-fafe-11e9-8a07-3f1e9d02f4e8.gif" height="300"> | <img src="https://user-images.githubusercontent.com/19904063/67844921-df823380-fafe-11e9-98a8-3e804c74a9bc.gif" height="300"> | | Changes instantly | Changes when back to the app | [✓] Flutter (Channel master, v1.10.15-pre.205, on Mac OS X 10.15 19A602, locale es-ES) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 11.0) [✓] Chrome - develop for the web [✓] Android Studio (version 3.5) [✓] Connected device (4 available)
platform-ios,framework,f: material design,a: fidelity,f: cupertino,customer: crowd,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design
low
Critical
514,518,990
youtube-dl
Raiplay - Site Updated - Dowload do not start
From few days Raiplay website is changed and now youtube-dl ca not dowload is stream $ youtube-dl -v https://www.raiplay.it/video/2017/01/Il-quinto-potere-df98d885-128b-40d8-8e7c-118eef7a0e79.html [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'-v', u'https://www.raiplay.it/video/2017/01/Il-quinto-potere-df98d885-128b-40d8-8e7c-118eef7a0e79.html'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2019.10.29 [debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-65-generic-x86_64-with-LinuxMint-19.1-tessa [debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6 [debug] Proxy map: {} [RaiPlay] df98d885-128b-40d8-8e7c-118eef7a0e79: Downloading video JSON ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (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. File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage return self._downloader.urlopen(url_or_request) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "/usr/lib/python2.7/urllib2.py", line 435, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 548, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 473, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
geo-restricted
low
Critical
514,653,748
go
x/build/internal/task/releaselet: Windows installer fails to open device or file when installer file is located on ram disk
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? go1.13.3.windows-amd64.msi ### 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 go env set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\owner\AppData\Local\go-build set GOENV=C:\Users\owner\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=C:\Users\owner\go set GOPRIVATE= set GOPROXY=https://proxy.golang.org,direct set GOROOT=c:\go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=NUL set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\owner\AppData\Local\Temp\go-build703477710=/tmp/go-build -gno-record-gcc-switches </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. --> 1. Download https://sourceforge.net/projects/imdisk-toolkit/, install, then create ram disk. 2. Download windows golang installer and move it to ram disk root. 3. Double click installer and try to install it by default setting. ### What did you expect to see? Installer installed files successfully. ### What did you see instead? Error dialog shows like attached images which means "cannot open the device or file specified" in japanese. Retry does not have any effect. ![dev](https://user-images.githubusercontent.com/22258980/67860222-a5e21480-fb60-11e9-9b6e-1d6539b31ec4.png) If I moved installer to physical disk, installer works fine. I've never experienced this problems in other installers.
OS-Windows,NeedsInvestigation
low
Critical
514,734,923
node
Cannot compile node
Cannot compile node 13.0.1 with flags `./configure --fully-static --with-intl=full-icu` inside docker image for node Getting this output ``` LD_LIBRARY_PATH=/node/out/Release/lib.host:/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /node/out/Release/obj/gen/src/regexp; python ../../deps/v8/tools/run.py "/node/out/Release/gen-regexp-special-case" "/node/out/Release/obj/gen/src/regexp/special-case.cc" tools/v8_gypfiles/run_gen-regexp-special-case.target.mk:13: recipe for target '/node/out/Release/obj/gen/src/regexp/special-case.cc' failed make[1]: *** [/node/out/Release/obj/gen/src/regexp/special-case.cc] Error 245 make[1]: *** Waiting for unfinished jobs.... rm 889aa6e08bf291915b2edfb5755eacba271e7d14.intermediate Makefile:101: recipe for target 'node' failed make: *** [node] Error 2 ``` Steps to reproduce: 1) Install docker 2) `docker run -it node bash` //inside docker shell 3) `git clone https://github.com/nodejs/node.git` 4) `cd node` 5) `git checkout v13.0.1` 6) `./configure --fully-static --with-intl=full-icu` 7) `make -j8` Also not working with flags `./configure --fully-static --enable-static --with-intl=full-icu` with the same error But it compiles without errors with version 11.1.0 with flags `./configure --fully-static --with-intl=full-icu --download=all`
confirmed-bug,build,i18n-api
low
Critical
514,760,312
godot
Microphone recording doesn't work on Linux with official builds
**Godot version:** Git https://github.com/godotengine/godot/commit/924db5fa58ab28912857029ec8dd34fbde771550 **OS/device including version:** Fedora 30, PulseAudio **Issue description:** Microphone recording doesn't seem to work on Linux, even though Godot appears as a capture device when running the Mic Record Demo: ![image](https://user-images.githubusercontent.com/180032/67872103-c181f680-fb31-11e9-9bf1-a206ea82e8ba.png) Saving the file after recording a few seconds will write a WAV file that contains only a few seconds of silence. I made sure the microphone is not muted by recording a sample in Audacity beforehand (where it works correctly). **Steps to reproduce:** Use the "Mic Record Demo" from [godot-demo-projects](https://github.com/godotengine/godot-demo-projects). Click the **Record** button, say something, then press **Stop**. Save the audio to a WAV file then inspect it using a media player. ___ See also https://github.com/godotengine/godot-demo-projects/issues/359. This issue has been confirmed by @CombustibleLemonade in https://github.com/godotengine/godot-demo-projects/issues/359#issuecomment-547962679, so I'll add the `confirmed` label right away. **Edit:** This issue is not exclusive to Linux and has been occurring on Windows and macOS too (both x86 and ARM).
bug,platform:linuxbsd,confirmed,topic:audio
high
Critical
514,764,943
pytorch
Support RRef[T].__call__(*args) which invokes T.__call__(*args) on owner
This is a necessary syntax sugar to for the following use case: ```python class MyModel(nn.Module): pass model = rpc.remote("worker0", MyModel) # The following line should result in an RPC call to worker0 to # run MyModel constructor outputs_rref = model(inputs) ``` We can implement `RRef[T].__call__(*args)` by sending a message to the owner, triggering the owner to run `T.__call__(*args)` locally, and returning immediately another RRef of the output. cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528
triaged,module: rpc
low
Major
514,767,398
rust
Rust is unable to figure out that `if` inside the nested loop is executed at most once per outer loop iteration
Rust unable to figure out that `if` inside the nested loop is executed at most once per outer loop iteration. https://users.rust-lang.org/t/how-to-make-compiler-automatically-elide-bound-checks/34148/6 ``` pub fn foo() -> usize { let mut index = 0; for i in 0..100 { assert!(index <= i); // This generates a panic jmp for j in 0..100 { if i == j { index += 1; break; } } } index } ``` Generated asm: ``` foo::foo: push rax mov rcx, -1 mov dl, 1 xor r8d, r8d xor esi, esi test r8b, r8b je .LBB7_2 jmp .LBB7_9 // here .LBB7_7: add rcx, -1 add dl, 1 mov rsi, rax cmp rax, 100 je .LBB7_8 test r8b, r8b jne .LBB7_9 // here .LBB7_2: lea rax, [rsi, +, 1] mov edi, eax and edi, 7 cmp rsi, 7 jb .LBB7_5 movzx esi, dl and esi, 7 add rsi, rcx .LBB7_4: add rsi, 8 jne .LBB7_4 .LBB7_5: test rdi, rdi je .LBB7_7 .LBB7_6: add rdi, -1 jne .LBB7_6 jmp .LBB7_7 .LBB7_8: pop rcx ret .LBB7_9: call std::panicking::begin_panic ud2 ``` Rust version: 1.38 (stable) platform: Ubuntu 18.04
I-slow,T-compiler
low
Minor
514,772,848
pytorch
Why attn_mask is not 3D tensor in nn.MultiheadAttention?
## 🚀 Feature I think shoud add 3D attn_mask. ## Motivation For example, if in a translation task, I want to let every word in the target sentence focus different words in source sentence, " attn_mask" should in shape (tgt_len, scr_len) , ok! That's fine, that's exactly what it is now. But in different sentences,the target word in same position may focus different source words, so the "broadcast" is unsuitable in this case and " attn_mask" should in shape (batch_size, tgt_len, scr_len) . The same question is also in nn.Transfomers. So I think it's necessary to fix. cc @albanD @mruberry @jbschlosser @zhangguanheng66
module: nn,triaged,enhancement
low
Minor
514,795,894
PowerToys
[PowerRename] respect file order of Windows File Explorer
# Summary of the new feature/enhancement I would like the incremental numbers to be based on the sort order. That way I can sort files in Windows File Explorer, for example on create date. Then using the `Enumerate Items` checkbox the files get a incremental number. But the file order seems random or at least not consistent with the sort order in the Windows File Explorer.
Idea-Enhancement,Product-PowerRename
low
Major
514,849,582
flutter
ThemeData.from is good, but does not merge with existing theme
How does someone put together ThemeData.from() with an existing theme? It works nice on the root of a project, but if you have it anywhere else things start to break and boilerplate starts adding fast. ![image](https://user-images.githubusercontent.com/351125/67884328-6695d280-fb24-11e9-872a-5d0871eff2e3.png) When I use `ThemeData.from()`, I loose all the shapes, elevations, radius and etc. It is great in the main() class, but for the others..? I wish I could just apply the `ColorScheme` and it only changed the colors, not the full theme. Instead, currently, there is a lot of manual work involved.
c: new feature,framework,f: material design,P2,team-design,triaged-design
low
Major
514,861,427
flutter
Flutter material popup menu doesn't consume the latest context
Flutter material popup menu doesn't consume the latest context but the one passed in its constructor. This can be observed if you toggle to dark mode in a popup menu, for example. Details in b/140223471
framework,f: material design,P2,team-design,triaged-design
low
Minor
514,865,225
go
os: output buffer seems to be blocked by first come, first serve
### What version of Go are you using (`go version`)? 1.13.3 ### Does this issue reproduce with the latest release? yes ### What operating system and processor architecture are you using (`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="/home/user/sdk/go1.13.3" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/user/sdk/go1.13.3/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build069569925=/tmp/go-build -gno-record-gcc-switches" ``` ### What did you do? I have a very heavy load application, where I use the standard program output as logging output. This logging output is then redirected by docker towards a logserver. So far so nice. This works perfectly, but sometimes I am missing some log lines - while the code after the print has been executed. It looks like there is an issue when two concurrent threads access the output of the application - is this intended or cannot be resolved? Maybe I am using the wrong way to output my data? I could not find anything related to that. I've written a short example code, which seems to reproduce the problem - the same issue occurs when using `fmt.println()` ``` package main func main() { x := 0 for x < 1000 { //println(x) go myPrintFunc(x) x++ } println(x) } func myPrintFunc(i int) { println(i) } ``` ### What did you expect to see? The same result as I would get with the println(i) commented in and the go-call commented out, which in my case always produces all outputs. ### What did you see instead? each time other values (which are part of the output) - I guess the first comming output blocks the other outputs.
NeedsInvestigation
low
Critical
514,868,712
flutter
Missing CupertinoSlidingSegmentedControl features
### 1. [`isMomentary`](https://developer.apple.com/documentation/uikit/uisegmentedcontrol/1618586-ismomentary) A stateless variant of `CupertinoSlidingSegmentedControl`. ### 2. `proportional` layout: Per https://developer.apple.com/documentation/uikit/uisegmentedcontrol: > The UISegmentedControl object automatically resizes segments to fit proportionally within their superview unless they have a specific width set. When you add and remove segments, you can request that the action be animated with sliding and fading effects. Related to: [apportionsSegmentWidthsByContent](https://developer.apple.com/documentation/uikit/uisegmentedcontrol/1618578-apportionssegmentwidthsbycontent) ### 3. Per segment `enabled` state: https://developer.apple.com/documentation/uikit/uisegmentedcontrol/1618567-setenabled
c: new feature,framework,f: cupertino,P1,team-design,triaged-design,:hourglass_flowing_sand:
medium
Major
514,872,811
flutter
Adding and removing a Flutter View sometimes gets semantics into a bad state
Related: https://github.com/flutter/flutter/issues/31139 This previously caused a crash - in working on a test to make sure we don't regress the crash, I'm noticing that sometimes the semantics just stop working. It seems a bit racy. I believe the fix is what I was originally going to do for the crash (we have to make sure the framework marks the whole semnatics tree as dirty when a FlutterView gets dismissed). /cc @jonahwilliams @mklim @matthew-carroll @dannyvalentesonos /cc @darrenaustin (not sure if this is part of what you're now working on).
platform-android,framework,engine,a: accessibility,a: existing-apps,P2,team-android,triaged-android
low
Critical
514,875,690
rust
IPv6 link-local address parsing & round-tripping
Consider the following link local IPv6 sockaddr string: `[fe80::f03c:91ff:fedf:75ee%eth0]:8080` This address does not parse or round-trip: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b36d93fe7d2a8699397c6dfafa2a3edf The output formatting also elides the scopeid, which means that printed addresses are not valid addresses - particularly on multi-homed devices, where the un-scoped address will not function. I believe that the correct change here is to both parse scopeid's and to include non-zero scopeids in Display. I'm happy to implement this if that is agreeable? It would need to take a dependency on `if_nametoindex` and `if_indextoname` (POSIX, net/if.h) in order to function on most Unix style platforms.
T-libs-api,C-feature-request
low
Critical
514,906,905
rust
Symbols in optimized async programs are often not useful
(As observed on `rustc 1.40.0-nightly (4a8c5b20c 2019-10-23)` targeting `thumbv7em-none-eabihf`; CC @tmandry) I'm making my first aggressive use of `async fn` in an application. It's a deeply-embedded performance-sensitive application, and I wind up inspecting the disassembly output a lot (using `objdump`). This is complicated by the fact that basically all of my functions are named `poll_with_tls_context`. (Some of them aren't -- some of them are named after future combinators.) For example, here is my function called `poll_with_tls_context` calling another one, also named `poll_with_tls_context`: ``` ; This is an ARMv-7M Thumb-2 listing. 080003b8 <core::future::poll_with_tls_context>: 80003b8: b570 push {r4, r5, r6, lr} 80003ba: 4604 mov r4, r0 ; irrelevant setup omitted... 80003f4: f000 fa3c bl 8000870 <core::future::poll_with_tls_context> ; note different addr 80003f8: 2101 movs r1, #1 80003fa: 2800 cmp r0, #0 ; ...and so on ``` (The observant reader will note `poll_with_tls_context` does not appear in libcore. That's correct -- I've hacked `async` in a `#[no_std]` environment. I'm pretty sure the hack is not the problem.) I understand *why* this is happening: `poll_with_tls_context` is an implementation detail of the current lowering of `async fn`, and it is being specialized to the future type it's given, hence many such functions. But I also don't think it's ideal. (For what it's worth, I can change the situation by forcing `poll_with_tls_context` to inline, though this produces unacceptable code bloat in my application (and this option isn't available for people who aren't open to using a patched libstd). By default, `poll_with_tls_context` doesn't inline, but `get_task_context` *does*, which seems like the right result for size/speed.) I am compiling at `opt-level = 3` with an override for `debug = true` in my release profile.
A-debuginfo,C-enhancement,A-codegen,P-medium,T-compiler,A-async-await,AsyncAwait-Triaged
low
Critical
514,943,971
pytorch
Font used in documentation is not always sharp
As discussed in this issue in the forum: https://discuss.pytorch.org/t/font-in-the-instructions-are-not-sharp-in-chrome-browser/59365/2 The font is not always sharp for all users cc @jlin27
module: docs,triaged
low
Minor
514,985,294
godot
Unset PackedScene export property causes a silent crash
**Godot version:** v3.1.1.stable.mono.official **OS/device including version:** Ubuntu 18.04.3 LTS **Issue description:** If your C# class has an [Export] property of type PackedScene, and you forget to set the scene in the editor, your game will crash on start with no error messages or any indication of what went wrong other than a cryptic mono_crash.*.json file in your project directory. This can be very confusing if you've made a bunch of changes at once and didn't realize that a scene export was unset. **Steps to reproduce:** 1. Create a C# class that has an [Export] property of type PackedScene. 2. Attach the class to a node. 3. Leave the property unset in the editor. 4. Build and run your project.
bug,topic:dotnet,crash
low
Critical
515,001,507
pytorch
Provide rpc, remote and dist autograd C++ APIs and register them as Prim::ops
In order to make rpc, remote and dist autograd APIs run in torch script mode, we need to provide C++ APIs of them and register them as Prim::ops. These APIs include: rpc_sync(), rpc_async(), remote(), dist_autograd.backward() cc @ezyang @SsnL @albanD @zou3519 @gqchen @yf225 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @aazzolini @xush6528
module: cpp,module: autograd,triaged,enhancement,module: rpc
low
Minor
515,011,282
pytorch
torch::tensor(scalar) behaves differently from at::tensor(scalar)
After https://github.com/pytorch/pytorch/pull/28523 is merged, C++ `torch::tensor(scalar)` behaves the same as Python `torch.tensor(scalar)` and creates a 0-dim tensor. However, C++ `at::tensor(scalar)` still creates a 1-dim tensor, and it would be great to change the behavior of `at::tensor(scalar)` to create a 0-dim tensor. cc @yf225
module: cpp,triaged,module: pybind
low
Minor
515,012,752
pytorch
Add support for multidimensional input to `at::tensor`
`torch::tensor` currently accepts braced-init-list (such as `{{1}, {2}}`) as multidimensional input. It would be great if `at::tensor` supports the same as well. This would involve moving `torch/csrc/api/include/torch/detail/TensorDataContainer.h` to ATen, and using it from `aten/src/ATen/templates/NativeFunctions.h`. cc @yf225
module: cpp,triaged
low
Minor
515,051,826
pytorch
Cannot select version in the tutorials page
## 📚 Documentation The documentation pages can be viewed for different versions using the [versions page](https://pytorch.org/docs/versions.html). However, when navigating to the "Tutorials", the versions cannot be selected. This is a problem for the experimental parts (s.a. quantization), as we update the tutorials in master, which cannot be viewed.
module: docs,triaged
low
Minor
515,058,089
flutter
Remove AndroidBuilder from the tool
This was originally added to workaround the limitation that Gradle couldn't be easily mock without leaking the entire build process. Once https://github.com/flutter/flutter/pull/43479 is in, there's no need for this wrapper class since the build system is simpler and has a more defined surface area.
team,platform-android,tool,a: build,P2,team-android,triaged-android
low
Minor
515,075,677
ant-design
Table with rowSpan > 0, if we do a filter on such a table, this filter does not consider the column where rowSpan if greater than 0
- [ ] 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 [https://codepen.io/yashinigam/pen/LYYOVZZ?editors=0010](https://codepen.io/yashinigam/pen/LYYOVZZ?editors=0010) ### Steps to reproduce Hi, Could you please see - https://codepen.io/yashinigam/pen/LYYOVZZ?editors=0010 I have created a basic table control. - This has 3 columns. There are filters set on 1st column and 3rd column - In the column Name, the first cell spans across 2 rows. Now if i filter the column Name on value "Jim", the table becomes blank. Also, if i filter on column Address with value "London", the filter works fine but the Name column is empty which should not be the case. Can you please help? Thanks, Yashi ### What is expected? The column Name should show the values correctly ### What is actually happening? The column Name is getting blank. | Environment | Info | |---|---| | antd | 3.24.3 | | React | React | | System | Mac | | Browser | Chrome | <!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Inactive
low
Minor
515,116,814
rust
Tracking issue for dyn upcasting coercion
This is a tracking issue for [RFC3324](https://github.com/rust-lang/rfcs/pull/3324). Corresponding [MCP](https://github.com/rust-lang/lang-team/issues/98) is here. The feature gate for the issue is `#![feature(trait_upcasting)]`. ### STATUS UPDATE #### We are in the process of stabilizing. ### About tracking issues Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label. ### Steps - [x] Implement the experimental feature behind a feature gate. - [x] Define the semantics explicitly. - [x] Gathering design docs into initiative repo: https://github.com/rust-lang/dyn-upcasting-coercion-initiative - [x] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide]) https://github.com/rust-lang/reference/pull/1259 - [x] Gather data about memory usage? https://github.com/rust-lang/rust/issues/112355 - [x] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide]) ~~https://github.com/rust-lang/rust/pull/101718~~, https://github.com/rust-lang/rust/pull/118133 - [x] Fix soundness problems. - https://github.com/rust-lang/rust/pull/120248 - [ ] Restabilize. ### Previous discussions * RFC401: https://github.com/rust-lang/rfcs/pull/401 * RFC982: https://github.com/rust-lang/rfcs/pull/982 * RFC-issue2765: https://github.com/rust-lang/rfcs/issues/2765 * MCP: https://github.com/rust-lang/lang-team/issues/98 (Current lang-team MCP) * Initiative: [Dyn upcasting coercion initiative](https://github.com/rust-lang/dyn-upcasting-coercion-initiative) * RFC: https://github.com/rust-lang/rfcs/pull/3324 ### Unresolved Questions * ~~Currently `CoerceUnsized` trait cannot express this case: a smart pointers that wrap a raw pointer and don't guarantee via a custom invariant that it is valid. Maybe a separate `CoerceUnsizedUnsafe` trait is needed. (see https://github.com/rust-lang/rust/pull/88010#issuecomment-898893209).~~ * Should we make upcasting opt-in in some form to limit vtable size by default? The current inclination of the lang-team is "no", but it would be useful to gather data on how much supporting upcasting contributors to overall binary size. * ~~Before stabilizing it we should check that libs-api is ok with upcasting for all dyn-allowed traits in the library, since those we can't change.~~ (addressed by https://github.com/rust-lang/rust/issues/65991#issuecomment-1369970129) * Should we add an *opt-out* mechanism, and extend library stabilization checklist with "do we want to opt-out for now"? ### Implementation history * Initial attempt: #60900 * Second attempt: * [X] Preparation refactoring: #86291 * [X] Unify vtable building: #86475 * [x] Update vtable format: #86461 * [x] Feature gate implementation: #86264 * [x] Pointer conversion adjustments: #87515 * [x] Support multiple occurrence of a target trait with different substsdefs: #88135 * [x] ~~Unsafety checking for raw dyn pointers: #88010 (not prefered approach, likely will need to do nothing here, but need a design meeting discussion with lang-team)~~ Solution: https://rust-lang.zulipchat.com/#narrow/stream/326132-t-types.2Fmeetings/topic/meeting.202022-09-02.20planning/near/296826711, https://github.com/rust-lang/rust/issues/101336 * [x] Lint for easing migration: https://github.com/rust-lang/rust/issues/89460 * [x] Reference changes * [x] ~~https://github.com/rust-lang/reference/pull/1259~~ * [ ] https://github.com/rust-lang/reference/pull/1622 * [x] Mark this feature no longer incomplete and stablize: https://github.com/rust-lang/rust/pull/101718 * [x] Make trait upcasting work with supertraits with fewer associated types: #114036
A-trait-system,T-lang,T-compiler,C-tracking-issue,disposition-merge,finished-final-comment-period,F-trait_upcasting,S-tracking-ready-to-stabilize,T-types
high
Critical
515,122,638
pytorch
The `@` operation uses too much memory on GPU
## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## To Reproduce #### A ```py >>> x = torch.randn(100, 128, 512, requires_grad=True) >>> y = torch.randn(100, 128, 512, requires_grad=True) >>> w = torch.randn(50, 512, 512, requires_grad=True) >>> s = (x.unsqueeze(1) @ w @ y.unsqueeze(1).transpose(-1,-2)) ``` #### B ```py >>> x = torch.randn(100, 128, 512, requires_grad=True) >>> y = torch.randn(100, 128, 512, requires_grad=True) >>> w = torch.randn(50, 512, 512, requires_grad=True) >>> s = torch.einsum('bxi,oij,byj->boxy', x, w, y) ``` The above two operations are equivalent. But **A** uses 10224M of memory on GPU and **B** uses only 4024M. And increasing the size of the last dimension quickly causes an OOM error. Seems to be a problem similar to #18862. ## Environment - PyTorch Version (e.g., 1.0): 1.3.0 - OS (e.g., Linux): Linux - How you installed PyTorch (`conda`, `pip`, source): `conda` - Python version: 3.7 - CUDA/cuDNN version: 9.0
needs reproduction,module: memory usage,triaged
low
Critical
515,182,204
pytorch
ConnectionResetError when using dataLoader with pin_memory=True
## 🐛 Bug ConnectionResetError when 'pin_memory=True' for dataLoader. A simple test case is provided. ( I found the issue in a more complex training code with larger dataset. I made a simple code to pinpoint the problem) ## To Reproduce ``` from torch.utils.data import Dataset, DataLoader class Set_ex(Dataset): def __init__(self): self.lst = [1, 2, 3, 4, 5, 6, 7, 8] def __getitem__(self, index): return self.lst[index] def __len__(self): return len(self.lst) if __name__ == "__main__": ## ex_call1 loader ds_ex = Set_ex() dsLoader = DataLoader(ds_ex, 3, True, num_workers=20, pin_memory=True) iterator = iter(dsLoader) dtIn =next(iterator) print(dtIn) ``` output + error infor: > tensor([5, 8, 1]) Exception in thread Thread-1: Traceback (most recent call last): File "/home/jun/miniconda3/envs/py37/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/home/jun/miniconda3/envs/py37/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/jun/miniconda3/envs/py37/lib/python3.7/site-packages/torch/utils/data/_utils/pin_memory.py", line 21, in _pin_memory_loop r = in_queue.get(timeout=MP_STATUS_CHECK_INTERVAL) File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/queues.py", line 113, in get return _ForkingPickler.loads(res) File "/home/jun/miniconda3/envs/py37/lib/python3.7/site-packages/torch/multiprocessing/reductions.py", line 276, in rebuild_storage_fd fd = df.detach() File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/resource_sharer.py", line 57, in detach with _resource_sharer.get_connection(self._id) as conn: File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/resource_sharer.py", line 87, in get_connection c = Client(address, authkey=process.current_process().authkey) File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/connection.py", line 498, in Client answer_challenge(c, authkey) File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/connection.py", line 741, in answer_challenge message = connection.recv_bytes(256) # reject large message File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/connection.py", line 216, in recv_bytes buf = self._recv_bytes(maxlength) File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes buf = self._recv(4) File "/home/jun/miniconda3/envs/py37/lib/python3.7/multiprocessing/connection.py", line 379, in _recv chunk = read(handle, remaining) ConnectionResetError: [Errno 104] Connection reset by peer <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> ## Expected behavior This simple code suppose to finish without error. The code can be executed fully. Yet in the end, such error will raise randomly. ## Additional test - If 'pin_memory=False', no problem - If change the batch_size or num_workers, can work sometimes. batch_size=2, workers=20 will not work. - Test on another Centos OS cluster node, no such problem. Same pytorch install via conda, same CUDA, same python3.7. - Run same code several times, sometimes it worked, sometimes failed. pin_memory seems to cause the trouble. Problem seems random. ## Environment PyTorch version: 1.1.0 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.6 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 CMake version: version 3.12.0 Python version: 3.7 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: GeForce GTX 1080 Ti Nvidia driver version: 418.56 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.2.1 Versions of relevant libraries: [pip] numpy==1.17.2 [pip] torch==1.1.0 [pip] torchvision==0.3.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 243 [conda] mkl-service 2.3.0 py37he904b0f_0 [conda] mkl_fft 1.0.14 py37ha843d7b_0 [conda] mkl_random 1.1.0 py37hd6b4f25_0 [conda] pytorch 1.1.0 py3.7_cuda9.0.176_cudnn7.5.1_0 pytorch [conda] torchvision 0.3.0 py37_cu9.0.176_1 pytorch ## Additional context <!-- Add any other context about the problem here. --> cc @SsnL
needs reproduction,module: dataloader,triaged
low
Critical
515,304,347
TypeScript
Project with project references and outFile fails to build
**TypeScript Version:** 3.8.0-dev.20191031 **Search Terms:** "project references" paths outfile "has not been built from source file" **Code** https://github.com/ecl1ps/project-references-demo/tree/amd-outfile Project structure ``` /src /animals tsconfig.json dog.ts index.ts /zoo tsconfig.json zoo.ts tsconfig.json tsconfig-base.json ``` tsconfig-base.json ```json { "compilerOptions": { "declaration": true, "declarationMap": true, "module": "amd", "composite": true, "rootDir": "./src", "baseUrl": "./src", "moduleResolution": "node" } } ``` src/zoo/tsconfig.json ```json { "extends": "../../tsconfig-base.json", "compilerOptions": { "outFile": "../../lib/zoo/zoo.bundle.js", "paths": { "@animals": ["./animals"], "@animals/*": ["./animals/*"], } }, "references": [{ "path": "../animals" }] } ``` ```ts import { createDog } from '../animals'; // fails import { Dog as Dog1 } from 'animals/dog'; // ok import { Dog as Dog2 } from 'animals'; // fails import { Dog as Dog3 } from '@animals/dog'; // fails import { Dog as Dog4 } from '@animals'; // fails export function createZoo(): Array<Dog1 | Dog2 | Dog3 | Dog4> { return [ createDog() ]; } ``` **Expected behavior:** Project will be built without errors. **Actual behavior:** Project build (`tsc -b`) fails with four errors `TS6305: Output file '[...]/lib/animals/animals.bundle.d.ts' has not been built from source file '[...]/src/animals/dog.ts'.`. One for each import marked in code above as `// fails`. Module resolution succeedes for every import. Log below. This problem occurs only when using `outFile` compiler directive. Compilation using `outDir` finishes without problem. See repro repository with the exactly same project just with `outDir` settings: https://github.com/ecl1ps/project-references-demo/tree/amd-outdir branch `amd-outdir`. **Repro Repository Link:** https://github.com/ecl1ps/project-references-demo/tree/amd-outfile branch `amd-outfile` **Related Issues:** **Module Resolution Log** <details> <summary>Log</summary> ``` Building project '/src/zoo/tsconfig.json'... Module 'animals/animal' was resolved as locally declared ambient module in file '/lib/animals/animals.bundle.d.ts'. Module 'animals/animal' was resolved as locally declared ambient module in file '/lib/animals/animals.bundle.d.ts'. Module 'animals/dog' was resolved as locally declared ambient module in file '/lib/animals/animals.bundle.d.ts'. ======== Resolving module '../animals' from '/src/zoo/zoo.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. Loading module as file / folder, candidate module location '/src/animals', target file type 'TypeScript'. File '/src/animals.ts' does not exist. File '/src/animals.tsx' does not exist. File '/src/animals.d.ts' does not exist. File '/src/animals/package.json' does not exist. File '/src/animals/index.ts' exist - use it as a name resolution result. ======== Module name '../animals' was successfully resolved to '/src/animals/index.ts'. ======== ======== Resolving module 'animals/dog' from '/src/zoo/zoo.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name 'animals/dog'. 'paths' option is specified, looking for a pattern to match module name 'animals/dog'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name 'animals/dog'. Resolving module name 'animals/dog' relative to base url '/src' - '/src/animals/dog'. Loading module as file / folder, candidate module location '/src/animals/dog', target file type 'TypeScript'. File '/src/animals/dog.ts' exist - use it as a name resolution result. ======== Module name 'animals/dog' was successfully resolved to '/src/animals/dog.ts'. ======== ======== Resolving module 'animals' from '/src/zoo/zoo.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name 'animals'. 'paths' option is specified, looking for a pattern to match module name 'animals'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name 'animals'. Resolving module name 'animals' relative to base url '/src' - '/src/animals'. Loading module as file / folder, candidate module location '/src/animals', target file type 'TypeScript'. File '/src/animals.ts' does not exist. File '/src/animals.tsx' does not exist. File '/src/animals.d.ts' does not exist. File '/src/animals/package.json' does not exist. File '/src/animals/index.ts' exist - use it as a name resolution result. ======== Module name 'animals' was successfully resolved to '/src/animals/index.ts'. ======== ======== Resolving module '@animals/dog' from '/src/zoo/zoo.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name '@animals/dog'. 'paths' option is specified, looking for a pattern to match module name '@animals/dog'. Module name '@animals/dog', matched pattern '@animals/*'. Trying substitution './animals/*', candidate module location: './animals/dog'. Loading module as file / folder, candidate module location '/src/animals/dog', target file type 'TypeScript'. File '/src/animals/dog.ts' exist - use it as a name resolution result. ======== Module name '@animals/dog' was successfully resolved to '/src/animals/dog.ts'. ======== ======== Resolving module '@animals' from '/src/zoo/zoo.ts'. ======== Explicitly specified module resolution kind: 'NodeJs'. 'baseUrl' option is set to '/src', using this value to resolve non-relative module name '@animals'. 'paths' option is specified, looking for a pattern to match module name '@animals'. Module name '@animals', matched pattern '@animals'. Trying substitution './animals', candidate module location: './animals'. Loading module as file / folder, candidate module location '/src/animals', target file type 'TypeScript'. File '/src/animals.ts' does not exist. File '/src/animals.tsx' does not exist. File '/src/animals.d.ts' does not exist. File '/src/animals/package.json' does not exist. File '/src/animals/index.ts' exist - use it as a name resolution result. ======== Module name '@animals' was successfully resolved to '/src/animals/index.ts'. ======== ``` </details>
Bug
low
Critical
515,315,337
pytorch
RuntimeError: CUDA error: unknown error
Hi there, I am issuing this problem on pytorch. I know that there are lots of similar issues like this, however none of the solution proposed works to me. I am using this Linux system configuration: > __Hardware Information__ Machine : x86_64 CPU Name : skylake-avx512 CPU count : 64 CFS restrictions : None CPU Features : 64bit adx aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vl bmi bmi2 clflushopt clwb cmov cx16 f16c fma fsgsbase invpcid lzcnt mmx movbe pclmul pku popcnt prfchw rdrnd rdseed rtm sahf sse sse2 sse3 sse4.1 sse4.2 ssse3 xsave xsavec xsaveopt xsaves > __OS Information__ Platform : Linux-3.10.0-1062.1.2.el7.x86_64-x86_64-with-redhat-7.6-Nitrogen Release : 3.10.0-1062.1.2.el7.x86_64 System Name : Linux Version : #1 SMP Fri Sep 20 08:24:10 CDT 2019 OS specific info : Scientific Linux7.6Nitrogen glibc info : glibc 2.10 > __Python Information__ Python Compiler : GCC 7.3.0 Python Implementation : CPython Python Version : 3.7.4 Python Locale : en_GB UTF-8 > __LLVM information__ LLVM version : 8.0.0 > __CUDA Information__ Found 1 CUDA devices id 0 b'TITAN V' [SUPPORTED] compute capability: 7.0 pci device id: 0 pci bus id: 175 Summary: 1/1 devices are supported CUDA driver version : 10010 CUDA libraries: Finding cublas from Conda environment named libcublas.so.10.2.0.168 trying to open library... ok Finding cusparse from Conda environment named libcusparse.so.10.1.168 trying to open library... ok Finding cufft from Conda environment named libcufft.so.10.1.168 trying to open library... ok Finding curand from Conda environment named libcurand.so.10.1.168 trying to open library... ok Finding nvvm from Conda environment named libnvvm.so.3.3.0 trying to open library... ok Finding libdevice from Conda environment searching for compute_20... ok searching for compute_30... ok searching for compute_35... ok searching for compute_50... ok I tried to remove the ~./nv folder, updated the last CUDA and nvidia drivers, without success. I was just verifying if everything works with the system configuration, just by running two lines of code: ```python import torch torch.rand(1).cuda() ``` and I got this error ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: CUDA error: unknown error ``` I also have the same error if I try to run another piece of code from another project I have. The nvidia GPU samples work correctly, so I believe that nvidia drivers and CUDA drivers are ok.
needs reproduction,module: cuda,triaged
low
Critical
515,478,049
rust
FnAbi computation should be cached.
We might be spending a non-trivial amount of time creating `FnAbi`s and adjusting them, so we should investigate caching them, similar to how we cache LLVM `Type`s we compute from Rust `Ty`s. After #65947, this is what's left: * `FnAbi::of_instance`: takes `ty::Instance`, easy to cache * we should be able to make this a query, like `layout_of` is * `FnAbi::of_fn_ptr`: takes `ty::PolyFnSig`, might be more expensive * well, `inputs_and_outputs` is compared/hashed by pointer nowadays, isn't it? * creating LLVM `Type`s for `fn` pointers is already cached itself, but calls of `fn` pointers also require `FnAbi`s * this is likely used less than `FnAbi::of_instance`, so it's lower priority
C-enhancement,A-codegen,I-compiletime,T-compiler
low
Minor
515,519,655
pytorch
[feature request] Some activations modules missing inplace argument
E.g. nn.Tanh and nn.Sigmoid are missing inplace argument, though torch.Tensor.sigmoid_ exists (although torch.nn.functional.sigmoid does not support inplace/out argument either) https://pytorch.org/docs/master/tensors.html?highlight=sigmoid_#torch.Tensor.sigmoid_ consistency wrt out arguments is nice to easier support inplace mode like in https://github.com/pytorch/pytorch/issues/26644#issuecomment-534762427 In the wild one then has to implement custom consistent wrappers: https://github.com/rwightman/gen-efficientnet-pytorch/blob/master/geffnet/activations/activations.py#L40
module: nn,triaged,enhancement
low
Minor
515,535,591
vue
Trigger a warning when v-show and other incompatible directives are used on <template>
### What problem does this feature solve? Hi, I lost quite some time trying to figure out when my code didn't work. The error was on my part, not vue, but i think Vue should trigger an error in this case. The problem is that you CANNOT use `v-show` on a `<template>` tag, which make sense since `v-show` add inline style to the node and the `<template>` tag does not render a node. ### What does the proposed API look like? A Vue warning/error should suggest changing the `v-if` (if possible) or change the `<template>` tag for a DOM element (like a `<div>`) <!-- generated by vue-issues. DO NOT REMOVE -->
discussion,warnings
low
Critical
515,581,436
rust
Using thread-local state inside proc-macro causes ICE
ICE will be produced on any channel. Error: ``` thread 'rustc' panicked at 'use-after-free in `proc_macro` handle', src/libcore/option.rs:1190:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: rustc 1.39.0-beta.1 (968967007 2019-09-24) running on x86_64-apple-darwin note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin note: some of the compiler flags provided by cargo are hidden error: custom attribute panicked --> proc_macro_bug/src/main.rs:7:1 | 7 | #[some_macro(0)] | ^^^^^^^^^^^^^^^^ | = help: message: use-after-free in `proc_macro` handle error: aborting due to previous error error: could not compile `proc_macro_bug`. ``` `LocalKey` used in macro generation: ```rust extern crate proc_macro; extern crate quote; extern crate syn; use proc_macro::TokenStream; use quote::quote; use syn::{parse_quote, Path}; thread_local! { static DEFAULT_CRATE_PATH: Path = parse_quote! { ::std }; } #[proc_macro_attribute] pub fn some_macro(_: TokenStream, _: TokenStream) -> TokenStream { TokenStream::from(DEFAULT_CRATE_PATH.with(|default_crate_path| { quote! { use #default_crate_path::boxed::Box; } })) } ``` Macro calls (should be 2 at least) which produce error: ```rust #[some_macro(0)] struct Abc {} #[some_macro(0)] struct Cde {} fn main() {} ``` Repo with minimal code sample: https://github.com/olegnn/proc-macro-ICE.
A-diagnostics,I-ICE,A-macros,T-compiler,A-thread-locals,E-needs-mcve,A-proc-macros
low
Critical
515,599,869
go
cmd/go: TestScript/mod_import failure on darwin-amd64-nocgo
`darwin-amd64-nocgo` (https://build.golang.org/log/b64b26f0f1ea99d0a15dbe847285ee310af7fae9): ``` go test proxy running at GOPROXY=http://127.0.0.1:57008/mod go proxy: no archive rsc.io v1.1.0: file does not exist go proxy: no archive rsc.io v1.5.2: file does not exist go proxy: no archive rsc.io v1.0.0: file does not exist go proxy: no archive rsc.io v1.0.0: file does not exist go proxy: no archive rsc.io v1.0.0: file does not exist go proxy: no archive rsc.io v1.0.0: file does not exist go proxy: no archive rsc.io v1.5.1: file does not exist go proxy: no archive example.com/newcycle v1.0.0: file does not exist go proxy: no archive rsc.io v1.5.2: file does not exist --- FAIL: TestScript (0.01s) --- FAIL: TestScript/mod_import (0.79s) script_test.go:192: # latest rsc.io/quote should be v1.5.2 not v1.5.3-pre1 (0.648s) > go list [stdout] x > go list -m all [stdout] x > stdout 'rsc.io/quote v1.5.2' FAIL: testdata/script/mod_import.txt:6: no match for `(?m)rsc.io/quote v1.5.2` found in stdout FAIL FAIL cmd/go 251.813s ``` I'm not sure what to make of this, but the `file does not exist` error suggest perhaps filesystem flakiness. (There is precedent for the filesystem being flaky in #33041.) CC @jayconrod
help wanted,OS-Darwin,NeedsInvestigation
low
Critical
515,692,781
pytorch
Unsafe use of `at::parallel_for` in current codebase
As discussed in https://github.com/pytorch/pytorch/issues/28370 , `parallel_for` is not propagating thread local states to worker threads which can lead to subtle errors when operations relying on thread local states are performed inside it. Here is a list of all the potentially unsafe calls we have: - [ ] In `Aten/native/Normalization.cpp` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/Normalization.cpp#L157-L180), [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/Normalization.cpp#L202-L236) and [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/Normalization.cpp#L275-L349) `.select()` is used. - [ ] In `Aten/native/quantized/cpu/q_adaavgpool.cpp` [here](https://github.com/pytorch/pytorch/blob/eca01eb0a6f7f0f16c7e63a5b2c90ce91b7814a1/aten/src/ATen/native/quantized/cpu/q_adaavgpool.cpp#L168-L185) use of special ops on quantized tensor, not sure if they are safe? - [ ] In `Aten/native/quantized/cpu/q_avgpool.cpp` [here](https://github.com/pytorch/pytorch/blob/eca01eb0a6f7f0f16c7e63a5b2c90ce91b7814a1/aten/src/ATen/native/quantized/cpu/q_avgpool.cpp#L36-L101), [here](https://github.com/pytorch/pytorch/blob/eca01eb0a6f7f0f16c7e63a5b2c90ce91b7814a1/aten/src/ATen/native/quantized/cpu/q_avgpool.cpp#L214-L235) and [here](https://github.com/pytorch/pytorch/blob/eca01eb0a6f7f0f16c7e63a5b2c90ce91b7814a1/aten/src/ATen/native/quantized/cpu/q_avgpool.cpp#L260-L280) use of `.contiguous(), special ops on quantized tensors and also nesting of parallel_for. - [ ] In `ATen/native/quantized/cpu/qconv.cpp` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/quantized/cpu/qconv.cpp#L437-L495) Is fbgemm fine to use here? Also Tensor are unpacked inside the parallel_for block. - [ ] In `ATen/native/quantized/cpu/qlinear.cpp` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/quantized/cpu/qlinear.cpp#L112) similar to conv above. - [ ] In `ATen/native/SortingUtils.h` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/SortingUtils.h#L20-L40) `.select()` is used and the result passed to user function. User function called with Tensors so all user functions need to be checked. - [ ] In `ATen/native/TensorIteratorReduce.cpp` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/TensorIteratorReduce.cpp#L44-L52), [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/TensorIteratorReduce.cpp#L151-L168), the second one is sharing of a TensorIterator, so not sure. - [ ] In `ATen/native/Embedding.cpp` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/aten/src/ATen/native/Embedding.cpp#L105-L128) use of slicing and inplace op. - [ ] In `binaries/intra_inter_benchmark.cc` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/binaries/intra_inter_benchmark.cc#L46-L64) we perform arbitrary ops on Tensors. - [ ] In `csrc/api/include/torch/nn/parallel/data_parallel.h` [here](https://github.com/pytorch/pytorch/blob/42faf961c83d192933e199f8228909cc171765ca/torch/csrc/api/include/torch/nn/parallel/data_parallel.h#L207-L227) we forward a whole model. cc @ezyang @gchanan @zou3519 @jerryzh168 @SsnL @albanD @gqchen @VitalyFedyunin @ngimel @mruberry @ifedan @ilia-cher What do you think is the way forward for this? Does any of you have some bandwidth to look into these and fix them?
high priority,module: performance,module: internals,module: autograd,triaged,module: multithreading
low
Critical
515,741,340
pytorch
torch.mean(x, dims=[]) has incorrect gradient in 1.2
## 🐛 Bug ``` import torch torch.__version__ x = torch.ones(3, requires_grad=True) out = x.mean([]) # gives 1, as expected out.backward() x.grad # gives tensor([1., 1., 1.]) which is incorrect! ``` `torch.mean(x, [])` should be equivalent to `torch.mean(x)` unless I am missing something. Compare the above code to the following code: ``` y = torch.ones(3, requires_grad=True) out = y.mean() out.backward() y.grad # gives tensor([0.333, 0.333, 0.333]) as expected ``` This is on PyTorch 1.2. One can't actually run this code on PyTorch 1.3 (it says the gradient is not implemented). cc @ezyang @gchanan @zou3519 @jerryzh168 @SsnL @albanD @gqchen
high priority,module: autograd,triaged,quansight-nack,module: reductions
low
Critical
515,743,907
flutter
Support FragmentActivity for plugins
This is a documentation ticket that explains why `FragmentActivity` is not currently supported for plugin access. Other tickets that reference this limitation can link to this one, and developers can thumbs up this issue if they run into use-cases that are significantly hampered by the lack of `FragmentActivity` support. **Why not make `FlutterActivity` a `FragmentActivity` in all cases?** Flutter's use of `FragmentActivity` requires the inclusion of the Fragment support library. The Fragment support library adds a 100k binary size increase (when optimized). Most full-Flutter apps do not require any use of Fragments, making that 100k binary size increase unnecessary. Therefore, a standard Flutter project uses `FlutterActivity`, which extends a regular `Activity`. A `FlutterFragmentActivity` is made available within the Android embedding for those projects that require a `FragmentActivity`. However, the `ActivityAware` plugin API only exposes a regular `Activity` via `getActivity()`. This is because the only thing the embedding knows for sure is that an `Activity` is available, but not necessarily a `FragmentActivity`. Some plugins really do require a `FragmentActivity`. The current solution for those plugins is to attempt to cast the `Activity` to a `FragmentActivity`. It then becomes the responsibility of the app developer to manually switch from `FlutterActivity` to `FlutterFragmentActivity`. This ticket exists to collect issues and concerns about this approach. If a strong enough argument is made to add some kind of support for `FragmentActivity` exposure in the plugin APIs then the ecosystem team and the embedding team should work together to design the appropriate solution.
platform-android,engine,P3,a: plugins,team-android,triaged-android
low
Major
515,747,051
go
x/build/maintner/maintnerd: Gerrit events are slow to pick up
I've noticed a huge delay lately starting TryBots. Something's stuck or being slow in the pubsubhelper and/or maintner Gerrit code.
Builders,NeedsInvestigation
low
Major
515,815,937
TypeScript
Provide metadata about TypeScript's available refactorings and quick fixes
## Problem We are working on improving discoverability of JS/TS refactorings and quick fixes in VS Code. As part of this, we'd like to put together documentation and a new [contribution points](https://code.visualstudio.com/api/references/contribution-points) that lists out the code actions provided by TypeScript At the moment, the only way I know to determine this list is to look through the TypeScript codebase. ## Proposal We'd like a way to get metadata about all the current TS quick fixes and code actions. The main information we are interested in: - Identifier for the quick fix - Human readable name / description for the quick fix - (possibly) A way to map this description to the localized description that TS ships with Two ideas on how this could be exposed: - In the TS repo, check in a generated `CodeActions.json` file. This file would be updated whenever the refactorings or quick fixes change. VS Code would not need this to be published as part of the TypeScript package - Expose a command line option or tool to dump out all known refactorings and quick fixes. /cc @orta Ryan mentioned you may also find this useful for the website
Suggestion,Committed,Rescheduled
low
Major
515,821,768
pytorch
torch.stack does not yet support named tensors
## 🚀 Feature tensor.stack outputs named tensors. ## Motivation Stack is one of those times when you are mushing together a bunch of tensors and getting the end result to match what you intended can be surprisingly tedious and finicky. Named tensors is a beautiful idea that provides names for each dimension. ## Pitch The input tensors should be named and the names should match in all the dimensions. e..g. ``` test1 = torch.from_numpy(np.array([[4,1,5,3],[0,6,-1,3.]])).refine_names('H', 'W') test2 = torch.from_numpy(np.array([[1,1,2,2],[1,1,3,8.]])).refine_names('H', 'W') newstack = torch.stack((test1,test2), dim=0, names=('B', 'H', 'W')) ``` 'B' is the new dimension you are stacking, other dimensions should match by name. ## Alternatives The alternative is the current implementation where you get a clear error. `RuntimeError: stack is not yet supported with named tensors. Please drop names via `tensor = tensor.rename(None)`, call the op with an unnamed tensor, and set names on the result of the operation.` ## Additional context Write up about named tensors. [Named Tensors for Deep Learning](http://nlp.seas.harvard.edu/NamedTensor2) cc @zou3519
feature,triaged,module: named tensor
low
Critical
515,828,006
TypeScript
Missing JSDoc description when using arrow functions in --allowJs + --declaration
I was trying to use `--allowJs --declaration` in a javascript only project and noticed that the JSDoc descriptions for arrow functions aren't properly attaching to the type defs. **TypeScript Version:** 3.8.0-dev.20191031 **Search Terms:** arrow function, allowJs, declaration **Code** https://github.com/hipstersmoothie/typescript-jsdoc-bug ```js /** * This isn't included * * @param bar a test param */ export const foo = bar => {}; /** * This is included * * @param baz a test param */ export function fob(baz) {} ``` **Expected behavior: (At least something like)** ```ts /** * This isn't included * * @param bar a test param */ export function foo(bar: any): void; /** * This is included * * @param baz a test param */ export function fob(baz: any): void; ``` **Actual behavior:** ```ts /** * This is included * * @param baz a test param */ export function fob(baz: any): void; export function foo(bar: any): void; ``` If I switch the file to `.ts` the output is expected ```ts /** * This isn't included * * @param bar a test param */ export declare const foo: (bar: string) => void; /** * This is included * * @param baz a test param */ export declare function fob(baz: string): void; ```
Bug,Domain: Comment Emit
low
Critical
515,838,915
tensorflow
Porting gradients to C++ from python
**System information** - TensorFlow version (you are using): v2 - Are you willing to contribute it (Yes/No): Yes **Describe the feature and the current behavior/state.** I'm writing a Java gradient optimizer to allow training models on the JVM. I've got pretty much everything working, but some of the gradients can't be calculated as they aren't available in C++, and so I get errors of the form `Exception in thread "main" org.tensorflow.TensorFlowException: No gradient defined for op: SparseSoftmaxCrossEntropyWithLogits.`. What's the roadmap for porting gradients from Python to C++? If there isn't a roadmap, would a pull request to add this gradient be accepted (and is there any relevant guidance for working in the TF C++ codebase)? The relevant issues according to GitHub are all from 2016/7 and the internals might be quite different after the v2 release. **Will this change the current api? How?** It will expand the set of models that can be trained using languages other than python. It should only add API endpoints and won't change any of the existing ones. **Who will benefit with this feature?** Users of the the TF Java API, users of the C API, and other languages which bind the C API. Without the ability to train models using a specific language binding it's very hard to say Tensorflow actually supports that language.
stat:contribution welcome,stat:community support,type:feature,stale,comp:runtime
low
Critical
515,863,185
go
x/build/maintner/maintnerd: don't sync GitHub issues once we get a 410 that they're disabled
Seen in maintnerd logs: ``` 2019/11/01 01:47:40 sync github golang/arch: Beginning sync. 2019/11/01 01:47:40 sync github golang/arch: 2 missing github issues. 2019/11/01 01:47:40 sync github golang/arch: After page 1: 2 issues, 0 changes, 2 issues in memory 2019/11/01 01:47:40 sync github golang/arch: remaining issues: [1 2] 2019/11/01 01:47:40 sync github golang/arch: getting issue 1 ... 2019/11/01 01:47:40 sync github golang/arch: sync = GET https://api.github.com/repos/golang/arch/issues/1: 410 Issues are disabled for this repo []; sleeping 2019/11/01 01:47:56 sync github golang/debug: Beginning sync. 2019/11/01 01:47:57 sync github golang/debug: 1 missing github issues. 2019/11/01 01:47:57 sync github golang/debug: After page 1: 2 issues, 0 changes, 2 issues in memory 2019/11/01 01:47:57 sync github golang/debug: remaining issues: [1] 2019/11/01 01:47:57 sync github golang/debug: getting issue 1 ... 2019/11/01 01:47:57 sync github golang/debug: sync = GET https://api.github.com/repos/golang/debug/issues/1: 410 Issues are disabled for this repo []; sleeping 2019/11/01 01:48:10 sync github golang/review: Beginning sync. 2019/11/01 01:48:10 sync github golang/review: 9 missing github issues. 2019/11/01 01:48:10 sync github golang/review: After page 1: 3 issues, 0 changes, 3 issues in memory 2019/11/01 01:48:10 sync github golang/review: remaining issues: [2 3 4 5 6 7 8 9 10] 2019/11/01 01:48:10 sync github golang/review: getting issue 2 ... 2019/11/01 01:48:10 sync github golang/review: sync = GET https://api.github.com/repos/golang/review/issues/2: 410 Issues are disabled for this repo []; sleeping ``` Once we see that they're disabled, we should stop polling.
Builders,NeedsFix
low
Critical
515,907,249
PowerToys
[FancyZones] distinguish between "drop" and "resize to" zone
I suggest that to make FancyZones really useful it should distinguish between the zone that you drag a window to, what we might call a "Drop Zone", and the zone that window will be resized to, represented by a "Resize to" zone. For example, you could drag a window to some small zone on monitor 1 and have that window resize to cover all of monitor 1 and monitor 2. This is indeed the way [GridMove](https://www.dcmembers.com/jgpaiva/) works. (Edit: The current problem with GridMove: setting up these zones is cumbersome; and currently there are unintended gutters).
Idea-Enhancement,FancyZones-Dragging&UI,Product-FancyZones
low
Minor
515,920,857
go
cmd/go,testing,doc: better information about debugging test cache failures
I'm trying to figure out why Go is not caching a test I wrote. First, after about 10-15 minutes of searching (including through old issues here) I could not find the flag to enable the debug output that shows you how Go builds its cache. Finally, I found it `(GODEBUG=gocache{hash,test}=1)` I am trying to read through the output of `gocachehash=1` but it's still not easy to figure out what is going wrong. The obvious first thing to do is to run the tests twice and then diff the output and see what's different. However, the output (about 10,000 lines) from two gocachehash runs prints out in different order each time so the diff is very large. Next I tried sorting each output file and printing it. This yields a pretty manageable diff. ``` 1c1 < --- PASS: TestZipServed (0.08s) --- > --- PASS: TestZipServed (0.07s) 5d4 < HASH /Users/kevin/Library/Caches/go-build/07/076863ca534c50cc9e8a07b4a34b9ace144717479540c5554dae6736e55cb97e-d: 076863ca534c50cc9e8a07b4a34b9ace144717479540c5554dae6736e55cb97e 13a13 > HASH /Users/kevin/Library/Caches/go-build/2d/2d26f8ed83dc6de73bc9496e28d0e378ec6945d8641b2016bae22f9c0ddb929b-d: 2d26f8ed83dc6de73bc9496e28d0e378ec6945d8641b2016bae22f9c0ddb929b 18d17 < HASH /Users/kevin/Library/Caches/go-build/37/376397066f40ef1fac96c02af9c4a0699a0e5aa019bc41dafa3d93954e7fe7c8-d: 376397066f40ef1fac96c02af9c4a0699a0e5aa019bc41dafa3d93954e7fe7c8 41a41 > HASH /Users/kevin/Library/Caches/go-build/af/af711140c05b585b7bf422b3d109876cfa289b0551b3933d9c8b25ac5166b24c-d: af711140c05b585b7bf422b3d109876cfa289b0551b3933d9c8b25ac5166b24c 44d43 < HASH /Users/kevin/Library/Caches/go-build/bb/bbffa5c817822dfef6bfc0da140b7a660f2c606658e504c66219c9b99d544bfd-d: bbffa5c817822dfef6bfc0da140b7a660f2c606658e504c66219c9b99d544bfd 46a46 > HASH /Users/kevin/Library/Caches/go-build/cc/cc58b0a1ebc54513f2062ad23b50ae86906345c8c01f85423ac1a3f401e71b91-d: cc58b0a1ebc54513f2062ad23b50ae86906345c8c01f85423ac1a3f401e71b91 50a51 > HASH /Users/kevin/Library/Caches/go-build/d7/d7f61ad9a5bd0b6f79299046b000f58a46489414bfd56724d1359d150532fd6d-d: d7f61ad9a5bd0b6f79299046b000f58a46489414bfd56724d1359d150532fd6d 52a54 > HASH /Users/kevin/Library/Caches/go-build/db/dbf620d8019f251ec68ba6d82177b3d3f8db4e5c08f0d7021e6db57f1326075a-d: dbf620d8019f251ec68ba6d82177b3d3f8db4e5c08f0d7021e6db57f1326075a 1366c1368 < HASH /var/folders/s1/909yt58s4wj8h_7v7frr8rkm0000gn/T/go-build401879888/b001/_testmain.go: 20eb5f28897c44000e3a30317c33d3c9a8c3c2a3e6e76c1efeaaca21a18e5e62 --- > HASH /var/folders/s1/909yt58s4wj8h_7v7frr8rkm0000gn/T/go-build828546655/b001/_testmain.go: 20eb5f28897c44000e3a30317c33d3c9a8c3c2a3e6e76c1efeaaca21a18e5e62 7518c7520 < HASH[open]: "stat 1476 1a4 2019-11-01 04:46:46.985735425 +0000 UTC false\n" --- > HASH[open]: "stat 1476 1a4 2019-11-01 04:46:55.122015265 +0000 UTC false\n" 10467c10469 < ok github.com/example/project/src/package 1.113s --- > ok github.com/example/project/src/package 1.111s ``` I repeated the same exercise with a test that printed out `(cached)` to compare. The cached test diff also had `HASH ... /T/go-build` lines so I assume those are a red herring. That essentially leaves this diff: ``` < HASH[open]: "stat 1476 1a4 2019-11-01 04:46:46.985735425 +0000 UTC false\n" --- > HASH[open]: "stat 1476 1a4 2019-11-01 04:46:55.122015265 +0000 UTC false\n" ``` However I am confused by this one as well because the content hash of the opened file is identical, so I'm not sure why Go is refusing to use the test cache. Am I correct that these "stat" lines are the reason Go is not caching the result of this test? If so, what is the problem that is leading Go to not cache the results? Can we build a tool to automate the process of debugging test hashes? E.g. run a test twice, capture the output, sort it, print the lines that differ.
help wanted,NeedsInvestigation
low
Critical
515,948,643
youtube-dl
Option to daemonize youtube-dl
- [x] I'm reporting a feature request - [x] I've verified that I'm running youtube-dl version **2019.10.29** - [x] I've searched the bugtracker for similar feature requests including closed ones ## Description There has been one mention of adding an option to daemonize youtube-dl in the past - however I am interested in this option because: - I use newsbeuter as a text-based RSS aggregator and start watching a desired YT video by pressing "O" (capital o - not zero) as a keyboard hot-key to create the new tab in Chrome - as long as I have an existing Chrome window open, the playing of the video starts almost immediately . . - However, I nearly always get advertisments to click through before the desired video starts playing. BUT when I config mpv to be the newsbeuter "browser": - There are a number of seconds delay before mpv starts playing the video When I raised the issue on the mpv IRC (thinking it was an mpv problem), a helpful person pointed out that the delay is the time it takes to load youtube-dl and that daemonizing that program might solve my problem. So, is adding code to youtube-dl to allow it to daemonize a possibility? Thanks, Phil.
request
low
Critical
515,956,718
neovim
Extra blank line when using confirm()
<!-- Before reporting: search existing issues and check the FAQ. --> - `nvim --version`: v0.5.0-68-gfe9d54f41 - `vim -u DEFAULTS` (version: ) behaves differently? - Operating system/version: macos - Terminal name/version: kitty - `$TERM`: ### Steps to reproduce using `nvim -u NORC` 1. nvim -u NONE 2. ~:map <silent><c-k> :call confirm('hello', "&Yes\n&No", 0)<cr>~ 2. `:map <silent><c-k> :call confirm('hello', "&Yes\n&No", 0)<cr>` 3. send `<C-L>` 4. send `<c-k>`, show as follow: ![image](https://user-images.githubusercontent.com/19503791/68009377-c921d680-fcbc-11e9-918b-a831d23aa8f4.png) ### Actual behaviour ### Expected behaviour remove the Extra blank line
enhancement
low
Minor
515,964,064
pytorch
Named Tensors: size of a named dimension
how do we get the size of a particular named dimension ? Today, I get it as shown below, but it seems round about. Is there a better way to doing the same ? ``` >>> t = torch.zeros((3, 224, 400), names=('C', 'H', 'W')) >>> >>> t.shape[t.names.index('H')] 224 cc @zou3519
module: docs,triaged,module: named tensor
low
Minor
515,965,633
pytorch
Named Tensors: Slicing based on name
How do we slice tensors based on their names ? Are there named equivalents for - t[0,:,:] = blabla - x= t.narrow(0, 0, 1) cc @zou3519
triaged,module: advanced indexing,module: named tensor
low
Minor