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 |
---|---|---|---|---|---|---|
200,509,323 | opencv | VideoCapture(String) constructor fails to open gstreamer pipeline on Tegra / CUDA 8.0 | <!--
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).
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 => 3.1.0
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.1
- Operating System / Platform => Ubuntu 16.04 Linux 4 Tegra 24.2.1 aarch64 / Jetson TX1
- Compiler => g++ 5.4.0
##### Detailed description
<!-- your description -->
VideoCapture(string) constructor using a gstreamer pipeline string fails to open a stream, even though the stream can be launched with the same pipeline using gst-launch-1.0. Note that the VideoCapture(int) constructor succeeds at opening a stream with VideoCapture(0) -- although for me, the feed is blank because i currently have no usb camera connected to the tx1.
##### Steps to reproduce
Flash TX1 with Jetpack 2.3.1.
Build opencv 3.1.0 from source using the instructions found [here](http://docs.opencv.org/master/d6/d15/tutorial_building_tegra_cuda.html).
Add the following code to a cpp file named test.cpp
```.cpp
#include "highgui.hpp"
#include "videoio.hpp"
#include "imgproc.hpp"
#include <iostream>
#include <string.h>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
string gst_pipe = "videotestsrc ! videoconvert ! appsink";
VideoCapture cap(gst_pipe);
if (!cap.isOpened())
{
std::cout << "Failed to open camera." << endl;
return -1;
}
for(;;)
{
Mat frame;
cap >> frame;
imshow("original", frame);
waitKey(1);
}
cap.release();
}
```
Build it with
```g++ -o test -I /usr/include/opencv2 -Wall test.cpp -L/usr/lib -l:libopencv_core.so.3.1.0 -l:libopencv_videoio.so.3.1.0 -l:libopencv_imgproc.so.3.1.0 -l:libopencv_highgui.so.3.1.0```
Run the resulting executable with ```./test```. Note that no stream is opened, and "Failed to open camera." is printed to the console.
<!-- to add code example fence it with triple backticks and optional file extension
```.cpp
// C++ code example
```
or attach as .txt or .zip file
--> | bug,priority: low,category: videoio,incomplete | low | Critical |
200,524,359 | youtube-dl | Retrieve JSON data in unicode (Encoding UTF-8) | - [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [x] Question
- [ ] Other
===================================================
I need JSON data containing unicode (utf-8) from Youtube-dl, sadly it couldn't retrieve JSON data from YouTube video in UTF-8 (?).
Trying to print JSON info with `-j, --dump-json` or `-J, --dump-single-json` , `--print-json` and or wrote directly into JSON file with `--write-info-json`. All results were printed in non unicode data string like originally of video source.
The paramaters which were used with/out `--encoding utf-8`
```youtube-dl --write-info-json --encoding utf-8 -f mp4 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=0alnhFO1B7Y -v```
```youtube-dl -j --encoding utf-8 -f mp4 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=0alnhFO1B7Y -v```
```youtube-dl -J --encoding utf-8 -f mp4 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=0alnhFO1B7Y -v```
```youtube-dl --print-json --encoding utf-8 -f mp4 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=0alnhFO1B7Y -v```
**The log output:**
```
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--write-info-json', '--encoding', 'utf-8', '-f', 'mp4', '-o', '%(title)s.%(ext)s', 'https://www.youtube.com/watch?v=0alnhFO1B7Y', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref utf-8
[debug] youtube-dl version 2017.01.10
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg N-82966-g6993bb4, ffprobe N-82966-g6993bb4
[debug] Proxy map: {}
[youtube] 0alnhFO1B7Y: Downloading webpage
[youtube] 0alnhFO1B7Y: Downloading video info webpage
[youtube] 0alnhFO1B7Y: Extracting video information
[youtube] 0alnhFO1B7Y: Downloading MPD manifest
[info] Writing video description metadata as JSON to: 香港麥當勞42年歷史大盤點.info.json
[debug] Invoking downloader on 'https://r4---sn-npoeen7k.googlevideo.com/videoplayback?signature=9CF8920347BA9578C4C6C1909BF07083928118A5.C4840C9CB5EE1D0233179DF1EBB58DBF74095DD8&initcwndbps=6973750&mime=video%2Fmp4&key=yt6&ei=yiJ4WKbGGcugoQOQprzACg&upn=-mYp2oMPHqQ&expire=1484289834&dur=105.581&lmt=1484189129530128&clen=8002642&gir=yes&nh=IgpwcjAyLnNpbjExKg03NC4xMjUuNTEuMTcz&ratebypass=yes&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&requiressl=yes&itag=18&source=youtube&id=o-AOL2Ym3gKDUBTYFiGyLZ6ipSYhPAoMG_7kFGBFNI5-ti&pl=18&ms=au&mt=1484268048&mv=m&mm=31&ip=128.199.217.235&mn=sn-npoeen7k&ipbits=0'
[download] Destination: 香港麥當勞42年歷史大盤點.mp4
[download] 100% of 7.63MiB
```
Below is log of JSON data (this is only a part of full logs - but it represent the essential of this issue) as JSON data contains a huge string data.
For example: Title, tags and descriptions :
```
"title": "\u9999\u6e2f\u9ea5\u7576\u52de42\u5e74\u6b77\u53f2\u5927\u76e4\u9ede", "url": "https://r4---sn-npoeen7k.googlevideo.com/videoplayback?nh=IgpwcjAyLnNpbjExKg03NC4xMjUuNTEuMTcz&mm=31&mime=video%2Fmp4&pl=18&itag=18&mv=m&mt=1484268354&ms=au&ei=iiN4WN3qBc-XoQOAkrCgAQ&requiressl=yes&gir=yes&ratebypass=yes&mn=sn-npoeen7k&clen=8002642&initcwndbps=6792500&source=youtube&id=o-AGC0tYRBdONrnPr4dLWQi5RZD33w4-n6WvsXmWUoX6-W&lmt=1484189129530128&key=yt6&ip=128.199.217.235&expire=1484290026&dur=105.581&upn=1lnlrUcKnCg&signature=D656C1E342F3EFA9F3C8D5DE181169801D2B52F9.17D6C35911182083504F92FEDE78E6010D62E3B6&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&ipbits=0", "categories": ["News & Politics"], "duration": 106, "uploader": "\u860b\u679c\u52d5\u65b0\u805e HK Apple Daily", "uploader_id": "appleactionews", "subtitles": {}, "format": "18 - 640x360 (medium)", "abr": 96, "ext": "mp4", "upload_date": "20170110", "thumbnail": "https://i.ytimg.com/vi/0alnhFO1B7Y/hqdefault.jpg", "formats": [{"height": null, "format_note": "DASH audio", "tbr": 57, "fps": null, "vcodec": "none", "url":
```
```
"description": "\u3010\u672c\u5831\u8a0a\u3011\u9ea5\u7576\u52de\u9003\u4e0d\u904e\u67d3\u7d05\u547d\u904b\uff0c\u6e2f\u4eba\u559c\u6b61\u53eb\u9ea5\u7576\u52de\u505a\u300c\u8001\u9ea5\u300d\u3001\u300c\u9ea5\u8a18\u300d\uff0c\u5168\u56e0\u9ea5\u7576\u52de\u5df2\u966a\u4f34\u6e2f\u4eba\u903e42\u500b\u5e74\u982d\uff0c\u9ea5\u7576\u52de\u53d4\u53d4\u3001\u958b\u751f\u65e5\u6703\u7b49\u96c6\u9ad4\u56de\u61b6\u6df1\u5165\u6c11\u5fc3\uff0c\u9ea5\u7576\u52de\u66fe\u63a8\u63db\u8cfc\u53f2\u8afe\u6bd4\u516c\u4ed4\u6380\u5168\u57ce\u6392\u968a\u71b1\u6f6e\uff0c\u4ea6\u5920\u7d93\u5178\u3002\n\n\u860b\u679c\u65e5\u5831\uff1ahttp://hk.apple.nextmedia.com\n\u5373like\u860b\u679cfb\uff1ahttp://www.facebook.com/hk.nextmedia\niPhone App\uff1ahttp://bit.ly/AppleDailyApp-iPhone\nAndroid App\uff1ahttp://bit.ly/AppleDailyApp-Android", "http_headers": {"Accept-Language": "en-us,en;q=0.5", "Accept-Encoding": "gzip, deflate", "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)"}, "start_time": null, "player_url": null, "playlist_index": null, "like_count": 490, "protocol": "https", "format_id": "18"}
```
```
{"tags": ["\u860b\u679c\u52d5\u65b0\u805e", "\u860b\u679c\u65e5\u5831", "appledaily", "Apple Daily(Newspaper)", "Hong Kong", "news", "\u52d5\u65b0\u805e", "\u65b0\u805e", "hk", "\u9999\u6e2f"], "uploader_url": "http://www.youtube.com/user/appleactionews", "license": "Standard YouTube License", "age_limit": 0, "resolution": "640x360", "id": "0alnhFO1B7Y",
``` | request | medium | Critical |
200,620,530 | rust | Impossible to pass diverging closures as an argument | ```rust
fn banana<F: FnOnce()>(f: F) -> ! { f(); loop {} }
fn main() {
banana(move || -> ! { loop {} })
}
```
result
```
error[E0271]: type mismatch resolving `<[closure@<anon>:6:12: 6:36] as std::ops::FnOnce<()>>::Output == ()`
--> <anon>:6:5
|
6 | banana(move || -> ! { loop {} })
| ^^^^^^ expected !, found ()
|
= note: expected type `!`
= note: found type `()`
= note: required by `banana`
```
Used to work in 1.8.0, so is a regression from stable to stable. | A-closures,C-bug | low | Critical |
200,659,064 | rust | Dead code lint emits unused code warning for code that is clearly used. | It looks like the dead code lint is too eager, and doesn't consider two signs that the variants are used:
- The enum is passed to an extern function, which could do just about anything to the data.
- The variants *are* used, in the match statement!
[Playground](https://is.gd/BDy0bB)
```rust
use helpers::Animal;
#[forbid(dead_code)]
mod helpers {
#[repr(u32)]
pub enum Animal {
Cat = 0,
Dog = 1,
Frog = 2
}
extern "C" {
pub fn transmute_the_animal(animal: &mut Animal);
}
}
fn main() {
let mut animal = Animal::Cat;
unsafe {
helpers::transmute_the_animal(&mut animal);
}
match animal {
Animal::Cat => println!("My cat didn't change! :("),
Animal::Dog => println!("Yay. my cat became a dog!"),
Animal::Frog => println!("Eww, my cat turned into a frog!")
}
}
```
Expected: A clean build (I think.)
What I got:
```sh
rustc 1.16.0-nightly (2782e8f8f 2017-01-12)
error: variant is never used: `Dog`
--> <anon>:13:9
|
13 | Dog = 1,
| ^^^^^^^
|
note: lint level defined here
--> <anon>:3:10
|
3 | #[forbid(dead_code)]
| ^^^^^^^^^
error: variant is never used: `Frog`
--> <anon>:14:9
|
14 | Frog = 2
| ^^^^^^^^
error: aborting due to 2 previous errors
``` | A-diagnostics,T-compiler,C-bug | low | Critical |
200,750,094 | flutter | Flutter should get AutoTransition (aka layout transition), where two Widgets can transition between each other | Lets say I have Widget A, which contains some widgets, and then I have Widget B, which contains some more widgets. Each side will have keys that match a source widget to a target widget. AutoTransition will match these up and animate them from their positions in Widget A to their positions in Widget B.
Android implements a feature similar to this with the Transition framework. I actually use this feature in an Android app of mine to expand and contract a music control overlay... Doing this manually in Flutter would not be fun.
I'm guessing (since I haven't touched Flutter internals much) that something like this would animate on the RenderObject layer. | c: new feature,framework,a: animation,P3,team-framework,triaged-framework | low | Major |
200,765,000 | youtube-dl | Support Fandor.com |
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.10*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.10**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'--verbose', u'https://www.fandor.com/films/six_days_in_roswell']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.10
[debug] Python version 2.7.6 - Linux-4.4.0-59-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 11.3-6, avprobe 11.3-6, ffmpeg 3.2-static, ffprobe N-60799-g20fa3fb, rtmpdump 2.4
[debug] Proxy map: {}
[generic] six_days_in_roswell: Requesting header
WARNING: Falling back on generic information extractor.
[generic] six_days_in_roswell: Downloading webpage
[generic] six_days_in_roswell: Extracting information
[download] Downloading playlist: Six Days in Roswell
[generic] playlist Six Days in Roswell: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[vimeo] Logging in
ERROR: Wrong login info: HTTP Error 418: I'm a teapot (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 406, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
| site-support-request | low | Critical |
200,791,877 | opencv | imgwrap from master branch makes clang 391 segfaults | <!--
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).
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 => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.x
- Operating System / Platform => debian 6
- Compiler => clang 391 x64
##### Detailed description
Building opencv git master makes clang 391 debian 6 x64 segfaults with following stack trace.
Attached resulting imgwrap sources files in txt file.
````
[3/177] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o
FAILED: modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o
/home/userbuild/clangroot/bin/clang++ -DCVAPI_EXPORTS -D__OPENCV_BUILD=1 -I. -I../modules/imgproc/include -I../modules/imgproc/src -Imodules/imgproc -I../modules/core/include -stdlib=libc++ -fsigned-char -W -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -pthread -Qunused-arguments -fno-omit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG -fPIC -MD -MT modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o -MF modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o.d -o modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o -c /home/userbuild/somelibs/opencv-master/modules/imgproc/src/imgwarp.cpp
#0 0x00000000011fa6c5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/userbuild/clangroot/bin/clang-3.9+0x11fa6c5)
#1 0x00000000011fac56 SignalHandler(int) (/home/userbuild/clangroot/bin/clang-3.9+0x11fac56)
#2 0x00007ffdcd2b9ff0 __restore_rt (/lib/libpthread.so.0+0xeff0)
#3 0x00000000011bc764 llvm::FoldingSetImpl::RemoveNode(llvm::FoldingSetImpl::Node*) (/home/userbuild/clangroot/bin/clang-3.9+0x11bc764)
#4 0x000000000179cec2 llvm::SelectionDAG::RemoveNodeFromCSEMaps(llvm::SDNode*) (/home/userbuild/clangroot/bin/clang-3.9+0x179cec2)
#5 0x00000000017bfaff llvm::SelectionDAG::MorphNodeTo(llvm::SDNode*, unsigned int, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>) (/home/userbuild/clangroot/bin/clang-3.9+0x17bfaff)
#6 0x00000000017d3776 llvm::SelectionDAGISel::MorphNode(llvm::SDNode*, unsigned int, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>, unsigned int) (/home/userbuild/clangroot/bin/clang-3.9+0x17d3776)
#7 0x00000000017d5eae llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/home/userbuild/clangroot/bin/clang-3.9+0x17d5eae)
#8 0x0000000000a7ccec (anonymous namespace)::X86DAGToDAGISel::Select(llvm::SDNode*) (/home/userbuild/clangroot/bin/clang-3.9+0xa7ccec)
#9 0x00000000017d059c llvm::SelectionDAGISel::DoInstructionSelection() (/home/userbuild/clangroot/bin/clang-3.9+0x17d059c)
#10 0x00000000017cfd98 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/home/userbuild/clangroot/bin/clang-3.9+0x17cfd98)
#11 0x00000000017cf82f llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/home/userbuild/clangroot/bin/clang-3.9+0x17cf82f)
#12 0x00000000017cd1dc llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/userbuild/clangroot/bin/clang-3.9+0x17cd1dc)
#13 0x0000000000a783f1 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/home/userbuild/clangroot/bin/clang-3.9+0xa783f1)
#14 0x0000000000d1ea3b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/userbuild/clangroot/bin/clang-3.9+0xd1ea3b)
#15 0x0000000000eff4bf llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/userbuild/clangroot/bin/clang-3.9+0xeff4bf)
#16 0x0000000000eff6ab llvm::FPPassManager::runOnModule(llvm::Module&) (/home/userbuild/clangroot/bin/clang-3.9+0xeff6ab)
#17 0x0000000000effb21 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/userbuild/clangroot/bin/clang-3.9+0xeffb21)
#18 0x0000000001317956 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) (/home/userbuild/clangroot/bin/clang-3.9+0x1317956)
#19 0x00000000018698b7 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/userbuild/clangroot/bin/clang-3.9+0x18698b7)
#20 0x0000000001ba0a26 clang::ParseAST(clang::Sema&, bool, bool) (/home/userbuild/clangroot/bin/clang-3.9+0x1ba0a26)
#21 0x00000000015ec45d clang::FrontendAction::Execute() (/home/userbuild/clangroot/bin/clang-3.9+0x15ec45d)
#22 0x00000000015bd1b8 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/userbuild/clangroot/bin/clang-3.9+0x15bd1b8)
#23 0x000000000165e002 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/userbuild/clangroot/bin/clang-3.9+0x165e002)
#24 0x00000000007630d8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/userbuild/clangroot/bin/clang-3.9+0x7630d8)
#25 0x0000000000761de6 main (/home/userbuild/clangroot/bin/clang-3.9+0x761de6)
#26 0x00007ffdcc8b8c8d __libc_start_main /home/aurel32/eglibc/eglibc-2.11.3/csu/libc-start.c:260:0
#27 0x000000000075f621 _start (/home/userbuild/clangroot/bin/clang-3.9+0x75f621)
Stack dump:
0. Program arguments: /home/userbuild/clangroot/bin/clang-3.9 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name imgwarp.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-feature +sse -target-feature +sse2 -target-feature -avx -target-feature +sse3 -target-feature -ssse3 -target-feature -sse4.1 -target-feature -sse4.2 -momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -ffunction-sections -coverage-file /home/userbuild/somelibs/opencv-master/b1/modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o -resource-dir /home/userbuild/clangroot/bin/../lib/clang/3.9.1 -dependency-file modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o.d -sys-header-deps -MT modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o -D CVAPI_EXPORTS -D __OPENCV_BUILD=1 -I . -I ../modules/imgproc/include -I ../modules/imgproc/src -I modules/imgproc -I ../modules/core/include -D NDEBUG -D NDEBUG -internal-isystem /home/userbuild/clangroot/bin/../include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /home/userbuild/clangroot/bin/../lib/clang/3.9.1/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -W -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-long-long -fdeprecated-macro -fdebug-compilation-dir /home/userbuild/somelibs/opencv-master/b1 -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -pthread -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o -x c++ /home/userbuild/somelibs/opencv-master/modules/imgproc/src/imgwarp.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/home/userbuild/somelibs/opencv-master/modules/imgproc/src/imgwarp.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@_ZN2cvL13remapBilinearINS_4CastIffEENS_10RemapNoVecEfEEvRKNS_3MatERS4_S6_S6_PKviRKNS_7Scalar_IdEE'
clang-3.9: error: unable to execute command: Segmentation fault
clang-3.9: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.9.1 (tags/RELEASE_391/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/userbuild/clangroot/bin
clang-3.9: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script.
clang-3.9: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.9: note: diagnostic msg: /tmp/imgwarp-e39ddc.cpp
clang-3.9: note: diagnostic msg: /tmp/imgwarp-e39ddc.sh
clang-3.9: note: diagnostic msg:
********************
[4/177] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/connectedcomponents.cpp.o
ninja: build stopped: subcommand failed.
````
<!-- your description -->
##### Steps to reproduce
build opencv using cmake,
```
cmake -DBUILD_PNG=ON -DBUILD_JPEG=ON \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++" /somedir/opencvrootsrc
```
[imgwarp-e39ddc.sh.txt](https://github.com/opencv/opencv/files/705847/imgwarp-e39ddc.sh.txt)
[imgwarp-e39ddc.cpp.txt](https://github.com/opencv/opencv/files/705849/imgwarp-e39ddc.cpp.txt)
| bug,category: build/install | low | Critical |
200,801,117 | youtube-dl | socks.py raised EOFError with Shadowsocks | **Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.10. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.**
I've verified and I assure that I'm running youtube-dl 2017.01.10
**Before submitting an issue make sure you have:**
At least skimmed through README and most notably FAQ and BUGS sections
Searched the bugtracker for similar issues including closed ones
**What is the purpose of your issue?**
Bug report (encountered problems with youtube-dl)
i dont konw what is wrong, how can l dowload this vido?
**The log output:**



| cant-reproduce,external-bugs | medium | Critical |
200,802,069 | go | net/http: TestServerHijackGetsBackgroundByte failing on Plan 9 | CL [5232](https://golang.org/cl/35232) added TestServerHijackGetsBackgroundByte, which is failing on Plan 9; because CloseWrite is not implemented on Plan 9.
```
--- FAIL: TestServerHijackGetsBackgroundByte (0.08s)
serve_test.go:5235: close tcp 127.0.0.1:43532->127.0.0.1:34277: not supported by plan 9
FAIL
```
See https://build.golang.org/log/2024e8d36966ea930ef6b6acd2c744e24734c2aa
This related to issue #17906. | OS-Plan9,NeedsInvestigation | low | Minor |
200,803,335 | go | net/http: TestServerHijackGetsBackgroundByte_big failing on Plan 9 | CL [35234](https://golang.org/cl/35234) added TestServerHijackGetsBackgroundByte_big, which is failing on Plan 9, because CloseWrite is not implemented on Plan 9.
```
--- FAIL: TestServerHijackGetsBackgroundByte_big (0.05s)
serve_test.go:5300: close tcp 127.0.0.1:63062->127.0.0.1:36638: not supported by plan 9
FAIL
```
See https://build.golang.org/log/8e4622c7d73d3c7c243bcd84d2e366616fc8ce36
This related to issue #17906.
| OS-Plan9,NeedsInvestigation | low | Minor |
200,823,043 | youtube-dl | [pbs] Add support for pbslearningmedia.org domain | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.14*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.14**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v 'http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers'
[debug] System config: []
[debug] User config: [u'-x', u'--audio-format', u'mp3', u'--no-mtime', u'-o', u'~/Downloads/%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.14
[debug] Python version 2.7.10 - Darwin-16.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.0.2, ffprobe 3.0.2
[debug] Proxy map: {}
[generic] hamiltons-america-reconciling-history-the-founding-fathers: Requesting header
[redirect] Following redirect to http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers/
[generic] hamiltons-america-reconciling-history-the-founding-fathers: Requesting header
WARNING: Falling back on generic information extractor.
[generic] hamiltons-america-reconciling-history-the-founding-fathers: Downloading webpage
[generic] hamiltons-america-reconciling-history-the-founding-fathers: Extracting information
ERROR: Unsupported URL: http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers/
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1685, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2526, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2515, in _XML
parser.feed(text)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 13, column 443
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2514, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers/
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: http://ny.pbslearningmedia.org/resource/ham16.soc.ushis.foundingfathers/hamiltons-america-reconciling-history-the-founding-fathers/
- Single video: https://indiana.pbslearningmedia.org/resource/shakespeare-sonnets-crashcourse-304/crash-course-literature-304/
- Single vide: https://indiana.pbslearningmedia.org/resource/nvmc.sci.space.drill/designing-for-drilling-on-mars/
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
I'm requesting that you add support for the PBS site/domain 'pbslearningmedia.org' -- some of these videos and clips are linked from other PBS sites but are only available at this domain. Looks like the site is using JW Player.
| site-support-request | low | Critical |
200,895,764 | opencv | GPU Stitcher run time error! | ##### System information (version)
- OpenCV => 3.2
- Qt 5.7.1
- Qt Creator 4.2.0
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Visual Studio 2013 (msvc2013_64)
- GPU: Geforce GTX 1070
- Cuda 8.0
Code was succesfully compiled. I get this error at run time;
```
OpenCV Error: The function/feature is not implemented (Unknown/unsupported array type) in cv::_InputArray::getUMatVector, file D:\OpenSource\opencv32\source\opencv\modules\core\src\matrix.cpp, line 1470
The program has unexpectedly finished.
```
main code;
```
#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include <QElapsedTimer>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/stitching.hpp>
using namespace cv;
using namespace cv::cuda;
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QElapsedTimer tTmr;
tTmr.start();
bool try_use_gpu = true; // use GPU
Stitcher stitcher = Stitcher::createDefault(try_use_gpu);
stitcher.setWarper(new CylindricalWarperGpu());
stitcher.setWaveCorrection(false);
stitcher.setSeamEstimationResol(0.001);
stitcher.setPanoConfidenceThresh(0.1);
//stitcher.setSeamFinder(new cv::detail::GraphCutSeamFinder(cv::detail::GraphCutSeamFinderBase::COST_COLOR_GRAD));
stitcher.setSeamFinder(new cv::detail::NoSeamFinder());
stitcher.setBlender(cv::detail::Blender::createDefault(cv::detail::Blender::NO, try_use_gpu));
//stitcher.setExposureCompensator(cv::detail::ExposureCompensator::createDefault(cv::detail::ExposureCompensator::NO));
stitcher.setExposureCompensator(new cv::detail::NoExposureCompensator());
std::vector<cv::Mat> images(3);
std::vector<GpuMat> gpuImages(3);
GpuMat pano_result_gpu;
cv::Mat pano_result;
bool firstTime = true;
QString tImagePath = QApplication::applicationDirPath() + "/../../data/stitching_img";
images[0] = imread((tImagePath + "/shanghai01.jpg").toStdString());
images[1] = imread((tImagePath + "/shanghai02.jpg").toStdString());
images[2] = imread((tImagePath + "/shanghai03.jpg").toStdString());
for (int i = 0; i < 3; i++)
gpuImages[i].upload(images[i]);
if (firstTime)
{
Stitcher::Status status = stitcher.estimateTransform(gpuImages);//images);//
qDebug()<<"Esimate Status: "<<status;
firstTime = false;
}
Stitcher::Status status = stitcher.composePanorama(gpuImages, pano_result_gpu);//images, pano_result);//
qint64 tTime = tTmr.elapsed();
qDebug()<<"Panorama status: "<<status;
pano_result_gpu.download(pano_result);
imwrite("D:/stitching_result.jpg", pano_result);
qDebug()<<"File Saved: "<<tTime;
MainWindow w;
w.show();
return a.exec();
}
```
cmake output
```
FP16: Compiler support is available
found IPP (ICV version): 9.0.1 [9.0.1]
at: D:/OpenSource/opencv32/build/3rdparty/ippicv/ippicv_win
CUDA detected: 8.0
CUDA NVCC target flags: -gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-D_FORCE_INLINES
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "2.7.13", but required is at least "3.2" (found C:/Python27/python.exe)
Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
Found VTK ver. 7.1.0 (usefile: D:/Developments/libs/VTK/lib/cmake/vtk-7.1/UseVTK.cmake)
General configuration for OpenCV 3.2.0 =====================================
Version control: unknown
Platform:
Timestamp: 2017-01-15T21:10:18Z
Host: Windows 10.0.14393 AMD64
CMake: 3.7.1
CMake generator: Visual Studio 12 2013 Win64
CMake build tool: C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe
MSVC: 1800
C/C++:
Built as dynamic libs?: YES
C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe (ver 18.0.30723.0)
C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4127 /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi
C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4127 /wd4251 /wd4324 /wd4275 /wd4589 /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl.exe
C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /MD /O2 /Ob2 /DNDEBUG /Zi
C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP8 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1
Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug
Linker flags (Debug): /machine:x64 /debug /INCREMENTAL
ccache: NO
Precompiled headers: YES
Extra dependencies: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/cuda.lib C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64/nvcuvid.lib comctl32 gdi32 ole32 setupapi ws2_32 vfw32 vtkRenderingOpenGL vtkCommonCore vtksys vtkCommonDataModel vtkCommonMath vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkCommonExecutionModel vtkFiltersCore vtkIOImage vtkDICOMParser vtkmetaio vtkzlib vtkjpeg vtkpng vtktiff vtkImagingCore vtkImagingHybrid vtkRenderingCore vtkCommonColor vtkCommonComputationalGeometry vtkFiltersGeneral vtkFiltersGeometry vtkFiltersSources vtkInteractionStyle vtkFiltersExtraction vtkFiltersStatistics vtkImagingFourier vtkalglib vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOCore vtkFiltersTexture vtkRenderingFreeType vtkfreetype vtkIOExport vtkRenderingGL2PS vtkRenderingContext2D vtkRenderingContextOpenGL vtkgl2ps vtkIOGeometry vtkIOLegacy cudart nppc nppi npps cublas cufft -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0/lib/x64
3rdparty dependencies: zlib libjpeg libwebp libpng libtiff libjasper IlmImf
OpenCV modules:
To be built: cudev core cudaarithm flann imgproc ml video viz cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui objdetect ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab
Disabled: world
Disabled by dependency: -
Unavailable: java python2 python3
Windows RT support: NO
GUI:
QT: NO
Win32 UI: YES
OpenGL support: NO
VTK support: YES (ver 7.1.0)
Media I/O:
ZLib: build (ver 1.2.8)
JPEG: build (ver 90)
WEBP: build (ver 0.3.1)
PNG: build (ver 1.6.24)
TIFF: build (ver 42 - 4.0.2)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
GDCM: NO
Video I/O:
Video for Windows: YES
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (ver 57.64.101)
avformat: YES (ver 57.56.100)
avutil: YES (ver 55.34.100)
swscale: YES (ver 4.2.100)
avresample: YES (ver 3.1.0)
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
DirectShow: YES
Media Foundation: NO
XIMEA: NO
Intel PerC: NO
Parallel framework: Concurrency
Other third-party libraries:
Use IPP: 9.0.1 [9.0.1]
at: D:/OpenSource/opencv32/build/3rdparty/ippicv/ippicv_win
Use IPP Async: NO
Use Lapack: NO
Use Eigen: NO
Use Cuda: YES (ver 8.0)
Use OpenCL: YES
Use OpenVX: NO
Use custom HAL: NO
NVIDIA CUDA
Use CUFFT: YES
Use CUBLAS: YES
USE NVCUVID: YES
NVIDIA GPU arch: 60 61
NVIDIA PTX archs:
Use fast math: YES
OpenCL: <Dynamic loading of OpenCL library>
Include path: D:/OpenSource/opencv32/source/opencv/3rdparty/include/opencl/1.2
Use AMDFFT: NO
Use AMDBLAS: NO
Python 2:
Interpreter: C:/Python27/python.exe (ver 2.7.13)
Python 3:
Interpreter: NO
Python (for build): C:/Python27/python.exe
Java:
ant: NO
JNI: C:/Program Files/Java/jdk1.8.0_111/include C:/Program Files/Java/jdk1.8.0_111/include/win32 C:/Program Files/Java/jdk1.8.0_111/include
Java wrappers: NO
Java tests: NO
Matlab: Matlab not found or implicitly disabled
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples: NO
Install path: D:/OpenSource/opencv32/build/install
cvconfig.h is in: D:/OpenSource/opencv32/build
-----------------------------------------------------------------
Configuring done
```
what is wrong? | bug,category: t-api | low | Critical |
200,966,396 | rust | [config.toml] should allow specifying arbitrary flags to the `cc` command for a target | Currently you can specify
```
[target.somethingweord]
cc = "somethingelse"
```
but cannot make `somethingelse` to also receive flags for the target. | T-bootstrap,C-feature-request,E-needs-design | low | Minor |
201,021,382 | create-react-app | Adding a --no-bin-links option | Hi !
Is there a way to add a NPM-like --no-bin-links option.
It is used by VM users who share folders between a host and a VM.
Example:
[Vagrant](https://www.vagrantup.com/) | difficulty: starter,contributions: claimed | medium | Critical |
201,037,475 | clean-code-javascript | Want to translate to Arabic, Japanese, French, etc.? | Starting to translate to Korean.
Feel free to collaborate.
Check it out [here](https://github.com/Hanney-Ryu/clean-code-javascript/blob/master/README-ko.md). | help wanted | medium | Critical |
201,088,390 | go | cmd/gofmt: gofmt -r should preserve multiline formatting | go version devel +ac05542 Wed Jan 11 01:39:54 2017 +0000 linux/amd64
gofmt -r does not work well when rewriting multi-line expressions.
Given this code:
package x
func f() {
Foo{
X: 99,
Y: "hello",
}
}
running:
gofmt -r 'Foo{X: a, Y: b} -> Foo{
X: a,
Y: []byte(b),
}'
results in:
package x
func f() {
Foo{X: 99, Y: []byte(
"hello")}
}
In general, if the replacement expression contains multiple lines, their
placement is ignored. | NeedsInvestigation | low | Minor |
201,146,703 | node | What will Domain be replaced with? | I'm adding support for parallel tests to node-tap. https://github.com/tapjs/node-tap/issues/306
One sticky point is that, like most test frameworks, node-tap needs to be able to cleverly handle thrown errors and tie them to the test environment where the error was thrown from (especially since many existing assertion libs turn things like `expect(foo).to.match(/regexp/)` into a thrown error).
When tests were _not_ run in parallel, there was no problem. Just walk down the tree of `test.currentChild` or whatever, and a single `process.on('uncaughtException')` is sufficient.
I'm using Domains to manage thrown errors in child tests, and it works great, but the bright red deprecation notice in [the docs](https://nodejs.org/api/domain.html#domain_domain) is scary.
What will it be replaced with? Will it be feature-equivalent? If so, is there any reason why the existing API has to be broken, and not re-implemented in terms of the new thing? Is there an expected time frame for the Domain api to be broken?
Thanks. | question,domain | medium | Critical |
201,174,168 | nvm | Adding descriptions about symlinks in the 'nvm is not compatible with the npm config "prefix" option' error | I have ran into two machines that shows `nvm is not compatible with the npm config "prefix" option` error everytime `~/.nvm/nvm.sh` is invoked, and which is also mentioned by [existing issues](https://github.com/creationix/nvm/issues/1087).
In the end, I found that in both my machines, the home directories is symlinked to another location. By modifying the nvm load script `.bashrc` to set `NVM_DIR`to the path after symlink resolution, the error goes away for good. It works in new bash sessions as well.
That is, if in your machine it says something like
```
$ ls -l /home
lrwxrwxrwx 1 root root 9 May 7 2014 /home -> /srv/home
$ echo $HOME
/home/username
```
then your nvm will blow up with `nvm is not compatible with the npm config "prefix" option`. To correctly solve the issue, we should change `NVM_DIR` from `$HOME/.nvm` to something like `/srv/home/username/.nvm`.
I think the error message was useless in helping me figure this out. I spent some time tracing `nvm.sh`, inserting `echo` and disabling `--silence` to see my echo, to found that the system admin has setup those symlinks, and it *is* those symlinks that broke nvm.
Specifically, when the condition of [this `if`statement](https://github.com/creationix/nvm/blob/40e40975ebd3593d08c3f83de2546258f7ddf11d/nvm.sh#L2002) turns true, it does not necessarily means that `npm config get prefix` is set by another `npm` instance. It just means that `nvm` is not sure if the prefix is set by nvm itself. I think extending [the error message here](https://github.com/creationix/nvm/blob/40e40975ebd3593d08c3f83de2546258f7ddf11d/nvm.sh#L2007) to include the symlink issue can help others encountering this issue, since it is not uncommon to have home directories symlinked to somewhere else.
| informational,pull request wanted | low | Critical |
201,184,505 | youtube-dl | Make parsed metadata variables available to output template | - [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.16**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### Log
```
$ youtube-dl -v --write-description --write-info-json --write-annotations --write-thumbnail --all-subs --metadata-from-title "%(series)s, Season %(season_number)s: %(episode)s (Episode %(episode_number)s)" -o "%(series)s - S%(season_number)sE%(episode_number)s - %(episode)s.%(ext)s" --exec "touch {}.done" http://www.pbs.org/wgbh/masterpiece/episodes/sherlock-s4-e3/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--write-description', u'--write-info-json', u'--write-annotations', u'--write-thumbnail', u'--all-subs', u'--metadata-from-title', u'%(series)s, Season %(season_number)s: %(episode)s (Episode %(episode_number)s)', u'-o', u'%(series)s - S%(season_number)sE%(episode_number)s - %(episode)s.%(ext)s', u'--exec', u'touch {}.done', u'http://www.pbs.org/wgbh/masterpiece/episodes/sherlock-s4-e3/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.16
[debug] Python version 2.7.12 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[pbs] Downloading JSON metadata
[pbs] sherlock-s4-e3: Downloading webpage
[pbs] sherlock-s4-e3: Downloading player page
[pbs] sherlock-s4-e3: Downloading widget/partnerplayer page
[pbs] sherlock-s4-e3: Downloading portalplayer page
[pbs] sherlock-s4-e3: Downloading hls-1080p-16x9 video url info
[pbs] sherlock-s4-e3: Downloading m3u8 information
[pbs] sherlock-s4-e3: Downloading mp4-baseline-16x9 video url info
[pbs] sherlock-s4-e3: Downloading hls-800k-16x9 video url info
[pbs] sherlock-s4-e3: Downloading m3u8 information
[pbs] sherlock-s4-e3: Checking http-1200k video URL
[pbs] sherlock-s4-e3: Checking http-6500k video URL
[pbs] sherlock-s4-e3: Checking http-4500k video URL
[pbs] sherlock-s4-e3: Checking http-2500k video URL
[pbs] sherlock-s4-e3: Checking http-800k video URL
[pbs] sherlock-s4-e3: Checking http-400k video URL
WARNING: There's no description to write.
[info] Writing video annotations to: NA - SNAENA - NA.annotations.xml
WARNING: There are no annotations to write.
[info] Writing video subtitles to: NA - SNAENA - NA.en.vtt
[info] Writing video description metadata as JSON to: NA - SNAENA - NA.info.json
[pbs] 2365931000: Downloading thumbnail ...
[pbs] 2365931000: Writing thumbnail to: NA - SNAENA - NA.jpg
[debug] Invoking downloader on u'http://d6uz0or6bt1ws.cloudfront.net/videos/masterpiece/9784d628-a82e-45c1-83c9-fb12f32d3184/278743/hd-1080p-mezzanine-16x9/95b03357_mast4703-16x9-mp4-6500k.mp4'
[download] Destination: NA - SNAENA - NA.mp4
[download] 100% of 4.12GiB in 34:52
[fromtitle] parsed series: Masterpiece - Sherlock
[fromtitle] parsed episode_number: 3
[fromtitle] parsed season_number: 4
[fromtitle] parsed episode: The Final Problem
[exec] Executing command: touch 'NA - SNAENA - NA.mp4'.done
<EOT>
```
---
### Make parsed metadata variables (`--metadata-from-title`) available to output template (`-o`)
Presently, it appears as if the only metadata available to the output template engine is that returned by the `_real_extract()` function in the site-specific extractor.
So, in my example, PBS, the only real element available at the time the output template is processed is the title, id, and a few others. Indeed, if you look in the logs I pasted above it seems that the metadata extraction from title happens quite late, after files have been written.
To be general, this is not specific to the PBS extractor.
Desired behaviour: Make metadata variables extracted from the title also available to the file output template.
Proposed fix: Move the processing of `--metadata-from-title` earlier (during initial extraction, before writing (m)any files).
While writing this report I noticed issue #11108 which is another manifestation of this same problem. Note at the end someone correctly identifies that the metadata-from-title is not available as a variable to the output template. **In my view it would be more sensible to move this parsing earlier and make these variables available, instead of adding a whole 'nother parameter**, `--variables-from-title` as suggested in #11108
I haven't digested enough of the codebase yet to make the change myself. Thanks for your consideration. | request | low | Critical |
201,201,231 | go | debug/elf: add File.DynValue method to look up DynTag values | Currently there is no method/function to convert elf.Symbol.Info to SymBind and SymType, even thought there is a function ST_INFO to convert SymBind and SymType into uint8.
We probably should have created a new type for Symbol.Info, but we can't do that before Go 2.
Therefore I propose the addition of the following two methods to elf.Symbol:
```
func (s Symbol) Bind() SymBind {
return SymBind(s.Info >> 4)
}
func (s Symbol) Type() SymType {
return SymType(s.Info & 0xf)
}
```
Perhaps we could also make elf.Symbol implement Stringer, but I'm not sure about the format yet. Any suggestions?
Additionally, the elf package looks like automated conversion from elf.h as it contains a lot of top-level functions will non-idiolmatic names (R_INFO, R_SYM32, etc.) without any docs. For Go 2, we should get rid of them, and turn them into proper methods with idiomatic names.
/cc @ianlancetaylor | help wanted,Proposal-Accepted,FeatureRequest | low | Critical |
201,218,012 | You-Dont-Know-JS | You Don't Know JS: Types & Grammar - "What about &&" Code example not clear enough | In **What about &&?** section we have the following code.
```
function foo() {
console.log( a );
}
var a = 42;
a && foo(); // 42
```
result in comment should indicate that foo was called. but in fact we would get same result of "42" if first operand had been called (like in `||` operator). i think results of `a` and `foo()` should be different to make the example be clearer.
for example:
```
function foo() {
console.log("foo");
}
var a = 42;
a && foo(); // "foo"
```
| for second edition | low | Minor |
201,286,382 | opencv | Enhancement Objective C: Conversion using static category methods | In [OpenCV iOS - Video Processing](http://docs.opencv.org/2.4/doc/tutorials/ios/video_processing/video_processing.html#opencviosvideoprocessing) tutorial page there is a guide how to convert `cv::Mat` to `UIImage` and backwards. I have found much easier to use static methods inside category extending `UIImage` itself. I have created a [sample GIST](https://gist.github.com/tomas789/f54080e88e8cfa187228322823328c01). Please consider changing a tutorial using this approach so everybody can use it. Of course, anybody can implement it on his own but it is not that obvious to do it this way.
**Main advantages:**
- Very simple to use
- It can be used everywhere. Not only inside one class where it was implemented
- Copy paste only approach
- There might be folks that are not that familiar with Objective-C++ so them might not come up with this simpler approach instead of using the one proposed in current tutorial page.
**Disadvantages:**
- OpenCV is then included in every Objective-C++ class | feature,platform: ios/osx | low | Minor |
201,317,224 | vscode | Multiple decorations on end of line | I would like to be able to add multiple editor decorations on the end of line.
My use case is nicely decorating inline values to make a difference between a name and a value. A nice example on how chrome does this:
An alternative would be a mechanism that I could somehow specially annotate parts of the contentText, however since we use css::after this might be impossible.

| feature-request,editor-core | low | Major |
201,407,550 | youtube-dl | Unable to download video live stream from ArchillectTV | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.16*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [X] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.16**
### Before submitting an *issue* make sure you have:
- [X] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [X] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
...
```
jlfh0816 @ voyager1404 ~
└─ $ ▶ youtube-dl -v http://archillect.com/tv
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://archillect.com/tv']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.16
[debug] Python version 2.7.6 - Linux-3.13.0-107-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 11.3-6, avprobe 11.3-6, ffmpeg 3.2.2, ffprobe 3.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] tv: Requesting header
WARNING: Falling back on generic information extractor.
[generic] tv: Downloading webpage
[generic] tv: Extracting information
[download] Downloading playlist: Archillect TV
[generic] playlist Archillect TV: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[soundcloud:set] archillect/sets/engine: Resolving id
[soundcloud:set] archillect/sets/engine: Downloading JSON metadata
[download] Downloading playlist: Engine
[soundcloud:set] playlist Engine: Collected 7 video ids (downloading 7 of them)
[download] Downloading video 1 of 7
[soundcloud] twimclabel/iamamiwhoami-dive: Resolving id
[soundcloud] twimclabel/iamamiwhoami-dive: Downloading info JSON
[soundcloud] 191434662: Downloading track url
[soundcloud] 191434662: Checking fallback video format URL
[soundcloud] 191434662: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/nxLOZsQm5o8u.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vbnhMT1pzUW01bzh1LjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc2NjR9fX1dfQ__&Signature=ZgNt5KOsZj-lZ2QKcXjn-D-6axauO9BMyVjJVgkr6hEYDRl25n8YNWZT9IjmH33~qFbIG7XTKgsZgZt3FD6bRpYQucOAuODpfJ89e7dLst5yqMn-EqcYtz3QygvAP25gZbOy1buYkv-un3yZehjWfxpvvrTdhEM8yIvYcgDxy21SBFQukAi~oF1DoCeEE-vEgKEgYSlVGdY5fCcmAy32cRKynTHH2I9oUpWSxwshIfYVAILfDHg1v8us6WLJlFtPmxvv2q49xW6havUubf1GxQf2HXNG6i0T67683wTDw1maGJakASt1EqAX9DNJ9psLTjFEzks6ukl~ivsjWJkfcA__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] iamamiwhoami; dive-191434662.mp3 has already been downloaded
[download] 100% of 4.12MiB
[download] Downloading video 2 of 7
[soundcloud] helloworldhello/1-honey-bee: Resolving id
[soundcloud] helloworldhello/1-honey-bee: Downloading info JSON
[soundcloud] 176434885: Downloading track url
[soundcloud] 176434885: Checking fallback video format URL
[soundcloud] 176434885: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/HaemuUwDSpis.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vSGFlbXVVd0RTcGlzLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc1NDl9fX1dfQ__&Signature=yUlZPBYXmvi7y8mqRCztY6cUmjBqw71uHbJsc8Gh0zSzciRJ1NiTdccPJiiIHidHFgq-58p0WeFfCd6gmvf~UbB4neepfhPksZWRc6ES4omawe88gmbPPKdhiq4-xpAk9U6NPPlhtsNGrckECXL4yAEfgqjmJ~w465g225IIBMJ27NVhaNhW9PZxFiZICzCv-Z5xyNg9cwlQmlyavG7qTvYJPBB9uvR7P22DgVyRTXlhhSpwsdGwIQsAoomZAMVNpSqJp73hfnyyvbiifHLyYvjrwxKRw2A9~WB5UeklrMZEikobJ-v6ta9jbolsTqOO4bb1y9MG8EW~R5MIeP-GoA__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] Honey Bee-176434885.mp3 has already been downloaded
[download] 100% of 2.25MiB
[download] Downloading video 3 of 7
[soundcloud] lorn/acid-rain-final: Resolving id
[soundcloud] lorn/acid-rain-final: Downloading info JSON
[soundcloud] 169121755: Downloading track url
[soundcloud] 169121755: Checking fallback video format URL
[soundcloud] 169121755: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/fIAeSjsZQkga.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vZklBZVNqc1pRa2dhLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc1NzZ9fX1dfQ__&Signature=BVPjEBDXI6y8i-aRVS0NeFvu2C1LssZUR6Jz2A0T2hcUFx-kV0m6DMiHV4ik1jmrFQdAs0BBhwcBG69zu34voN8wLF4opaTMWRKlK0Voevh39AepDJGhU9A-xN5Rr6RWmvdNWc7Li~ZIZAzXL-Qq8Mwo0oF71fxzsORGHqnewK1XwPhStRwrqiOu9CvYIAKmEK3BygQno2EhM-XXjZrfJP0oqPaNP3p2Nh-l5caZJjHUPt6HqV~erVoEOyRYS8929~k71LRri9MB8p2EpNbhjrWN~NHG~QcEgMDMfz0rMi1Oos-uShJ6uB2yT2FZmjXEZYSYvJ0hYMtAOTHht92Otg__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] ACID RAIN-169121755.mp3 has already been downloaded
[download] 100% of 2.63MiB
[download] Downloading video 4 of 7
[soundcloud] dubmood/dubmood-simple-machine: Resolving id
[soundcloud] dubmood/dubmood-simple-machine: Downloading info JSON
[soundcloud] 110976946: Downloading track url
[soundcloud] 110976946: Checking fallback video format URL
[soundcloud] 110976946: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/7iRnHCua1gDE.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vN2lSbkhDdWExZ0RFLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc1OTl9fX1dfQ__&Signature=Zo3MA9Rm5SnIBZFOC5zQZET~ZVTSPS3Sd0lVfRrr9YMQkiQXTVLyy3SvK8K8H~Ch2QnKh3BKKMR3fzHii911~LWj0BMvKqJS0FHFqWdF5F-T6toSikQaqw1sZNWhLv4tY-7tyKmVQ~gWLPic1HA8FeCXcMOyklew6CU2SrHTqivvvg0A3LRt6Xa7hYCjcfPTf4L7oGhbTSPlTb9aGRaxAwR2gHG-wok91TL-mejJ3F75UNgMeclFSPHIOi-jBzDs5CW8O7vWf~IeA8MIGfJDQ-gspBDtRfbPms8LO7c1cqCRsoR1GfPmZi5hJ5TjqRs-siY1hGUm7Q9QAkmoBR0iUA__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] Dubmood - Simple Machine-110976946.mp3 has already been downloaded
[download] 100% of 2.96MiB
[download] Downloading video 5 of 7
[soundcloud] heinrichdressel/composite-profuse-psycho: Resolving id
[soundcloud] heinrichdressel/composite-profuse-psycho: Downloading info JSON
[soundcloud] 92463319: Downloading track url
[soundcloud] 92463319: Checking fallback video format URL
[soundcloud] 92463319: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/v3nOoKQu3ibY.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vdjNuT29LUXUzaWJZLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc3OTN9fX1dfQ__&Signature=xF~6F06SdoMoPNbb0zTCxZ1vaXlbFo21AphiO2118F4aEWwYhC4Kw3s-8fVdhahW96durJeh9hmsJU~K0CSJGjIo774Oj0w7r9gD7mIobgcOwZMNLz5R1qnoeiGkAcgFvkB15j72GpB5y~otSkao67g3IcQeQ4VWkwHiysDbs2sAh-x0UpOGHCsAXZ6CnlkPi3Qdpc-T1gFDY1cXGKoCmEjnKdsi7QIIQyDJ3o3rpeQji9-X-1AVoUQ7O7FkMO5o6nT2zSvh5~-8fsiEFjHH18KHGi6UoG3h4o1fmsK9WpFFKqCPvRUGtCpsNl184kPTCvUTuc2mCET6xJmuVSRxcw__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] Composite Profuse - Psycho Session-92463319.mp3 has already been downloaded
[download] 100% of 5.89MiB
[download] Downloading video 6 of 7
[soundcloud] overwerk/create: Resolving id
[soundcloud] overwerk/create: Downloading info JSON
[soundcloud] 216708131: Downloading track url
[soundcloud] 216708131: Checking fallback video format URL
[soundcloud] 216708131: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://cf-media.sndcdn.com/SUa9TEqFnMvg.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vU1VhOVRFcUZuTXZnLjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0ODQ2ODc3NjV9fX1dfQ__&Signature=FJFnARwEMUsv75LRVeZ5BYkv9f1M~Bdbi3mjMHgjvYtS926~6aN3TxWx5KcOMgHs8TSVBsj5waUBjJP0hW6qmgbT~HonVvNGZunXL1E783F8qF1SEkfCrVtD~fCOHB9IQLVm2DUfECQF59ADrp7uXUscaD-AVXYNXvIo-N6jXXqW9nInlcWK-8EqKgepiAAanf-AIwW9AFWtlg-BUXkkDwRqioOhYlkN5l48~iXwgYMvKw6IYZWMUEDHfbq19L38eS6PjFMZowpWQc3JL5j8MLUTptvb-8ja821dlG98qa6s4LhL~6qjWZdxvUbICYMx6aIN99DO28Gqz8H-yWZoOQ__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] Create-216708131.mp3 has already been downloaded
[download] 100% of 5.43MiB
[download] Downloading video 7 of 7
[soundcloud] erasedtapes/a-winged-victory-for-the: Resolving id
[soundcloud] erasedtapes/a-winged-victory-for-the: Downloading info JSON
[soundcloud] 19483239: Downloading track url
[soundcloud] 19483239: Checking download video format URL
[soundcloud] 19483239: Checking http_mp3_128_url video format URL
[debug] Invoking downloader on u'https://api.soundcloud.com/tracks/19483239/download?client_id=fDoItMDbsbZz8dY16ZzARCZmzgHBPotA'
[download] A Winged Victory For The Sullen - Steep Hills Of Vicodin Tears-19483239.mp3 has already been downloaded
[download] 100% of 11.01MiB
[download] Finished downloading playlist: Engine
[download] Finished downloading playlist: Archillect TV
---
<end of log>
---
### Description of your *issue*, suggested solution and other information
When I try to download the audio and video (actually are animated gifs changing every 10 seconds) streams from the website http://archillect.com/tv, Youtube-dl downloads the audio stream properly but appears to fail to download the video one for some reason.
I have tried – without success – to solve this myself by asking for help on this site:
https://forums.bunsenlabs.org/viewtopic.php?id=3222
Could you perhaps see on your end where the problem is coming from?
Thank you very much for your time!
| site-support-request | low | Critical |
201,511,510 | three.js | The shadow of a partially transparent object | ##### Description of the problem
The shadow of a partially transparent object should be brighter than that of a completely opaque object, but they're same dark in threejs.

##### Three.js version
- [x] Dev
- [X] r83
- [ ] ...
##### Browser
- [x] All of them
- [ ] Chrome
- [X] Firefox
- [ ] Internet Explorer
##### OS
- [x] All of them
- [ ] Windows
- [X] Linux
- [ ] Android
- [ ] IOS
##### Hardware Requirements (graphics card, VR Device, ...)
graphics card is GTX 1080.
| Enhancement | medium | Critical |
201,558,805 | node | 'end' event not called on connected socket wrapped with tls | * **Version**: v6.9.4, v7.4.0
* **Platform**: Linux pc 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
* **Subsystem**: net, tls
When wrapping an existing socket with tls, the socket's 'end' event is not called if the socket was already connected.
Example:
In this case 'end' will be called:
```js
var Socket = require('net').Socket;
var tls = require('tls');
var HOST = 'www.google.com';
var socket = new Socket();
var tlsOptions = {
host: HOST,
socket: socket
};
socket.on('close', function() { console.log('close'); });
socket.on('end', function() { console.log('end'); });
var tlsSocket = tls.connect(tlsOptions, function() {
console.log('connected');
tlsSocket.end();
});
socket.connect({
port: 443,
host: HOST
});
```
In this case 'end' will not be called:
```js
var Socket = require('net').Socket;
var tls = require('tls');
var HOST = 'www.google.com';
var socket = new Socket();
var tlsOptions = {
host: HOST,
socket: socket
};
socket.on('close', function() { console.log('close'); });
socket.on('end', function() { console.log('end'); });
socket.connect({
port: 443,
host: HOST
});
var tlsSocket = tls.connect(tlsOptions, function() {
console.log('connected');
tlsSocket.end();
});
``` | tls,stream | low | Major |
201,579,836 | rust | Guarantee that values in hash map are disjoint from each other and the HashMap struct. | There was some discussion about the unsafe guarantees of `HashMap` on Reddit[1] which inspired me to write this issue.
The current HashMap implementation has its entries at memory locations that are disjoint from each other and from the `HashMap` struct. That means that in principle, there could simultaneously exist multiple mutable references to different, disjoint values contained in hash map without aliasing happening. This idea is similar in principle to the reason why `split_at_mut` API on mutable slices can exist.
However, as the `HashMap` currently provides no guarantees for supporting the disjointness of its entries, no unsafe code is allowed to trust it – especially because `HashMap` is a part of the `std`, and we can't currently pin version dependencies to `std`; the implementation of `HashMap` is allowed to "silently" change and break unsafe code.
I think it would make sense to document what the current implementation does in practice as a guarantee: the values stored in hash map are disjoint from each other and from the `HashMap` struct. In practice, this disallows the following situations:
* The `HashMap` struct containing some of its values "inline", inside the struct.
* Some value `v1` containing an instance of another value `v2` (for example, a boxed struct that contains more boxed structs of the same type), and `HashMap` returning a reference to `v2` as a reference to "separate" value from `v1`.
To be sure, I don't mean that `HashMap` should necessarily guarantee that each key maps to a separate value – just that separate values don't alias. Also I don't propose an API that allows multiple unaliased mutable references to the values in hash map; but this guarantee can be seen as a preliminary requirement for such an API to exist in future.
[1] https://www.reddit.com/r/rust/comments/5ofuun/multi_mut_multiple_mutable_references_to_hashmap/ | C-enhancement,T-libs-api | low | Major |
201,624,605 | youtube-dl | can not get the best video from viki | **Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.16. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.**
I've verified and I assure that I'm running youtube-dl 2017.01.16
**Before submitting an issue make sure you have:**
At least skimmed through README and most notably FAQ and BUGS sections
Searched the bugtracker for similar issues including closed ones
**What is the purpose of your issue?**
Feature request (request for a new functionality)
How can i get the best fomat from the viki?


Only low format can be gotten . | geo-restricted | low | Critical |
201,641,564 | TypeScript | Error when augmenting UMD module | **TypeScript Version:** 2.1.1 / nightly (2.2.0-dev.201xxxxx)
**Code**
```ts
// @Filename: /node_modules/foo/index.d.ts
export = __foo;
export as namespace foo;
declare namespace __foo {
export import foo = __foo;
class C {
x: number;
}
}
// @Filename: /a.ts
import { foo } from "foo";
declare module "foo" {
namespace __foo {}
}
new foo.C();
```
**Expected behavior:**
No error.
**Actual behavior:**
`/a.ts(5,15): error TS2686: 'foo' refers to a UMD global, but the current file is a module. Consider adding an import instead.` | Bug | low | Critical |
201,663,981 | angular | Forms should throw error if two or more NgModels appear in form with the same name | [ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
**Current behavior**
Currently there is no error or warning if two form controls have the same name:
```
<input name="entireStateCoverage" type="checkbox" [(ngModel)]="item.entireStateCoverage">
<input name="entireStateCoverage" type="checkbox" [(ngModel)]="item.active">
```
**Expected behavior**
Forms should throw error if duplicate names are detected.
**What is the motivation / use case for changing the behavior?**
This leads to unpredictable results (value overwrites) which are difficult to find.
* **Angular version:** 2.4.3
* **Browser:** [all]
* **Language:** [all]
| feature,freq1: low,area: forms,state: has PR,good first issue,feature: under consideration,feature: votes required | medium | Critical |
201,682,687 | rust | missing_docs does not trigger for types only used in exported fields of enumerations | IMO, this should be a compilation failure because although `Foo` is not explicitly exported, it is publicly visible via the `Bar::A` variant:
`lib.rs`:
```rust
#![deny(missing_docs)]
mod types;
pub use types::Bar;
```
`types.rs`:
```rust
pub struct Foo;
/// A bar.
pub enum Bar {
/// A `Bar` variant.
A(Foo),
}
```
Oddly enough, it seems to also be happy with the missing crate-level docs…
Using 1.14.0 (from Fedora's repository). | A-lints,T-compiler,C-bug | low | Critical |
201,690,280 | opencv | cv::ocl::setUseOpenCL(false) does not really stop using GPU | <!--
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).
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 => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.2
- Operating System / Platform => Windows 10
- Compiler => VS 2013
##### Detailed description
I set cv::ocl::setUseOpenCL(false); and verified using useOpenCL(). But my code is still using GPU when I use UMat. How can I stop using GPU? Temporarily I am using a workaround that uses Mat instead of UMat. UMat should not use GPU when ocl is not used.
##### Steps to reproduce
Just use UMat in your code. Do some computation. Set cv::ocl::setUseOpenCL(false).
I used GPU-Z to verify GPU load/usage. | bug,category: core,category: ocl,category: t-api,incomplete,needs reproducer | low | Critical |
201,704,705 | TypeScript | DOM: Font Loading API | **TypeScript Version:** 2.1.1
**Code**
```ts
// An example usage of Font Loading API
var font = new FontFace("SinkinSans","url('SinkinSans.ttf') format('truetype')");
font.load().then(()=>{
// font loaded
document.fonts.add(font);
});
```
**Expected behavior:** FontFace, FontFaceSet and document.fonts must exist in the DOM typings
**Actual behavior:** TypeScript generates an error, it still emits but errors are shown.
More info:
* https://googlechrome.github.io/samples/font-face-set/
* https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API
* https://webkit.org/blog/6643/improved-font-loading/
| Suggestion,Revisit,Domain: lib.d.ts | medium | Critical |
201,726,835 | vue | v-on:change randomly fails on range input bound on a computed property | ### Vue.js version
2.1.10
### Reproduction Link
http://jsbin.com/bapoca/edit?html,js,console,output
### Steps to reproduce
The above JSBin contains a slider (range) that logs the value of a computed property it is bound to (`sliderRadius`), when it changes: `v-on:change="log"` (log is a declared function)
### What is Expected?
I would expect that each time the slider changes, the prop is logged in the console.
### What is actually happening?
Two different scenarios:
- you drag and release the slider handler (aka thumb): the prop is *always* logged in the console (i.e. the change handler fires properly all the times)
- you directly click where you want the handler to get to: the prop isn't logged all the times (i.e. the change handler fails about in 3 out of 5 occasions).
See the animated gif below, using the provided JSBin (recorded on Google Chrome, OSX – the same happens on Safari, thought)
[](https://postimg.org/image/a6cjlqnr7/)
Thank you. | bug,has workaround | low | Critical |
201,740,815 | youtube-dl | crackle.com movies are not supported | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.10*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.10**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
youtube-dl -v http://www.crackle.com/7-seconds
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.crackle.com/7-seconds']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.10
[debug] Python version 3.5.2 - Linux-4.9.3-200.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five
[debug] exe versions: ffmpeg 3.1.6, ffprobe 3.1.6
[debug] Proxy map: {}
[generic] 7-seconds: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 7-seconds: Downloading webpage
[generic] 7-seconds: Extracting information
ERROR: Unsupported URL: http://www.crackle.com/7-seconds
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 693, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 359, in extract
return self._real_extract(url)
File "/usr/lib/python3.5/site-packages/youtube_dl/extractor/generic.py", line 2507, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.crackle.com/7-seconds
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: http://www.crackle.com/7-seconds
---
### Description of your *issue*, suggested solution and other information
Explanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.
If work on your *issue* requires account credentials please provide them or explain how one can obtain them.
youtube-dl already supports the TV section of crackle.com. However, it does not support the movies section
| request,geo-restricted,cant-reproduce | low | Critical |
201,765,433 | You-Dont-Know-JS | investigate static generics and see if they need inclusion | array generics, string generics, etc. | for second edition | medium | Minor |
201,817,888 | youtube-dl | Use fallback Youtube server if local cache is unavailable | ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.18*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.18**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
When Google CDN server peered or hosted by local ISP (blah-blah-blah.googlevideo.com) that holds media files is unavailable, youtube-dl just hangs on TCP connect and returns a system error after a timeout. It's an obvious, straightforward behavior. However, the website (at least default Javascript player served for Firefox) checks if any data from server is available after 5 seconds, and automatically reconnects to a different (global/anycast?) CDN server (in my case, r6---sn-4g57kn6e.googlevideo.com) to play the video. I guess they bothered to handle that case because of the total amount of Google cache nodes, and ubiquitous network problems and misconfigurations.
I think it's a rare case where youtube-dl is less resilient and useful than the official way of watching Youtube.
Steps to reproduce: set iptables to drop packets to CDN servers Google picks for your IP address range, check what player on the website does. | request | low | Critical |
201,821,673 | pytorch | Feature Request: Locally Connected Layer | The Lua version of Torch implements a [Locally Connected Layer](https://github.com/torch/nn/blob/master/doc/convolution.md#spatialconvolutio) (Convolution without shared weights). It would be good to have an implementation of this available on the python API version as well.
cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345 | proposal accepted,feature,module: nn,triaged,Stale | medium | Critical |
201,853,383 | rust | Type-inference breaks depending on the order of arguments in a function call | Given ([playground link](https://play.rust-lang.org/?gist=1f7090c618d23c418db366553b4d1916&version=stable&backtrace=0)):
```rust
pub trait Int { fn zero() -> Self; }
impl Int for u8 { fn zero() -> u8 { 0 } }
impl Int for i8 { fn zero() -> i8 { 0 } }
pub trait FromSigned<T> {
fn from_signed(T) -> Self;
}
impl<T: Int, U: Int> FromSigned<T> for U {
fn from_signed(x: T) -> U {
U::zero()
}
}
pub fn from_signed<To, Fr>(x: Fr) -> To
where Fr: Int,
To: FromSigned<Fr>
{
To::from_signed(x)
}
```
I ran into the following:
```rust
fn main() {
// This type-checks:
255u8 == from_signed(-1i8);
// This doesn't type checkL
from_signed(-1i8) == 255u8;
}
```
In particular, my intuition says that `a == b` desugars into `equals(a, b)`. That `equals(a, b)` type-checks but `equals(b, a)` doesn't is extremely weird, in particular since `equals` expects both arguments to be of the same type. | A-inference,C-bug | low | Minor |
201,873,713 | angular | Way to handle media queries in animation | **I'm submitting a ...** (check one with "x")
```
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```
I'm facing a problem where I want to run different enter transitions depending on width of screen. With Angular 1 animation, based on css classes, it was really easy to accomplish different transition rules depending on media queries. You'd simply do something like (scss)
```sass
.ng-enter {
transform: translateX(-100%);
&.ng-enter-active {
transform: translateX(0);
}
}
@media (max-width: 600px) {
.ng-enter {
transform: translateX(100%);
}
}
```
... to have it slide in from right on small devices. Also the positioning/css etc. was close to where other parts of the styling was, so it was easy to match any pixel numbers etc. against other css declarations. With Angular 2's animation API, we currently see these downsides
1. We can't use media queries
2. Combinations with pseudo classes is impossible and you'd have to replicate e.g. hover with mouseenter/leave listeners etc. (see #10196)
3. They can't be put in css files for use by designers and non-programmers if you want them out of .ts/.js
4. It's harder to find where an animation is declared as it could be both in our typescript or css
This is a feature request for dealing with primarily with 1., but potentially the others as well. I can see the following solutions
1. You come up with some kind of syntax for adding media query abilities, along the lines of the #10196, maybe something like
```
state('@media (max-width: 600px) :enter', ...)
```
2. ...or states can be mapped to css classes as well, thereby allowing users to choose where to put animation logic, i.e. something like
```
state(':enter', addClass('enter'))
```
3. Or 2. is done automatically and you wouldn't have to write any ts/js if you didn't want to and could just do it like Angular 1
4. Or just not use `*ngIf` on outer element, bind an inner element via *ngIf and add classes to outer element, and use css transitions (possible today, but only if applicable css context allow you to nest extra elements)
5. Or use javascript to calculate that state (possible today, but cumbersome)
```
state('void => small', ...)
state('void => large', ...)
<foo *ngIf="..." [@myAnimation]="isLargeScreen ? 'large' : 'small'"
```
What are your thoughts. I'd personally prefer 3. as I think it allows most freedom and solves all bullets above. If you recommend 4. or 5., what are your thoughts about the downsides?
* **Angular version:**
2.4.2 | feature,area: animations,freq3: high,P4,feature: under consideration | medium | Critical |
201,893,666 | rust | #![cfg] to disable a crate disables #![no_std] | Using `#![cfg]` to disable a crate on platforms where it makes no sense is usually a great idea. That way people can unconditionally depend on your crate and use it only on the targets where it is needed. However it disables the entire crate, including all global attributes, which means normally a crate that has `#![no_std]` wouldn't depend on std, but if you use `#![cfg]` to disable that crate, suddenly it does depend on std! The only workaround is to not use `#![cfg]` and instead manually disable each item in the `lib.rs`, except for specific attributes like `#![no_std]`.
For example:
```Rust
// rustc foo.rs --crate-type=rlib
#![no_std]
#![cfg(any())]
```
```Rust
// rustc bar.rs -Zprint-link-args -Lcrate=current_directory
#![no_std]
extern crate foo;
fn main() {}
```
Observe as libstd is passed to the linker despite both crates using `#![no_std]`. | A-attributes,I-needs-decision,T-lang,C-bug | low | Major |
201,922,657 | rust | Allow `process::Child` to be used with external calls to `waitpid` | The `wait` and `wait_with_output` methods of `process::Child` expect to do the waiting for the child to exit themselves. If you are running many processes at once, and you don't know which one will finish first, this is inconvenient, because the system calls `wait` and `waitpid` consume each exit notification as they report it. (`waitid` can be told not to do that, but it is not fully supported in the libc crate yet.) That places the `Child` object in an inconsistent state, in which it is not safe to call `wait` or `wait_with_output`.
If `Child` had a `set_exit_status` method, an application in this situation could use it to keep the objects consistent: something like
```rust
fn wait_all(children: &[&mut Child]) -> nix::Result<()> {
use nix::sys::wait::{wait, WaitStatus}
let mut pending : HashMap<u32, &mut Child> =
children.iter().map(|c| (c.id(), c)).collect();
while pending.len() {
let status = try!(wait());
match status {
Exited(pid, ..) | Signaled(pid, ..) => {
let mut child = try!(pending.remove(pid).ok_or(UnexpectedChild(pid)));
child.set_exit_status(status);
},
_ => unreachable!();
}
}
Ok(())
}
```
(In this hypothetical, `ExitStatus` impls `From<nix::WaitStatus>`, which I believe nix can make happen without assistance from std.) | T-libs-api,C-feature-accepted,A-process | low | Major |
201,922,702 | kubernetes | Make OOM not be a SIGKILL | Atm apps that go over the memory limit are hard killed 'OOMKilled', which is bad (losing state / not running cleanup code etc)
Is there a way to get SIGTERM instead (with a grace period or 100m before reaching the limit) ? | sig/node,kind/feature,triage/accepted | high | Critical |
201,953,492 | flutter | FR: Create a way to increase the time between frames. | Unlike timeDilation which doesn't change the frame rate but slows down any ticking animations (or something like that), this feature would slow down how often frames are submitted (or something like that).
Use cases:
1. If a developer has a weird single frame jump they could use this to 'see' that frame better to aid in debugging.
1. If a developer relies on sizes from a previous frame in their app (which is bad in general) this would increase the jank caused by that to possible 'real world' levels. | c: new feature,framework,P3,team-framework,triaged-framework | low | Critical |
202,000,281 | angular | Sourcemap path in current bundle isn't being formed properly | **I'm submitting a ...** (check one with "x")
```
[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```
**Current behavior**
Sourcemaps are being added to each angular bundle from the perspective of the wrong directory. These sourcemaps are currently included in the latest (2.4.4) release when doing a fresh npm install.
Example from `node_modules/@angular/core/src/linker/compiler.js.map`
```
{"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../../../../modules/@angular/core/src/linker/compiler.ts"],"names":[],
```
This is causing an unexpected/incorrect path to be displayed in debugging tools.
**Expected behavior**
Sourcemap paths should start from the npm repository's base directory. In this case the path should start from `modules/@angular/core`
Resulting in a path similar to this:
```
{"version":3,"file":"compiler.js","sourceRoot":"","sources":["src/linker/compiler.ts"],"names":[],
```
**Minimal reproduction of the problem with instructions**
Create a new project with Angular CLI beta.25-5
modify the file: node_modules/angular-cli/models/webpack-build-common.js:132
replace `exclude: [nodeModules]` with `exclude: /node_modules\/(?!(\@angular\/core)).*/`
*note: this is just to quickly include sourcemaps for @angular/core
run `ng serve`
Open the served page in Chrome and use developer tools > Sources tab
As a result (when using webpack) files appear to be in:
```
webpack://../../../../../modules/@angular/core/src/linker/compiler.ts
```
instead of
```
webpack://./~/@angular/core/src/linker/compiler.ts
```
**What is the motivation / use case for changing the behavior?**
Debugging Angular codebase from the context of a CLI project (I'm assuming whenever using webpack).
**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->
OSX, VSCode, NPM, Webpack Dev Sever
* **Angular version:** 2.0.X
<!-- Check whether this is still an issue in the most recent Angular version -->
2.4.4
* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
<!-- All browsers where this could be reproduced -->
Chrome, I haven't tried others
* **Language:** [all | TypeScript X.X | ES6/7 | ES5]
TypeScript
* **Node (for AoT issues):** `node --version` =
angular-cli: 1.0.0-beta.25.5
node: 6.5.0
os: linux x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/compiler-cli: 2.4.4
Also note, I believe that webpack may be having issues with the sourcemaps plugin for scoped npm packages (anything @username/project) it's not placing the sources in the correct location even when the sourcemaps are corrected. | type: bug/fix,area: packaging,freq4: critical,state: confirmed,P3 | low | Critical |
202,007,589 | go | all: add link to the issue tracker from all repos | Most repositories under the golang organization is using the go repo's issue tracker and has their issues disabled. Each repo that uses this issue tracker needs to give a link to https://golang.org/issues/new from its README to help the users find the correct location to file bugs.
GitHub also allows to pre-fill the title section with a query parameter. For example, we use https://golang.org/issue/new?title=x/mobile:+ from the mobile repo README. Each repo can follow the same pattern to help contributors properly prefix the title. | Documentation,NeedsInvestigation | low | Critical |
202,035,193 | youtube-dl | [LeEco] Support Le.com live channel | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.18*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [ ] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.18**
Version: 2016.12.01
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
轮播
* Live channel: http://live.le.com/lunbo/play/index.shtml?channel=225
| site-support-request | low | Critical |
202,077,073 | go | x/tools/refactor/rename: renaming struct should rename method receivers that follow naming advice | Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?
```
go version go1.7.4 linux/amd64
```
### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/myitcv/mgo/src/modelogiq.com/g/_vendor:/home/myitcv/mgo"
GORACE=""
GOROOT="/home/myitcv/gos"
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build108524765=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
```
Using commit [fcfba28e23c7bbd8474b355ca7d6a9d88afcca00](https://github.com/golang/tools/tree/fcfba28e23c7bbd8474b355ca7d6a9d88afcca00) of `golang.org/x/tools/refactor/rename`
### What did you do?
Starting with code:
```go
// main.go
package main
import (
"fmt"
)
type banana struct{}
func (b *banana) doit() {}
func main() {
fmt.Println("Hello, playground")
}
```
Invoke:
```
gorename -offset main.go:#51 -to apple
```
### What did you expect to see?
`rename` should also rename the receiver of the method `doit` from `b -> a`
The heuristic here should be that if the receiver does follow the generally accepted [naming advice](https://github.com/golang/go/wiki/CodeReviewComments#receiver-names) then `rename` can safely proceed and rename receivers.
### What did you see instead?
Renaming `banana -> apple` leaves the receiver of method `doit` as `b`
| Tools,Refactoring | low | Critical |
202,138,728 | angular | Provide one time binding possibility for better performance | For many use cases we need to render elements according to first initial value without the need to observe any changes. It would be great if we would have the ability to make one time bindings. | feature,area: core,core: binding & interpolation,core: change detection,feature: under consideration | high | Major |
202,195,664 | opencv | Cannot create non uniform histogram using cv2.calcHist() in Python 2.7 | <!--
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).
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)
- OpenCV => 3.1.0-dev
- Operating System / Platform => Ubuntu 16.04
- Compiler => Python 2.7
##### Detailed description
I have difficulty implementing cv2.calcHist in Python. Based on OpenCV docs, I am trying to create a non uniform 2d histogram of float32 values. However, I get error with message "SystemError: error return without exception set" , when trying to input custom bin edges.
##### Steps to reproduce
Gives error:
```
import cv2
import numpy as np
r_d = np.random.random(100)
p_d = np.random.random(100)
r_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
p_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
H = cv2.calcHist([r_d.astype(np.float32),p_d.astype(np.float32)], [0,1], None,
(99,99),
[r_bins_edges, p_bins_edges])
```
Runs alright with no custom bin edges:
```
import cv2
import numpy as np
r_d = np.random.random(100)
p_d = np.random.random(100)
r_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
p_bins_edges = np.linspace(np.min(r_d), np.max(r_d),100)
H = cv2.calcHist([r_d.astype(np.float32),p_d.astype(np.float32)], [0,1], None,
(99,99),
[0, 1, 0, 1])
```
Apart from that, notice that in the 'runs alright' part I am writing [0, 1, 0, 1] and not [[0, 1], [0, 1]] (as docs propose), which again gives the same error "SystemError: error return without exception set" . I believe this is an issue worth to be corrected, as cv2.calcHist() can not be interchanged with np.histogram2d in the present. (The example I gave has uniform bins, but in my application there are non uniform ones)
| bug,category: python bindings,category: imgproc | low | Critical |
202,249,389 | go | net/http: add GODEBUG=http1debug | The GODEBUG knob for http2 debugging (e.g. `GODEBUG=http2debug=2`) has proven to be very useful and popular.
Unfortunately it only works for HTTP/2.
There is code in the net/http package to do a similar thing for HTTP/1, but it's not accessible via an environment variable. Should we make it accessible with `GODEBUG=http1debug=...`?
| help wanted,Proposal-Accepted,NeedsFix,FeatureRequest | medium | Critical |
202,338,232 | go | cmd/compile: order.go is outdated | Many optimizations made in walk.go did not come with corresponding updates to order.go. For example, order.go makes a temporary for runtime calls for OCONVIFACE for many cases which walk special-cases not to make runtime calls. Another example is the introduction of temporaries for equality checks that walk inlines.
These do not impact correctness, but they might impact performance (if SSA cannot eliminate the pointless temporaries) and toolspeed (by generating useless nodes that then must be optimized away).
This issue is a reminder to investigate this, and decide whether it is worth the effort to modernize order.go.
cc @mdempsky
| Performance,ToolSpeed,compiler/runtime | low | Major |
202,348,041 | neovim | Restore cursor position when triggering undo | Something that has always bothered me about vim is that when you undo you often do not get your previous cursor position back. For example, given the following file (with the ^ character representing where the cursor is)
```
this is a test
^
```
If you hit `diwu`, you get this:
```
this is a test
^
```
Whereas what I would expect is for the cursor to be back at the original position. In many cases it does follow this behaviour but in many cases it does not. For example, typing `itest<esc>u` preserves the cursor position but typing `atest<esc>u` does not. Typing `Du` preserves position but typing `d^u` does not. Maybe there is some logic behind this behaviour that I'm not seeing but to me it seems odd.
Is this a change worth considering? Or maybe this something better suited as a plugin? | enhancement,normal-mode | low | Minor |
202,374,222 | kubernetes | Consider network resource management / guarantees / scheduling | **What keywords did you search in Kubernetes issues before filing this one?** : Network quota, congestion
---
**Is this a BUG REPORT or FEATURE REQUEST?** (choose one): FEATURE REQUEST
<!--
If this is a BUG REPORT, please:
- Fill in as much of the template below as you can. If you leave out
information, we can't help you as well.
If this is a FEATURE REQUEST, please:
- Describe *in detail* the feature/behavior/change you'd like to see.
In both cases, be ready for followup questions, and please respond in a timely
manner. If we can't reproduce a bug or think a feature already exists, we
might close your issue. If we're wrong, PLEASE feel free to reopen it and
explain why.
-->
There should be a way to schedule pods based on network resource availability - could be on the similar lines as cpu and memory request/limits.
At the very least, kubelet or node-problem-detector should report network congestion or bottlenecks.
One specific use-case is when pods have low cpu/mem requirements, but high network bandwidth needs.
@Random-Liu @thockin thoughts? | sig/network,kind/feature,triage/accepted | medium | Critical |
202,400,837 | javascript | External callback function | _The following examples are based (but no dependent) on [Express router](https://expressjs.com/en/guide/routing.html)._
**Considering the following correct case:**
[8.1 When you must use function expressions (as when passing an anonymous function), use arrow function notation. ](https://github.com/airbnb/javascript#arrows--use-them)
```
router.get('/url', (req, res) => {
...
});
```
**Should you?**
Write the callback function as an arrow function as well, if called from an external place?
```
// controllers.js
export const getUrlController = (req, res) => {
...
});
```
```
// routes.js
import { getUrlController } from './controllers'
router.get('/url', urlController);
```
Or should it rather be a function in this case?
```
// controllers.js
export const getUrlController = function getUrl(req, res) {
...
};
``` | question | low | Minor |
202,402,262 | javascript | Export-ing conventions | Airbnb style guides [[10]](https://github.com/airbnb/javascript#modules--use-them) do not define any specific `export` style, other than:
[10.6 In modules with a single export, prefer default export over named export.](https://github.com/airbnb/javascript#modules--prefer-default-export)
Which one is the preferred style in the following cases (feel free to suggest better ones):
**Single export**
- Inline export
```
export default foo = () => { ... }
```
- Separate export (after definition)
```
const foo = () => { ... };
export default foo;
const other = () => { ... };
```
- Separate export (at the end of file)
```
const foo = () => { ... };
const boo = () => { ... };
export default foo;
```
**Multiple exports**
- Inline exports
```
export foo = () => { ... }
export boo = () => { ... }
```
- Separate export (after definition)
```
const foo = () => { ... }
export foo;
const boo = () => { ... }
export boo;
```
- Separate export (at the end of file)
```
const foo = () => { ... }
const boo = () => { ... }
export { foo, boo };
```
- Wrapper export
```
export const wrapper = {
foo: () => { ... }
boo: () => { ... }
}
```
| question | low | Major |
202,406,372 | angular | There is no FormControl instance attached to form control element with name: xxx | <!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->
**I'm submitting a ...** (check one with "x")
```
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```
**Current behavior**
<!-- Describe how the bug manifests. -->
When using ReactiveForms and we override old form group with the new one (using for example `this.form = new FormGroup(...)`) an error occurs (the error is mentioned in the title).
(The error can be seen in console).
**Expected behavior**
<!-- Describe what the behavior would be without the bug. -->
No error happens.
**Minimal reproduction of the problem with instructions**
<!--
If the current behavior is a bug or you can illustrate your feature request better with an example,
please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->
http://plnkr.co/jVMbtQGKeYhPsCkrzQN8
The error can be seen after 3 seconds (I used set timeout in the example). Error should be visible in console.
**What is the motivation / use case for changing the behavior?**
<!-- Describe the motivation or the concrete use case -->
I understand that this is not the best way to use form groups, i should check if they are already created, and create it only if necessary. However, this bug indicates (I concluded this from stacktrace) that control set-up doesn't work after it's been cleaned up. This should not be the case. Problem occurs because Angular's cleanUpControl function sets up change callback to its own handler (the handler just throws error), and then in setUpControl function, Angular calls write value BEFORE it registers callback handler. It means that the last handler remembered by the custom control was cleanUpControl's handler which only throws an error. Functions setUpControl and cleanUpControl can be found in `@angular/forms/src/directives/shared.js`
**Please tell us about your environment:**
<!-- Operating system, IDE, package manager, HTTP server, ... -->
Project is set-up using angular-cli, but it doesn't really affect the problem if I change the setup.
* **Angular version:** 2.0.X
<!-- Check whether this is still an issue in the most recent Angular version -->
2.4.4
* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
<!-- All browsers where this could be reproduced -->
I tested this on Chrome and Firefox, they both reproduce the problem
* **Language:** [all | TypeScript X.X | ES6/7 | ES5]
Typescript
* **Node (for AoT issues):** `node --version` =
| type: bug/fix,freq2: medium,area: forms,state: confirmed,P3 | high | Critical |
202,411,585 | go | net/http: benchmarks fail on sierra with 'too many open files' | Sample run excerpt:
```bash
BenchmarkCookieString-8 2000000 900 ns/op 384 B/op 3 allocs/op
BenchmarkReadSetCookies-8 500000 3703 ns/op 960 B/op 17 allocs/op
BenchmarkReadCookies-8 300000 4948 ns/op 2008 B/op 16 allocs/op
BenchmarkHeaderWriteSubset-8 3000000 545 ns/op 0 B/op 0 allocs/op
BenchmarkReadRequestChrome-8 500000 3187 ns/op 191.68 MB/s 1809 B/op 14 allocs/op
BenchmarkReadRequestCurl-8 1000000 1663 ns/op 46.90 MB/s 880 B/op 9 allocs/op
BenchmarkReadRequestApachebench-8 1000000 1670 ns/op 49.10 MB/s 883 B/op 9 allocs/op
BenchmarkReadRequestSiege-8 1000000 2161 ns/op 69.87 MB/s 965 B/op 11 allocs/op
BenchmarkReadRequestWrk-8 1000000 1682 ns/op 23.78 MB/s 832 B/op 7 allocs/op
BenchmarkClientServer-8 20000 71011 ns/op 4962 B/op 67 allocs/op
BenchmarkClientServerParallel4-8 100000 15276 ns/op 4937 B/op 64 allocs/op
BenchmarkClientServerParallel64-8 2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 5ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 5ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 10ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 20ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 40ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 80ms
2017/01/22 11:19:46 http: Accept error: accept tcp 127.0.0.1:60387: accept: too many open files; retrying in 5ms
10000 135870 ns/op 4749 B/op 63 allocs/op
--- BENCH: BenchmarkClientServerParallel64-8
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
serve_test.go:4494: Get: Get http://127.0.0.1:60387: dial tcp 127.0.0.1:60387: socket: too many open files
... [output truncated]
BenchmarkClientServerParallelTLS4-8 100000 15757 ns/op 4945 B/op 64 allocs/op
BenchmarkClientServerParallelTLS64-8 2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 10ms
2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 20ms
2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 40ms
2017/01/22 11:19:49 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
2017/01/22 11:19:50 http: Accept error: accept tcp 127.0.0.1:60976: accept: too many open files; retrying in 5ms
5000 475368 ns/op 6175 B/op 80 allocs/op
--- BENCH: BenchmarkClientServerParallelTLS64-8
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
serve_test.go:4494: Get: Get https://127.0.0.1:60976: dial tcp 127.0.0.1:60976: socket: too many open files
... [output truncated]
BenchmarkServer-8 20000 75523 ns/op 2341 B/op 21 allocs/op
BenchmarkClient-8 20000 72795 ns/op 3351 B/op 50 allocs/op
```
| Testing,help wanted,NeedsFix | medium | Critical |
202,425,939 | TypeScript | Type annotations for default export | **TypeScript Version:** 2.1.1
**Code**
```ts
import * as webpack from 'webpack';
export default: webpack.Configuration {
};
```
**Expected behavior:**
No error
**Actual behavior:**
`[ts] Expression expected.` error at `default:`
I couldn't find an issue for this but it's very likely it's a duplicate
<hr>
Please 👍 on this issue if you want to see this feature in TypeScript and avoid adding "me too" comments. Thank you! | Suggestion,Awaiting More Feedback | high | Critical |
202,434,152 | neovim | CursorMovedI and TextChangedI triggered unexpectedly for completion without changes | ### Steps to reproduce using `nvim -u NORC`
```
nvim -u NORC
:source foo.vim
```
Hit the Enter key, you will see that popup menu disapear, nothing has changed, except a CursorMovedI message at the bottom.
foo.vim
```vim
set noshowmode
set completeopt=menu,menuone,noinsert,noselect
set shortmess+=c
augroup foo
autocmd!
autocmd CursorMovedI * echom 'moved: ' . reltimestr(reltime())
augroup end
call feedkeys("Goab\<c-r>=g:Foo()\<CR>")
func! g:Foo()
call complete(1,['abc'])
return ''
endfunc
```
If you replace the autocmd with this. The changed message will be fired too.
```vim
autocmd TextChangedI * echom 'changed: ' . b:changedtick
```
- `nvim --version`:
```
NVIM v0.1.7-437-g0542baa
Build type: Release
Compilation: /usr/bin/cc -Wconversion -O2 -DNDEBUG -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/data/roxma/.local_software/tmp/neovim/build/config -I/data/roxma/.local_software/tmp/neovim/src -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/data/roxma/.local_software/tmp/neovim/.deps/usr/include -I/usr/include -I/data/roxma/.local_software/tmp/neovim/build/src/nvim/auto -I/data/roxma/.local_software/tmp/neovim/build/include
Compiled by roxma@VM_67_229_centos
Optional features included (+) or not (-): +acl +iconv +jemalloc +tui
For differences from Vim, see :help vim-differences
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/data/roxma/.local_software/neovim/share/nvim"
```
- Operating system/version:
```
uname -a
Linux VM_67_229_centos 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
```
- Terminal name/version:
- `$TERM`: xterm-256color
| bug-vim,completion,events | low | Critical |
202,436,853 | TypeScript | [BUG] Docs say es6 modules can't export class objects, but that's not true. | The docs [say](https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-class-d-ts.html) that
> ```
> /*~ Note that ES6 modules cannot directly export class objects.
> ```
but modules can export classes, as in
```ts
export default
class Foo { /*...*/ }
``` | Help Wanted,Docs | low | Critical |
202,503,805 | javascript | Documentation/docblocks | I am wondering why there is no section of documentation or docblocks. Is it conventional to leave them out? What is the reason I don't see any docblocks in the open-sourced projects you guys have?
I would love to hear thoughts about using docblocks in Javascript. I find them really helpful when I am programming PHP. Especially if your IDE has support for it and can help you out with the documentation. | pull request wanted,editorial | low | Major |
202,643,908 | go | x/time/rate: Limiter depends on implementation-defined float to int conversion | ### What version of Go are you using (`go version`)?
```
Audrius@Audrius foo $ go version
go version go1.8rc2 windows/amd64
```
### What operating system and processor architecture are you using (`go env`)?
```
Audrius@Audrius foo $ go env
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Gohome
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\cygwin64\tmp\go-build503767043=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
```
### What did you do?
Compile two binaries using the following:
```
package main
import (
"golang.org/x/time/rate"
"fmt"
)
func main() {
r := rate.NewLimiter(0, 100)
if r.Allow() {
fmt.Println("broken")
} else {
fmt.Println("ok")
}
}
```
Compile as:
```
Audrius@Audrius foo $ GOOS=linux GOARCH=arm GOARM=5 go build main.go; mv main main-arm
Audrius@Audrius foo $ GOOS=linux GOARCH=arm64 GOARM=5 go build main.go; mv main main-arm64
```
Run them on arm64 device (Pixel XL):
```
marlin:/data/data/com.nutomic.syncthingandroid.debug $ ./main-arm
broken
marlin:/data/data/com.nutomic.syncthingandroid.debug $ ./main-arm64
ok
```
Run the same code on amd64 device:
```
Audrius@Audrius foo $ go run main.go
broken
```
### What did you expect to see?
The behaviour between the binaries on should be the same.
I suspect it's related to how floats are handled between the arches.
### What did you see instead?
Binaries return different results based on how they were compiled.
| NeedsInvestigation | low | Critical |
202,680,143 | rust | [rustdoc] Placeholder for search field makes no sense | Currently `rustdoc` generated documentation has this for the placeholder of search field:
> Click or press 'S' to search, '?' for more options…
Now, the problem here, to summarize, is that this placeholder is not really a placeholder, but rather a call-to-action, half of which is even a feature unrelated to search. Not only this call-to-action won’t be visible with text alraedy entered, it does not really help with identifying the purpose of the field.
I realised this when got to a windows machine for some screen reader tests (for https://github.com/rust-lang/rust/pull/39246) and had the placeholder read out to me. Screen reader, when focused on the field read out:
> Click or press S to search, ? for more options editable field
and I realised that this placeholder doesn’t make sense even when I’m able to see the page, much less when I don’t.

I quickly prototyped a potential change and filled this issue so anybody with better ideas could chime in. | T-rustdoc,C-enhancement | low | Major |
202,826,100 | thefuck | Strange behaviour in Windows (Git Bash) | I've installed Python (to get pip) and then ran pip install thefuck.
It seems to have installed `the fuck` okay, but it's acting strangely in Git Bash.
In GitBash, it displays the menu, but doesn't accept `Enter`. It just executes whatever I enter when I press Ctrl-C (but not the unfucked command) - see this example:

Any ideas what the problem may be, and how to fix it? | windows | medium | Major |
202,851,125 | opencv | Corrupted OpenGL stencil after ogl::Texture2D::copyFrom and copyTo | <!--
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).
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 => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
##### Detailed description
We use cv::ogl::Texture2D::copyFrom() to convert an OpenGL texture (depth + stencil) to an ogl::Texture2D, then convert back using cv::ogl::Texture2D::copyTo(). The stencil in the resulting OpenGL texture gets corrupted. The corruption really seems to be in these functions, since we don't do anything on the cv::ogl::texture2D between the two conversions.
##### Steps to reproduce
| bug,category: core,incomplete | low | Critical |
202,852,591 | opencv | Imgproc.Sobel() called with dx=1, dy=0 wrongly gives exactly same results as dx=0, dy=1 if the OpenCV Manager app is used (Android) | <!--
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).
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 => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->
- OpenCV => 3.2
- Operating System / Platform => Android 6.0.1
- Compiler => Android Studio 2.2.2
##### Detailed description
There is a bug in the Imgproc.Sobel() implementation in OpenCV Manager for Android.
If called with parameters: dx = 1, dy = 0, the function wrongly returns the same result as if it was called with dx = 0, dy = 1.
##### Steps to reproduce
<!-- to add code example fence it with triple backticks and optional file extension
```.cpp
// C++ code example
```
or attach as .txt or .zip file
-->
Compiling this code, and NOT linking the OpenCV library statically, and using the OpenCV Manager App on Android, will result in these two lines giving exactly same results.
```.java
Mat gradX = new Mat();
Mat gradY = new Mat();
Mat gray = new Mat();
Mat gradient = new Mat()
Imgproc.cvtColor( cameraSnapshotFrame, gray, COLOR_BGR2GRAY );
Imgproc.Sobel( gray, gradX, CV_32F, 1, 0, -1, 1.0, 0 );
Imgproc.Sobel( gray, gradY, CV_32F, 0, 1, -1, 1.0, 0 ); // for some reason this gives the same result as the line above
Core.subtract( gradX, gradY, gradient );
Core.convertScaleAbs( gradient, gradient ); // gradient is an empty black image
```
If the usage of OpenCV Manager is dropped, and the library is linked statically within the project, then the issue disappears (the calls produce differing gradients). | wontfix | low | Critical |
202,863,724 | TypeScript | Error in find-all-references for 3 spread types | **TypeScript Version:** nightly (2.2.0-dev.20170124)
**Code**
(based on `tests/cases/fourslash/findAlRefsObjectSpread.ts`)
```ts
interface A1 { a: string };
interface A2 { a?: number };
interface A3 { a?: RegExp };
declare let a1: A1;
declare let a2: A2;
declare let a3: A3;
let a12 = { ...a1, ...a2, ...a3 };
a12.a;
```
**Expected behavior:**
Find-all-refs for `a` in `a123.a` matches the `a` in all of `A1`, `A2`, `A3`.
**Actual behavior:**
It only matches the `a` in `A3`. If one of the spread elements in the definition of `a123` is removed, then it will correctly highlight both remaining spread elements.
CC @sandersn | Bug | low | Critical |
202,864,655 | TypeScript | Diagnostic about "left-hand side of a 'for...in' statement" type is out of date | **TypeScript Version:** 2.1.5
Now that the left side of a 'for...in' statement is apparently allowed to be `keyof` the right side, the diagnostic for when the left side has the wrong type needs to be updated to account for that possibility.
(Aside: Is it intentional that the left side won't be _inferred_ to have the `keyof` type because of the unsoundness described in #12314, but it is allowed to be _explicitly declared_ as that type?)
**Code**
```ts
interface Foo {
x: number;
y: string;
}
function scan(f: Foo) {
let k: number;
for (k in f) { // Error: "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."
console.log(k);
}
let k2: keyof Foo;
for (k2 in f) { // No error
console.log(k2);
}
}
```
**Expected behavior:**
Something like "The index type of the right side of a 'for...in' statement must be assignable to the left side" perhaps, with details on the failure of assignability?
**Actual behavior:**
"The left-hand side of a 'for...in' statement must be of type 'string' or 'any'." | Suggestion,Experience Enhancement | low | Critical |
202,902,890 | angular | RouterModule does not initialize correctly when using UpgradeModule | **I'm submitting a ...**
```
[x] bug report
[ ] feature request
[ ] support request
```
**Current behavior**
`initialRouterNavigation` (from [upgrade.ts](https://github.com/angular/angular/blob/master/modules/%40angular/router/upgrade.ts)) is not called during bootstrap. As a consequence, RouterModule does not navigate to the initial URL, and does not subscribe to location changes caused by `ngRoute`, causing it to not deactivate a route when navigating to a route managed by `ngRoute`.
**Expected behavior**
`initialRouterNavigation` is invoked, the RouterModule navigates to the initial URL, subscribes to location changes caused by `ngRoute` and deactivates the current route when `ngRoute` changes location.
**Minimal reproduction of the problem with instructions**
I have been trying to follow the approach documented at [@angular/router/upgrade.ts](https://github.com/angular/angular/blob/master/modules/%40angular/router/upgrade.ts):
main.ts:
```
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
(<any>window).angular.module("angularschulung").directive('appRoot', downgradeComponent({component: AppComponent}));
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
upgrade.bootstrap(document.body, ['angularschulung'], {strictDi: true});
});
```
app.module.ts:
```
const routes : Routes = [
{path: "ng2/issue/new", component: ReportIssueComponent},
{path: "**", component: EmptyComponent} // for routes managed by ngRoute
]
@NgModule({
declarations: [
AppComponent,
EmptyComponent,
NgViewComponent, // upgraded ng-view for use by AppComponent
ReportIssueComponent,
],
entryComponents: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
RouterModule.forRoot(routes),
UpgradeModule
],
providers: [
RouterUpgradeInitializer
],
})
export class AppModule {
// suppress automatic bootstrapping
ngDoBootstrap() { }
}
```
**Please tell us about your environment:**
```
_ _ _
__ _ _ __ __ _ _ _ | | __ _ _ __ ___ | |(_)
/ _` || '_ \ / _` || | | || | / _` || '__|_____ / __|| || |
| (_| || | | || (_| || |_| || || (_| || | |_____|| (__ | || |
\__,_||_| |_| \__, | \__,_||_| \__,_||_| \___||_||_|
|___/
angular-cli: 1.0.0-beta.25.5
node: 7.4.0
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.4.3
@angular/upgrade: 2.4.3
@angular/compiler-cli: 2.4.3
```
* **Browser:** all (verified in Firefox and Chrome. Bootstrapping issues are probably not browser related)
* **Language:** TypeScript | type: bug/fix,area: core,workaround2: non-obvious,area: upgrade,state: confirmed,P3 | low | Critical |
202,905,188 | vscode | Git Diff Doesn't Show Changes in New Line Characters | The diffeditor doesn't show new line ending changes (eg CRLF vs LF) even with "diffEditor.ignoreTrimWhitespace" set to false. | feature-request,diff-editor | medium | Critical |
202,908,272 | flutter | iOS transition from standard status bar to expanded status bar is janky | In flutter/engine#3357, we corrected the top padding applied to account for double-height status bars on iOS. While this fix ensures the padding is correct, the transition between a standard height status bar and the expanded, double-height status bar is still janky.
To repro:
1. Start up a Flutter app (e.g., the gallery example) in the iOS simulator.
2. Enable Slow Animations (Cmd-T). This makes what's going on a bit more obvious.
3. Toggle the expanded status bar (Cmd-Y).
It looks like what's happening is:
1. We get the status bar resize event before the transition starts, and the engine sees the view as being 20px shorter.
2. With the view still the full display height, we re-layout the view with the new reduced height, which results in a momentary vertical *stretch* of the view contents.
3. iOS animates some kind of interpolation on the view which results in the view appearing to get *squished*.
Looking at individual widgets at the end of the transition, it looks to me like they might all have actually moved 20px down as desired. It would be nice if we could disable the default iOS transition animation and handle this smoothly.
The code in question is in [FlutterViewController::viewDidLayoutSubviews](https://github.com/flutter/engine/blob/master/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm#L344). | platform-ios,framework,engine,a: fidelity,a: quality,P3,team-ios,triaged-ios | low | Major |
203,013,670 | TypeScript | Object Spread should not invoke setter. | Current stage-3 spec requires object spread should define new properties on rest object, not set value on rest object.
Spec:
http://sebmarkbage.github.io/ecmascript-rest-spread/#AbstractOperations-CopyDataProperties
More readable example:
https://github.com/sebmarkbage/ecmascript-rest-spread/blob/master/Issues.md#setters
**TypeScript Version:** nightly
**Code**
```ts
let record = { x: 1 };
let obj = { set x(a) { throw new Error(); }, ...record }; // not error
obj.x; // 1
```
**Expected behavior:**
No runtime error.
**Actual behavior:**
Runtime error.
Note: Babel does not define properties by default either. | Bug,ES Next | low | Critical |
203,109,716 | rust | link-dead-code limitations (bad for code coverage) | Consider a cargo project (`dead`) with this `src/lib.rs` file:
```rust
pub fn fun0() {}
pub fn fun1<T>() {}
pub trait Trait {
fn fun2(&self);
fn fun3(&self) {}
}
impl Trait for () {
fn fun2(&self) {}
}
```
Running
```
cargo clean && RUSTFLAGS='-C link-dead-code' cargo test && cargo sym -C target/debug/dead* | grep dead::
```
outputs
```
0000000000015e60 dead::fun0::he72896c4e971b738
0000000000015e70 <() as dead::Trait>::fun2::h21fa8b5ef4270ce1
0000000000015e90 dead::__test::main::h824aaf01f68ecd0a
```
We can observe that that only `fun0` and `<() as Trait>::fun2` is included (also checked with `nm` and running `kcov`). Not including `fun1` and `Trait::fun2` makes code coverage inflates (using `kcov`).
I can see that `fun1` and `Trait::fun2` is not included because they need to be monomorphised. One partial solution would be to monomorphise the default methods implementations for every type that implements the trait, but I think this could blow the binary size and compilation time.
Would it be possible to add this symbols without monomorphisation? Or maybe creating a monomorphised version that just panics? (Could all generic paramaters be set to `!`?)
| T-compiler,C-feature-request,link-dead-code | low | Critical |
203,114,148 | youtube-dl | Downloading from www.visir.is fails | ## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.24*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.24**
### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [x] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v http://www.visir.is/section/MEDIA99&fileid=CLP51823
$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.visir.is/section/MEDIA99']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2017.01.24
[debug] Python version 2.7.13 - Darwin-16.3.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[generic] MEDIA99: Requesting header
WARNING: Falling back on generic information extractor.
[generic] MEDIA99: Downloading webpage
[generic] MEDIA99: Extracting information
ERROR: Unsupported URL: http://www.visir.is/section/MEDIA99
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1710, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2526, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2515, in _XML
parser.feed(text)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
raise err
ParseError: not well-formed (invalid token): line 33, column 97
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2544, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.visir.is/section/MEDIA99
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: http://www.visir.is/section/MEDIA99&fileid=CLP51823
- Single video: http://www.visir.is/oli-bjorn-thakkar-logreglunni-fyrir-bjorgunina/article/201048158454
---
Icelandic news and media company
| site-support-request | low | Critical |
203,114,620 | kubernetes | Deprecate and remove --record flag from kubectl | Currently `--record` flag seems like a really bad decision made some time ago, and supporting it makes live harder when trying to modify any parts of code (see [this discussion](https://github.com/kubernetes/kubernetes/pull/40260#discussion_r97681489)). I'm proposing to deprecate that flag and drop it entirely in future version.
@liggitt fyi
@kubernetes/sig-cli-feature-requests opinions? | area/kubectl,kind/feature,sig/cli,lifecycle/frozen | high | Critical |
203,201,356 | go | x/crypto/acme/autocert: assume default domain for non-SNI connections? | If you're running a one-domain site, autocert could potentially handle
non-SNI requests (`GetCertificate("")`) by picking a domain from its cached
cert set - most commonly used, most recently used, first used, shortest, some policy.
Today it returns an error, which probably turns into a TLS hangup.
This affects clients with non-SNI browsers, such as IE 8.
See discussion at end of #13523 for more.
/cc @bradfitz @agl @einthusan | NeedsInvestigation | low | Critical |
203,208,380 | go | proposal: reflect/v2: rename StructField.Anonymous to Embedded | in Go-1, we have:
```
$> go doc reflect StructField
type StructField struct {
// Name is the field name.
Name string
// PkgPath is the package path that qualifies a lower case (unexported)
// field name. It is empty for upper case (exported) field names.
// See https://golang.org/ref/spec#Uniqueness_of_identifiers
PkgPath string
Type Type // field type
Tag StructTag // field tag string
Offset uintptr // offset within struct, in bytes
Index []int // index sequence for Type.FieldByIndex
Anonymous bool // is an embedded field
}
A StructField describes a single field in a struct.
```
The `Anonymous` field is a bit ambiguous or at least misleading.
For Go-2, rename it as `Embedded`.
(see: https://golang.org/cl/35732/ for context)
| v2,Proposal | low | Minor |
203,272,135 | go | cmd/gofmt: weird indentation with block comments | Please answer these questions before submitting your issue. Thanks!
#### What did you do?
Block comments are formatted weirdly.
```
/*
* - Remove package from manifest
* - if the package IS NOT being used, solving should do what we want
* - if the package IS being used:
* - Desired behavior: stop and tell the user, unless --force
* - Actual solver behavior: ?
*/
```
#### What did you expect to see?
Comment beginner and ender is aligned correctly even though it requires adding indentation with spaces.
```
/*
* - Remove package from manifest
* - if the package IS NOT being used, solving should do what we want
* - if the package IS being used:
* - Desired behavior: stop and tell the user, unless --force
* - Actual solver behavior: ?
*/
```
#### System details
```
go version devel +6a3c6c0 Sat Jan 14 05:57:07 2017 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jbd"
GORACE=""
GOROOT="/Users/jbd/go"
GOTOOLDIR="/Users/jbd/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lq/qcn67khn4_1b41_g48x3zchh005d21/T/go-build547869116=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
GOROOT/bin/go version: go version devel +6a3c6c0 Sat Jan 14 05:57:07 2017 +0000 darwin/amd64
GOROOT/bin/go tool compile -V: compile version devel +6a3c6c0 Sat Jan 14 05:57:07 2017 +0000 X:framepointer
uname -v: Darwin Kernel Version 15.6.0: Wed Nov 2 20:30:56 PDT 2016; root:xnu-3248.60.11.1.2~2/RELEASE_X86_64
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1212
lldb --version: lldb-360.1.70
```
| NeedsFix | low | Critical |
203,285,709 | go | x/arch/x86/x86asm: GNUSyntax rendors relative pc jump targets wrong | The GNUSyntax uses `.` to denote the address of the next instruction, but that doesn't match GNU as' definition. This makes it impossible to round trip the disassembly (GNU as will not be able to assemble `je .-0x80` into two-byte short jump.)
```
package main
import "golang.org/x/arch/x86/x86asm"
func main() {
text := []byte{0x74, 0x80, 0xeb, 0x80, 0x0f, 0x87, 0x80, 0xff, 0xff, 0xff, 0xe9, 0x80, 0xff, 0xff, 0xff}
for len(text) > 0 {
inst, err := x86asm.Decode(text[:], 64)
if err != nil {
panic(err)
}
println("GNU:", x86asm.GNUSyntax(inst))
println("Go :", x86asm.GoSyntax(inst, 0, nil))
text = text[inst.Len:]
}
}
```
Output:
```
GNU: je .-0x80
Go : JE .-128
GNU: jmp .-0x80
Go : JMP .-128
GNU: ja .-0x80
Go : JA .-128
GNU: jmpq .-0x80
Go : JMP .-128
```
However, in AT&T syntax, `.` means the address of the current instruction, whereas the encoding actually means (conditional) jumps to the address of next instruction - 0x80.
I think to better test the disassembler, we need to do round-trip test (disassemble -> use GNU assembler to assemble the instruction -> disassemble again and verify the two Insts are deep equal.)
I want to fix this issue, but the current behavior is locked down the the current testdata/decode.txt.
Should I change the data?
/cc @rsc | NeedsInvestigation | low | Minor |
203,361,335 | rust | Poor diagnostic: mutable diagnostic cannot be "immutablized" | A friend stumbled on this the other day and I couldn't reason about it for the life of me, even having spend over an year on the language. I asked on rust-beginners but since it's not logged I lost the response. I was told that this is not needed for correctness but it's unfixable due to interactions with Cell and friends.
If that's really the case we should try to spill a better error message.
Example code
```
struct CPU {
pc: usize,
memory: Vec<String>,
}
impl CPU {
fn fetch(&mut self) -> &str {
self.pc += 1;
&self.memory[self.pc]
}
fn execute(&self, _: &str) {
}
fn test(&mut self) {
let instruction = self.fetch();
self.execute(instruction);
}
}
fn main() {}
```
Compiler output
```
rustc 1.14.0 (e8a012324 2016-12-16)
error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
--> <anon>:19:9
|
18 | let instruction = self.fetch();
| ---- mutable borrow occurs here
19 | self.execute(instruction);
| ^^^^ immutable borrow occurs here
20 | }
| - mutable borrow ends here
error: aborting due to previous error
``` | C-enhancement,A-diagnostics,T-compiler,D-papercut | low | Critical |
203,392,915 | youtube-dl | [blivenyc] Site support request | Hello,
Not sure if it is the right and if not please accept my apology. I am trying to download a video from this url : http://www.styleheroine.com/2017/01/11/valentino-pre-fall-live/
When i inspect the source of the page i found this :
```
<video data-html5-video="" poster="//deb5pi665ie8w.cloudfront.net/video-thumbnails/production_1610_1727_poster.caa.jpg" preload="metadata" src="blob:http://embed.blivenyc.com/6c6c4a70-4729-441c-b95f-3306975c1653"><style class="clappr-style">[data-html5-video] {
position: absolute;
height: 100%;
width: 100%;
display: block; }
</style></video>
```
The source of the video is a blob URL. I searched the internet to learn that "A blob: URL does not refer to data the exists on the server, it refers to data that your browser currently has in memory, for the current page."
I tried to download the video by launching in the terminal and the result was :
youtube-dl http://www.styleheroine.com/2017/01/11/valentino-pre-fall-live/
[generic] valentino-pre-fall-live: Requesting header
WARNING: Falling back on generic information extractor.
[generic] valentino-pre-fall-live: Downloading webpage
[generic] valentino-pre-fall-live: Extracting information
ERROR: Unsupported URL: http://www.styleheroine.com/2017/01/11/valentino-pre-fall-live/
My request is not about supporting this URL but rather to learn more about blob url, how to write a piece of code to download blob url videos. As inspecting the network traffic i found that the video is sent into chunks of ts files i guess the code would be : fetch these chunks and stitch them using ffmpeg.
Thanks.
## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like that [x])
- Use *Preview* tab to see how your issue will actually look like
---
### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2017.01.25*. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [ x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.25**
### Before submitting an *issue* make sure you have:
- [x ] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x ] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ x] Question
- [ ] Other
---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your *issue*
---
### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:
Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):
```
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.01.25
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>
```
---
### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc
Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
---
### Description of your *issue*, suggested solution and other information
Explanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.
If work on your *issue* requires account credentials please provide them or explain how one can obtain them.
| site-support-request | low | Critical |
203,441,563 | TypeScript | Intellisense does not work with [P in keyof T] | <!-- BUGS: Please use this template. -->
**TypeScript Version:** 2.1.5
**Code**
```ts
//Operators available for the object fields
export type Operators<T> = {
$elementMatch?: T | Operators<T>;
$in?: T[];
}
//Filter declaration.
export type Filter<T> = {
//field, you can assign a value, or an operator.
[P in keyof T]: Operators<T[P]> | T[P];
}
function query<T>(filter: Filter<T>) { }
//Sample class
class Sample {
foo: string;
bar: number;
}
query<Sample>({
//We want to put on the "foo" operator "$in"
value: {
//Intellisense then no output
}
});
```
**Expected behavior:**
Intellisense should display all available options.
For example:
$elementMatch
$in
**Actual behavior:**
Intellisense does not offer anything.
If the "[P in key of T]" is replaced by "[key: string]", then the Intellisense for operators begins to work, but in this case we lose the test fields. | Suggestion,Experience Enhancement | low | Critical |
203,448,907 | rust | Breakpoint set 2 locations when I set a breakpoint with LLDB | ```
use std::net::{TcpListener};
fn main() {
let listener = TcpListener::bind("127.0.0.1:16624").unwrap();
println!("{:?}", listener);
}
```
When I set a breakpoint at line 5 which has a println macro call.
LLDB set a breakpoint at 2 locations.
```
(lldb) target create "target/debug/lldbtest"
Current executable set to 'target/debug/lldbtest' (x86_64).
(lldb) b 5
Breakpoint 1: 2 locations.
(lldb)
```
it makes a problem with step-over command.
I guess it problem occurs because of {:?} and LLDB.
How can I fix it?
| A-debuginfo,E-needs-test,T-compiler,C-bug | low | Critical |
203,454,418 | go | proposal: sync: support for sharded values | Per-CPU sharded values are a useful and common way to reduce contention on shared write-mostly values. However, this technique is currently difficult or impossible to use in Go (though there have been attempts, such as @jonhoo's https://github.com/jonhoo/drwmutex and @bcmills' https://go-review.googlesource.com/#/c/35676/).
We propose providing an API for creating and working with sharded values. Sharding would be encapsulated in a type, say `sync.Sharded`, that would have `Get() interface{}`, `Put(interface{})`, and `Do(func(interface{}))` methods. `Get` and `Put` would always have to be paired to make `Do` possible. (This is actually the same API that was proposed in https://github.com/golang/go/issues/8281#issuecomment-66096418 and rejected, but perhaps we have a better understanding of the issues now.) This idea came out of off-and-on discussions between at least @rsc, @hyangah, @RLH, @bcmills, @Sajmani, and myself.
This is a counter-proposal to various proposals to expose the current thread/P ID as a way to implement sharded values (#8281, #18590). These have been turned down as exposing low-level implementation details, tying Go to an API that may be inappropriate or difficult to support in the future, being difficult to use correctly (since the ID may change at any time), being difficult to specify, and as being broadly susceptible to abuse.
There are several dimensions to the design of such an API.
`Get` and `Put` can be blocking or non-blocking:
* With non-blocking `Get` and `Put`, `sync.Sharded` behaves like a collection. `Get` returns immediately with the current shard's value or nil if the shard is empty. `Put` stores a value for the current shard if the shard's slot is empty (which may be different from where `Get` was called, but would often be the same). If the shard's slot is not empty, `Put` could either put to some overflow list (in which case the state is potentially unbounded), or run some user-provided combiner (which would bound the state).
* With blocking `Get` and `Put`, `sync.Sharded` behaves more like a lock. `Get` returns *and locks* the current shard's value, blocking further `Get`s from that shard. `Put` sets the shard's value and unlocks it. In this case, `Put` has to know which shard the value came from, so `Get` can either return a `put` function (though that would require allocating a closure) or some opaque value that must be passed to `Put` that internally identifies the shard.
* It would also be possible to combine these behaviors by using an overflow list with a bounded size. Specifying 0 would yield lock-like behavior, while specifying a larger value would give some slack where `Get` and `Put` remain non-blocking without allowing the state to become completely unbounded.
`Do` could be consistent or inconsistent:
* If it's consistent, then it passes the callback a snapshot at a single instant. I can think of two ways to do this: block until all outstanding values are `Put` and also block further `Get`s until the `Do` can complete; or use the "current" value of each shard *even if it's checked out*. The latter requires that shard values be immutable, but it makes `Do` non-blocking.
* If it's inconsistent, then it can wait on each shard independently. This is faster and doesn't affect `Get` and `Put`, but the caller can only get a rough idea of the combined value. This is fine for uses like approximate statistics counters.
It may be that we can't make this decision at the API level and have to provide both forms of `Do`.
I think this is a good base API, but I can think of a few reasonable extensions:
* Provide `Peek` and `CompareAndSwap`. If a user of the API can be written in terms of these, then `Do` would always be able to get an immediate consistent snapshot.
* Provide a `Value` operation that uses the user-provided combiner (if we go down that API route) to get the combined value of the `sync.Sharded`.
| Proposal,Proposal-Hold | high | Critical |
203,487,437 | bitcoin | [Feature] Allow gettxout to return information for spent outputs | Related: https://github.com/bitcoin/bitcoin/issues/4007
I'm assuming this is non-trivial to do, but I wish that gettxout could return data for spent outputs. This would allow me to compute, for example, the height at which any transaction was mined. Currently, this is only possible if the transaction in question has one or more unspent outputs due to the current restriction on gettxout.
| Feature,UTXO Db and Indexes,RPC/REST/ZMQ | low | Major |
203,529,178 | angular | Support arrow functions in template syntax | It's not uncommon for a component to take as input a transformation function or predicate function.
For example, [this PR for `@angular/forms`](https://github.com/angular/angular/pull/13349) adds an `@Input` for a predicate function for determining if two options in a `<select>` are equal. Right now, this looks something like:
```
<select [compareWith]="equals" [(ngModel)]="selectedCountries"> ...
equals = (a: Country, b: Country) => {
return a.id === b.id;
};
```
With this feature, this could be written as
```html
<select [compareWith]="(a, b) => a.id == b.id" [(ngModel)]="selectedCountries"> ...
```
There are other places in Angular Material where we're looking to add similar API, e.g., datepicker with something like:
```html
<md-datepicker [allowedDateFilter]="d => isWeekend(d)">
```
Or autocomplete, where the component needs to take an arbitrary value and know what string to write into the text input:
```html
<md-autocomplete [displayWith]="value => value.getFullName()">
```
This would have to account for:
* Functions with multiple arguments (`(a, b) => a + b`)
* Functions with param names that already exist in the context (`<my-x #x [uniq]="x => x.id">`)
* Functions that return an object literal (`x => ({name: x})`)
* Invoking functions on the context (`x => isActive(x)`
* Passing functions through a pipe (`x => x.activate() | debounce`)
FYI @mhevery for planning | feature,hotlist: components team,area: core,core: binding & interpolation | high | Critical |
203,543,771 | flutter | Xcode build should treat warnings as errors by default | platform-ios,tool,t: xcode,P3,team-ios,triaged-ios | low | Critical |
|
203,595,311 | flutter | driver tests would be easier to debug if the logs had timestamps | cc @yjbanov | a: tests,c: new feature,team,tool,t: flutter driver,P2,team-tool,triaged-tool | low | Critical |
203,676,453 | kubernetes | Consider exposing node labels via downward api | **What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.): downward api node labels
---
**Is this a BUG REPORT or FEATURE REQUEST?** (choose one): Feature request
<!--
If this is a BUG REPORT, please:
- Fill in as much of the template below as you can. If you leave out
information, we can't help you as well.
If this is a FEATURE REQUEST, please:
- Describe *in detail* the feature/behavior/change you'd like to see.
In both cases, be ready for followup questions, and please respond in a timely
manner. If we can't reproduce a bug or think a feature already exists, we
might close your issue. If we're wrong, PLEASE feel free to reopen it and
explain why.
-->
I think the downward API should support exposing the node labels on which the pod it is running. While I understand that the Pod should not be coupled too much with the node it is scheduled to. But I think there are certain scenarios that require the pod to have more information about it's host.
- ***failure-zones*** like rack names on premise or availability zones in cloud
- ***instance-types*** for adapting thread settings per instance type
- other labels like local ssd storage available
This helps applications that are cloud-native to understand where they are located. While this could be achieved using API calls to the node object, I think it should be supported by the downward API. A node object would expose way more information that should not be available to any pod. In OpenShift's default configuration there is access to the Node objects prevented by default.
@mattbates @smarterclayton @bprashanth | sig/scheduling,sig/node,kind/feature,needs-triage,wg/batch | high | Critical |
203,683,623 | youtube-dl | [myspace] Add support for artist pages | - [x] I've **verified** and **I assure** that I'm running youtube-dl **2017.01.25**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your *issue*?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
---
`
youtube-dl --extract-audio --audio-format mp3 -v --batch-file=batch.txt
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--extract-audio', u'--audio-format', u'mp3', u'-v', u'--batch-file=batch.txt']
[debug] Batch file urls: [u'https://myspace.com/redlightgreenlight123/music/songs/', u'https://myspace.com/loveyoumaidthebutcher/', u'https://myspace.com/knifetheglitter/', u'https://myspace.com/myonlyescapex/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.01.25
[debug] Python version 2.7.9 - Linux-4.0.0-040000-generic-x86_64-with-Ubuntu-15.04-vivid
[debug] exe versions: avconv 11.2-6, avprobe 11.2-6, rtmpdump 2.4
[debug] Proxy map: {}
[generic] songs: Requesting header
WARNING: Falling back on generic information extractor.
[generic] songs: Downloading webpage
[generic] songs: Extracting information
ERROR: Unsupported URL: https://myspace.com/redlightgreenlight123/music/songs/
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1711, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2526, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2515, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: mismatched tag: line 71, column 2
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 359, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2551, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://myspace.com/redlightgreenlight123/music/songs/
`
---
Just trying to pull down some songs from local bands that no longer have their music published. This is using the 'new' MySpace, and occurs when using just the profile URL, /music, and /music/songs. Basically, any MySpace URL doesn't seem to work.
I'm using the following URLs:
https://myspace.com/redlightgreenlight123/music/songs/
https://myspace.com/loveyoumaidthebutcher/
https://myspace.com/knifetheglitter/
https://myspace.com/myonlyescapex/
Edit : I do want to point out, it seems that when youtube-dl attempts to detect headers it's not picking up this is Myspace and tries parsing through the URLs through a generic function; I'm assuming how MySpace handles their media is different than most typical providers hence the issue. | request | low | Critical |
203,687,349 | rust | Unhelpful error when providing a borrowed closure to a function expecting a closure taking borrowed arguments | ```rust
fn foo<F>(_compare: F) where F: Fn(&u8) {
}
fn main() {
foo(&|_a| {});
}
```
yields this unhelpful series of errors:
```
error[E0271]: type mismatch resolving `for<'r> <&[closure@<anon>:5:10: 5:17] as std::ops::FnOnce<(&'r u8,)>>::Output == ()`
--> <anon>:5:5
|
5 | foo(&|_a| {});
| ^^^ expected bound lifetime parameter , found concrete lifetime
|
= note: concrete lifetime that was found is lifetime '_#5r
= note: required by `foo`
error[E0281]: type mismatch: the type `[closure@<anon>:5:10: 5:17]` implements the trait `std::ops::Fn<(_,)>`, but the trait `for<'r> std::ops::Fn<(&'r u8,)>` is required (expected concrete lifetime, found bound lifetime parameter )
--> <anon>:5:5
|
5 | foo(&|_a| {});
| ^^^
|
= note: required because of the requirements on the impl of `for<'r> std::ops::Fn<(&'r u8,)>` for `&[closure@<anon>:5:10: 5:17]`
= note: required by `foo`
error: aborting due to 2 previous errors
``` | C-enhancement,A-diagnostics,T-compiler | low | Critical |
203,734,494 | go | cmd/compile: optimize Write([]byte(stringVal)) to not copy the string | It would be nice to optimize `Write([]byte(stringVal))` to not copy the string value. This is normally safe because most `Write` methods do not modify the byte slice passed in. In fact, the documentation for `io.Writer` requires that the `Write` method not modify the byte slice, although this is not (and can not be) enforced.
Here is how we can do this.
For each function and method that takes a parameter of slice type, record whether the slice's underlying array is modified. This will require generating annotations similar to the ones we generate for escape analysis. Assembly functions will require an annotation similar to //go:noescape. (Naturally, a slice that escapes must be treated as modified.)
For each call of the form `F([]byte(stringVal))`, where we know that `F` does not modify the slice, we can pass the string value directly. This would do essentially the same thing as the existing optimization for map lookups in which a `[]byte` is converted to a `string`. This fixes direct calls, but of course the interesting cases all involve calls to methods of values of type `io.Writer`.
For any type with a `Write` method that does modify the slice, generate at compile time an additional `Write·2` method that makes a copy of the slice and then calls the `Write` method. The method is named `Write·2` to ensure that it does not conflict with any user written method.
When converting any type to `io.Writer` (or any interface type that inherits from `io.Writer`), check for the presence of a `Write·2` method. If that method exists, add it to the interface as an additional entry in the itab.
For any call to an interface method `Write([]byte(stringVal))`, modify the call to call a special function `doWrite` in the io package, without copying the string. `doWrite` will check for a `Write·2` method, and call it if it exists; that will cause the string to be copied as happens today. If the `Write·2` method does not exist, which will be the normal case, `doWrite` will call the `Write` method as usual, knowing that the `Write` method does not modify the slice.
Generalizing this to other methods is left as an exercise for the reader. | Performance,compiler/runtime | medium | Major |
203,751,994 | vscode | Customizing the rendering of matching brackets | <!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode -->
- VSCode Version: 1.8.1
- OS Version: Windows 10
Hi there
Is it possible to customize the cursor for the matching brackets/parentheses ? e.g. change to `underline` instead of `block`


> it looks unclear sometime
Thanks all | feature-request,editor-bracket-matching,editor-theming | high | Critical |
203,757,268 | rust | Extremely slow optimizer performance when including large array of strings | Consider the following test program:
```rust
fn main() {
let words = include!("num_array.rs");
let mut l = 0;
for word in words.into_iter() {
l += word.len();
}
println!("{}", l);
}
```
`num_array.rs` contains an array of 250k strings:
```
$ (echo '['; seq 1 250000 | sed 's/.*/"&",/' ; echo ']') > num_array.rs
$ head -n 5 num_array.rs
[
"1",
"2",
"3",
"4",
$ tail -n 5 num_array.rs
"249997",
"249998",
"249999",
"250000",
]
```
Compiling this in debug mode took about 45 seconds; long, and potentially a good test case for compiler profiling, but not completely ridiculous.
Compiling this in release mode showed no signs of finishing after 45 minutes. stracing rustc showed two threads, one blocked in a futex and the other repeatedly allocating and freeing a memory buffer:
```
mmap(0x7fb665a00000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb637400000
munmap(0x7fb637400000, 2097152) = 0
mmap(0x7fb665a00000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb637400000
munmap(0x7fb637400000, 2097152) = 0
madvise(0x7fb66531a000, 659456, MADV_DONTNEED) = 0
madvise(0x7fb6653da000, 139264, MADV_DONTNEED) = 0
madvise(0x7fb66540c000, 1576960, MADV_DONTNEED) = 0
madvise(0x7fb665a0c000, 2043904, MADV_DONTNEED) = 0
madvise(0x7fb665600000, 4194304, MADV_DONTNEED) = 0
madvise(0x7fb63e600000, 12582912, MADV_DONTNEED) = 0
madvise(0x7fb661000000, 25165824, MADV_DONTNEED) = 0
madvise(0x7fb66531a000, 659456, MADV_DONTNEED) = 0
madvise(0x7fb6653da000, 139264, MADV_DONTNEED) = 0
madvise(0x7fb66540c000, 1576960, MADV_DONTNEED) = 0
madvise(0x7fb665a0c000, 2043904, MADV_DONTNEED) = 0
madvise(0x7fb667a00000, 10485760, MADV_DONTNEED) = 0
madvise(0x7fb646000000, 100663296, MADV_DONTNEED) = 0
mmap(0x7fb665a00000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb637400000
munmap(0x7fb637400000, 2097152) = 0
mmap(0x7fb665a00000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb637400000
munmap(0x7fb637400000, 2097152) = 0
madvise(0x7fb66531a000, 659456, MADV_DONTNEED) = 0
madvise(0x7fb6653da000, 139264, MADV_DONTNEED) = 0
madvise(0x7fb66540c000, 1576960, MADV_DONTNEED) = 0
madvise(0x7fb665a0c000, 2043904, MADV_DONTNEED) = 0
madvise(0x7fb665600000, 4194304, MADV_DONTNEED) = 0
madvise(0x7fb63e600000, 12582912, MADV_DONTNEED) = 0
madvise(0x7fb661000000, 25165824, MADV_DONTNEED) = 0
madvise(0x7fb66531a000, 659456, MADV_DONTNEED) = 0
madvise(0x7fb6653da000, 139264, MADV_DONTNEED) = 0
madvise(0x7fb66540c000, 1576960, MADV_DONTNEED) = 0
madvise(0x7fb665a0c000, 2043904, MADV_DONTNEED) = 0
madvise(0x7fb667a00000, 10485760, MADV_DONTNEED) = 0
madvise(0x7fb646000000, 100663296, MADV_DONTNEED) = 0
```
By way of comparison, an analogous C program compiled with GCC takes 4.6s to compile without optimization, or 5.6s with optimization. Python parses and runs an analogous program in 1.2s. So, 45s seems excessive for an unoptimized compile, and 45m+ seems wildly excessive for an optimized compile.
Complete test case (ready to `cargo run` or `cargo run --release`): [testcase.tar.gz](https://github.com/rust-lang/rust/files/736409/testcase.tar.gz) | A-LLVM,C-enhancement,A-codegen,I-compiletime,T-compiler,C-optimization | low | Critical |
203,762,470 | rust | Make sure all file extensions for wasm are correct | Per [this comment](https://github.com/rust-lang/rust/issues/39171#issuecomment-275797843), we only emit .js for bin targets, it's not clear what we emit for dylib, cdylib, and staticlib, but it seems likely they are incorrect.
I think .a is probably right for staticlib that is going to be run through emcc, but maybe dylibs should be .js. | O-wasm,C-bug | low | Minor |
203,762,863 | opencv | OpenCV Crashes when reopening camera on Mac OSX Sierra and displaying | Reposting from [SO](http://stackoverflow.com/questions/40443825/opencv-crashes-when-reopening-camera-on-mac-osx-sierra-and-displaying):
When I reopen a webcam in OpenCV on Mac OSX Sierra, and I display images from it, I get NSExceptions.
This is the test code I'm working with to try to figure out the error mode.
```
import cv2
cam = cv2.VideoCapture(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
```
The error I'm getting is:
```
2016-11-05 18:15:07.075 Python[1082:24157] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7fca4ac3a6f0 of class AVCaptureDALDevice was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x7fca4ac42f80> (
<NSKeyValueObservance 0x7fca4ae6df50: Observer: 0x7fca4ae6b410, Key path: open, Options: <New: NO, Old: NO, Prior: NO> Context: 0x7fffc9c99570, Property: 0x7fca4ac3fe30>
)'
*** First throw call stack:
(
0 CoreFoundation 0x00007fffafde96fb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffc45f0a2a objc_exception_throw + 48
2 CoreFoundation 0x00007fffafe669a5 +[NSException raise:format:] + 197
3 Foundation 0x00007fffb17d1d84 NSKVODeallocate + 293
4 AVFoundation 0x00007fffac67dabe -[AVCaptureDeviceInput _setDevice:exceptionReason:] + 304
5 AVFoundation 0x00007fffac5ae914 -[AVCaptureDeviceInput dealloc] + 39
6 CoreFoundation 0x00007fffafe53a7b -[__NSSingleObjectArrayI dealloc] + 43
7 libobjc.A.dylib 0x00007fffc45e5e60 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 808
8 CoreFoundation 0x00007fffafd20d66 _CFAutoreleasePoolPop + 22
9 CoreFoundation 0x00007fffafd612c5 __CFRunLoopRun + 2229
10 CoreFoundation 0x00007fffafd607b4 CFRunLoopRunSpecific + 420
11 HIToolbox 0x00007fffaf2fcfbc RunCurrentEventLoopInMode + 240
12 HIToolbox 0x00007fffaf2fcdf1 ReceiveNextEventCommon + 432
13 HIToolbox 0x00007fffaf2fcc26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
14 AppKit 0x00007fffad9e6b79 _DPSNextEvent + 1093
15 AppKit 0x00007fffae0fc1c3 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
16 libopencv_highgui.2.4.dylib 0x000000010d79c0a6 cvWaitKey + 402
17 cv2.so 0x000000010cfa3ce1 _ZL16pyopencv_waitKeyP7_objectS0_S0_ + 103
18 Python 0x000000010cc001ab PyEval_EvalFrameEx + 27003
19 Python 0x000000010cbf963a PyEval_EvalCodeEx + 1617
20 Python 0x000000010cbf8fe3 PyEval_EvalCode + 48
21 Python 0x000000010cc1cc04 run_mod + 53
22 Python 0x000000010cc1cca7 PyRun_FileExFlags + 133
23 Python 0x000000010cc1c7f8 PyRun_SimpleFileExFlags + 702
24 Python 0x000000010cc2deba Py_Main + 3094
25 libdyld.dylib 0x00007fffc4ecd255 start + 1
26 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
```
I get this error consistently when I run it from iTerm or terminal. But I get it inconsistently from xterm.
I also get the same error when using cam.release() prior to all calls to cam.open(0).
```
import cv2
cam = cv2.VideoCapture(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.release()
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.release()
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.release()
cam.open(0)
ret, im = cam.read()
cv2.imshow('im', im)
cv2.waitKey(1)
cam.release()
``` | bug,priority: low,category: videoio(camera),platform: ios/osx | low | Critical |
203,814,898 | go | encoding/asn1: cannot marshal into a GeneralString | ### What version of Go are you using (`go version`)?
go version go1.7.5 linux/amd64
### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build372878858=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1
### The issue
Using "encoding/asn1" it is not possible to marshal into a an asn1 general string. It is possible to unmarshal from one but it is only possible to marshal into one of ia5, printable or utf8.
[https://play.golang.org/p/cwv9ZGV5K5](https://play.golang.org/p/cwv9ZGV5K5)
### Suggestion
There should be an struct tag such as "generalstring" that works in the same way as the "ia5" tag but sets the asn1 tag value of 27.
| NeedsDecision | low | Critical |
203,818,896 | opencv | CascadeClassifier exception on JDK8, macOS Sierra | ##### System information (version)
- OpenCV => 3.1
- Operating System / Platform => macOS Sierra 10.12.3 (16D32)
- Compiler => JDK8, bindings from https://github.com/openpnp/opencv/issues/17
##### Detailed description
"Unrecognized or unsupported array type in function cvGetMat":
```
Caused by: CvException [org.opencv.core.CvException: cv::Exception: /Users/jason/Projects/openpnp/opencv/opencv/opencv-3.2.0/modules/core/src/array.cpp:2501: error: (-206) Unrecognized or unsupported array type in function cvGetMat
]
at org.opencv.objdetect.CascadeClassifier.detectMultiScale_1(Native Method)
at org.opencv.objdetect.CascadeClassifier.detectMultiScale(CascadeClassifier.java:159)
```
Source (Kotlin):
```
val faceGrayMat = gray.submat(faceRect)
var drects = MatOfRect()
eyeLeftCascade.detectMultiScale(faceGrayMat, drects)
```
What is strange is that that code has been called thousands of times for the images of the same format, but the exception occurs only from time to time. | incomplete | low | Critical |
203,823,123 | go | encoding/asn1: cannot marshal into slice of strings and pass stringtype parameter tags to members | ### What version of Go are you using (`go version`)?
go version go1.7.5 linux/amd64
### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build372878858=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1
### Issue
I need to be able to marshal into a slice of strings and to be able to specify the string types for the elements in this slice (is5, generalstring, etc)
https://play.golang.org/p/l5id74lMoI
Issue seems to be two fold:
1) Validation does not allow it and you get the error: explicit string type given to non-string member
2) Strings would all be marshaled as the default type - PrintableString
### Suggestion
When struct tags for string types are defined against a slice this should be accepted if the slice is of strings
The struct tag for the string type should be passed down to the marshaling of the members of the slice
| NeedsDecision | low | Critical |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.