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
416,359,159
pytorch
Caffe2 C++ script for classification/object_detection with CMakeLists.txt
## ❓ Questions and Help I was looking for caffe2 c++ script that supports latest version. But I couldn't find any good resource. Can anyone provide caffe2 c++ example script for classification. Thanks.
caffe2
low
Minor
416,362,430
flutter
Android project build error with v2 embedding when using Java 1.7 libraries
I use the flutter as a module in my android project, but there is a issue when I update my flutter sdk,it is: Invoke-customs are only supported starting with Android O (--min-api 26) Message{kind=ERROR, text=Invoke-customs are only supported starting with Android O (--min-api 26), sources=[Unknown source file], tool name=Optional.of(D8)} however I do nothing,how can I fix this problem,please。
platform-android,engine,a: existing-apps,P2,team-android,triaged-android
low
Critical
416,379,542
rust
Unclear unsoundness warning when reborrowing data using late-bound lifetimes across multiple trait definitions
This is a cross post from the [users forum](https://users.rust-lang.org/t/unclear-borrow-checker-warning-about-unsound-late-bound-lifetimes/25688) where I was redirected to here: While working on a project I hit a brick wall when designing a more complicated way to reborrow an object so that a different interface is exposed. This is the definition of the types used (stripped down): ```rust trait WorkspaceLog { fn get(&self) -> usize; } struct TheLog<'a>(&'a FSWorkspaceController<'a>); impl<'a> WorkspaceLog for TheLog<'a> { fn get(&self) -> usize { ((self.0).0).0 } } trait WorkspaceController<'a> { type Log: WorkspaceLog+'a; fn get_log(&'a self) -> Self::Log; fn set_log(&mut self, x: usize); } struct FilesystemOverlay(usize); struct FSWorkspaceController<'a>(&'a mut FilesystemOverlay); impl<'a, 'b> WorkspaceController<'b> for FSWorkspaceController<'a> { type Log = TheLog<'b>; fn get_log(&'b self) -> Self::Log { TheLog(&*self) } fn set_log(&mut self, x: usize) { (self.0).0 = x; } } trait AsWorkspaceController<'a, 'b> { type Controller: WorkspaceController<'b>+'a; fn get_controller(&'a mut self) -> Self::Controller; } impl<'a, 'b> AsWorkspaceController<'a, 'b> for FilesystemOverlay { type Controller = FSWorkspaceController<'a>; fn get_controller(&'a mut self) -> FSWorkspaceController<'a> { FSWorkspaceController(self) } } ``` Now, if I directly use the type FilesystemOverlay everything is just fine: ```rust fn init1(control_dir: &mut FilesystemOverlay) -> usize { let controller = control_dir.get_controller(); let log = controller.get_log(); log.get() } ``` However, if I try to generalize control_dir, I get a problem: ```rust fn init2<O>(control_dir: &mut O) -> usize where for<'a, 'b> O: AsWorkspaceController<'a, 'b> { let controller = control_dir.get_controller(); let log = controller.get_log(); log.get() } ``` Although this compiles, there is a warning which might eventually be turned into an error: ```none warning[E0597]: `controller` does not live long enough --> src/main.rs:59:15 | 59 | let log = controller.get_log(); | ^^^^^^^^^^ borrowed value does not live long enough 60 | log.get() 61 | } | - | | | `controller` dropped here while still borrowed | borrow might be used here, when `controller` is dropped and runs the destructor for type `<O as AsWorkspaceController<'_, '_>>::Controller` | = warning: This error has been downgraded to a warning for backwards compatibility with previous releases. It represents potential unsoundness in your code. This warning will become a hard error in the future. ``` It is unclear to me why the compiler thinks that controller is still borrowed and the warning doesn't carry any information which object controller is borrowed to. In addition I wonder why the compiler thinks it's unsound: As `log` was constructed after `controller` and may be dropped before since the lifetime of `log` is late-bound, and the compiler is free to choose a shorter lifetime. [This](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=deb828422637e1f9cbca4fa573425ef0) is the full code on the playground.
A-diagnostics,A-destructors,A-borrow-checker,T-compiler,D-confusing
low
Critical
416,383,977
pytorch
[Caffe2] android app crashed while linked with libcaffe2_detectron_ops.so
## 🐛 Bug I built caffe2 libraries form source codes by scirpt/build_android.sh. My android project with c++ native libraries can successfully run when linked with libcaffe2.a, libprotobuf.a, and any other generated libraries except libcaffe2_detectron_ops.so. When the project linked with libcaffe2_detectron_ops.so, it can be successfully built and started, but it crashed while android Opening NativeLibrary. Caffe2 is now in rapid development and APIs are changing frequently, but there is almost no useful up-to-date example or user guide for reference. So I have a question, can we use libcaffe2_detectron_ops.so in android till now? Appreciate your help. here are the call stack traces: > syscall 0x00007be1a78a8b98 abort 0x00007be1a78ab776 ifree 0x00007be1a793457d je_free 0x00007be1a7934681 __gnu_cxx::new_allocator<char>::deallocate(char*, unsigned long) 0x00007be10e7deee2 std::string::_Rep::_M_destroy(std::allocator<char> const&) 0x00007be10e7deedd std::string::_Rep::_M_dispose(std::allocator<char> const&) 0x00007be10e7deedd std::string::assign(std::string const&) 0x00007be10e7deec0 std::string::operator=(std::string const&) basic_string.h:555 c10::Registry<std::string, std::unique_ptr<caffe2::OperatorBase, std::default_delete<caffe2::OperatorBase> >, caffe2::OperatorDef const&, caffe2::Workspace*>::Register(std::string const&, std::function<std::unique_ptr<caffe2::OperatorBase, std::default_delete<caffe2::OperatorBase> > (caffe2::OperatorDef const&, caffe2::Workspace*)>, std::string const&, c10::RegistryPriority) Registry.h:106 c10::Registerer<std::string, std::unique_ptr<caffe2::OperatorBase, std::default_delete<caffe2::OperatorBase> >, caffe2::OperatorDef const&, caffe2::Workspace*>::Registerer(std::string const&, c10::Registry<std::string, std::unique_ptr<caffe2::OperatorBase, std::default_delete<caffe2::OperatorBase> >, caffe2::OperatorDef const&, caffe2::Workspace*>*, std::function<std::unique_ptr<caffe2::OperatorBase, std::default_delete<caffe2::OperatorBase> > (caffe2::OperatorDef const&, caffe2::Workspace*)>, std::string const&) Registry.h:168 __cxx_global_var_init.1 batch_permutation_op.cc:31 _GLOBAL__sub_I_batch_permutation_op.cc batch_permutation_op.cc:0 __dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5_ 0x00007be1aa5f3ad0 __dl__ZN6soinfo17call_constructorsEv 0x00007be1aa5f3d0d __dl__ZN6soinfo17call_constructorsEv 0x00007be1aa5f3bf9 __dl__Z9do_dlopenPKciPK17android_dlextinfoPKv 0x00007be1aa5dd84c __dl___loader_android_dlopen_ext 0x00007be1aa5d8f8a android::OpenNativeLibrary(_JNIEnv*, int, char const*, _jobject*, _jstring*, bool*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) 0x00007be1a7991fa6 art::JavaVMExt::LoadNativeLibrary(_JNIEnv*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, _jobject*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) 0x00007be124a7a24c JVM_NativeLoad 0x00007be11f7a2f3a getSystemTimeZoneID 0x0000000071df9d21 art_quick_invoke_static_stub 0x00007be124d1ce17 art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*) 0x00007be124828604 art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*) 0x00007be1249fab92 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c6e bool art::interpreter::DoInvoke<(art::InvokeType)0, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a331a3 void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1ccef ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)0, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a331a3 void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1ccef ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e artQuickToInterpreterBridge 0x00007be124cd7548 art_quick_to_interpreter_bridge 0x00007be124d271ed art_quick_invoke_static_stub 0x00007be124d1ce17 art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*) 0x00007be124828604 art::ClassLinker::InitializeClass(art::Thread*, art::Handle<art::mirror::Class>, bool, bool) 0x00007be1248837d7 art::ClassLinker::EnsureInitialized(art::Thread*, art::Handle<art::mirror::Class>, bool, bool) 0x00007be12486cb30 art::Class_newInstance(_JNIEnv*, _jobject*) 0x00007be124b75aae getExceptionTypes 0x0000000071df927e art_quick_invoke_stub 0x00007be124d1cab5 art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*) 0x00007be1248285f3 art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*) 0x00007be1249fab92 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c6e bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)3, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a30e4e void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1c43e ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)1, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a31c41 void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d745 ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 bool art::interpreter::DoInvoke<(art::InvokeType)2, false, false>(art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be124a303ef void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*) 0x00007be124a1d00f ExecuteSwitchImplAsm 0x00007be124d28f26 art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249cae8e art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*) 0x00007be1249d0a4f bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*) 0x00007be1249f3c55 MterpInvokeStatic 0x00007be124cea16e ExecuteMterpImpl 0x00007be124d0e11a art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2620325170) 0x00007be1249caee2 artQuickToInterpreterBridge 0x00007be124cd7548 art_quick_to_interpreter_bridge 0x00007be124d271ed <unknown> 0x00007be124d274e0
caffe2
low
Critical
416,392,726
godot
Previous built-in scripts are not restored on project opening
<!-- Please search existing issues for potential duplicates before filing yours: https://github.com/godotengine/godot/issues?q=is%3Aissue --> **Godot version:** b84b015 **Issue description:** If you have "Restore Scripts On Load" enabled, it will not restore built-in scripts when reopening a project.
bug,topic:editor,confirmed
low
Minor
416,409,458
flutter
Card should apply surface color for background from material guideline
I am building a flutter app with google material. But I am unable to apply surface color to cards and sheets. Material should apply surface color to cards, bottom sheets and menu as per material.io guidelines.
framework,f: material design,c: proposal,P3,team-design,triaged-design
low
Minor
416,427,896
godot
List all resources (pre)loaded in script
<!-- Please search existing issues for potential duplicates before filing yours: https://github.com/godotengine/godot/issues?q=is%3Aissue --> **Godot version:** 3.1 beta 10 **Issue description:** So, I once randomly thought that it would be nice if we somehow could get a list of resources "used" by script. Right now only scene resource references are kept anywhere, so Godot warns you if e.g. removing a resource will break any dependencies. This is untrue for scripts, even though they might have some dependencies created by their (pre)loads. My initial idea was as much as even storing where the resource is referenced in script, so e.g. moving a resource could automatically update the script. This is however unecessary if #15673 was implemented. Anyways, keeping track of script-used resources would be useful e.g. when trying to determine where something is used and it's not referenced in scene. Or when having a script doing lots of (pre)loading so you want a list of resources, like you can get from a node. The 2 problems I see are that it works only for fixed load paths and that scanning scripts might be costly, as they are less organized than scene dependencies.
enhancement,topic:core,topic:gdscript
low
Minor
416,430,888
godot
ImmediateGeometry with tool script is not clickable in 3D Editor
**Godot version:** 3.0.6 and master as of [4bd9135eee7c805ee6aa5a0bbab94f3024bd8d06](https://github.com/godotengine/godot/commit/4bd9135eee7c805ee6aa5a0bbab94f3024bd8d06) **OS/device including version:** Mac & Windows **Issue description:** When you have a tool script on an ImmediateGeometry that generates geometry, you can see the geometry in the editor but the node is not pickable in the 3D viewport. **Minimal reproduction project:** [Here](https://github.com/themindoverall/godot-immediate-geometry) is a project that demonstrates this behavior.
bug,topic:editor,confirmed
low
Minor
416,450,013
rust
`std::Pin` documentation missing example
I think the [`std::Pin`] documentation is missing an example. Specifically, the [Intrusive linked list] example. The heading contains references to the example and the the heading [Drop guarantee] contains the following line: > If your type uses pinning (such as the two examples above), This leads me to believe that there is a missing example in the documentation. [`std::Pin`]: https://doc.rust-lang.org/std/pin/index.html [Intrusive linked list]: https://doc.rust-lang.org/std/pin/index.html#example-intrusive-doubly-linked-list [Drop guarantee]: https://doc.rust-lang.org/std/pin/index.html#drop-guarantee
C-enhancement,T-libs-api,A-docs
low
Minor
416,453,274
flutter
Improve the Stack docs, sayign how to make the Stack take the whole screen
I just spend an hour trying to figure out why my `Image` wasn't taking the whole screen, after all it was inside a `Container`. It turns out the `Container` was inside a `Stack` and as the `Stack` docs say, the `Stack` sizes itself according to the sizes of it's non-positioned children. So the question now was "ok, then how do I make the `Stack` size itself as the whole screeen?". I couldn't find any hints on the `Stack` docs, the docs barely speaks about sizes, just about positions. The `Positioned` docs also don't say anything about sizes, just positions. The answer (that I found after reading an article on Medium about `Stack`) was to use `Positioned.fill`, so it will: > Creates a Positioned object with [left], [top], [right], and [bottom] set to 0.0 unless a value for them is passed. Which has the side effect of stretching the child to take the whole screen, but this isn't written on the docs, it's just something you have to conclude by yourself. So my recommendation is to have a hint on the `Stack` docs saying: > If you want some children of the Stack to take the whole space available, wrap it into a Positioned.fill. Or something like it. I think this is a very common use case scenario and a simple hint like this one can help people save a lot of time.
framework,d: api docs,P2,team-framework,triaged-framework
low
Minor
416,455,241
create-react-app
Stop putting react-app-env.d.ts in src
(This pertains to CRA w/ the `--typescript flag`.) Putting a loose d.ts file at the top level of src adds clutter and breaks the convention of putting all d.ts files together in a folder, such as "types". Suggestions to remedy this (in order of preference): 1. Honor the new location of react-app-env.d.ts if we move it. 2. Allow us to configure where this file goes. 3. Place the file in src/types. --------- EDIT: @nhooyr Given its confusing, you could also add a comment to the generated file explaining why its there. @bugzpodder This file was created to include create-react-app specific types. Removing it will cause errors like: ``` TypeScript error in ~/src/App.tsx(2,18): Cannot find module './logo.svg'. TS2307 1 | import React from 'react'; > 2 | import logo from './logo.svg'; | ^ 3 | import './App.css'; 4 | 5 | const App: React.FC = () => { ``` This was created from #5611 if you want more details.
issue: proposal,issue: typescript
high
Critical
416,470,886
go
gccgo: Go compiled with gcc 8.3 does not start on powerpc-linux-musl
### What version of Go are you using (`go version`)? <pre> $ go version fatal error: runtime: cannot reserve arena virtual address space runtime: panic before malloc heap initialized` </pre> ### Does this issue reproduce with the latest release? Yes, this is 8.3.0: <pre> gcc (Adelie 8.3.0) 8.3.0 </pre> ### What operating system and processor architecture are you using (`go env`)? Adélie Linux 1.0-BETA3, on 32-bit PowerPC (musl libc, big endian) ### What did you do? Built GCC 8.3 with --enable-languages=c,c++,fortran,go. ### What did you expect to see? A working Go runtime. ### What did you see instead? <pre> awilcox on gwyn [pts/3 Sun 3 2:32] ~: go version fatal error: runtime: cannot reserve arena virtual address space runtime: panic before malloc heap initialized runtime stack: :0 runtime.throw :0 runtime.schedinit :0 :0 libc_start_main_stage2 src/env/__libc_start_main.c:94 </pre> ### Notes GCC 6.4 does not crash with that error, instead crashing further in: ``` fatal error: unexpected signal during runtime execution [signal 0xb code=0x2 addr=0x20000426] goroutine 16 [running]: :0 :0 :0 :0 :0 :0 :0 :0 :0 __go_init_main /home/awilcox/hello.go:1 :0 :0 :0 created by main /usr/src/packages/system/gcc/src/gcc-6.4.0/libgo/runtime/go-main.c:54 ```
NeedsInvestigation
low
Critical
416,491,390
neovim
Windows: get/set multibyte environment variable names
<!-- Before reporting: search existing issues and check the FAQ. --> - `nvim --version`: NVIM v0.4.0-246-g1694f445e - Vim (version: ) behaves differently? - In Windows vim, if I complement the variable name, I can display that value with `echo`. - It is the same as neovim in Linux vim. - In Windows and Linux, vim can not set variables with `let` same as neovim. - Operating system/version: Microsoft Windows [Version 6.1.7601] - Terminal name/version: cmd.exe - `$TERM`: win32con ### Steps to reproduce using `nvim -u NORC` ``` chcp 932 set aあ=abc nvim -u NORC :echo $aあ or :let $iい='abc' ``` ### Actual behaviour It is displayed as follows. ``` E15: Invalid expression: <81><82> or E15: Invalid expression: $iい='abc' E488: Trailing characters ``` ### Expected behaviour I understand that this will be the specification of vim script. I also understand that few people use multibyte for environment variable names. I do not know if we need to fix it to be honest. However, it is preferable to be able to deal with it unless it is prohibited to include multibyte in environment variable names.
platform:windows,vimscript,environment,encoding,system
low
Major
416,516,962
pytorch
Not depend on third_party submodules, but self-built libraries?
Hi: is it possible that pytorch rely on my self-built or system libraries, instead of third_party submodules? ``` ➜ pytorch git:(master) git submodule update --init --recursive Submodule 'third_party/ComputeLibrary' (https://github.com/ARM-software/ComputeLibrary.git) registered for path 'third_party/ComputeLibrary' Submodule 'third_party/NNPACK_deps/FP16' (https://github.com/Maratyszcza/FP16.git) registered for path 'third_party/FP16' Submodule 'third_party/NNPACK_deps/FXdiv' (https://github.com/Maratyszcza/FXdiv.git) registered for path 'third_party/FXdiv' Submodule 'third_party/NNPACK' (https://github.com/Maratyszcza/NNPACK.git) registered for path 'third_party/NNPACK' Submodule 'third_party/QNNPACK' (https://github.com/pytorch/QNNPACK) registered for path 'third_party/QNNPACK' Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third_party/benchmark' Submodule 'third-party/cpuinfo' (https://github.com/Maratyszcza/cpuinfo.git) registered for path 'third_party/cpuinfo' Submodule 'third_party/cub' (https://github.com/NVlabs/cub.git) registered for path 'third_party/cub' Submodule 'third_party/eigen' (https://github.com/eigenteam/eigen-git-mirror.git) registered for path 'third_party/eigen' Submodule 'third_party/fbgemm' (https://github.com/pytorch/fbgemm) registered for path 'third_party/fbgemm' Submodule 'third_party/foxi' (https://github.com/houseroad/foxi.git) registered for path 'third_party/foxi' Submodule 'third_party/gemmlowp/gemmlowp' (https://github.com/google/gemmlowp.git) registered for path 'third_party/gemmlowp/gemmlowp' Submodule 'third_party/gloo' (https://github.com/facebookincubator/gloo) registered for path 'third_party/gloo' Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third_party/googletest' Submodule 'third_party/ideep' (https://github.com/intel/ideep) registered for path 'third_party/ideep' Submodule 'third_party/ios-cmake' (https://github.com/Yangqing/ios-cmake.git) registered for path 'third_party/ios-cmake' Submodule 'third_party/nccl/nccl' (https://github.com/NVIDIA/nccl) registered for path 'third_party/nccl/nccl' Submodule 'third_party/neon2sse' (https://github.com/intel/ARM_NEON_2_x86_SSE.git) registered for path 'third_party/neon2sse' Submodule 'third_party/onnx' (https://github.com/onnx/onnx.git) registered for path 'third_party/onnx' Submodule 'third_party/onnx-tensorrt' (https://github.com/bddppq/onnx-tensorrt) registered for path 'third_party/onnx-tensorrt' Submodule 'third_party/protobuf' (https://github.com/google/protobuf.git) registered for path 'third_party/protobuf' Submodule 'third_party/NNPACK_deps/psimd' (https://github.com/Maratyszcza/psimd.git) registered for path 'third_party/psimd' Submodule 'third_party/NNPACK_deps/pthreadpool' (https://github.com/Maratyszcza/pthreadpool.git) registered for path 'third_party/pthreadpool' Submodule 'third_party/pybind11' (https://github.com/pybind/pybind11.git) registered for path 'third_party/pybind11' Submodule 'third_party/python-enum' (https://github.com/PeachPy/enum34.git) registered for path 'third_party/python-enum' Submodule 'third_party/python-peachpy' (https://github.com/Maratyszcza/PeachPy.git) registered for path 'third_party/python-peachpy' Submodule 'third_party/python-six' (https://github.com/benjaminp/six.git) registered for path 'third_party/python-six' Submodule 'third_party/sleef' (https://github.com/zdevito/sleef) registered for path 'third_party/sleef' Submodule 'third_party/zstd' (https://github.com/facebook/zstd.git) registered for path 'third_party/zstd' ``` Any suggestions? Pei cc @malfet @seemethere
module: build,triaged
low
Minor
416,532,828
godot
Canvas Layer Environment not Showing in Spatial Editor Viewport
**Godot version:** 3.1.0 beta9 **Issue description:** A canvas layer is not drawn as the background layer in the SpatialEditor, even when using WorldEnvironment with BGMode=canvas, and "Use Environment" is true for the current viewport. The same canvas layer is shown in the running game just fine. **Use case:** I need the editor to show the canvas environment because I am working on a game with pre-rendered 3d backgrounds (examples: Pillars of Eternity, Temple of Elemental Evil), but normal 3d scenes. In order to align any node in the editor with the pre-rendered background properly, I need to actually see the background in the editor (adjusting the camera to have the same transform as used when rendering the background is a different issue). **Steps to reproduce:** - Create new Scene - Add WorldEnvironment - Create Environment for WorldEnvironment, set Background Mode to Canvas (and increase max. layer) - Add a canvas layer to the WorldEnvironment - Add some 2D sprite to that layer - Running the scene will show that 2D sprite rendered behind the 3D scene (good!) - But the editor will not show it (even when view environment is enabled) **Minimal reproduction project:** [CanvasDemo.zip](https://github.com/godotengine/godot/files/2923315/CanvasDemo.zip)
bug,topic:editor
low
Minor
416,545,435
youtube-dl
Kaltura download error
## 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 this: `[x]`) - Use the *Preview* tab to see what your issue will actually look like --- ### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2019.03.01*. 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 **2019.03.01** ### Before submitting an *issue* make sure you have: - [x ] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [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 - [x ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser ### 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 --- ### 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 the `-v` flag to **your command line** you run youtube-dl with (`youtube-dl -v <your command line>`), copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```): D:\>youtube-dl -v kaltura:1955031:1_y39fkhaq -f mp4-2929 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', 'kaltura:1955031:1_y39fkhaq', '-f', 'mp4-2929' ] [debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251 [debug] youtube-dl version 2019.03.01 [debug] Python version 3.4.4 (CPython) - Windows-8.1-6.3.9600 [debug] exe versions: ffmpeg 4.1, ffprobe N-89980-ge752da5464, rtmpdump 2.4 [debug] Proxy map: {} [Kaltura] 1_y39fkhaq: Downloading video info JSON [Kaltura] 1_y39fkhaq: Downloading m3u8 information WARNING: Failed to download m3u8 information: HTTP Error 404: Not Found [debug] Invoking downloader on 'http://cdnapi.kaltura.com/p/1955031/sp/195503100 /playManifest/entryId/1_y39fkhaq/format/url/protocol/http/flavorId/1_6jf9b626' ERROR: unable to download video data: HTTP Error 404: Not Found Traceback (most recent call last): File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\YoutubeDL.py", line 1913, in process_info File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\YoutubeDL.py", line 1852, in dl File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\downloader\common.py", line 364, in download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\downloader\http.py", line 341, in real_download File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\downloader\http.py", line 109, in establish_connection File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmplyslo9xs\bu ild\youtube_dl\YoutubeDL.py", line 2225, in urlopen File "C:\Python\Python34\lib\urllib\request.py", line 470, in open File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response File "C:\Python\Python34\lib\urllib\request.py", line 508, in error File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default urllib.error.HTTPError: HTTP Error 404: Not Found --- ### 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. Cannot download video. Command is: youtube-dl -v kaltura:1955031:1_y39fkhaq -f mp4-2929 Command gets the overall "flavors" page, but can't download manifest for partricular flavor
geo-restricted
low
Critical
416,548,165
go
cmd/compile: mid-stack inline dispatch functions that call a function on each path
```go package p func dispatch(x int) int { if x < 10 { return small(x) } return big(x) } //go:noinline func small(x int) int { return 0 } //go:noinline func big(x int) int { return 1 } ``` dispatch should be inlined: It is very simple, and on either path through the function we call exactly one other simple function. It is not: `x.go:3:6: cannot inline dispatch: function too complex: cost 126 exceeds budget 80` This is because we attach a significant cost to each function call. Note that we are happy to inline this dispatch function: ```go func dispatch(x int) int { fn := big if x < 10 { fn = small } return fn(x) } ``` Fixing this requires either some special casing to recognize common patterns (like the original dispatch) or a bit of control flow analysis. cc @randall77 @dr2chase
Performance,NeedsInvestigation,compiler/runtime
medium
Critical
416,566,697
godot
[Bullet] KinematicBody slides on collision box, but doesn't on a plane
Godot 3.1 beta10 After being confused about what #17893 became, I decided to recreate an issue about the initial point: If you move a `KinematicBody` with `move_and_slide()`, and make it move towards a box, it will slide on it. However, if you move towards a plane, it will get stuck in it and doesn't slide. This is unexpected, it should slide just like with the box. I want to emphazise that in my project I use Rigidbodies and they slide just fine on planes, which I use for the floor of the world. I don't see any reason why Planes would be some sort of exception when using KinematicBodies, besides being inconsistent. The fact they are infinite surely prevents making holes or doors, but that's the normal behavior of planes, you may actually want that. This project demonstrates the problem: [KinematicBodyOnPlane.zip](https://github.com/godotengine/godot/files/2923715/KinematicBodyOnPlane.zip) I see several other issues where the bottom line always ends up as "it's not meant to be walkable", or "it's infinite". Those are not explanatory enough to me. The Plane shape exists and is different from a huge quad because it doesn't need to specify a size and doesn't seem to suffer from tunnelling. Also, it's there, and working in every other case. So I see two options: - Either this particular move_and_slide case with KinematicBodies must be fixed for good - Or we explicitely make it not collidable, show a warning, and state in the doc that shape is only meant for Areas (even though I still don't understand what technical limitation would push us to do that). But if that other choice is taken, that's removing a feature and then breaking compatibility.
bug,confirmed,topic:physics
low
Minor
416,574,581
flutter
CustomPainter's paint is called even when shouldRepaint returns false.
``` class Foo extends CustomPainter { Path path = Path(); Foo(this.path); @override void paint(Canvas canvas, Size size) { canvas.drawPath(path, paint); } @override bool shouldRepaint(Foo oldDelegate) => oldDelegate.path != path; //ISSUE HERE } ``` The boolean should be true if the old path does not contain the same subpaths and nodes as the old path. There is no way for me to access the last point or any other important parameter of the paths to compare them. Even the docs say: > The current point is initially at the origin. After each operation adding a segment to a subpath, the **current point** is updated to the end of that segment. No info about the current point
framework,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-framework,triaged-framework
low
Major
416,587,633
opencv
Implicit Type Casting (Matrix to vector of Matrices)
##### System information (version) - OpenCV => 4.0.1 - Operating System / Platform => Ubuntu 16.04 x86_64 - Compiler => g++ 5.4.0 ##### Detailed description Opencv should not exhibit the following behavior, it should at-least throw a warning. ```c++ void BadImplicitCasting() { cv::Mat m; std::vector<cv::Mat> m2 = m; for (auto x : m2) { printf("This is a row, not a single vector") } } ``` ##### Steps to reproduce See above.
category: core,future
low
Minor
416,610,636
godot
Audio playback on AnimationPlayer is not stopping when reaching end of track [FIX INCLUDED]
**Godot version:** Godot 3.1 Beta 10 **OS/device including version:** Windows 7 **Issue description:** Audio is not stopping on AnimationPlayer when reached end or starting repeatedly by 0. **Steps to reproduce:** create a Audio on Animation Player let the Audio playing reach over the end of the total length of the track -> it will not stop to play (not in repeat track mode and not on stopping on reaching the track end) FIX: Change on animation_player.cpp::_animation_process_animation(...) : ``` if (!loop && p_time < nc->audio_star) { stop = true; } else if (nc->audio_len > 0) { float len = nc->audio_start > p_time ? (a->get_length() - nc->audio_start) + p_time : p_time - nc->audio_start; if (len > nc->audio_len) { stop = true; } } ``` to : ``` if (!loop && (p_time < nc->audio_start || p_time >= a->get_length())) { stop = true; } else if (nc->audio_len > 0) { float len = (p_time < nc->audio_start) ? ((a->get_length() - nc->audio_start) + p_time) - nc->audio_len : (nc->audio_start + nc->audio_len) - p_time; if (len < 0) { stop = true; } ``` ---------------------- I would hard change it more when i knew that i not produce more bugs. I would rewrite much of the code to get a better view on it. But i dont try it to make not much difference so the owner of the code not get irritated and i can give fixes here more easily. I only fix the thinks on the places where i can fix it without changing much. But i think you can replace much of the code and make it much more nicer. And i have a problem that there are no strategy-patterns for the TrackTypes. Could me much more elegent. It could be much easier to implement new TrackTypes.
bug,topic:core
low
Critical
416,613,069
deno
Discussion: export and load custom snapshot
Background: [v8 snapshots](https://v8.dev/blog/custom-startup-snapshots). Deno currently already uses snapshots for the TS compiler and main API for faster startup. We might be able to extend the behavior so that the users could create and load their own snapshots. Something like ``` deno --snapshot ss.bin mod.ts deno --use-snapshot ss.bin main.ts ``` Like AOT compilation in a way. Might be useful for developers who don't want to work with the Rust crate (and less overhead than using generated JS bundles)
cli,suggestion
low
Major
416,639,270
go
net/http: more informative error for proxy connect errors
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.12 linux/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build551463569=/tmp/go-build -gno-record-gcc-switches" </pre></details> ### What did you do? I'm running a squid proxy server listening on 127.0.0.1:3128 which is running as squid user with an iptables rule that drops outgoing port 53 packets emitted by the squid user. This forces squid to respond to all proxied requests using a dns name with a 503 response carrying a header `X-Squid-Error: ERR_DNS_FAIL 0`. I'm also writing a go program that performs a healthcheck when squid returns a response with X-Squid-Error header by making a proxied GET request to a URL using the default http client. The proxying is enabled using the http_proxy and https_proxy environment variables. When querying a HTTP URL the http client returns the 503 response from squid with the X-Squid-Error header. ### What did you expect to see? When querying a HTTPS URL the http client should return the 503 response from squid. ### What did you see instead? When querying a HTTPS URL the http client returns an error and nil response, with the error returning "Get https://www.google.com: Service Unavailable". The same query to https://www.google.com using curl with the https_proxy environment variable set returns the squid 503 response.
NeedsInvestigation
low
Critical
416,684,453
go
os/user: add AIX getgroups support
getgroups isn't yet available on AIX, as getgrouplist syscall doesn't exist on AIX. Therefore, https://go-review.googlesource.com/c/go/+/164039 disables tests. This is a tracking-bug.
NeedsFix,OS-AIX
low
Critical
416,709,108
go
misc/cgo: fix gcc -shared and -static with aix/ppc64
The cmd/dist tests using either -shared or -static doesn't work as it is. They need to be adapt to AIX gcc or ld specificities. Therefore, https://go-review.googlesource.com/c/go/+/164018 disables tests related to them. This is a tracking-bug.
NeedsFix
low
Critical
416,716,662
rust
Erroneous borrowck error with early returns
[Playground]( https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=7a7bb232cf964567d095a10b5c2aae2f) ```rust use syn::spanned::Spanned; use syn::{Data, DeriveInput, Error, Field, Fields}; // Uncommenting the two lines below trigger a borrowck error. pub fn struct_fields_mut( input: &mut DeriveInput, ) -> Result<impl Iterator<Item = &mut Field>, Error> { if let Data::Struct(ref mut data_struct) = input.data { //if let Fields::Named(_) = data_struct.fields { return Ok(data_struct.fields.iter_mut()); //} } Err(Error::new( input.span(), "only structs can be automatically neutralized", )) } ``` ``` error[E0502]: cannot borrow `input` as immutable because it is also borrowed as mutable --> src/lib.rs:15:9 | 7 | input: &mut DeriveInput, | - let's call the lifetime of this reference `'1` 8 | ) -> Result<impl Iterator<Item = &mut Field>, Error> { 9 | if let Data::Struct(ref mut data_struct) = input.data { | ------------------- mutable borrow occurs here 10 | if let Fields::Named(_) = data_struct.fields { 11 | return Ok(data_struct.fields.iter_mut()); | --------------------------------- returning this value requires that `input.data.0` is borrowed for `'1` ... 15 | input.span(), | ^^^^^ immutable borrow occurs here ```
C-enhancement,A-borrow-checker,T-compiler,A-NLL,fixed-by-polonius
low
Critical
416,722,903
flutter
How can i get event when user click on collapse button on iOS keyboard?
<!-- Thank you for using Flutter! Please check out our documentation first: * https://flutter.io/ * https://docs.flutter.io/ If you can't find the answer there, please consider asking a question on the Stack Overflow Web site: * https://stackoverflow.com/questions/tagged/flutter?sort=frequent Please don't file a GitHub issue for support requests. GitHub issues are for tracking defects in the product. If you file a bug asking for help, we will consider this a request for a documentation update. --> I want to change my screen layout when user click on collapse button on iOS keyboard but cannot get the event.
a: text input,c: new feature,platform-ios,framework,P2,team-ios,triaged-ios
low
Critical
416,777,515
TypeScript
Return statement in iterator is not type checked
**TypeScript Version:** 5.3.2. **Search Terms:** yield, return, iterator. **Code:** ```ts interface Result { foo: number; } function* gen(): IterableIterator<Result> { yield { foo: 1 }; return { garbage: true }; // not checked } (function go(iterator) { const { value, done } = iterator.next(); console.log(value); if (!done) { go(iterator); } })(gen()); ``` **Expected behavior:** type error on return statement. **Actual behavior:** no type errors. **Playground Link:** https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgEoQM4FcA2ZkDeAUMqcjAPYUBcyIWAtgEbQDcRAvkUTFiAmGAUQAKmQBzCCAAUASloBJSFDhMcEJdDhgKUADzpseAHyESZAJ7AIOACaFyVWgEZkHdmWRQIYLFBAO4nBQTHCStGBQWCjuyAD0cXQU+AgAFhAIANYQtpzc0rz8gsISFNLAytq6smaeCMIY+ATIAG5wONEANMi2wjHIALzIFVo6UAB0IBAAHmByHmT1IBgU6uM4FOLSbR0QsgukwDDI0gCEvVM1xJ6e4mUjKmP75qRcHLLSkjKy+0A **Related Issues:** https://github.com/Microsoft/TypeScript/issues/26959.
Needs Investigation
low
Critical
416,789,581
opencv
Could not able to read 4K mp4 file with OpenCV 3.4.5 with cuda toolkit 8.0 on Windows 10. It reads only few starting frames and then crashes.
<!-- If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses. If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute). Please: * Read the documentation to test with the latest developer build. * Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue. * Try to be as detailed as possible in your report. * Report only one problem per created issue. This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library. --> ##### System information (version) <!-- Example - OpenCV => 3.1 - Operating System / Platform => Windows 64 Bit - Compiler => Visual Studio 2015 --> - OpenCV => :grey_question: - Operating System / Platform => :grey_question: - Compiler => :grey_question: ##### Detailed description <!-- your description --> ##### 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 -->
priority: low,category: gpu/cuda (contrib),incomplete
low
Critical
416,799,266
pytorch
TracedModule 'to' attribute doesn't work for tensors created on forward.
## 🐛 Bug <!-- A clear and concise description of what the bug is. --> TracedModule 'to' attribute doesn't work for tensors created on forward. ## To Reproduce Steps to reproduce the behavior: ``` python import torch class Example(torch.nn.Module): def __init__(self): super().__init__() self.module = torch.nn.Linear(10, 100) def forward(self, x): module_output = self.module(x) noise = torch.rand_like(module_output) return module_output + noise model = Example().cuda(1) dummy_input_device_1 = torch.randn(1, 10).cuda(1) jit_model_device_1 = torch.jit.trace(model, dummy_input_device_1) jit_model_device_1(dummy_input_device_1) jit_model_device_0 = jit_model_device_1.to('cuda:0') dummy_input_device_0 = torch.randn(1, 10).cuda(0) jit_model_device_0(dummy_input_device_0) ``` <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> gives error: ```code --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-20-a95f83ffcb23> in <module>() 6 jit_model_device_0 = jit_model_device_1.to('cuda:0') 7 dummy_input_device_0 = torch.randn(1, 10).cuda(0) ----> 8 jit_model_device_0(dummy_input_device_0) /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs) 489 result = self._slow_forward(*input, **kwargs) 490 else: --> 491 result = self.forward(*input, **kwargs) 492 for hook in self._forward_hooks.values(): 493 hook_result = hook(self, input, result) /opt/conda/lib/python3.6/site-packages/torch/jit/__init__.py in forward(self, *args, **kwargs) 1424 class TopLevelTracedModule(TracedModule): 1425 def forward(self, *args, **kwargs): -> 1426 return self._get_method('forward')(*args, **kwargs) 1427 1428 RuntimeError: binary_op(): expected both inputs to be on same device, but input a is on cuda:0 and input b is on cuda:1 (binary_op at /data/antoleb/pytorch/aten/src/ATen/native/TensorIterator.cpp:473) frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) + 0x6a (0x7ff110ab63ea in /opt/conda/lib/python3.6/site-packages/torch/lib/libc10.so) frame #1: at::TensorIterator::binary_op(at::Tensor&, at::Tensor const&, at::Tensor const&) + 0x609 (0x7ff11153a0b9 in /opt/conda/lib/python3.6/site-packages/torch/lib/libcaffe2.so) frame #2: at::native::add(at::Tensor const&, at::Tensor const&, c10::Scalar) + 0x95 (0x7ff1113596b5 in /opt/conda/lib/python3.6/site-packages/torch/lib/libcaffe2.so) frame #3: at::TypeDefault::add(at::Tensor const&, at::Tensor const&, c10::Scalar) const + 0x92 (0x7ff11179e412 in /opt/conda/lib/python3.6/site-packages/torch/lib/libcaffe2.so) frame #4: torch::autograd::VariableType::add(at::Tensor const&, at::Tensor const&, c10::Scalar) const + 0x471 (0x7ff10ff9f2c1 in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch.so.1) frame #5: <unknown function> + 0x7b3e97 (0x7ff110185e97 in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch.so.1) frame #6: <unknown function> + 0x8a3f7f (0x7ff110275f7f in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch.so.1) frame #7: torch::jit::InterpreterState::run(std::vector<c10::IValue, std::allocator<c10::IValue> >&) + 0x31 (0x7ff110270bc1 in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch.so.1) frame #8: torch::jit::GraphExecutor::run(std::vector<c10::IValue, std::allocator<c10::IValue> >&) + 0x1c4 (0x7ff110250f34 in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch.so.1) frame #9: <unknown function> + 0x3ef605 (0x7ff12645a605 in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch_python.so) frame #10: <unknown function> + 0x11174d (0x7ff12617c74d in /opt/conda/lib/python3.6/site-packages/torch/lib/libtorch_python.so) frame #11: _PyCFunction_FastCallDict + 0x154 (0x5629c5f33b94 in /opt/conda/bin/python) frame #12: _PyObject_FastCallDict + 0x2bf (0x5629c5f33faf in /opt/conda/bin/python) frame #13: _PyObject_Call_Prepend + 0x63 (0x5629c5f38a03 in /opt/conda/bin/python) frame #14: PyObject_Call + 0x3e (0x5629c5f3399e in /opt/conda/bin/python) frame #15: <unknown function> + 0x16b9b7 (0x5629c5f909b7 in /opt/conda/bin/python) frame #16: PyObject_Call + 0x3e (0x5629c5f3399e in /opt/conda/bin/python) frame #17: _PyEval_EvalFrameDefault + 0x1ab0 (0x5629c5fe7470 in /opt/conda/bin/python) frame #18: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #19: _PyFunction_FastCallDict + 0x3db (0x5629c5fbe03b in /opt/conda/bin/python) frame #20: _PyObject_FastCallDict + 0x26f (0x5629c5f33f5f in /opt/conda/bin/python) frame #21: _PyObject_Call_Prepend + 0x63 (0x5629c5f38a03 in /opt/conda/bin/python) frame #22: PyObject_Call + 0x3e (0x5629c5f3399e in /opt/conda/bin/python) frame #23: _PyEval_EvalFrameDefault + 0x1ab0 (0x5629c5fe7470 in /opt/conda/bin/python) frame #24: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #25: _PyFunction_FastCallDict + 0x1bb (0x5629c5fbde1b in /opt/conda/bin/python) frame #26: _PyObject_FastCallDict + 0x26f (0x5629c5f33f5f in /opt/conda/bin/python) frame #27: _PyObject_Call_Prepend + 0x63 (0x5629c5f38a03 in /opt/conda/bin/python) frame #28: PyObject_Call + 0x3e (0x5629c5f3399e in /opt/conda/bin/python) frame #29: <unknown function> + 0x16b9b7 (0x5629c5f909b7 in /opt/conda/bin/python) frame #30: _PyObject_FastCallDict + 0x8b (0x5629c5f33d7b in /opt/conda/bin/python) frame #31: <unknown function> + 0x19e7ce (0x5629c5fc37ce in /opt/conda/bin/python) frame #32: _PyEval_EvalFrameDefault + 0x2fa (0x5629c5fe5cba in /opt/conda/bin/python) frame #33: PyEval_EvalCodeEx + 0x329 (0x5629c5fbe459 in /opt/conda/bin/python) frame #34: PyEval_EvalCode + 0x1c (0x5629c5fbf1ec in /opt/conda/bin/python) frame #35: <unknown function> + 0x1be6cb (0x5629c5fe36cb in /opt/conda/bin/python) frame #36: _PyCFunction_FastCallDict + 0x91 (0x5629c5f33ad1 in /opt/conda/bin/python) frame #37: <unknown function> + 0x19e67c (0x5629c5fc367c in /opt/conda/bin/python) frame #38: _PyEval_EvalFrameDefault + 0x2fa (0x5629c5fe5cba in /opt/conda/bin/python) frame #39: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #40: <unknown function> + 0x198941 (0x5629c5fbd941 in /opt/conda/bin/python) frame #41: <unknown function> + 0x19e755 (0x5629c5fc3755 in /opt/conda/bin/python) frame #42: _PyEval_EvalFrameDefault + 0x2fa (0x5629c5fe5cba in /opt/conda/bin/python) frame #43: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #44: <unknown function> + 0x198941 (0x5629c5fbd941 in /opt/conda/bin/python) frame #45: <unknown function> + 0x19e755 (0x5629c5fc3755 in /opt/conda/bin/python) frame #46: _PyEval_EvalFrameDefault + 0x10ba (0x5629c5fe6a7a in /opt/conda/bin/python) frame #47: <unknown function> + 0x197dae (0x5629c5fbcdae in /opt/conda/bin/python) frame #48: <unknown function> + 0x198941 (0x5629c5fbd941 in /opt/conda/bin/python) frame #49: <unknown function> + 0x19e755 (0x5629c5fc3755 in /opt/conda/bin/python) frame #50: _PyEval_EvalFrameDefault + 0x2fa (0x5629c5fe5cba in /opt/conda/bin/python) frame #51: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #52: _PyFunction_FastCallDict + 0x3db (0x5629c5fbe03b in /opt/conda/bin/python) frame #53: _PyObject_FastCallDict + 0x26f (0x5629c5f33f5f in /opt/conda/bin/python) frame #54: _PyObject_Call_Prepend + 0x63 (0x5629c5f38a03 in /opt/conda/bin/python) frame #55: PyObject_Call + 0x3e (0x5629c5f3399e in /opt/conda/bin/python) frame #56: _PyEval_EvalFrameDefault + 0x1ab0 (0x5629c5fe7470 in /opt/conda/bin/python) frame #57: <unknown function> + 0x197c26 (0x5629c5fbcc26 in /opt/conda/bin/python) frame #58: <unknown function> + 0x198941 (0x5629c5fbd941 in /opt/conda/bin/python) frame #59: <unknown function> + 0x19e755 (0x5629c5fc3755 in /opt/conda/bin/python) frame #60: _PyEval_EvalFrameDefault + 0x10ba (0x5629c5fe6a7a in /opt/conda/bin/python) frame #61: <unknown function> + 0x197a94 (0x5629c5fbca94 in /opt/conda/bin/python) frame #62: <unknown function> + 0x198941 (0x5629c5fbd941 in /opt/conda/bin/python) frame #63: <unknown function> + 0x19e755 (0x5629c5fc3755 in /opt/conda/bin/python) : operation failed in interpreter: <ipython-input-19-fe16b70dc340>(9): forward /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(479): _slow_forward /opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py(489): __call__ /opt/conda/lib/python3.6/site-packages/torch/jit/__init__.py(663): trace <ipython-input-20-a95f83ffcb23>(3): <module> /opt/conda/lib/python3.6/site-packages/IPython/core/interactiveshell.py(2963): run_code /opt/conda/lib/python3.6/site-packages/IPython/core/interactiveshell.py(2903): run_ast_nodes /opt/conda/lib/python3.6/site-packages/IPython/core/interactiveshell.py(2785): _run_cell /opt/conda/lib/python3.6/site-packages/IPython/core/interactiveshell.py(2662): run_cell /opt/conda/lib/python3.6/site-packages/ipykernel/zmqshell.py(537): run_cell /opt/conda/lib/python3.6/site-packages/ipykernel/ipkernel.py(208): do_execute /opt/conda/lib/python3.6/site-packages/ipykernel/kernelbase.py(399): execute_request /opt/conda/lib/python3.6/site-packages/ipykernel/kernelbase.py(233): dispatch_shell /opt/conda/lib/python3.6/site-packages/ipykernel/kernelbase.py(283): dispatcher /opt/conda/lib/python3.6/site-packages/tornado/stack_context.py(276): null_wrapper /opt/conda/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py(432): _run_callback /opt/conda/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py(480): _handle_recv /opt/conda/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py(450): _handle_events /opt/conda/lib/python3.6/site-packages/tornado/stack_context.py(276): null_wrapper /opt/conda/lib/python3.6/site-packages/tornado/platform/asyncio.py(117): _handle_events /opt/conda/lib/python3.6/asyncio/events.py(145): _run /opt/conda/lib/python3.6/asyncio/base_events.py(1432): _run_once /opt/conda/lib/python3.6/asyncio/base_events.py(422): run_forever /opt/conda/lib/python3.6/site-packages/tornado/platform/asyncio.py(127): start /opt/conda/lib/python3.6/site-packages/ipykernel/kernelapp.py(486): start /opt/conda/lib/python3.6/site-packages/traitlets/config/application.py(658): launch_instance /opt/conda/lib/python3.6/site-packages/ipykernel_launcher.py(16): <module> /opt/conda/lib/python3.6/runpy.py(85): _run_code /opt/conda/lib/python3.6/runpy.py(193): _run_module_as_main ``` ## Environment PyTorch version: 1.1.0a0+6a297b8 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 CMake version: version 3.13.3 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: GeForce GTX 1080 GPU 1: GeForce GTX 1080 GPU 2: GeForce GTX 1080 GPU 3: GeForce GTX 1080 GPU 4: GeForce GTX 1080 GPU 5: GeForce GTX 1080 GPU 6: GeForce GTX 1080 GPU 7: GeForce GTX 1080 Nvidia driver version: 410.78 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.4.2 Versions of relevant libraries: [pip3] numpy==1.14.3 [pip3] numpydoc==0.8.0 [pip3] torch==1.1.0a0+6a297b8 [pip3] torchvision==0.2.1 [conda] blas 1.0 mkl [conda] magma-cuda90 2.3.0 1 pytorch [conda] mkl 2019.0 pypi_0 pypi [conda] mkl-include 2019.0 pypi_0 pypi [conda] mkl-service 1.1.2 py36h17a0993_4 [conda] mkl_fft 1.0.1 py36h3010b51_0 [conda] mkl_random 1.0.1 py36h629b387_0 [conda] mkldnn 0.13.0 0 mingfeima [conda] torch 1.1.0a0+6a297b8 pypi_0 pypi [conda] torchvision 0.2.1 pypi_0 pypi cc @suo
oncall: jit,triaged
low
Critical
416,845,804
pytorch
C++ API: Crash in cudnnDestroy() when deconstructing
## 🐛 Bug The application crashes during deconstruction when using Cuda. ## To Reproduce Steps to reproduce the behavior: ```c++ #include <torch/torch.h> int main(int, const char**) { const bool use_cuda = true; torch::nn::Conv2d cnv(torch::nn::Conv2dOptions(3, 3, 1)); torch::Tensor x = torch::randn({1,3, 50, 50}); if(use_cuda){ cnv->to(at::kCUDA); x = x.to(at::kCUDA); } x = cnv->forward(x); std::cout << "This line will always be executed, but the destructor will cause a crash iff use_cuda==true." << std::endl; } ``` ``` Thread 4 (Thread 0x7fffb9416700 (LWP 21522)): #0 0x00007fffbb042f85 in futex_abstimed_wait_cancelable (private=<optimised out>, abstime=0x7fffb940f930, expected=0, futex_word=0x7fffb0000b48) at ../sysdeps/unix/sysv/linux/futex-internal.h:205 __ret = -516 oldtype = 0 err = <optimised out> oldtype = <optimised out> err = <optimised out> __ret = <optimised out> resultvar = <optimised out> __arg6 = <optimised out> __arg5 = <optimised out> __arg4 = <optimised out> __arg3 = <optimised out> __arg2 = <optimised out> __arg1 = <optimised out> _a6 = <optimised out> _a5 = <optimised out> _a4 = <optimised out> _a3 = <optimised out> _a2 = <optimised out> _a1 = <optimised out> #1 __pthread_cond_wait_common (abstime=0x7fffb940f930, mutex=0x5555561fb178, cond=0x7fffb0000b20) at pthread_cond_wait.c:539 spin = 0 buffer = {__routine = 0x7fffbb042690 <__condvar_cleanup_waiting>, __arg = 0x7fffb940f8c0, __canceltype = -1342174448, __prev = 0x0} cbuffer = {wseq = 8, cond = 0x7fffb0000b20, mutex = 0x5555561fb178, private = 0} err = <optimised out> g = 0 flags = <optimised out> g1_start = <optimised out> maxspin = 0 signals = <optimised out> result = 0 wseq = <optimised out> seq = 4 private = <optimised out> maxspin = <optimised out> err = <optimised out> result = <optimised out> wseq = <optimised out> g = <optimised out> seq = <optimised out> flags = <optimised out> private = <optimised out> signals = <optimised out> g1_start = <optimised out> spin = <optimised out> buffer = <optimised out> cbuffer = <optimised out> rt = <optimised out> s = <optimised out> #2 __pthread_cond_timedwait (cond=0x7fffb0000b20, mutex=0x5555561fb178, abstime=0x7fffb940f930) at pthread_cond_wait.c:667 No locals. #3 0x00007ffff6463ce7 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #4 0x00007ffff641c4b7 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #5 0x00007ffff6463110 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #6 0x00007fffbb03c6db in start_thread (arg=0x7fffb9416700) at pthread_create.c:463 pd = 0x7fffb9416700 now = <optimised out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736301459200, 377580923374187937, 140736301431488, 0, 93825007060912, 140737488342240, -377707152272345695, -377710973598124639}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimised out> #7 0x00007fffbb9f788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 No locals. Thread 3 (Thread 0x7fffb9c17700 (LWP 21521)): #0 0x00007fffbb9eabf9 in __GI___poll (fds=0x7fffac000b80, nfds=8, timeout=100) at ../sysdeps/unix/sysv/linux/poll.c:29 resultvar = 18446744073709551100 sc_cancel_oldtype = 0 sc_ret = <optimised out> #1 0x00007ffff646169b in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #2 0x00007ffff64c6a6f in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #3 0x00007ffff6463110 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #4 0x00007fffbb03c6db in start_thread (arg=0x7fffb9c17700) at pthread_create.c:463 pd = 0x7fffb9c17700 now = <optimised out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736309851904, 377580923374187937, 140736309824192, 0, 93825005575072, 140737488342160, -377708239435942495, -377710973598124639}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimised out> #5 0x00007fffbb9f788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 No locals. Thread 2 (Thread 0x7fffba418700 (LWP 21520)): #0 0x00007fffbb9f9237 in accept4 (fd=11, addr=..., addr_len=0x7fffba411908, flags=524288) at ../sysdeps/unix/sysv/linux/accept4.c:32 resultvar = 18446744073709551104 sc_cancel_oldtype = 0 sc_ret = <optimised out> #1 0x00007ffff64624a6 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #2 0x00007ffff6456a3d in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #3 0x00007ffff6463110 in ?? () from /usr/lib/x86_64-linux-gnu/libcuda.so.1 No symbol table info available. #4 0x00007fffbb03c6db in start_thread (arg=0x7fffba418700) at pthread_create.c:463 pd = 0x7fffba418700 now = <optimised out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736318244608, 377580923374187937, 140736318216896, 0, 93825005446752, 140737488346048, -377709339484441183, -377710973598124639}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}} not_first_call = <optimised out> #5 0x00007fffbb9f788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 No locals. Thread 1 (Thread 0x7ffff7fbdc40 (LWP 21513)): #0 0x00007ffff45ebfa7 in ?? () from /usr/local/cuda/lib64/libcudart.so.9.0 No symbol table info available. #1 0x00007ffff45de11e in ?? () from /usr/local/cuda/lib64/libcudart.so.9.0 No symbol table info available. #2 0x00007ffff45cac0a in ?? () from /usr/local/cuda/lib64/libcudart.so.9.0 No symbol table info available. #3 0x00007ffff45f0f5c in cudaDeviceSynchronize () from /usr/local/cuda/lib64/libcudart.so.9.0 No symbol table info available. #4 0x00007fffc19d4f94 in cudnnDestroy () from /home/martin/libraries/libtorch/lib/libcaffe2_gpu.so No symbol table info available. #5 0x00007fffbd896a91 in std::unordered_map<int, at::native::(anonymous namespace)::Handle, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, at::native::(anonymous namespace)::Handle> > >::~unordered_map() () from /home/martin/libraries/libtorch/lib/libcaffe2_gpu.so No symbol table info available. #6 0x00007fffbb919615 in __cxa_finalize (d=0x7fffe746f680) at cxa_finalize.c:83 check = 3473 cxafn = <optimised out> cxaarg = <optimised out> f = 0x55555598fa20 funcs = 0x55555598f7d0 #7 0x00007fffbd6a4f13 in __do_global_dtors_aux () from /home/martin/libraries/libtorch/lib/libcaffe2_gpu.so No symbol table info available. #8 0x00007fffffffe440 in ?? () No symbol table info available. #9 0x00007ffff7de5b73 in _dl_fini () at dl-fini.c:138 array = 0x7ffff7ffd068 <_rtld_global+8> i = <optimised out> l = 0x7ffff7fc6000 maps = 0x7fffffffe330 i = <optimised out> l = <optimised out> nmaps = <optimised out> nloaded = <optimised out> ns = 0 do_audit = <optimised out> __PRETTY_FUNCTION__ = "_dl_fini" Backtrace stopped: frame did not save the PC ``` ## Expected behavior No crash (same behavior when using CPU and GPU). ## Environment Output of **collect_env.py**: ``` Collecting environment information... PyTorch version: N/A Is debug build: N/A CUDA used to build PyTorch: N/A OS: Ubuntu 18.04.2 LTS GCC version: (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026 CMake version: version 3.10.2 Python version: 2.7 Is CUDA available: N/A CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: GeForce GTX TITAN X GPU 1: GeForce GTX TITAN X Nvidia driver version: 390.77 cuDNN version: Could not collect Versions of relevant libraries: [pip] numpy==1.16.0 [pip] torch==1.0.0 [pip] torchvision==0.2.1 [conda] Could not collect ``` Further: ``` $cat /usr/local/cuda/version.txt CUDA Version 9.0.176 CUDA Patch Version 9.0.176.1 CUDA Patch Version 9.0.176.2 CUDA Patch Version 9.0.176.3 $cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 #define CUDNN_MAJOR 7 #define CUDNN_MINOR 4 #define CUDNN_PATCHLEVEL 2 ``` cc @ezyang @gchanan @zou3519 @yf225
module: cudnn,module: cpp,module: abi,triaged
medium
Critical
416,878,120
godot
Setting SoftBody pinned points programmatically
**Godot version:** 3.1-beta10 **OS/device including version:** ArchLinux rolling **Issue description:** There seems to be no way to build SoftBody from script. `pinned_points` is exposed, but not documented. `attachments` is undefined, although visible in editor. I'm running this in custom post-import script. **Steps to reproduce:** ```gdscript var sb : SoftBody = SoftBody.new() sb.mesh = some_mesh parent.add_child(sb) print(sb.pinned_points) # prints [] sb.pinned_points.append(0) print(sb.pinned_points) # still prints [] ```
enhancement,topic:core,documentation,topic:physics
low
Major
416,930,834
godot
Light2D subtractive mode not working [GLES3]
<!-- Please search existing issues for potential duplicates before filing yours: https://github.com/godotengine/godot/issues?q=is%3Aissue --> **Godot version:** <!-- Specify commit hash if non-official. --> b63c506 **OS/device including version:** <!-- Specify GPU model and drivers if graphics-related. --> Win10 64-bit **Issue description:** <!-- What happened, and what was expected. --> The subtractive mode on Light2D seems to be broken, producing a full fill of some color. It starts to partially work when it begins to overlap with another Light2D texture. ![image](https://user-images.githubusercontent.com/13004169/53753801-d206a200-3eba-11e9-8be8-fbfe3e34a5ce.png) **Steps to reproduce:** Make a Light2D and choose subtractive mode. **Minimal reproduction project:** <!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. --> [3.1 Light2D Issue.zip](https://github.com/godotengine/godot/files/2927697/3.1.Light2D.Issue.zip)
bug,topic:rendering,topic:2d
low
Critical
416,974,236
go
net/http: data race in concurrent req.Body.{Close,Read} with 100-continue expected
Please answer these questions before submitting your issue. Thanks! #### What did you do? https://gist.github.com/benburkert/76548cfac5aa6761fab2f88783b673aa #### What did you expect to see? No output. #### What did you see instead? ``` ================== WARNING: DATA RACE Read at 0x00c00000e3f8 by goroutine 9: net/http.(*expectContinueReader).Read() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:885 +0x42 Previous write at 0x00c00000e3f8 by goroutine 8: net/http.(*expectContinueReader).Close() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:901 +0x42 Goroutine 9 (running) created at: main.main.func1() /tmp/http.go:15 +0xef net/http.HandlerFunc.ServeHTTP() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:1995 +0x51 net/http.serverHandler.ServeHTTP() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:2774 +0xc4 net/http.(*conn).serve() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:1878 +0x807 Goroutine 8 (running) created at: main.main.func1() /tmp/http.go:14 +0x70 net/http.HandlerFunc.ServeHTTP() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:1995 +0x51 net/http.serverHandler.ServeHTTP() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:2774 +0xc4 net/http.(*conn).serve() /usr/local/Cellar/go/1.12/libexec/src/net/http/server.go:1878 +0x807 ================== ``` #### System details ``` go version go1.12 darwin/amd64 GOARCH="amd64" GOBIN="" GOCACHE="/Users/benburkert/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/benburkert" GOPROXY="" GORACE="" GOROOT="/usr/local/Cellar/go/1.12/libexec" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.12/libexec/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" GOROOT/bin/go version: go version go1.12 darwin/amd64 GOROOT/bin/go tool compile -V: compile version go1.12 uname -v: Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64 ProductName: Mac OS X ProductVersion: 10.13.6 BuildVersion: 17G5019 lldb --version: lldb-1000.11.37.1 Swift-4.2 ```
NeedsInvestigation
low
Major
417,013,993
godot
SoftBody pinned point indices not corresponding to mesh vertices due to removal of duplicate mesh vertices
**Godot version:** v3.1-beta10 **OS/device including version:** ArchLinux rolling **Issue description:** SoftBody pinned_points are out of sync with ArrayMesh vertexes because duplicate vertices are removed on physics server. This is because in [modules/bullet/soft_body_bullet.cpp:322](https://github.com/godotengine/godot/blob/26c1d1aec8aeb8024bcb885906fcf011dc7aac68/modules/bullet/soft_body_bullet.cpp#L327), in `SoftBodyBullet::set_trimesh_body_shape` method, duplicate points are removed, thus making mesh indices out of sync with the indexes that pinned points store. Took me forever to find it. This makes setting `pinned_points` a real pain in the ass because you first need to remove duplicate vertices from mesh and then calculate new index of the vertex. This *really* should be documented somewhere. OR `vs_indices_to_physics_table` could be exposed to allow user to resolve soft body vertex index on physics server by specifying vertex index taken from ArrayMesh. Summoning @AndreaCatania :)
bug,topic:physics
low
Minor
417,016,931
pytorch
Building pytorch on ARM failed
My build failed on HiKey 970 board. It looks like a compiler issue. How can fix it? Thank you! 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_task.cc.o [ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_task_future.cc.o [ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_task_graph.cc.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. caffe2/CMakeFiles/caffe2.dir/build.make:4785: recipe for target 'caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o' failed make[2]: *** [caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o] Error 4 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:3119: recipe for target 'caffe2/CMakeFiles/caffe2.dir/all' failed make[1]: *** [caffe2/CMakeFiles/caffe2.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Traceback (most recent call last): File "setup.py", line 710, in <module> build_deps() File "setup.py", line 282, in build_deps build_dir='build') File "/mount-sd/pytorch/tools/build_pytorch_libs.py", line 255, in build_caffe2 check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env) File "/usr/lib/python3.5/subprocess.py", line 271, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j', '8', 'install']' returned non-zero exit status 2
module: build,triaged
low
Critical
417,039,826
rust
overflow evaluating Slot<Event> : Send
From a crater run: ``` [INFO] [stderr] Compiling ilp v0.2.1 (/opt/crater/workdir) [INFO] [stderr] error[E0275]: overflow evaluating the requirement `h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>: std::marker::Send` [INFO] [stderr] --> src/main.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 109 | tokio::run(run); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#![recursion_limit="128"]` attribute to your crate [INFO] [stderr] = note: required because it appears within the type `slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>` [INFO] [stderr] = note: required because it appears within the type `alloc::raw_vec::RawVec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>` [INFO] [stderr] = note: required because it appears within the type `std::vec::Vec<slab::Entry<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>>` [INFO] [stderr] = note: required because it appears within the type `slab::Slab<h2::proto::streams::buffer::Slot<h2::proto::streams::recv::Event>>` ``` Affected crates: [ilp](https://crates.io/crates/ilp/0.2.1) - [crater log](https://crater-reports.s3.amazonaws.com/beta-1.34-1/beta-2019-02-27/reg/ilp-0.2.1/log.txt) cc author @emschwartz
A-type-system,T-compiler,T-types
low
Critical
417,054,993
storybook
CLI --ci and --quiet options are confusing and not documented/available for static build
The CLI options `--ci` and `--quiet` are a little bit confusing for their intended purpose. Prefered solution: - For `--quiet` i dont expect any output at all, unless there is an error. - And for `--ci` i expect everything to be ready to be used in a CI env (no browser launch and no progress/terminal spam) - Maybe introduce a `--no-browser` option to disable browser launch (though, you should rly should just use `--ci`) Edit: also make both options available to static build (they actually work if buildStatic is called via API, though ofc `--ci` does nothing currently because its only handled in buildDev)
feature request,cli
low
Critical
417,060,240
go
cmd/compile: teach prove about min
```go package p func f(x, y []int) { n := len(x) if len(y) < n { n = len(y) } for i := 0; i < n; i++ { _ = x[i] _ = y[i] } } ``` Ideally there would be no bounds checks in the loop. Right now there are. This grew out of a conversation in CL 164966. cc @rasky @aclements @zdjones
Performance,NeedsFix,compiler/runtime
low
Minor
417,060,647
flutter
TextFormField doesn't render its border as said in the docs.
I think there's a problem in the way `TextFormField` deals with its border. As far as I understand from the docs, the `border` parameter will take an `InputDecoration` shape and will substitute the color and weight from the others parameters like `enabledBorder` and `focusedBorder`. So if this is true, the following code should work: ``` TextFormField( decoration: InputDecoration( enabledBorder: const OutlineInputBorder( borderSide: const BorderSide(color: Colors.orange), ) , focusedBorder: const OutlineInputBorder( borderSide: const BorderSide(color: Colors.white), ) , border: OutlineInputBorder( borderRadius: BorderRadius.circular(100) ) ), ) ``` In this code I define a border shape where corners are rounded and **ONLY** the color of the border changes if it's enabled or focused. But in fact what I am seeing is that the shape in `border` is being totally ignored and the `TextFormField` is rendered as a square with orange or white colors, no rounded edges. The only way I can get it to work is with this very repetitive code: ``` TextFormField( decoration: InputDecoration( enabledBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.orange), borderRadius: BorderRadius.circular(100) ) , focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.white), borderRadius: BorderRadius.circular(100) ) , border: OutlineInputBorder( borderRadius: BorderRadius.circular(100) ) ), ) ``` Is this really the correct way to achieive this? I tried @HansMuller short test case here: https://github.com/flutter/flutter/pull/19694#issuecomment-469376553 but since it doesn't have a rounded border it doesn't match what I see. I think the problem lies in `borderRadius: BorderRadius.circular(100)`.
a: text input,framework,f: material design,a: quality,P2,team-text-input,triaged-text-input
low
Major
417,065,298
storybook
Story-level options and stateful behavior
When the user configures UI options on a per-story level, we need two separate behaviors for different kinds of options. - Theme options: e.g. Storybook name/logo should set that option globally, and it should be unset (set back to the default) when you navigate away from that story to a story where it's unset. - Stateful UI options: e.g. Selected panel should be updated when the user switches story with that option set, but should not change when the user switches to a story where it's unset. TODO: - [ ] figure out which options correspond to which behavior - [ ] update the code to handle these two types
bug,ui,core
low
Major
417,065,781
go
cmd/compile: provide flags to request just inlining or just escape analysis info
`-m` and `-m -m` respectively ask the compiler to print and explain its inlining and escape analysis decisions. This is very useful. But almost always I am interested in inlining or in escape analysis, but not both, so I end up grepping through the output. We should keep the existing flags, since they are used in documentation and blog posts the world over. But I'd like to add new flags to print just inlining or just escape analysis. (`-ml` and `-me`?) Opinions? Bikesheds?
NeedsInvestigation,compiler/runtime
low
Minor
417,077,601
godot
Move joint does not work
**Godot version:** Godot 3.1 Beta 10 **OS/device including version:** GTX970, Windows 10 64bit, Nvidia driver 419.17 **Issue description:** The "Move joint" button in the editor does not work. I am trying to do the ragdoll tutorial from here https://docs.godotengine.org/en/latest/tutorials/physics/ragdoll_system.html . When I tried to do the joint adjustment for the "physical bone head" even though I clicked on the "Move joint" button, it will actually rotate / move the physical bone and not the joint like in the tutorial. **Steps to reproduce:** 1)Download Godot 3.1 Beta 10, 2)Open the 3d platformer template 3)Open the player scene 4)Create physical bones and follow the tutorial from here https://docs.godotengine.org/en/latest/tutorials/physics/ragdoll_system.html 5)When trying to do the joint adjustment , the "move joint" feature or button does not work. It will only rotate or move the physical bones and not the joint. **Minimal reproduction project:** Download 3d platformer example from the asset library
bug,confirmed,topic:physics,topic:3d
low
Major
417,127,562
flutter
[webview_flutter] callback function for monitoring webview.estimatedProgress value
I want to add a progress bar for webview, please consider to provide such kind of interface, thank you.
c: new feature,p: webview,package,team-ecosystem,P3,triaged-ecosystem
low
Major
417,165,115
node
buffer.indexOf is incorrect in utf16le encoding for odd byteOffset
Version: v11.10.1 Platform: Windows 10 (64-bits) Subsystem: buffer File Encoding: UTF8 Please consider the following 2 lines of code: let buf = Buffer.from('\u6881\u6882\u6881', 'utf16le'); console.log(buf.indexOf('\u6881', 1, 'utf16le')); In this example, the expected correct output should be 4. However, the result is 0.
confirmed-bug,buffer
medium
Critical
417,180,001
TypeScript
Inconsistent behavior of "export as" symbols.
**TypeScript Version:** 3.4.0-dev.20190305 **Search Terms:** export alias **Code** This is file of `some-lib`: ```ts export { LongNameOfInnerClass as PublicNameClass } from './long-name-of-inner-class'; ``` This is other file, that import above lib: ```ts import { PublicNameClass } from 'some-lib'; new PublicNameClass(); // Here hints is OK new PublicNameClass(wrongArgument); // Error ref to LongNameOfInnerClass ``` **Expected behavior:** TypeScript hints have same "export as" aliases for working code and for errors. **Actual behavior:** TypeScript hints for the working code are different from the hints for errors. **Related Issues:** Not sure, but it seems that this issue has a similar problem: [symbolToName does handle exports of namespaces](https://github.com/Microsoft/TypeScript/issues/29459)
Bug,Help Wanted
low
Critical
417,202,651
TypeScript
Boolean["toString"] inconsistency
**TypeScript Version:** 3.4.0-dev.20190305 **Code** ```ts const key: keyof Boolean = "toString"; // error - "toString" is not assignable to "valueOf" const x: {toString(): string} = new Boolean(); // no error const y: Boolean["toString"] = true.toString; // no error class Bool extends Boolean { protected toString() { // also no error, but should be return ""; } } ``` **Expected behavior:** `keyof Boolean` should be `"toString" | "valueOf"` [Playground](https://www.typescriptlang.org/play/index.html#src=const%20key%3A%20keyof%20Boolean%20%3D%20%22toString%22%3B%20%2F%2F%20error%20-%20%22toString%22%20is%20not%20assignable%20to%20%22valueOf%22%0D%0A%0D%0Aconst%20x%3A%20%7BtoString()%3A%20string%7D%20%3D%20new%20Boolean()%3B%20%2F%2F%20no%20error%0D%0Aconst%20y%3A%20Boolean%5B%22toString%22%5D%20%3D%20true.toString%3B%20%2F%2F%20no%20error%0D%0A%0D%0Aclass%20Bool%20extends%20Boolean%20%7B%20%0D%0A%20%20%20%20%20protected%20toString()%20%7B%20%2F%2F%20also%20no%20error%2C%20but%20should%20be%0D%0A%20%20%20%20%20%20%20%20%20%20return%20%22%22%3B%0D%0A%20%20%20%20%20%7D%0D%0A%7D)
Suggestion,In Discussion
low
Critical
417,262,104
flutter
google_sign_in animation when user already logged in is confusing
Signing in with the google plugin causing ugly animation: ![stack](https://user-images.githubusercontent.com/22146754/53804012-47678680-3f3e-11e9-8a0a-ea50a8cbb88b.gif) ``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14.2 18C54, locale en-IE) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) [✓] Android Studio (version 3.3) [!] IntelliJ IDEA Ultimate Edition (version 2018.3.4) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [!] VS Code (version 1.31.1) ✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) ! Doctor found issues in 2 categories. ```
a: quality,customer: crowd,p: google_sign_in,package,team-ecosystem,P2,triaged-ecosystem
low
Major
417,274,914
angular
Using href is not routing angular routes in AngularJS and Angular 7 Hybrid App
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅 Oh hi there! 😄 To expedite issue processing please search open and closed issues before submitting a new one. Existing issues often contain information about workarounds, resolution, or progress updates. 🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅--> # 🐞 bug report ### Affected Package <!-- Can you pin-point one or more @angular/* packages as the source of the bug? --> <!-- ✍️edit: --> The issue is caused by package @angular/router or other angular core packages ### Is this a regression? <!-- Did this behavior use to work in the previous version? --> <!-- ✍️--> Yes, the previous version in which this bug was not present was: Angular 4.x ### Description <!-- ✍️--> We have a Hybrid App (AngularJS and Angular7) which has a mix of AngularJS and Angular7 routers. When we try to switch between routes (components) in Angular7 with href, only every second route is routing fine, that means one in between is always skipped. This problem is only in Firefox and Safari and NOT in Chrome. ## 🔬 Minimal Reproduction <!-- Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-issue-repro2 --> <!-- ✍️--> The original code that works fine is from Manfred Steyer: https://github.com/manfredsteyer/ngUpgrade-without-preparation. This code is using Angular 4.x. You can find the upgraded code from Angular 4.x to Angular 7.x which describes the problem in repo: https://github.com/dorje42/ngUpgrade-without-preparation This is a Hybrid App, which has AngularJS and Angular7 Routers. Routing between Angular7 routes with **routerLink** is working fine. But Routing between Angular7 routes using **href** routes only every second route, that means one in between is always skipped. Routing with href in a standard Angular7 App is working fine: https://stackblitz.com/edit/angular-puqxtw?file=src%2Fapp%2Fapp.component.html There must be something wrong with the hybrid app constellation. open http://localhost:4200/ 1. click ng2-route (href), it will go to http://localhost:4200/#/ng2-route 2. click ng7-route (href), nothing happens 3. click ng8-route (href), it will go to http://localhost:4200/#/ng8-route 4. click ng2-route (href), nothing happens 5. click ng7-route (href), it will go to http://localhost:4200/#/ng7-route ## 🌍 Your Environment **Angular Version:** <pre><code> <!-- run `ng version` and paste output below --> <!-- ✍️--> Angular CLI: 7.3.4 Node: 8.11.3 OS: linux x64 Angular: 7.2.7 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router, upgrade Package Version ----------------------------------------------------------- @angular-devkit/architect 0.13.4 @angular-devkit/build-angular 0.13.4 @angular-devkit/build-optimizer 0.13.4 @angular-devkit/build-webpack 0.13.4 @angular-devkit/core 7.3.4 @angular-devkit/schematics 7.3.4 @angular/cli 7.3.4 @ngtools/webpack 7.3.4 @schematics/angular 7.3.4 @schematics/update 0.13.4 rxjs 6.4.0 typescript 3.2.4 webpack 4.29.0 </code></pre> **Anything else relevant?** <!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. --> This problem is only in Firefox and Safari and NOT in Chrome. <!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->
type: bug/fix,freq2: medium,area: router,area: zones,area: upgrade,state: confirmed,browser: firefox,router: navigation pipe,P3
low
Critical
417,364,177
react
The browser crashes when use React.lazy return Promise.resolve(undefined)
**Do you want to request a *feature* or report a *bug*?** bug **What is the current behavior?** The browser crashes ```js const Loading = () => <div>loading...</div>; const Component = lazy(() => Promise.resolve(undefined)); function App() { return ( <div className="App"> <Suspense fallback={<Loading />}> <Component /> </Suspense> </div> ); } ``` *I can't provide an example of CodeSandbox, which would cause the browser to crash* **What is the expected behavior?** throw Error **Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?** [email protected] [email protected] chrome 72.0.3626.119
Type: Needs Investigation,Resolution: Backlog
low
Critical
417,403,580
flutter
Emoji size is off on iOS
Emojis do not render with the correct height or baseline on iOS ![](https://user-images.githubusercontent.com/666539/53957059-620b3e00-40ab-11e9-8fc5-848f4d4e201f.png) Related: https://bugs.chromium.org/p/skia/issues/detail?id=9976&q=emoji&can=2
platform-ios,engine,a: fidelity,a: typography,customer: crowd,has reproducible steps,P2,team-ios,triaged-ios,found in release: 3.19,found in release: 3.22
low
Critical
417,432,605
pytorch
Improve save() method in torch.jit.ScriptModule
## 🚀 Feature save() method in torch.jit.ScriptModule should support save_to_buffer as well. ## Motivation Right now, to save a torch.jit.ScriptModule to buffer, I have to call function torch.jit.save(). It would be more convenient and consistent if torch.jit.ScriptModule.save() can perform the same job. ## Pitch I can work on this feature. cc @suo
oncall: jit,low priority,triaged,jit-backlog
low
Major
417,436,806
go
cmd/compile: investigate wasm sync inlining
https://go-review.googlesource.com/c/go/+/148958/ made sync.Mutex.Unlock inlinable. It worked for Wasm, but then CL 164461 and CL 153797 landed and the resulting merge no longer passed the inlining tests. As a quick fix, https://go-review.googlesource.com/c/go/+/165339 ignored wasm in the inlining tests. Investigate & re-enable. /cc @ALTree @neelance @aclements @CAFxX
Performance,NeedsInvestigation,arch-wasm,compiler/runtime
low
Minor
417,442,801
flutter
Flutter support for Apple Watch
_Latest status: https://github.com/flutter/flutter/issues/28901#issuecomment-1385926218_ ---- is it possible to create a watchOS application with flutter ?
c: new feature,platform-ios,engine,customer: crowd,P3,team-ios,triaged-ios
high
Critical
417,467,504
kubernetes
Event spam in some storage Operation Generator functions
Seems like in some Operation Generator functions (I saw this in `GenerateAttachVolumeFunc` if an error is encountered in the "set up" part outside of the actual `AttachVolumeFunc` there is no rate limiting and the `GenerateAttachVolumeFunc` will be retried over and over hundreds of times a second. This causes significant event spam and can also slow down the controller. /sig storage /kind bug /cc @msau42 @saad-ali @jingxu97 @verult **How to reproduce it (as minimally and precisely as possible)**: Cause some long term error in lines: https://github.com/davidz627/kubernetes/blob/f7a6b0a8602e02d67fabaa85458a94c0f14599a5/pkg/volume/util/operationexecutor/operation_generator.go#L305-L334 Observe function being retried without rate limiting.
kind/bug,sig/storage,lifecycle/frozen,triage/needs-information
medium
Critical
417,508,592
godot
Android Remote debug sync script not work(cant access any signal)
**Godot version:** Godot 3.0.6 on steam **OS/device including version:** <!-- Specify GPU model and drivers if graphics-related. --> Remote debug on wifi. Remote debug & Sync scene change & Sync script change checked The app can be deploy success on my android, and it update the visual when I change the scene(label's text, button size and coordinate, etc), but if I change some vars value(change label's text) in my script and save, the app will not accept any signal anymore, but it still update the scene, just cant response any signal, button not work. Debuggers on godot will throw "0:00:28:0728 - Error calling method from signal 'pressed': 'Control(Test.gd)::onButton_pressed': Method not found. Type:Error Description: Time: 0:00:28:0728 C Error: Error calling method from signal 'pressed': 'Control(Test.gd)::_on_Button_pressed': Method not found. C Source: core/object.cpp:1202 C Function: emit_signal" Very appreciate if anyone tell me something about that.
topic:core
low
Critical
417,530,134
go
runtime/pprof: add ReadMaps preloading API
### What version of Go are you using (`go version`)? 1.12 ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? Linux Debian 4.19.16-1 x86_64 GNU/Linux ### What did you do? Certain processes run with tight seccomp filters to restrict the access to the host OS. Namely the gVisor sandbox process is prohibited from calling open(2) and openat(2) to reduce the blast radius in case the gVisor kernel gets compromised. However, when using runtime.pprof, it tries to open `/proc/self/maps` ([here](https://github.com/golang/go/blob/232c9793092115870a430ef3c9ef9ae04f9e25c9/src/runtime/pprof/proto.go#L442)) and executable/libs [here](https://github.com/golang/go/blob/232c9793092115870a430ef3c9ef9ae04f9e25c9/src/runtime/pprof/proto.go#L552). Those calls trip over the seccomp filters and kill the process. If it would be possible to make a call to pprof to preload this information, applications could call it before seccomp filters are installed, and thus allow the process to be profiled while remaining secure. Another option is to pre-open `/proc/self/maps` and then read when needed by the profiler.
help wanted,Proposal,Proposal-Accepted,NeedsFix,compiler/runtime
low
Minor
417,546,767
flutter
Better Ordered Name Parameters in a Constructor Documentation
In any Flutter Widget documentation, the constructor definition seems rather unreadable because there is no set ordering of the named parameters. Granted, named parameters can appear in any order, but for better readability in the documentation, please either ALPHABETIZE the parameters or order them by TYPE. ![image](https://user-images.githubusercontent.com/230380/53844148-74319300-3f6a-11e9-9375-d41bb0e79f6e.png)
team,framework,d: api docs,c: proposal,a: annoyance,P2,team-framework,triaged-framework
low
Minor
417,552,516
go
net/url: Parse documentation does not adequately explain escaping rules or RFC compliance
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.11.1 darwin/amd64 </pre> ### Does this issue reproduce with the latest release? Yes, [see playground](https://play.golang.org/p/TGYai9G0M6j). ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GOARCH="amd64" GOBIN="" GOCACHE="/Users/neilalexander/Library/Caches/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/neilalexander/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cv/wv7k9w2s4qdfjfd60nd7_5t40000gn/T/go-build007721452=/tmp/go-build -gno-record-gcc-switches -fno-common" </pre></details> ### What did you do? <!-- If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best. --> [See playground](https://play.golang.org/p/TGYai9G0M6j): ``` if _, err := url.Parse("http://[fe80::1%en0]:12345"); err != nil { panic(err) } ``` ### What did you expect to see? IPv6 link-local literals should be accepted and `fe80::1%en0` should be returned within the `Host`. ### What did you see instead? Parsing error due to invalid URL escape with the percent sign - in above example produces: ``` panic: parse http://[fe80::1%en0]:12345: invalid URL escape "%en" ```
Documentation,help wanted,NeedsInvestigation
low
Critical
417,562,247
go
proposal: spec: checked integer types
As a simpler alternative to #30209, I propose that we add a new set of integer types that panic on overflow. First a quick summary of some other languages, to the best of my knowledge: - C and C++: integer overflow is undefined. - Java and D: integer overflow wraps. This is also what Go does today. - Rust, Clojure, and Ada: integer overflow throws an exception. - Swift: integer overflow throws an exception but additional operators wrap: `&+`, `&-`, `&*`. - Haskell: integer overflow is implementation defined. - C#: integer overflow may be checked or wrapped by using the `checked` and `unchecked` keywords. - Python and Ruby: integers have unbounded size and cannot overflow. Issues #19624 and #30209 argue that in Go integer overflow should panic. But today integer overflow wraps, and we cannot break existing code. I propose that we add a new set of checked integer types. These will use a prefix `o`, for overflow. The types will be `oint`, `oint8`, `oint16`, `oint32`, `oint64`, `ouint`, `ouint8`, `ouint16`, `ouint32`, `ouint64`, `ouintptr`. We can also consider adding the type aliases `obyte` (= `ouint8`) and `orune` (= `ouint32`) although I'm not sure they are very important. These new types act exactly like the corresponding types without the `o` prefix, except that if an addition, subtraction, multiplication, or division operation overflows, the result is a run-time panic. Issue #30209 suggests adding a comma-ok form to detect integer overflow in an expression, as is also suggested in #6815. The main advantage of comma-ok for simple expressions is for a simpler implementation of multi-precision arithmetic, but for that use we have instead chosen to provide functions in the math/bits package. The main advantage of comma-ok for complex expressions is to permit switching between checked and wrapping arithmetic, but we already have wrapping arithmetic in the `int` type, and there is no realistic prospect of removing that from the language. So I do not think we need a comma-ok form. If there are other uses of comma-ok, this proposal still supports them, awkwardly, via a deferred function that calls `recover`. There will as usual be no automatic conversion between existing types and the new types. This requirement of Go is the only way that this approach can work.
LanguageChange,Proposal,LanguageChangeReview
high
Critical
417,564,154
go
proposal: os: add PathSeparatorString and PathListSeparatorString
Issue #3939 proposes eliminating the conversion from integer types to string types. Examining code shows that one common case where the conversion is used correctly is `string(os.PathSeparator)`. If we eliminate the conversion from the language, we will need a replacement for code of that sort, ideally one that does not involve a function call. I propose that we add two new constants to the os package: `PathSeparatorString` and `PathListSeparatorString`. These are the best names I've come up with, but they are not great, and I would be happy to hear better suggestions. The new constants will have the same value as the current constants `PathSeparator` and `PathListSeparator`, but will be untyped string constants rather than untyped rune constants. Similarly, I propose that we add `SeparatorString` and `ListSeparatorString` to the path/filepath package.
Proposal,Proposal-Hold
low
Minor
417,565,867
go
proposal: unicode/utf8: add String
Issue #3939 proposes removing the conversion from integer types to string types. In order to do that, it will be convenient if we have an exact replacement in the standard library. I propose adding a new function to the unicode/utf8 package: ```Go func String(r rune) string ``` This function will return a string containing the UTF-8 encoding of its argument. The implementation will be equivalent to the following, though of course it may be further optimized. ```Go func String(r rune) string { var a [4]byte return string(a[:EncodeRune(a[:], r)]) } ```
Proposal,Proposal-Hold
low
Major
417,604,912
pytorch
Training hangs when using DistributedDataParallel in two pod on two nodes
<!-- A clear and concise description of what the bug is. --> Training hangs when using DistributedDataParallel in two pod on nodes. The problem **occasionally** happens and can not be reproduced each time. The pods were started by k8s using flannel network. The physical nodes are connected by 10Ge ethernet. Training started normally, but hanged in the middle of training process. ![image](https://user-images.githubusercontent.com/41627739/53853400-4860ec80-4000-11e9-9929-678b7547f630.png) Then there was no output again. The training process did not exit for servel hours. We found that the GPU utilization was always 100% on both two nodes. ![image](https://user-images.githubusercontent.com/41627739/53852922-a096ef00-3ffe-11e9-828c-6d38e8d5dd68.png) After we added NCCL_DEBUG=WARN before the training command, we found the WARN as follows. On on pod: _worker0-0d9gnb:15:91 [3] include/socket.h 398 NCCL WARN Call to **write** failed : Connection reset by peer. worker0-0d9gnb:15:91 [3] transport.cu:153 NCCL WARN transport.cu:153 ->2 [Proxy thread error]_ On the other pod: _worker0-0d9gnb:15:91 [3] include/socket.h 398 NCCL WARN Call to **recv** failed : Connection reset by peer. worker0-0d9gnb:15:91 [3] transport.cu:153 NCCL WARN transport.cu:153 ->2 [Proxy thread error]_ <!-- If you have a code sample, error messages, stack traces, please provide it here as well --> ## Environment Training code is pull from https://github.com/pytorch/examples/tree/master/imagenet. Model is Resnet. We used 8 V100s to train (4 on each node). Batch size was set 8, 32 or 128 per GPU. The network rate is about 500 MB/s to synchronize the gradients. - PyTorch Version (e.g., 1.0): both 1.0 and 0.4.1 - OS (e.g., Linux): Ubunut 16.04 - How you installed PyTorch (`conda`, `pip`, source): pip - Build command you used (if compiling from source): None - Python version: 3.6 - CUDA/cuDNN version: CUDA 9.0/cuDNN 7.1.2 - GPU models and configuration: V100 with NVLink - Any other relevant information:
oncall: distributed,triaged
low
Critical
417,628,068
flutter
didChangeDependencies docs don't specify where to call super
`didChangeDependencies` annotation says we must call `super.didChangeDependencies()` if we override this method in a `State` class, but the docs don't specify if we should do it at the beginning or at the end, like `initState` and many others do specify.
framework,d: api docs,P2,team-framework,triaged-framework
low
Minor
417,647,269
TypeScript
Support multi-threaded compilation for --build
## Search Terms Project references, multi-thread, compilation, performance ## Suggestion We have migrated our main project to use project references. It simplifies the development workflow, but brings basically 0 noticeable performance improvement (for both local development and CI). There's even an illusion that now we get worse performance during development. I guess the main reason behind this is lacking support for multi-thread compilation. ## Use Cases Improve compilation performance. ## Examples N/A ## Checklist My suggestion meets these guidelines: * [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code * [x] This wouldn't change the runtime behavior of existing JavaScript code * [x] This could be implemented without emitting different JS based on the types of the expressions * [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.) * [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Suggestion,Awaiting More Feedback,Scenario: Monorepos & Cross-Project References,Domain: tsc -b
high
Major
417,672,932
godot
Godot w/Mono fails before reaching MSBuild call
**Godot version:** 3.1 Beta 11 (custom build from commit 2940475c716eab517ca52957acc8714f195d32cb) **OS/device including version:** Gentoo Linux, Kernel 4.19.23, KDE 5, GTX 1080 w/NVidia proprietary drivers 415.27, Mono 5.18.0.240 **Issue description:** On both my Linux and my Windows systems, I have (starting from Godot 3.0.0) so far not been able to make Godot w/Mono work - using both official releases and git builds. My Linux environment is as follows: `mono -V` ``` Mono JIT compiler version 5.18.0.240 (tarball Sat Feb 16 17:29:33 CET 2019) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug Interpreter: yes LLVM: supported, not enabled. Suspend: preemptive GC: sgen (concurrent by default) ``` `xbuild /version` ``` XBuild Engine Version 14.0 Mono, Version 5.18.0.240 Copyright (C) 2005-2013 Various Mono authors ``` `msbuild /version` ``` Microsoft (R) Build Engine version 15.3.0.0 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. ``` `nuget | grep -i version` ``` NuGet Version: 2.8.7.0 ``` When I open a Mono project in Godot, I get a message box saying "Failed to build GodotSharp solution." The "Builds" panel shows "GodotSharp [Release]" on the left side and nothing on the right side. Clicking "View log" causes a KDE message saying that the file or folder `/home/cygon/.local/share/godot/mono/build_logs/bignumber_Release/msbuild_log.txt` doesn't exist. The is no `build_logs` directory, only a `mono_logs` directory. The files in `mono_logs` contain some details about Mono working, but no error messages or indications that it attempted to build anything. Going into `/home/cygon/.local/share/godot/mono/solutions` (where the GodotSharp solution is stored) reveals two projects, `GodotSharp` and `GodotSharpEditor`. Both had no build artifacts (so likely no attempt to compile them was made by Godot), but they compile successfully if I invoke `msbuild` myself from the shell. Setting `GODOT_DEBUG_MSBUILD=1` as recommended by @neikeq prints the following output into the console: ```MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. System.IO.IOException: Invalid handle to path "/mnt/devel/GameDev/MonoTest/[Unknown]" at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.ReadBuffer () [0x000b3] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.Read () [0x00021] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.GetCursorPosition () [0x00048] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.Init () [0x002dc] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.ConsoleDriver.Init () [0x00000] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <88bf9a9916c3444d928dbbd1370328e5>:0 at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String[] commandLine) [0x00067] in <784c80f67d6847369ca02438ab3612f4>:0 Unhandled Exception: System.IO.IOException: Invalid handle to path "/mnt/devel/GameDev/MonoTest/[Unknown]" at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.ReadBuffer () [0x000b3] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.Read () [0x00021] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.GetCursorPosition () [0x00048] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.Init () [0x002dc] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.ConsoleDriver.Init () [0x00000] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <88bf9a9916c3444d928dbbd1370328e5>:0 at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String[] commandLine) [0x003be] in <784c80f67d6847369ca02438ab3612f4>:0 at Microsoft.Build.CommandLine.MSBuildApp.Main (System.String[] args) [0x00029] in <784c80f67d6847369ca02438ab3612f4>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Invalid handle to path "/mnt/devel/GameDev/MonoTest/[Unknown]" at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.ReadBuffer () [0x000b3] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.IO.StreamReader.Read () [0x00021] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.GetCursorPosition () [0x00048] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.TermInfoDriver.Init () [0x002dc] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.ConsoleDriver.Init () [0x00000] in <88bf9a9916c3444d928dbbd1370328e5>:0 at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <88bf9a9916c3444d928dbbd1370328e5>:0 at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String[] commandLine) [0x003be] in <784c80f67d6847369ca02438ab3612f4>:0 at Microsoft.Build.CommandLine.MSBuildApp.Main (System.String[] args) [0x00029] in <784c80f67d6847369ca02438ab3612f4>:0 ``` **Steps to reproduce:** 1. Install a Gentoo Linux AMD64 system, Mono, MSBuild, NuGet 2. Run Godot on it 3. Create a Mono project
bug,confirmed,topic:dotnet
low
Critical
417,700,770
material-ui
[RFC] createElement changes
This is a premature tracking issue for changes in https://github.com/reactjs/rfcs/pull/107 that would affect this repository. Don't actually allocate time to this issue. Just something you might want to keep in the back of you head. # defaultProps and function components > Deprecate defaultProps on function components. - need to investigate implications for `react-docgen` - assuming we stick with not destructuring props in the function signature ```diff function Component(props) { - const { someProp, anotherProp } = props; + const { someProp = 'default', anotherProp } = props; } -Component.defaultProps = { - someProp: 'defaulted' -}; ``` Looks doable for static analysis. If anybody encounters other patterns please post them here. ## related discussions - https://github.com/mui-org/material-ui/pull/14865#discussion_r267619658 # `key` spreading > Deprecate spreading key from objects. Unknown if we do this # refs > Move ref extraction to class render time and forwardRef render time. As far as I understood this we can get rid of `React.forwardRef` on function components and instead of ```jsx const Component = React.forwardRef(function Component(props, ref) { return <div ref={ref} {...props} />; }); ``` do ```jsx function Component(props) { return <div {...props} />; }; ``` which is equivalent to ```jsx function Component({ ref, ...props }) { return <div ref={ref} {...props} />; }; ``` Really glad about this change. Although it would've been nice if this had landed with the `findDOMNode` deprecation :weary:
discussion,RFC
low
Major
417,738,302
pytorch
Can we to build Caffe2 custom ops independently from a Caffe2 build ?
I'm trying to create a custom op for Caffe2, but separately a Caffe2 build and Caffe2 source code. Looking at this example (https://github.com/caffe2/caffe2_bhtsne), I could managed to build a custom op shared lib. But I had to hack a bit to have Caffe2 accepting to load my custom op shared lib without the following error `undefined symbol: _ZN6google8protobuf8internal10LogMessageC1ENS0_8LogLevelEPKci`. After analysing the problem, it turns out that the problem is due to a mismatch between the caffe2 protobuf lib and my system protobuf lib: - Caffe2 builds its own version of protobuf - The custom layer code includes some Caffe2 headers (`caffe2/core/context.h`, `caffe2/core/operator.h`), which drags some protobuf includes. The build takes the protobuf system library and then, I have the 'missing symbol' error when loading the custom op: `lib(dyndep.InitOpsLibrary('lib_my_custom_op.so'))`. The work around I found was to: 1- make the custom op build point to the Caffe2 internal protobuf headers (in the caffe2 source dir) 2- statically link the custom op shared lib with the `libprotobuf.a` lib in the Caffe2 build. I find this approach a bit hacky and I'd like to see if there is a cleaner solution to have users create custom ops without to need to get Caffe2 sources and build Caffe2 themselves.
caffe2
low
Critical
417,741,731
rust
Compiler bad error message: E0277 error in Diesel
I tried this code: ``` pub fn establish_connection(database_url: &str) -> Pool<PgConnection> { let manager = ConnectionManager::<PgConnection>::new(database_url); Pool::builder() .build(manager) .expect(&format!("Error connecting to {}", database_url)) } ``` And was expecting to get an error message something like: ``` Expected Pool<ConnectionManager<PgConnection>> got Pool<PgConnection> ``` Instead i got an misleading error: ``` the trait `diesel::r2d2::ManageConnection` is not implemented for `diesel::PgConnection` ```
C-enhancement,A-diagnostics,T-compiler
low
Critical
417,745,712
flutter
[google_maps_flutter] GoogleMap blinks in BottomNavigationBar on Android
<!-- Thank you for using Flutter! If you are looking for support, please check out our documentation or consider asking a question on Stack Overflow: * https://flutter.io/ * https://docs.flutter.io/ * https://stackoverflow.com/questions/tagged/flutter?sort=frequent If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. Please read our guide to filing a bug first: https://flutter.io/bug-reports/ --> `BottomNavigationBar` size glitches when switching to tab with `GoogleMap` widget. Only reproduces on physical iOS device (iphone 5s, debug and profile build) ![](https://github.com/nulleof/flutter-map-bottom-tabs-test/raw/master/example.gif) ## Steps to Reproduce 1. Clone example repo https://github.com/nulleof/flutter-map-bottom-tabs-test 2. Put your Google sdk key to `ios/Runner/AppDelegate.m` 3. Run on physical device 4. When you switch to tab with map, you see blinking double sized bottom nav bar <!-- Please tell us exactly how to reproduce the problem you are running into. Please attach a small application (ideally just one main.dart file) that reproduces the problem. You could use https://gist.github.com/ for this. If the problem is with your application's rendering, then please attach a screenshot and explain what the problem is. --> ## Logs <!-- Finally, paste the output of running `flutter doctor -v` here. --> <details> <summary>flutter doctor -v</summary> ```bash [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.4 17E199, locale en-RU) • Flutter version 1.2.1 at /Users/nulleof/Development/flutter • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800 • Engine revision 3757390fa4 • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/nulleof/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /Users/nulleof/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.4.1, Build version 9F2000 • ios-deploy 1.9.4 • CocoaPods version 1.5.2 [✓] Android Studio (version 3.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 33.0.1 • Dart plugin version 182.5215 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) [✓] Connected device (2 available) • Custom Phone, 8 0, API 26, 768x1280 • 192.168.56.101:5555 • android-x86 • Android 8.0.0 (API 26) • iPhone SE • 88B95741-8E98-4FB9-B309-740F2570A3CE • ios • iOS 11.4 (simulator) ``` </details>
platform-android,framework,f: material design,p: maps,package,has reproducible steps,P2,found in release: 1.20,found in release: 2.0,found in release: 2.2,team-android,triaged-android
low
Critical
417,780,682
vue
Missing information regarding v1.x EOL/LTS plans
### Version 1.0.28 ### Reproduction link [https://jsfiddle.net/3ay9r8hz/](https://jsfiddle.net/3ay9r8hz/) ### Steps to reproduce Open README.md and search for End Of Life / LTS support ### What is expected? Find information about expected response from VueJs regarding 1.x EOL/LTS ### What is actually happening? Nothing is mentioned regarding the stance from VueJs on supporting 1.x branches --- Opening after discussion with @LinusBorg on the forum: https://forum.vuejs.org/t/vue-1-x-end-of-life-support/58143 <!-- generated by vue-issues. DO NOT REMOVE -->
intend to implement,improvement,1.x
medium
Minor
417,842,432
godot
Expose FileSystemDock to EditorInterface and restructure the FileSystemDock "*_moved" and "*_removed" signals
**Godot version:** Godot v3.1 Beta 11 **Issue description:** 1. Right now there is no way to access the `FileSystemDock` from the scripting API and as plugins/addons may need to access signals like `folder_moved` or `file_removed`.... it would be a good idea to expose it my Idea would be to use EditorInterface to expose the `FileSystemDock`.. using a `get_filesystem_dock()` method. This should be a 2 line change! 2. The other issue is also related to the signals `FileSystemDock` is exposing right now. For example `file_removed` right now has this signature `file_removed(file_path)` which is okay if you want to delete a single file but what if you are deleting a bunch of them? What happens right now is there is `signal_emit` is inside of a loop so there are a lot of signals being emitted in such cases. The solution I'm presenting could change the signature to files_removed(file_data): Where file data could be a dictionary: -> `Dictionary<old_name, new_name>` Or an array of dictionaries: -> `Array<Dictionary<>>` -> where the dictionary would contain "name", "new_name", "old_name"... keys depending on the signal emitting it!! ``` remove -> "path" move -> "old_path", "new_path" rename -> "old_path", "new_path" duplicate -> "original_path", "new_path" ``` Accessing this signals is very helpful if you need to maintain a cache of files and don't want to rescan the whole FileSystem when just a file is changed.
enhancement,topic:editor
low
Minor
417,850,611
pytorch
collate_fn returns subclass of torch.Tensor, but DataLoader transforms back to torch.Tensor
## 🐛 Bug / Unexpected Behaviour I have a custom subclass of `torch.Tensor`: `PackedSequences`, which is meant to pack together sequences of variable length. I supply my `DataLoader` with a custom `collate_fn` which returns `PackedSequences` objects just fine. When I sample a batch, I find my `PackedSequences` objects have been converted to `torch.Tensor`, losing the elementary extra data in `PackedSequences`. ## To Reproduce I'm unsure how to create a minimal example with _working data_. ```python class PackedSequences(torch.Tensor): @staticmethod def __new__(cls, tensors, *args, **kwargs): flat = torch.cat(tensors) return super().__new__(cls, flat, *args, **kwargs) def __init__(self, tensors): self.lengths = [len(t) for t in tensors] def collate_seq(batch): batch = PackedSequences(batch) assert type(batch) == PackedSequences return batch dataset = None dataloader = DataLoader(dataset, collate_fn=collate_seq) batch = dataloader[0] # type(batch[0]) == torch.Tensor ``` ## Expected behavior I'd expect ```python batch = dataloader[0] # type(batch[0]) == PackedSequences ``` ## Environment PyTorch version: 0.4.1 OS: Linux Mint 18.3 Sylvia GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 CMake version: version 3.5.1 Python version: 3.6 cc @SsnL @VitalyFedyunin @ejguan @hameerabbasi @rgommers @peterbell10
module: dataloader,triaged,module: __torch_function__
low
Critical
417,855,178
TypeScript
Restrict template literal interpolation expressions to strings
## Search Terms "template literal" There are many hits, some which seem related, but everything I could find was a much bigger ask or wider in scope ## Suggestion Add a compiler option to enforce using only strings in ES6 string template literals ## Use Cases When using string literals, any variables are coerced to strings, which can lead to undesirable behavior. As far as I can tell there's no way to avoid this behaviour. In the spirit of tying everything, I'd prefer that only actual `string` types are permissible for use in string templates to avoid accidental coercion by passing null, undefined or object types that may have unexpected string representations, and force users to explicitly convert them to strings. ## Examples For example: ``` function formatName(name: string | null): string { return `Name is: ${name}`; } formatName(null) === "Name is: null" ``` Ideally the compiler would fail since `name` can be null. ## Checklist My suggestion meets these guidelines: * [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code * [x] This wouldn't change the runtime behavior of existing JavaScript code * [x] This could be implemented without emitting different JS based on the types of the expressions * [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.) * [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Suggestion,Needs Proposal
high
Critical
417,861,730
flutter
IconButton Ink effect is drawn underneath SliverAppBar (inside a NestedScrollView)
A `Stack` with two children - a `NestedScrollView` and an `IconButton` causes the `Ink` effect of the `IconButton` to be drawn under the `SliverAppBar` contained within the `NestedScrollView`. ### Steps to reproduce 1. Run the code below: ```dart import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'IconButton Bug', home: IconButtonBugView(), ); } } class IconButtonBugView extends StatefulWidget { @override _IconButtonBugViewState createState() => _IconButtonBugViewState(); } class _IconButtonBugViewState extends State<IconButtonBugView> { @override Widget build(BuildContext context) { // setState(() {}); return Scaffold( body: Stack( children: <Widget>[ NestedScrollView( headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { return <Widget>[ SliverAppBar( flexibleSpace: FlexibleSpaceBar( title: Padding( padding: const EdgeInsets.only(top: 28.0), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ Text('Title'), IconButton( icon: Icon(Icons.chevron_right), // Uncomment below to make splash color more pronounced. // splashColor: Color(0xffFF0000), tooltip: 'Click me', onPressed: () {}, ), ], ), ), ), ), ]; }, body: Center( child: Text('Body'), ), ), SafeArea( child: IconButton( icon: Icon(Icons.chevron_left), // Uncomment below to make splash color more pronounced. // splashColor: Color(0xffFF0000), tooltip: 'Click me', onPressed: () {}, ), ), ], ), ); } } ``` 2. Click on the _Right Chevron_. Note the splash effect is properly drawn above the app bar. 3. Scroll the view so that the app bar is partially visible. 4. Click on the _Left Chevron_. Note the splash effect is incorrectly drawn underneath the app bar. ## Logs ``` Analyzing app... No issues found! (ran in 7.1s) [✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-IL) • Flutter version 1.2.1 at /Users/benPesso/Projects/flutter • Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800 • Engine revision 3757390fa4 • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/benPesso/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 33.3.1 • Dart plugin version 182.5215 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01) [✓] VS Code (version 1.31.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.24.0 [✓] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found! ```
framework,f: material design,a: quality,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-design,triaged-design
low
Critical
417,892,744
go
all: document the default doc assumptions around concurrency, zero values, interfaces and return values
In general, across all go libraries, some documentation rules are implicit. As @bradfitz [worded it](https://github.com/golang/go/issues/28461#issuecomment-433957200): > The assumption when unstated is that things are not safe for concurrent use, that zero values are not usable, that implementations implement interfaces faithfully, and that only one return values is non-zero and meaningful. This is a very important piece of knowledge and I think it should be documented somewhere. I don't know if the right place for it would be "Effective Go" (especially considering #28782) but it feels like newcomers should know this before they start browsing Go docs or writing Go code.
Suggested,Documentation,help wanted,NeedsInvestigation
low
Major
417,900,004
go
x/build: ensure that TryBot builders are using a released toolchain for GOROOT_BOOTSTRAP
The OpenBSD builder is using an unreleased development build of the `go` toolchain: ``` buildlet$ ./go1.4/bin/go version go version devel +f14067f3c1 Tue Oct 30 17:45:19 2018 +0000 openbsd/amd64 ``` That builder also runs as a TryBot. That means: 1. Failures of the builder stand in the way of active Go development (such as #30228). 3. Such failures are difficult to reproduce, and may be due to bugs fixed after Oct. 30. Now that Go 1.12 is released, we should make sure that all of the TryBot builders are using a released `go` toolchain for their `GOROOT_BOOTSTRAP`. CC @dmitshur @bradfitz
Builders,NeedsInvestigation
low
Critical
417,908,594
react
react-debug-tools doesn't support legacy context (Component.contextTypes)
Original report: https://github.com/facebook/react-devtools/issues/1304 Repro case: https://64yojj2wyk.codesandbox.io/
Type: Bug,React Core Team
low
Critical
417,915,520
go
html/template: improve context representation for user-facing error messages
<!-- Please answer these questions before submitting your issue. Thanks! --> ### What version of Go are you using (`go version`)? <pre> $ go version go version go1.12 linux/amd64 </pre> ### Does this issue reproduce with the latest release? Yes ### What operating system and processor architecture are you using (`go env`)? <details><summary><code>go env</code> Output</summary><br><pre> $ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/clap/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/clap/go" GOPROXY="" GORACE="" GOROOT="/home/clap/goroot" GOTMPDIR="" GOTOOLDIR="/home/clap/goroot/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build564528553=/tmp/go-build -gno-record-gcc-switches" </pre></details> ### What did you do? <!-- If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on play.golang.org is best. --> https://play.golang.org/p/t7FfQjWKEB6 ```go package main import ( "html/template" "os" ) func main() { t := template.Must(template.New("test").Parse(`<style>{{.}}`)) err := t.Execute(os.Stdout, "test") if err != nil { panic(err) } } ``` ### What did you expect to see? An error message stating that there is an unclosed `<style>` tag, or some similarly helpful message ### What did you see instead? ``` html/template:test: ends in a non-text context: {stateCSS delimNone urlPartNone jsCtxRegexp attrNone elementStyle <nil>} ``` ### Proposed fix This is due to the fact that [escape.go](https://github.com/golang/go/blob/master/src/html/template/escape.go#L27) uses the "%v" representation of context to format the returned error. It would probably be better to show an error based on c.state [value](https://github.com/golang/go/blob/master/src/html/template/context.go#L82), providing a String representation of states (it's not necessary to have it too fine-grained, returning one of `[CSS HTML JS RCDATA Text URL Error]` would probably suffice to debug the issue).
NeedsInvestigation
low
Critical
417,940,275
godot
When select InputEvent as base type the class constant is empty
**Godot version:** v3.1.dev.calinou.1800664 **OS/device including version:** windows 10 x64 **Issue description:** In visual script In Class constant node, when select InputEvent as base type the class constant is empty. ![image](https://user-images.githubusercontent.com/41632592/53903131-ce018e00-403a-11e9-8021-84a5795baa7a.png)
bug,confirmed,topic:visualscript
low
Minor
417,945,231
go
proposal: add mechanism to remove API as a function of caller's go.mod "go 1.xx" version
When reviewing a number of the Go2 issues, we keep finding that we're basically unable to clean up past mistakes. On the language side, the go.mod file's "go 1.xxx" declaration lets users declare their expected Go language semantics, which lets us remove Go language features over time, but we have nothing equivalent for removing standard library symbols, short of simply making new major versions of all packages, which gets contagiously invasive very quickly with the dependencies between the std packages. For redesigns, new major versions works, but it doesn't work well for cleanups. It would be nice to have a mechanism that's similar (but different) to `+build go1.x` build tags, but are added implicitly by the caller module module's expected language version. That'd let a package have different exports depending on who was using it. Rather than propose an exact solution, this bug is more generally about tracking how (and whether) we can remove things from a package over time. /cc @ianlancetaylor @griesemer @bcmills
Proposal
high
Critical
418,059,959
flutter
Feature Request: Draw arbitrary box shadow using canvas and custompainter
I'm trying to create some inset shadows (which I understand is being worked on) and shadows of custom shapes using a custom painter but the drawShadow method only supports an elevation property. I would like to customize the shadow rather than using that present. Is there some other way of doing this that I don't know about? If not, this seems like a good thing to include.
c: new feature,framework,engine,P3,team-engine,triaged-engine
low
Major
418,108,169
vue-element-admin
vue-element-admin 跨屏兼容问题
在手机和ipad上弹窗有一点小问题 <img width="844" alt="vue-admin-1" src="https://user-images.githubusercontent.com/45477743/53929649-6cd4cb80-40c9-11e9-8a07-9e93294c172f.png"> <img width="510" alt="vue-admin-2" src="https://user-images.githubusercontent.com/45477743/53929666-7bbb7e00-40c9-11e9-820f-765ee2be9d14.png">
enhancement :star:
low
Minor
418,168,743
rust
Multiple applicable items in scope suggests wrong code for references to trait objects
Suggestions from E0034 prepend `&` to expressions as a string regardless of whether the result type-checks. Example: ```rust trait Foo { fn baz(&self) -> u8; } trait Bar { fn baz(&self) -> u64; } trait Quux: Foo + Bar {} struct Spam; impl Foo for Spam { fn baz(&self) -> u8 { 10 } } impl Bar for Spam { fn baz(&self) -> u64 { 10000 } } impl Quux for Spam {} fn main() { let quux = &Spam as &dyn Quux; quux.baz(); //Foo::baz(&quux); // what compiler suggests //Foo::baz(quux); // correct suggestion (&Spam as &dyn Quux).baz(); //Foo::baz(&&Spam as &dyn Quux); // what compiler suggests //Foo::baz(&Spam as &dyn Quux); // correct suggestion } ``` Playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=97c044b74af4a3798f01b223ca868bd8. <details> <summary>Errors</summary> ``` error[E0034]: multiple applicable items in scope --> src/main.rs:13:10 | 13 | quux.baz(); | ^^^ multiple `baz` found | note: candidate #1 is defined in the trait `Foo` --> src/main.rs:1:13 | 1 | trait Foo { fn baz(&self) -> u8; } | ^^^^^^^^^^^^^^^^^^^^ = help: to disambiguate the method call, write `Foo::baz(&quux)` instead note: candidate #2 is defined in the trait `Bar` --> src/main.rs:2:13 | 2 | trait Bar { fn baz(&self) -> u64; } | ^^^^^^^^^^^^^^^^^^^^^ = help: to disambiguate the method call, write `Bar::baz(&quux)` instead error[E0034]: multiple applicable items in scope --> src/main.rs:17:26 | 17 | (&Spam as &dyn Quux).baz(); | ^^^ multiple `baz` found | note: candidate #1 is defined in the trait `Foo` --> src/main.rs:1:13 | 1 | trait Foo { fn baz(&self) -> u8; } | ^^^^^^^^^^^^^^^^^^^^ = help: to disambiguate the method call, write `Foo::baz(&&Spam as &Quux)` instead note: candidate #2 is defined in the trait `Bar` --> src/main.rs:2:13 | 2 | trait Bar { fn baz(&self) -> u64; } | ^^^^^^^^^^^^^^^^^^^^^ = help: to disambiguate the method call, write `Bar::baz(&&Spam as &Quux)` instead ``` </details> </br> Notice how in the second case, the suggested code has `&&Spam as &Quux` instead of `&(&Spam as &Quux)` which is equivalent to the first case. Applying suggestions from these errors will produce new errors: <details> <summary>Errors</summary> ``` error[E0277]: the trait bound `&dyn Quux: Foo` is not satisfied --> src/main.rs:14:5 | 14 | Foo::baz(&quux); // what compiler suggests | ^^^^^^^^ the trait `Foo` is not implemented for `&dyn Quux` | note: required by `Foo::baz` --> src/main.rs:1:13 | 1 | trait Foo { fn baz(&self) -> u8; } | ^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `&Spam: Quux` is not satisfied --> src/main.rs:18:14 | 18 | Foo::baz(&&Spam as &dyn Quux); // what compiler suggests | --^^^^ | | | the trait `Quux` is not implemented for `&Spam` | help: consider removing 1 leading `&`-references | = help: the following implementations were found: <Spam as Quux> = note: required for the cast to the object type `dyn Quux` ``` </details> <br/> The same thing happens for mutable references where `&mut` is prepended instead. Reproducible on all stable Rust versions back to 1.16.0, beta and nightly.
T-compiler,A-suggestion-diagnostics,D-incorrect,A-trait-objects
low
Critical
418,268,792
opencv
WINDOW_NORMAL does not work
##### System information (version) - OpenCV => python-opencv/bionic-updates,bionic-security,now **3.2**.0+dfsg-4ubuntu0.1 amd64 [installed] - Operating System / Platform => Ubuntu 18.04 ##### Detailed description WINDOW_NORMAL does not work when image is higher than display resolution. I have two images: the big one is 2560x2048, the small one is 750x600. My display is set to 1920x1080 resolution. When I load the small one using the code below, everything works as expected: I can resize and maximize the window, and image "scales" to window size. Now I load the big one (which is exactly the same image, just bigger). Resize doesn't work (it just moves the window instead). Maximize sets the window and the image to the original resolution, which is much bigger than my display resolution, and can't see the whole image on my screen. ##### Steps to reproduce ```.py import cv2 path="/tmp/img.jpg" # or small_img.jpg img = cv2.imread(path, 1) cv2.namedWindow('image', cv2.WINDOW_NORMAL) cv2.imshow('image', img) cv2.waitKey(0) cv2.destroyAllWindows() ```
feature,category: highgui-gui
low
Major
418,288,838
opencv
opencv-4.0.1 ,CUDA10.1, failed to build cudaimageproc
<!-- If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses. If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute). Please: * Read the documentation to test with the latest developer build. * Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue. * Try to be as detailed as possible in your report. * Report only one problem per created issue. This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library. --> ##### System information (version) <!-- Example - OpenCV => 3.1 - Operating System / Platform => Windows 64 Bit - Compiler => Visual Studio 2015 --> - OpenCV => :4.0.1: - Operating System / Platform => :Ubantu 18.0.4: - Compiler => :Gcc 7.3: ##### Detailed description <!-- your description --> ##### 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 --> I build the opencv4.0.1 with cuda10.1 successfully besides the cudaimageproc 。 here is the error message: In file included from /.../opencv-4.0.1/modules/core/include/opencv2/core/cuda/functional.hpp:50:0, from /.../opencv-4.0.1/modules/core/include/opencv2/core/cuda/vec_distance.hpp:47, from /.../opencv-4.0.1/opencv_contrib/modules/cudafeatures2d/src/cuda/bf_knnmatch.cu:49: /usr/local/cuda/include/device_functions.h:54:2: warning: #warning "device_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp] #warning "device_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." ^~~~~~~ CMakeFiles/Makefile2:4760: recipe for target 'modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all' failed
duplicate
low
Critical
418,312,997
pytorch
distributed data parallel, gloo backend works, but nccl deadlock
I have run into the same problem as #14870 . Because I cannot reopen the issue, I opened a new issue. But the GPUs are all empty, except that 11MB memory is used (no process running). The code is easy to reproduce: ```python import torch import sys dist = '--local_rank' in ''.join(sys.argv) if dist: torch.distributed.init_process_group(backend='nccl') def get_available_GPUs(N, max_utilization=.5, max_memory_usage=.5): ''' get `N` available GPU ids with *utilization* less than `max_utilization` and *memory usage* less than max_memory_usage Arguments: N (int): How many GPUs you want to select max_utilization (float): GPU with utilization higher than `max_utilization` is considered as not available. max_memory_usage (float): GPU with memory usage higher than `max_memory_usage` is considered as not available. Returns: list containing IDs of available GPUs ''' from subprocess import Popen, PIPE cmd = ["nvidia-smi", "--query-gpu=index,utilization.gpu,memory.total,memory.used", "--format=csv,noheader,nounits"] p = Popen(cmd, stdout=PIPE) output = p.stdout.read().decode('UTF-8') gpus = [[int(x) for x in line.split(',')] for line in output.splitlines()] gpu_ids = [] for (index, utilization, total, used) in gpus: if utilization / 100.0 < max_utilization: if used * 1.0 / total < max_memory_usage: gpu_ids.append(index) if len(gpu_ids) < N: raise Exception("Only %s GPU(s) available but %s GPU(s) are required!" % (len(gpu_ids), N)) available = gpu_ids[:N] return list(available) def select_GPUs(N_per_process, max_utilization=.5, max_memory_usage=.5): ''' select `N_per_process` GPUs. If distributed training is enabled, GPUs will be assigned properly among different processes. Arguments: N_per_process (int): How many GPUs you want to select for each process max_utilization (float): GPU with utilization higher than `max_utilization` is considered as not available. max_memory_usage (float): GPU with memory usage higher than `max_memory_usage` is considered as not available. Returns: list containing IDs of selected GPUs ''' if not dist: return get_available_GPUs(N_per_process, max_utilization, max_memory_usage) rank = torch.distributed.get_rank() world_size = torch.distributed.get_world_size() tensor = torch.zeros(world_size * N_per_process, dtype=torch.int).cuda() if rank == 0: device_ids = get_available_GPUs(world_size * N_per_process) tensor = torch.tensor(device_ids, dtype=torch.int).cuda() torch.distributed.broadcast(tensor, 0) ids = list(tensor.cpu().numpy().tolist()) return ids[N_per_process * rank : N_per_process * rank + N_per_process] import torch.nn as nn device_ids = select_GPUs(2) output_device = torch.device(device_ids[0]) x = torch.tensor([5.0, -1.0], dtype=torch.float).cuda(output_device).view(-1, 1) model = nn.Linear(in_features=1, out_features=1, bias=False).cuda(output_device) rank = torch.distributed.get_rank() model.weight.data.zero_() model.weight.data.add_(rank) print(f'at rank {rank}, before init, the weight is {model.weight.data.item()}') model = torch.nn.parallel.DistributedDataParallel(model,device_ids=device_ids, output_device=output_device) print(f'at rank {rank}, after init, the weight is {model.module.weight.data.item()}') y = model(x) label = torch.zeros(2, 1, dtype=torch.float).cuda(output_device) loss = torch.sum((y - label)**2) loss.backward() # print(model.weight.grad) ``` After printing ``` at rank 0, before init, the weight is 0.0 at rank 1, before init, the weight is 1.0 at rank 0, after init, the weight is 0.0 ``` it hangs. But it works fine with `gloo`.
oncall: distributed,triaged,module: nccl,module: deadlock
low
Major
418,373,565
material-ui
Select popover is displayed in wrong position while using React.lazy
<!--- Provide a general summary of the issue in the Title above --> <!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. --> <!-- Checked checkbox should look like this: [x] --> - [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) --> - [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate. ## Expected Behavior 🤔 Select popup should need to be displayed on right position. ## Current Behavior 😯 Not displaying select popup in right position at first click while using React.lazy. It can only be reproduce in first click. ## Steps to Reproduce 🕹 <!--- Provide a link to a live example (you can use codesandbox.io) and an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant (which it most likely is). This codesandbox.io template _may_ be a good starting point: https://codesandbox.io/s/github/mui-org/material-ui/tree/next/examples/create-react-app If you're using typescript a better starting point would be https://codesandbox.io/s/github/mui-org/material-ui/tree/next/examples/create-react-app-with-typescript If YOU DO NOT take time to provide a codesandbox.io reproduction, should the COMMUNITY take time to help you? --> Link: https://codesandbox.io/s/rrjr735myn 1. Use react lazy import @material-ui/core/Select 2. Click on select box (You will see popup on wrong side) 3. If want to reproduce this again than refresh you page. ## Your Environment 🌎 <!--- Include as many relevant details about the environment with which you experienced the bug. If you encounter issues with typescript please include version and tsconfig. --> | Tech | Version | |--------------|---------| | Material-UI | 3.9.2 | | React | 16.8.3 |
bug 🐛,component: Popover
low
Critical
418,488,015
TypeScript
"Delete all unused declarations" on TS imports removes code in files
<!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ --> <!-- Use Help > Report Issue to prefill these. --> - VSCode Version: 1.31.1 - OS Version: Windows 10 (not relevant) Steps to Reproduce: I feel that something is terribly wrong with the current behaviour of "Delete all unused declarations" codefix. It is suggested to remove an unused import. In this context, its implicit meaning is (for me) something like "Delete all unused **imports** ". But the actual behaviour can be quite dangerous, as it can remove actual code in the file body (which is definitely not something I would expect when refactoring dependencies): ![anim](https://user-images.githubusercontent.com/8973947/53971720-b4754a80-40fd-11e9-8e0a-cfbbc97f8092.gif) We experienced this in my team recently (and deleted parts of code that should not have been deleted), and I dont understand how this can be the default behaviour. **NB:** I'm not suggesting to fix the "Delete all unused declaration" codefix, rather to use another codefix when refactoring the depenency context... so I was not sure if this issue has to be posted on the Typescript repository, or here. <!-- Launch with `code --disable-extensions` to check. --> Does this issue occur when all extensions are disabled?: **Yes**
Bug,Help Wanted
low
Major
418,507,904
pytorch
RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED when batch size is too large
## 🐛 Bug Got the RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED when execute a CNN model. It only appears when I have multiple GPU and the batch size is too large ( for my task it is ok for 128 but not 256). And the GPU memory still has some space ``` [dunan@nvl-003 ~]$ nvidia-smi Thu Mar 7 15:51:19 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 396.44 Driver Version: 396.44 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 Tesla V100-SXM2... On | 00000000:15:00.0 Off | 0 | | N/A 43C P0 76W / 300W | 30731MiB / 32510MiB | 74% E. Process | +-------------------------------+----------------------+----------------------+ | 1 Tesla V100-SXM2... On | 00000000:16:00.0 Off | 0 | | N/A 43C P0 73W / 300W | 27283MiB / 32510MiB | 78% E. Process | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 17565 C python 30720MiB | | 1 17565 C python 27272MiB | +-----------------------------------------------------------------------------+ ``` ## To Reproduce ``` Traceback (most recent call last): File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/predict.py", line 60, in <module> predict(args) File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/predict.py", line 31, in predict logit = data_parallel(model, feature) File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 188, in data_parallel outputs = parallel_apply(replicas, inputs, module_kwargs, used_device_ids) File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py" , line 83, in parallel_apply raise output File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py" , line 59, in _worker output = module(*input, **kwargs) File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 48 9, in __call__ result = self.forward(*input, **kwargs) File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/models/SingleFrameCNN.py", line 354, in forward x = [F.relu(conv(x)).squeeze(3) for i, conv in enumerate(self.convs1)] File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/models/SingleFrameCNN.py", line 354, in <listcomp > x = [F.relu(conv(x)).squeeze(3) for i, conv in enumerate(self.convs1)] File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 48 9, in __call__ result = self.forward(*input, **kwargs) File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/models/SingleFrameCNN.py", line 307, in forward x1 = [conv(x1[:, :, i:seq_len - self.kernel_size[0] + i + 1, :]) for i, conv in enumerate(self.convs1)] File "/mnt/home/dunan/Job/2018/DNA_classification/DeepDFam/models/SingleFrameCNN.py", line 307, in <listcomp > x1 = [conv(x1[:, :, i:seq_len - self.kernel_size[0] + i + 1, :]) for i, conv in enumerate(self.convs1)] File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 48 9, in __call__ result = self.forward(*input, **kwargs) File "/mnt/home/dunan/anaconda/envs/python3/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 320, in forward self.padding, self.dilation, self.groups) RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED ``` And here is the modified convolution layer I used ``` class PosWiseConv(nn.Module): def __init__(self, channel_in, channel_out, kernel_size, conv_layer=None): super(PosWiseConv, self).__init__() self.channel_in = channel_in self.channel_out = channel_out self.kernel_size = kernel_size # (length, num_token) self.convs1 = nn.ModuleList( [nn.Conv2d(self.channel_in, self.channel_out, (1, self.kernel_size[1]), bias=False) for i in range(self.kernel_size[0])]) self.convs2 = nn.ModuleList( [nn.Conv2d(self.channel_in, self.channel_out, (1, self.kernel_size[1]), bias=False) for i in range(self.kernel_size[0])]) self.convs3 = nn.ModuleList( [nn.Conv2d(self.channel_in, self.channel_out, (1, self.kernel_size[1]), bias=False) for i in range(self.kernel_size[0])]) # weight shape is (channel_out, channel_in, kernel_size[0], kernel_size[1]) # bias shape is (channel_out) if conv_layer is not None: for i, conv in enumerate(self.convs1): conv.weight = nn.Parameter(conv_layer.weight[:, :, i, :].unsqueeze(2)) self.convs2[i].weight = nn.Parameter(conv_layer.weight[:, :, i, :].unsqueeze(2)) self.convs3[i].weight = nn.Parameter(conv_layer.weight[:, :, i, :].unsqueeze(2)) self.bias = conv_layer.bias def forward(self, input): # input shape: batch_size, channel(3), seq_len, num_vocab seq_len = input.shape[2] x1 = input[:, 0, :, :].unsqueeze(1) x2 = input[:, 1, :, :].unsqueeze(1) x3 = input[:, 2, :, :].unsqueeze(1) x1 = [conv(x1[:, :, i:seq_len - self.kernel_size[0] + i + 1, :]) for i, conv in enumerate(self.convs1)] x2 = [conv(x2[:, :, i:seq_len - self.kernel_size[0] + i + 1, :]) for i, conv in enumerate(self.convs2)] x3 = [conv(x3[:, :, i:seq_len - self.kernel_size[0] + i + 1, :]) for i, conv in enumerate(self.convs3)] # x[i].shape: batch, channel_out, seq_len - kenel_size + 1, 1 x = [F.max_pool2d(torch.cat([out, x2[i], x3[i]], 3), (1, 3)) for i, out in enumerate(x1)] x = torch.sum(torch.cat(x, 3), 3, keepdim=True) # expect x shape: (batch, channel_out, seq_len - kenel_size + 1, 1) # add bias: shape (channel_out) bias = self.bias.unsqueeze(0).unsqueeze(2).unsqueeze(3) bias = bias.expand(x.shape) x = torch.sum(torch.cat([x, bias], 3), 3, keepdim=True) return x ``` ## Expected behavior <!-- A clear and concise description of what you expected to happen. --> ## Environment Please copy and paste the output from our [environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py) (or fill out the checklist below manually). You can get the script and run it with: ``` wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py ``` PyTorch version: 1.0.0 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: CentOS Linux release 7.4.1708 (Core) GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16) CMake version: version 3.9.4 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: Could not collect GPU models and configuration: GPU 0: Tesla V100-SXM2-32GB GPU 1: Tesla V100-SXM2-32GB Nvidia driver version: 396.44 cuDNN version: Could not collect Versions of relevant libraries: [pip3] msgpack-numpy==0.4.3.2 [pip3] numpy==1.16.1 [pip3] numpydoc==0.7.0 [pip3] torch==1.0.0 [pip3] torchtext==0.2.3 [pip3] torchvision==0.2.1 [conda] blas 1.0 mkl [conda] magma-cuda80 2.3.0 1 pytorch [conda] mkl 2018.0.3 1 [conda] mkl-dnn 0.14 intel_1 [intel] intel [conda] mkl-include 2018.0.2 1 [conda] mkl-service 1.1.2 py36_3 [conda] mkl_fft 1.0.10 py36_0 conda-forge [conda] mkl_random 1.0.2 py36_0 conda-forge [conda] pytorch 1.0.0 py3.6_cuda9.0.176_cudnn7.4.1_1 pytorch [conda] torchtext 0.2.3 pypi_0 pypi [conda] torchvision 0.2.1 py36_1 pytorch ## Additional context <!-- Add any other context about the problem here. --> cc @csarofeen @ptrblck
module: cudnn,triaged
low
Critical
418,572,929
godot
Possible unused variables/functions in engine code (cppcheck report)
<!-- Please search existing issues for potential duplicates before filing yours: https://github.com/godotengine/godot/issues?q=is%3Aissue --> **Godot version:** <!-- Specify commit hash if non-official. --> master branch commit 52b7f260cfc0369847495eecb4ac53e47e2bf9f1 **Issue description:** <!-- What happened, and what was expected. --> Unusued functions and variables found by `cppcheck`. Many of these could be false-positives due to binding to Java, Mono, etc. **Steps to reproduce:** - `cd $godot_repo_root` - `cppcheck --enable=all --inconclusive --std=posix --force . 2> cppcheck_godot.log` - `rg -A 1 "\[unu" cppcheck_godot.log > unused_thirdparty_unfiltered.txt` - And use the following Python 3 script to extract the possibly unused variables and functions: ```python3 #!/usr/bin/env python3 fh = open("unused_thirdparty_unfiltered.txt", "r") mybuf = "" count = 0 skip_lines = False for line in fh: if line.startswith("thirdparty"): skip_lines = True continue if skip_lines: count += 1 if count == 2: skip_lines = False count = 0 else: if line != "\n": mybuf += line print(mybuf,end="") ``` **Minimal reproduction project:** [unused.txt](https://github.com/godotengine/godot/files/5646278/unused.txt)
bug,topic:core,topic:codestyle
low
Major
418,582,919
flutter
Produce detailed documentation on authoring an embedder
Currently the main source of documentation on authoring an embedder is build-focused. It would be useful to have a checked in markdown document that gives a brief rundown of the key aspects involved in authoring an embedder. Existing docs: * [The Custom Embedders wiki page](https://github.com/flutter/flutter/wiki/Custom-Flutter-Engine-Embedders) * [shell/platform/embedder/embedder.h](https://github.com/flutter/engine/blob/master/shell/platform/embedder/embedder.h) * [Flutter on a Raspberry Pi (mostly) from scratch](https://medium.com/flutter-io/flutter-on-raspberry-pi-mostly-from-scratch-2824c5e7dcb1) * [Docs in flutter-desktop-embedding](https://github.com/google/flutter-desktop-embedding) Much of this centers around the toolchain, build, etc. But we don't yet have a comprehensive document that covers the overall requirements for writing a full-featured embedder, which would involve everything from the basics like executing main() and graphics, to a11y and platform channels.
engine,d: api docs,e: embedder,P3,team-engine,triaged-engine
low
Minor
418,606,949
flutter
Expo like tool for flutter
Hi folks, thank you for amazing flutter. React native ecosystem has snack.expo.io and a companion Expo android/ios client where users can test the app on their actual device. A similar thing for flutter would be awesome. Considering the modular architecture of flutter, I hope it's doable and it would be an amazing tool for people to get started, experiment and share (kind of like a flutterbin (also considering humming bird, it would make a perfect UX as well)
c: new feature,tool,a: first hour,customer: crowd,c: proposal,P3,team-tool,triaged-tool
high
Critical
418,629,269
three.js
Feature suggestion: Support Maya's PBR material in FBXLoader
PBR materials are exported to FBX from Maya using a proprietary extension ( `Maya|xxxx`). A couple of these were added in #15844 which was a good start but doesn't take into account the fact that the `Maya|` prefix in FBX denotes that it's a PBR material, which should be used to create a `MeshStandardMaterial`. According to this issue: https://github.com/assimp/assimp/issues/1504, this is a complete list of the materials that can be exported from Maya to FBX: ``` js Material: 2967359479536, "Material::StingrayPBS2", "" { Version: 102 ShadingModel: "unknown" MultiLayer: 0 Properties70: { P: "Maya", "Compound", "", "" P: "Maya|TypeId", "int", "Integer", "",1166017 P: "Maya|TEX_global_diffuse_cube", "Vector3D", "Vector", "",0,0,0 P: "Maya|TEX_global_specular_cube", "Vector3D", "Vector", "",0,0,0 P: "Maya|TEX_brdf_lut", "Vector3D", "Vector", "",0,0,0 P: "Maya|use_normal_map", "float", "", "",0 P: "Maya|uv_offset", "Vector2D", "Vector2", "",0,0 P: "Maya|uv_scale", "Vector2D", "Vector2", "",1,1 P: "Maya|TEX_normal_map", "Vector3D", "Vector", "",0,0,0 P: "Maya|use_color_map", "float", "", "",0 P: "Maya|TEX_color_map", "Vector3D", "Vector", "",0,0,0 P: "Maya|base_color", "Vector3D", "Vector", "",1,0,0 P: "Maya|use_metallic_map", "float", "", "",0 P: "Maya|TEX_metallic_map", "Vector3D", "Vector", "",0,0,0 P: "Maya|metallic", "float", "", "",0 P: "Maya|use_roughness_map", "float", "", "",0 P: "Maya|TEX_roughness_map", "Vector3D", "Vector", "",0,0,0 P: "Maya|roughness", "float", "", "",0.33 P: "Maya|use_emissive_map", "float", "", "",0 P: "Maya|TEX_emissive_map", "Vector3D", "Vector", "",0,0,0 P: "Maya|emissive", "Vector3D", "Vector", "",0,0,0 P: "Maya|emissive_intensity", "float", "", "",0 P: "Maya|use_ao_map", "float", "", "",0 P: "Maya|TEX_ao_map", "Vector3D", "Vector", "",0,0,0 } } Material: 2967565876448, "Material::phong2", "" { Version: 102 ShadingModel: "phong" MultiLayer: 0 Properties70: { P: "AmbientColor", "Color", "", "A",0,0,0 P: "DiffuseColor", "Color", "", "A",1,0,0 P: "DiffuseFactor", "Number", "", "A",0.800000011920929 P: "TransparencyFactor", "Number", "", "A",1 P: "SpecularColor", "Color", "", "A",0.5,0.5,0.5 P: "ReflectionFactor", "Number", "", "A",0.5 P: "Emissive", "Vector3D", "Vector", "",0,0,0 P: "Ambient", "Vector3D", "Vector", "",0,0,0 P: "Diffuse", "Vector3D", "Vector", "",0.800000011920929,0,0 P: "Specular", "Vector3D", "Vector", "",0.5,0.5,0.5 P: "Shininess", "double", "Number", "",20 P: "Opacity", "double", "Number", "",1 P: "Reflectivity", "double", "Number", "",0 } } Material: 2967588203904, "Material::lambert2", "" { Version: 102 ShadingModel: "lambert" MultiLayer: 0 Properties70: { P: "AmbientColor", "Color", "", "A",0,0,0 P: "DiffuseColor", "Color", "", "A",1,0,0 P: "DiffuseFactor", "Number", "", "A",0.800000011920929 P: "TransparencyFactor", "Number", "", "A",1 P: "Emissive", "Vector3D", "Vector", "",0,0,0 P: "Ambient", "Vector3D", "Vector", "",0,0,0 P: "Diffuse", "Vector3D", "Vector", "",0.800000011920929,0,0 P: "Opacity", "double", "Number", "",1 } } ``` Note: As far as I can see all PBR materials that are supported by the Maya FBX exporter use this extension, which is at least the Stingray and Arnold shaders. I've come across a couple of mentions that other apps besides Maya may have also adopted the `maya|` extension for PBR materials, but I haven't verified this. However, 3D Max uses it's own proprietary extension, which should be trivial to add once we've set up Maya's extension. . Adding support for this will require some refactoring of the material system in the `FBXLoader`, but should be fairly straightforward. If nobody else takes this on, I'll get round to it... someday 😁 In the meantime I'm putting the information up here so that if somebody else needs this they it will be as easy as possible for them to implement.
Enhancement,Loaders
low
Major
418,644,998
go
internal/x/text/unicode/bidi: remove generated 'example_test.go' which is build-ignored
`example_test.go` in `internal/x/text/unicode/bidi` will never build due to the [`+build ignore`](https://go-review.googlesource.com/c/go/+/160445/1/src/internal/x/text/unicode/bidi/example_test.go#3) build constraint. Can this file be removed? See also https://github.com/golang/go/pull/30021.
NeedsInvestigation
low
Minor
418,671,707
TypeScript
TypeError: Cannot read property 'kind' of undefined
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. --> **TypeScript Version:** 3.4.0-dev.20190307 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** typeerror, language server **Code** ```tsx // Was renaming a React component from GymForm to GymAddForm, removed the props from the interface, then the error appeared // form.tsx export interface FormProps { // had // mode: 'add' | 'edit' // here } export const GymAddForm: React.FunctionComponent<FormProps> = (props) => { } // was GymForm, was editing another file that included this one /*********************************/ // index.tsx import { GymAddForm } from './form' // was GymForm //... '/add': route({ view: <GymAddForm /> // was <GymForm mode="add" /> }) //... ``` ``` [2019-03-08 04:35:12.667] [exthost] [error] [vscode.typescript-language-features] provider FAILED [2019-03-08 04:35:12.668] [exthost] [error] Error: TypeScript Server Error (3.4.0-dev.20190307) Cannot read property 'kind' of undefined TypeError: Cannot read property 'kind' of undefined at pipelineEmitWithHint (tsserver.js:82991:39) at print (tsserver.js:82893:13) at Object.writeNode (tsserver.js:82826:13) at tsserver.js:105353:25 at Object.mapToDisplayParts (tsserver.js:95290:13) at createSignatureHelpParameterForTypeParameter (tsserver.js:105351:35) at tsserver.js:105322:90 at Array.map (<anonymous>) at itemInfoForTypeParameters (tsserver.js:105322:64) at getSignatureHelpItem (tsserver.js:105299:95) at tsserver.js:105272:79 at Array.map (<anonymous>) at createSignatureHelpItems (tsserver.js:105272:36) at tsserver.js:104877:23 at Object.runWithCancellationToken (tsserver.js:31334:28) at Object.getSignatureHelpItems (tsserver.js:104875:32) at Proxy.getSignatureHelpItems (tsserver.js:119615:37) at IOSession.Session.getSignatureHelpItems (tsserver.js:127702:62) at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:126661:61) at tsserver.js:128123:88 at IOSession.Session.executeWithRequestId (tsserver.js:128114:28) at IOSession.Session.executeCommand (tsserver.js:128123:33) at IOSession.Session.onMessage (tsserver.js:128145:35) at Interface.<anonymous> (tsserver.js:129406:27) at Interface.emit (events.js:182:13) at Interface._onLine (readline.js:290:10) at Interface._normalWrite (readline.js:433:12) at Socket.ondata (readline.js:149:10) at Socket.emit (events.js:182:13) at addChunk (_stream_readable.js:279:12) at readableAddChunk (_stream_readable.js:264:11) at Socket.Readable.push (_stream_readable.js:219:10) at Pipe.onread (net.js:636:20) at Function.create (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:173227) at v.dispatchResponse (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:178533) at v.dispatchMessage (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:177285) at constructor._reader.onData.e (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:176641) at u.fire (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:43:416) at t.Reader.onLengthData (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:182501) at Socket.t.Reader.constructor.e.on.e (f:\Users\Paulo\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension.js:1:182149) at Socket.emit (events.js:182:13) at Socket.EventEmitter.emit (domain.js:442:20) at addChunk (_stream_readable.js:279:12) at readableAddChunk (_stream_readable.js:264:11) at Socket.Readable.push (_stream_readable.js:219:10) at Pipe.onread (net.js:636:20) ``` **Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior --> **Related Issues:** <!-- Did you find other bugs that looked similar? --> #6497 #15865 #27214 #27092 #28810
Bug,Crash
low
Critical
418,672,032
flutter
[iOS] Touch events missing sound
``` class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, platform: TargetPlatform.iOS ), home: MyHomePage(title: 'Flutter Demo Home Page'), ); } } ``` 你好,我在Android上,将platform设置成TargetPlatform.iOS,所有的点击都没有声音(比如RaisedButton,GestureDetector -> on... ,InkWell -> onTap), 怎么做才能让点击有声音效果? _translated using Google Translate_ Hello, I am on Android, set the platform to TargetPlatform.iOS, all clicks have no sound (such as RaisedButton, GestureDetector -> on... , InkWell -> onTap), How can I make click sound effect?
platform-ios,framework,a: fidelity,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-ios,triaged-ios
low
Major
418,687,118
pytorch
[Caffe2] install error
I try `python setup.py install`, but encountered, what are the possible problems? ``` /home/nonews/miniconda2/include/ATen/NativeFunctions.h(534): error: cannot convert to incomplete class "at::Scalar" [0/1991] /home/nonews/miniconda2/include/ATen/NativeFunctions.h(534): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(541): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(542): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(553): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(554): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(580): error: cannot convert to incomplete class "at::Scalar" /home/nonews/miniconda2/include/ATen/NativeFunctions.h(581): error: cannot convert to incomplete class "at::Scalar" Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00008ad3_00000000-6_THCTensorSortShort.cpp1.ii". Compilation terminated. CMake Error at caffe2_gpu_generated_THCTensorSortShort.cu.o.Release.cmake:279 (message): Error generating file /home/dynamite/pytorch/build/caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/./caffe2_gpu_generated_THCTensorSortShort.cu.o caffe2/CMakeFiles/caffe2_gpu.dir/build.make:25981: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_ THCTensorSortShort.cu.o' failed make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/__/aten/src/THC/generated/caffe2_gpu_generated_THCTensorSortShort.cu.o] Error 1 CMakeFiles/Makefile2:6689: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/all' failed make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Traceback (most recent call last): File "setup.py", line 715, in <module> build_deps() File "setup.py", line 287, in build_deps build_dir='build') File "/home/dynamite/pytorch/tools/build_pytorch_libs.py", line 259, in build_caffe2 check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env) File "/home/dynamite/.conda/envs/caffe2/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j', '40', 'install']' returned non-zero exit status ``` Build info ``` -- std::exception_ptr is supported. -- NUMA is available -- Current compiler supports avx2 extension. Will build perfkernels. -- Current compiler supports avx512f extension. Will build fbgemm. -- Building using own protobuf under third_party per request. -- Use custom protobuf build. -- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/home/dynamite/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include> -- Trying to find preferred BLAS backend of choice: MKL -- MKL libraries: /home/dynamite/.conda/envs/caffe2/lib/libmkl_intel_lp64.so;/home/dynamite/.conda/envs/caffe2/lib/libmkl_gnu_thread.so;/home/dynamite/.conda/envs/caffe2/lib/libmkl_core.so;-fopenmp;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so -- MKL include directory: /home/nonews/miniconda2/include -- MKL OpenMP type: GNU -- MKL OpenMP library: -fopenmp -- Brace yourself, we are building NNPACK -- Found PythonInterp: /home/dynamite/.conda/envs/caffe2/bin/python (found version "3.6.8") -- Failed to find LLVM FileCheck -- git Version: v1.4.0-505be96a -- Version: 1.4.0 -- Performing Test HAVE_STD_REGEX -- success -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Performing Test HAVE_POSIX_REGEX -- success -- Performing Test HAVE_STEADY_CLOCK -- success -- Found OpenMP: TRUE -- [asmjit] BuildMode=Static BuildTest=Off ASMJIT_DIR=/home/dynamite/pytorch/build/third_party/fbgemm/third_party/asmjit ASMJIT_DEPS=pthread;rt ASMJIT_LIBS=asmjit;pthread;rt ASMJIT_CFLAGS=-DASMJIT_STATIC ASMJIT_SOURCE_DIR=/home/dynamite/pytorch/build/third_party/fbgemm/third_party/asmjit/src ASMJIT_INCLUDE_DIR=/home/dynamite/pytorch/build/third_party/fbgemm/third_party/asmjit/src ASMJIT_PRIVATE_CFLAGS= -DASMJIT_STATIC -std=c++17 -fno-tree-vectorize -fvisibility=hidden -O2 [RELEASE] -fno-keep-static-consts [RELEASE] -fmerge-all-constants [RELEASE] -- Found Numa (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so) -- Using third party subdirectory Eigen. Python 3.6.8 :: Anaconda, Inc. -- Found PythonInterp: /home/dynamite/.conda/envs/caffe2/bin/python (found suitable version "3.6.8", minimum required is "2.7") CMake Warning at cmake/Dependencies.cmake:630 (find_package): Could not find a package configuration file provided by "pybind11" with any of the following names: pybind11Config.cmake pybind11-config.cmake Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set "pybind11_DIR" to a directory containing one of the above files. If "pybind11" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:224 (include) -- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR) -- Using third_party/pybind11. -- MPI support found -- MPI compile flags: -- MPI include path: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include/usr/lib/openmpi/include/usr/lib/openmpi/include/openmpi -- MPI LINK flags path: -Wl,-rpath -Wl,/usr/lib/openmpi/lib -Wl,--enable-new-dtags -- MPI libraries: /usr/lib/openmpi/lib/libmpi_cxx.so/usr/lib/openmpi/lib/libmpi.so CMake Warning at cmake/Dependencies.cmake:665 (message): OpenMPI found, but it is not built with CUDA support. Call Stack (most recent call first): CMakeLists.txt:224 (include) -- Adding OpenMP CXX_FLAGS: -fopenmp -- Will link against OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/5/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so -- Caffe2: CUDA detected: 9.0 -- Caffe2: CUDA nvcc is: /usr/local/cuda-9.0/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/cuda-9.0 -- Caffe2: Header version is: 9.0 -- Found CUDNN: /usr/local/cuda-9.0/include -- Found cuDNN: v7.3.0 (include: /usr/local/cuda-9.0/include, library: /usr/local/cuda-9.0/lib64/libcudnn.so) -- Autodetected CUDA architecture(s): 6.1;6.1;6.1;6.1;6.1;6.1;6.1;6.1 -- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61 -- Could NOT find CUB (missing: CUB_INCLUDE_DIR) -- MPI include path: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include/usr/lib/openmpi/include/usr/lib/openmpi/include/openmpi -- MPI libraries: /usr/lib/openmpi/lib/libmpi_cxx.so/usr/lib/openmpi/lib/libmpi.so -- Found CUDA: /usr/local/cuda-9.0 (found suitable version "9.0", minimum required is "7.0") -- CUDA detected: 9.0 -- -- ******** Summary ******** -- CMake version : 3.5.1 -- CMake command : /usr/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 5.4.0 -- CXX flags : -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/dynamite/.conda/envs/caffe2/lib/python3.6/site-packages -- CMAKE_INSTALL_PREFIX : /home/dynamite/pytorch/torch -- CMAKE_MODULE_PATH : /home/dynamite/pytorch/cmake/Modules;/home/dynamite/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- ONNXIFI_ENABLE_EXT : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- -- ******** Summary ******** -- CMake version : 3.5.1 -- CMake command : /usr/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler version : 5.4.0 -- CXX flags : -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/dynamite/.conda/envs/caffe2/lib/python3.6/site-packages -- CMAKE_INSTALL_PREFIX : /home/dynamite/pytorch/torch -- CMAKE_MODULE_PATH : /home/dynamite/pytorch/cmake/Modules;/home/dynamite/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor -- Removing -DNDEBUG from compile flags -- MAGMA not found. Compiling without MAGMA support -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- AVX compiler support found -- AVX2 compiler support found -- Atomics: using GCC intrinsics -- Found a library with BLAS API (mkl). -- Found a library with LAPACK API (mkl). disabling ROCM because NOT USE_ROCM is set -- MIOpen not found. Compiling without MIOpen support -- OpenMP lib: provided by compiler -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- VTune profiling environment is unset -- Found MKL-DNN: TRUE -- GCC 5.4.0: Adding gcc and gcc_s libs to link line -- NUMA paths: -- /usr/include -- /usr/lib/x86_64-linux-gnu/libnuma.so -- Found OpenMP: -fopenmp -- Configuring build for SLEEF-v3.2 Target system: Linux-4.4.0-142-generic Target processor: x86_64 Host system: Linux-4.4.0-142-generic Host processor: x86_64 Detected C compiler: GNU @ /usr/bin/cc -- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef -- Building shared libs : OFF -- MPFR : LIB_MPFR-NOTFOUND -- GMP : LIBGMP-NOTFOUND -- RUNNING_ON_TRAVIS : 0 -- COMPILER_SUPPORTS_OPENMP : 1 -- pytorch is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/5/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so. -- /usr/bin/c++ /home/dynamite/pytorch/torch/abi-check.cpp -o /home/dynamite/pytorch/build/abi-check -- Determined _GLIBCXX_USE_CXX11_ABI=1 -- Found CUDA: /usr/local/cuda-9.0 (found suitable version "9.0", minimum required is "7.5") -- MPI_LIBRARIES: /usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so -- Building the gloo backend with TCP support only -- MPI_LINK_FLAGS: -Wl,-rpath -Wl,/usr/lib/openmpi/lib -Wl,--enable-new-dtags -- Found CUDA: /usr/local/cuda-9.0 (found version "9.0") -- Building C10D with CUDA support -- MPI_INCLUDE_PATH: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent;/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include;/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi -- MPI_LIBRARIES: /usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so -- MPIEXEC: /usr/bin/mpiexec -- Include NCCL operators -- Including IDEEP operators -- Excluding image processing operators due to no opencv -- Excluding video processing operators due to no opencv -- Include Observer library -- Caffe2 is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/lib/gcc/x86_64-linux-gnu/5/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so. -- Using lib/python3.6/site-packages as python relative installation path CMake Warning at CMakeLists.txt:421 (message): Generated cmake files are only fully tested if one builds with system glog, gflags, and protobuf. Other settings may generate files that are not well tested. -- -- ******** Summary ******** -- General: -- CMake version : 3.5.1 -- CMake command : /usr/bin/cmake -- System : Linux -- C++ compiler : /usr/bin/c++ -- C++ compiler id : GNU -- C++ compiler version : 5.4.0 -- BLAS : MKL -- CXX flags : -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized -- Build type : Release -- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1 -- CMAKE_PREFIX_PATH : /home/dynamite/.conda/envs/caffe2/lib/python3.6/site-packages -- CMAKE_INSTALL_PREFIX : /home/dynamite/pytorch/torch -- -- TORCH_VERSION : 1.1.0 -- CAFFE2_VERSION : 1.1.0 -- BUILD_ATEN_MOBILE : OFF -- BUILD_ATEN_ONLY : OFF -- BUILD_BINARY : False -- BUILD_CUSTOM_PROTOBUF : ON -- Link local protobuf : ON -- BUILD_DOCS : OFF -- BUILD_PYTHON : True -- Python version : 3.6.8 -- Python executable : /home/dynamite/.conda/envs/caffe2/bin/python -- Pythonlibs version : 3.6.8 -- Python library : /home/dynamite/.conda/envs/caffe2/lib/libpython3.6m.so.1.0 -- Python includes : /home/dynamite/.conda/envs/caffe2/include/python3.6m -- Python site-packages: lib/python3.6/site-packages -- BUILD_CAFFE2_OPS : True -- BUILD_SHARED_LIBS : ON -- BUILD_TEST : True -- USE_ASAN : OFF -- USE_CUDA : True -- CUDA static link : False -- USE_CUDNN : ON -- CUDA version : 9.0 -- cuDNN version : 7.3.0 -- CUDA root directory : /usr/local/cuda-9.0 -- CUDA library : /usr/local/cuda-9.0/lib64/stubs/libcuda.so -- cudart library : /usr/local/cuda-9.0/lib64/libcudart.so -- cublas library : /usr/local/cuda-9.0/lib64/libcublas.so;/usr/local/cuda-9.0/lib64/libcublas_device.a -- cufft library : /usr/local/cuda-9.0/lib64/libcufft.so -- curand library : /usr/local/cuda-9.0/lib64/libcurand.so -- cuDNN library : /usr/local/cuda-9.0/lib64/libcudnn.so -- nvrtc : /usr/local/cuda-9.0/lib64/libnvrtc.so -- CUDA include path : /usr/local/cuda-9.0/include -- NVCC executable : /usr/local/cuda-9.0/bin/nvcc -- CUDA host compiler : /usr/bin/cc -- USE_TENSORRT : OFF -- USE_ROCM : False -- USE_EIGEN_FOR_BLAS : -- USE_FBGEMM : ON -- USE_FFMPEG : False -- USE_GFLAGS : OFF -- USE_GLOG : OFF -- USE_LEVELDB : False -- USE_LITE_PROTO : OFF -- USE_LMDB : False -- USE_METAL : OFF -- USE_MKL : ON -- USE_MKLDNN : ON -- USE_NCCL : True -- USE_SYSTEM_NCCL : True -- USE_NNPACK : True -- USE_NUMPY : ON -- USE_OBSERVERS : ON -- USE_OPENCL : OFF -- USE_OPENCV : False -- USE_OPENMP : ON -- USE_PROF : OFF -- USE_QNNPACK : True -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_ZMQ : OFF -- USE_DISTRIBUTED : True -- USE_MPI : ON -- USE_GLOO : ON -- USE_GLOO_IBVERBS : OFF -- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn -- Private Dependencies : qnnpack;nnpack;cpuinfo;fbgemm;/usr/lib/x86_64-linux-gnu/libnuma.so;fp16;/usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so;gloo;aten_op_header_gen;foxi_loader;rt;gcc_s;gcc;dl -- Configuring done CMake Warning (dev) at cmake/Dependencies.cmake:901 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "nccl_external" of target "gloo_cuda" does not exist. Call Stack (most recent call first): CMakeLists.txt:224 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning at caffe2/CMakeLists.txt:214 (add_library): Cannot generate a safe runtime search path for target caffe2 because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:266 (add_library): Cannot generate a safe runtime search path for target torch because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:724 (add_library): Cannot generate a safe runtime search path for target torch_python because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/jit/CMakeLists.txt:3 (add_executable): Cannot generate a safe runtime search path for target test_jit because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/api/CMakeLists.txt:30 (add_executable): Cannot generate a safe runtime search path for target test_api because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe linker search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: link library [libgomp.so] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:12 (CUDA_ADD_LIBRARY) CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe runtime search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/5 may be hidden by files in: /home/dynamite/.conda/envs/caffe2/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:12 (CUDA_ADD_LIBRARY) -- Generating done -- Build files have been written to: /home/dynamite/pytorch/build ```
caffe2
low
Critical
418,690,025
pytorch
Non-coherent result for C++ with multithreading and GPU
## 🐛 Bug When a script module is loaded in C++ and used in a multithread environment, the result of GPU forwarding is non-deterministic, even if one assigns each thread a seperate module instance. This behavior does not appear when running in single thread environment, or with Module::forward() call locked, or with CPU backend. ## To Reproduce Steps to reproduce the behavior: 1. Taking a pretrained PyTorch NN (e.g. UNet), trace it and save the script module. 2. Load the script module N times, using libtorch and C++ interface, producing N module instance. 3. Convert everything to use GPU. Setting any flags that might affect determinism (setDeterministicCuDNN(true) and setBenchmarkCuDNN(false)). 4. Using OpenMP to do forward computation in a multithread environment, with N max threads and each thread using its own module instance. 5. Repeat several times and compare the result. ## Expected behavior The result should be reproducible. Threads running different module instances should not interfere with each other. ## Environment - PyTorch Version (e.g., 1.0): libtorch 1.0 - OS (e.g., Linux): Linux (CentOS) - How you installed PyTorch (`conda`, `pip`, source): prebuilt libtorch - Build command you used (if compiling from source): N/A - Python version: N/A - CUDA/cuDNN version: CUDA 9.2/cuDNN 7.4 - GPU models and configuration: P40 - Any other relevant information: ## Additional context cc @suo @yf225
oncall: jit,module: cpp,triaged
low
Critical
418,691,985
three.js
Camera added to scene does not display, rotate, do anything ...
##### Description of the problem I am making [react-three-fiber](https://github.com/drcmda/react-three-fiber), a react renderer for threejs and i am running into a problem that i don't understand. ideally i would like to describe the entirety of threes object3d graph as well as non-object3d's declaratively, so that they can be managed, starting from scene and camera management. ### The problem As soon i start adding cameras to the scene all bets are off, it behaves in the strangest ways. It doesn't show anything at first, i can put objects in front of it when i position them in the opposite direction, i can't move or turn the camera at all. I can go into devtools and set .parent = null and all starts working again. This is how i picture a multi-cam setup, the problem is at line 40-42, where i have to remove the cameras parent to make it work): * [codesandbox - react example](https://codesandbox.io/s/oj5vkjw0o6) I've made the following plain threejs sandbox, without any react stuff, to demonstrate the same problem (line 25-26): * [codesandbox - vanilla js](https://codesandbox.io/s/o7k584q8ry/) I have googled for hours but only find bits and pieces. [Here](https://github.com/mrdoob/three.js/issues/15267) @WestLangley said the camera must not have a parent or its world position must be zero. [Here](https://github.com/mrdoob/three.js/issues/13753) someone says that attached cameras display backwards. [Here](https://github.com/mrdoob/three.js/issues/1046) it says cameras are "automatically" added to the scene, whatever that means, and that cameras **should** be added added to scene. It's all very confusing and i don't know any longer if it's a bug in three or just everything changes once a camera is part of the scene. Could someone explain? ##### Three.js version - [x] r102 ##### Browser - [x] All of them ##### OS - [x] All of them
Enhancement
low
Critical