text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When writing a generical code to generate plots with sphinx documentation, this function cannot be called by other functions from the documentation in the same file</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">Repository layout:</p>
<ul dir="auto">
<li>docs
<ul dir="auto">
<li>source
<ul dir="auto">
<li>pyplots
<ul dir="auto">
<li>test.py</li>
</ul>
</li>
<li>conf.py</li>
<li>index.rst</li>
</ul>
</li>
</ul>
</li>
<li>package</li>
</ul>
<p dir="auto">Content of file <code class="notranslate">test.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
def generate_plot_according_to_step(step):
plt.figure()
plt.plot([1, 2], [2, 3])
if step >= 1:
plt.title("Adding a title")
if step >= 2:
plt.suptitle('Adding a suptitle')
plt.show()
def step0():
generate_plot_according_to_step(0)
def step1():
generate_plot_according_to_step(1)
def step2():
generate_plot_according_to_step(2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">def</span> <span class="pl-en">generate_plot_according_to_step</span>(<span class="pl-s1">step</span>):
<span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>])
<span class="pl-k">if</span> <span class="pl-s1">step</span> <span class="pl-c1">>=</span> <span class="pl-c1">1</span>:
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">"Adding a title"</span>)
<span class="pl-k">if</span> <span class="pl-s1">step</span> <span class="pl-c1">>=</span> <span class="pl-c1">2</span>:
<span class="pl-s1">plt</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'Adding a suptitle'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()
<span class="pl-k">def</span> <span class="pl-en">step0</span>():
<span class="pl-en">generate_plot_according_to_step</span>(<span class="pl-c1">0</span>)
<span class="pl-k">def</span> <span class="pl-en">step1</span>():
<span class="pl-en">generate_plot_according_to_step</span>(<span class="pl-c1">1</span>)
<span class="pl-k">def</span> <span class="pl-en">step2</span>():
<span class="pl-en">generate_plot_according_to_step</span>(<span class="pl-c1">2</span>)</pre></div>
<p dir="auto">Content of <code class="notranslate">conf.py</code> :</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extensions = [
'sphinx.ext.autodoc',
'matplotlib.sphinxext.plot_directive'
]"><pre class="notranslate"><span class="pl-s1">extensions</span> <span class="pl-c1">=</span> [
<span class="pl-s">'sphinx.ext.autodoc'</span>,
<span class="pl-s">'matplotlib.sphinxext.plot_directive'</span>
]</pre></div>
<p dir="auto">Then when referencing the steps functions in docstring anywhere in the package, such as:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""""
.. plot:: pyplots/test.py step0
.. plot:: pyplots/test.py step1
.. plot:: pyplots/test.py step2
""""><pre class="notranslate"><span class="pl-s">"""</span>
<span class="pl-s">.. plot:: pyplots/test.py step0</span>
<span class="pl-s"></span>
<span class="pl-s">.. plot:: pyplots/test.py step1</span>
<span class="pl-s"></span>
<span class="pl-s">.. plot:: pyplots/test.py step2</span>
<span class="pl-s"></span>
<span class="pl-s">"""</span></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">When building the doc through the following steps:</p>
<div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
cd .\docs
sphinx-quickstart
sphinx-apidoc -f -o source/ ../
.\make.bat html"><pre class="notranslate">cd .\docs
sphinx<span class="pl-k">-</span>quickstart
sphinx<span class="pl-k">-</span>apidoc <span class="pl-k">-f</span> <span class="pl-k">-</span>o source<span class="pl-k">/</span> ..<span class="pl-k">/</span>
.\<span class="pl-c1">make.bat</span> html</pre></div>
<p dir="auto">The following message arise</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" WARNING: Exception occurred in plotting test
from path\to\repository\docs\source\pyplots/test.py:
Traceback (most recent call last):
File "path\to\repository\.venv\lib\site-packages\matplotlib\sphinxext\plot_directive.py", line 485, in run_code
exec(function_name + "()", ns)
File "<string>", line 1, in <module>
NameError: name 'step0' is not defined"><pre class="notranslate"><code class="notranslate"> WARNING: Exception occurred in plotting test
from path\to\repository\docs\source\pyplots/test.py:
Traceback (most recent call last):
File "path\to\repository\.venv\lib\site-packages\matplotlib\sphinxext\plot_directive.py", line 485, in run_code
exec(function_name + "()", ns)
File "<string>", line 1, in <module>
NameError: name 'step0' is not defined
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">It seems that it is not possible to use a generical function such as the one presented to generate documentation.<br>
Either it is considered a bug and should be fixed or the error message should be more explicit, as it is currently inaccurate, as the step functions exists</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10</li>
<li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.4.2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li>
<li>Python version: 3.9.5</li>
<li>Other libraries: Sphinx 4.0.2</li>
</ul>
<p dir="auto">Every library has been installed through pip</p> | <h3 dir="auto">Bug summary</h3>
<p dir="auto">Matplotlib is unable to apply the boundaries in the colorbar after updating to 3.5.0. Please compare the results in the screenshots between version 3.5.0 and the previous version 3.4.3.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
from matplotlib import cm
n_radii = 8
n_angles = 36
# Make radii and angles spaces (radius r=0 omitted to eliminate duplication).
radii = np.linspace(0.125, 1.0, n_radii)
angles = np.linspace(0, 2*np.pi, n_angles, endpoint=False)[..., np.newaxis]
# Convert polar (radii, angles) coords to cartesian (x, y) coords.
# (0, 0) is manually added at this stage, so there will be no duplicate
# points in the (x, y) plane.
x = np.append(0, (radii*np.cos(angles)).flatten())
y = np.append(0, (radii*np.sin(angles)).flatten())
# Compute z to make the pringle surface.
z = np.sin(-x*y)
fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
surf = ax.plot_trisurf(x, y, z, linewidth=0.2, antialiased=True, cmap=cm.coolwarm)
boundaries = np.linspace(np.min(z), np.max(z), 10, endpoint=True)
fig.colorbar(surf, shrink=0.5, boundaries=boundaries, pad=0.1)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">cm</span>
<span class="pl-s1">n_radii</span> <span class="pl-c1">=</span> <span class="pl-c1">8</span>
<span class="pl-s1">n_angles</span> <span class="pl-c1">=</span> <span class="pl-c1">36</span>
<span class="pl-c"># Make radii and angles spaces (radius r=0 omitted to eliminate duplication).</span>
<span class="pl-s1">radii</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0.125</span>, <span class="pl-c1">1.0</span>, <span class="pl-s1">n_radii</span>)
<span class="pl-s1">angles</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-s1">pi</span>, <span class="pl-s1">n_angles</span>, <span class="pl-s1">endpoint</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)[..., <span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>]
<span class="pl-c"># Convert polar (radii, angles) coords to cartesian (x, y) coords.</span>
<span class="pl-c"># (0, 0) is manually added at this stage, so there will be no duplicate</span>
<span class="pl-c"># points in the (x, y) plane.</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">append</span>(<span class="pl-c1">0</span>, (<span class="pl-s1">radii</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-en">cos</span>(<span class="pl-s1">angles</span>)).<span class="pl-en">flatten</span>())
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">append</span>(<span class="pl-c1">0</span>, (<span class="pl-s1">radii</span><span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">angles</span>)).<span class="pl-en">flatten</span>())
<span class="pl-c"># Compute z to make the pringle surface.</span>
<span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-c1">-</span><span class="pl-s1">x</span><span class="pl-c1">*</span><span class="pl-s1">y</span>)
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">subplot_kw</span><span class="pl-c1">=</span>{<span class="pl-s">"projection"</span>: <span class="pl-s">"3d"</span>})
<span class="pl-s1">surf</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot_trisurf</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0.2</span>, <span class="pl-s1">antialiased</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">cm</span>.<span class="pl-s1">coolwarm</span>)
<span class="pl-s1">boundaries</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-s1">np</span>.<span class="pl-en">min</span>(<span class="pl-s1">z</span>), <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">z</span>), <span class="pl-c1">10</span>, <span class="pl-s1">endpoint</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">surf</span>, <span class="pl-s1">shrink</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">boundaries</span><span class="pl-c1">=</span><span class="pl-s1">boundaries</span>, <span class="pl-s1">pad</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5299999/145533380-64fb0801-c30f-413e-8709-3bfe8ff202f5.png"><img src="https://user-images.githubusercontent.com/5299999/145533380-64fb0801-c30f-413e-8709-3bfe8ff202f5.png" alt="Figure_matplotlib==3 5 0" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5299999/145533365-2c0b8053-9789-46e8-a014-3da2d8ff3ddd.png"><img src="https://user-images.githubusercontent.com/5299999/145533365-2c0b8053-9789-46e8-a014-3da2d8ff3ddd.png" alt="Figure_matplotlib==3 4 3" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional information</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.5.0</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">TkAgg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">Python 3.9.9, Python 3.10.1</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p> | 0 |
<p dir="auto">Found this while refactoring my library after the <code class="notranslate">Vector</code> -> <code class="notranslate">Slice</code> rename</p>
<p dir="auto">STR:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::{mem, raw};
fn main() {
let a = &[1, 2, 3i];
let raw::Slice { data: ptr, len: len }: raw::Slice<int> = unsafe { mem::transmute(a) };
let b = unsafe { mem::transmute(Slice { data: ptr, len: len }) };
// ICE ^~~ forgot the `raw::` qualifier
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span><span class="pl-kos">{</span>mem<span class="pl-kos">,</span> raw<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a = <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span>i<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> raw<span class="pl-kos">::</span><span class="pl-v">Slice</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span><span class="pl-kos">:</span> ptr<span class="pl-kos">,</span> <span class="pl-c1">len</span><span class="pl-kos">:</span> len <span class="pl-kos">}</span><span class="pl-kos">:</span> raw<span class="pl-kos">::</span><span class="pl-smi">Slice</span><span class="pl-kos"><</span><span class="pl-smi">int</span><span class="pl-kos">></span> = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> mem<span class="pl-kos">::</span><span class="pl-en">transmute</span><span class="pl-kos">(</span>a<span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> b = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> mem<span class="pl-kos">::</span><span class="pl-en">transmute</span><span class="pl-kos">(</span><span class="pl-smi">Slice</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span><span class="pl-kos">:</span> ptr<span class="pl-kos">,</span> <span class="pl-c1">len</span><span class="pl-kos">:</span> len <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-c">// ICE ^~~ forgot the `raw::` qualifier</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Backtrace:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="task 'rustc' failed at 'explicit failure', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/librbml/lib.rs:246
stack backtrace:
1: 0x7fadbcf65980 - rt::backtrace::imp::write::h500c7cd49c94d6cbo1q
2: 0x7fadbcf68a20 - <unknown>
3: 0x7fadc14ddc40 - unwind::begin_unwind_inner::h78b0bc3908c6581cM8d
4: 0x7fadc03d5310 - <unknown>
5: 0x7fadc03d4340 - reader::get_doc::h659c9cb63ec6b27dQRa
6: 0x7fadc23b9d40 - metadata::decoder::get_type::h8aa840f508fceb99Bis
7: 0x7fadc1df73b0 - middle::ty::lookup_item_type::h0762f54f39bdc9b9J5G
8: 0x7fadc2154ec0 - <unknown>
9: 0x7fadc2152820 - <unknown>
10: 0x7fadc2154ec0 - <unknown>
11: 0x7fadc211dba0 - <unknown>
12: 0x7fadc2154ec0 - <unknown>
13: 0x7fadc21b39c0 - middle::typeck::check::check_decl_local::h2a1925bfb9a5b157XEW
14: 0x7fadc21b3be0 - middle::typeck::check::check_stmt::he6d6f56b73c868b94GW
15: 0x7fadc211dba0 - <unknown>
16: 0x7fadc2119930 - <unknown>
17: 0x7fadc2119650 - <unknown>
18: 0x7fadc2112510 - middle::typeck::check::check_item::h9d5462bdf5870d8fxhS
19: 0x7fadc2119450 - middle::typeck::check::check_item_types::h60cfbf824eb42ae21HR
20: 0x7fadc1b2a150 - <unknown>
21: 0x7fadc23275c0 - middle::typeck::check_crate::h322ddeef25afc167p2i
22: 0x7fadc23f6af0 - driver::driver::phase_3_run_analysis_passes::h01e8a18355fa9e80Vsx
23: 0x7fadc23f1c30 - driver::driver::compile_input::h7879a63579b438beafx
24: 0x7fadc249d400 - <unknown>
25: 0x7fadc249d310 - <unknown>
26: 0x7fadc24afc60 - <unknown>
27: 0x7fadc24afa60 - <unknown>
28: 0x7fadc1838b30 - <unknown>
29: 0x7fadc152d970 - <unknown>
30: 0x7fadc152d960 - rust_try
31: 0x7fadc14db2a0 - unwind::try::h36697dac480a0e50hXd
32: 0x7fadc14db040 - task::Task::run::h0fb2de2c85c53b00T4c
33: 0x7fadc18388f0 - <unknown>
34: 0x7fadc14dce80 - <unknown>
35: 0x7fadbc2e0000 - start_thread
36: 0x7fadc11ac269 - clone
37: 0x0 - <unknown>"><pre class="notranslate">task <span class="pl-c1">'</span>rustc<span class="pl-c1">'</span> failed at <span class="pl-c1">'</span>explicit failure<span class="pl-c1">'</span><span class="pl-kos">,</span> /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/librbml/lib<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">246</span>
stack backtrace<span class="pl-kos">:</span>
<span class="pl-c1">1</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadbcf65980</span> - rt<span class="pl-kos">::</span>backtrace<span class="pl-kos">::</span>imp<span class="pl-kos">::</span>write<span class="pl-kos">::</span>h500c7cd49c94d6cbo1q
<span class="pl-c1">2</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadbcf68a20</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">3</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc14ddc40</span> - unwind<span class="pl-kos">::</span>begin_unwind_inner<span class="pl-kos">::</span>h78b0bc3908c6581cM8d
<span class="pl-c1">4</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc03d5310</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">5</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc03d4340</span> - reader<span class="pl-kos">::</span>get_doc<span class="pl-kos">::</span>h659c9cb63ec6b27dQRa
<span class="pl-c1">6</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc23b9d40</span> - metadata<span class="pl-kos">::</span>decoder<span class="pl-kos">::</span>get_type<span class="pl-kos">::</span>h8aa840f508fceb99Bis
<span class="pl-c1">7</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc1df73b0</span> - middle<span class="pl-kos">::</span>ty<span class="pl-kos">::</span>lookup_item_type<span class="pl-kos">::</span>h0762f54f39bdc9b9J5G
<span class="pl-c1">8</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2154ec0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">9</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2152820</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">10</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2154ec0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">11</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc211dba0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">12</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2154ec0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">13</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc21b39c0</span> - middle<span class="pl-kos">::</span>typeck<span class="pl-kos">::</span>check<span class="pl-kos">::</span>check_decl_local<span class="pl-kos">::</span>h2a1925bfb9a5b157XEW
<span class="pl-c1">14</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc21b3be0</span> - middle<span class="pl-kos">::</span>typeck<span class="pl-kos">::</span>check<span class="pl-kos">::</span>check_stmt<span class="pl-kos">::</span>he6d6f56b73c868b94GW
<span class="pl-c1">15</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc211dba0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">16</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2119930</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">17</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2119650</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">18</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2112510</span> - middle<span class="pl-kos">::</span>typeck<span class="pl-kos">::</span>check<span class="pl-kos">::</span>check_item<span class="pl-kos">::</span>h9d5462bdf5870d8fxhS
<span class="pl-c1">19</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc2119450</span> - middle<span class="pl-kos">::</span>typeck<span class="pl-kos">::</span>check<span class="pl-kos">::</span>check_item_types<span class="pl-kos">::</span>h60cfbf824eb42ae21HR
<span class="pl-c1">20</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc1b2a150</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">21</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc23275c0</span> - middle<span class="pl-kos">::</span>typeck<span class="pl-kos">::</span>check_crate<span class="pl-kos">::</span>h322ddeef25afc167p2i
<span class="pl-c1">22</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc23f6af0</span> - driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>phase_3_run_analysis_passes<span class="pl-kos">::</span>h01e8a18355fa9e80Vsx
<span class="pl-c1">23</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc23f1c30</span> - driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span>h7879a63579b438beafx
<span class="pl-c1">24</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc249d400</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">25</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc249d310</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">26</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc24afc60</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">27</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc24afa60</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">28</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc1838b30</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">29</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc152d970</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">30</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc152d960</span> - rust_try
<span class="pl-c1">31</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc14db2a0</span> - unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span>h36697dac480a0e50hXd
<span class="pl-c1">32</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc14db040</span> - task<span class="pl-kos">::</span><span class="pl-smi">Task</span><span class="pl-kos">::</span>run<span class="pl-kos">::</span>h0fb2de2c85c53b00T4c
<span class="pl-c1">33</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc18388f0</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">34</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc14dce80</span> - <<span class="pl-smi">unknown</span>>
<span class="pl-c1">35</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadbc2e0000</span> - start_thread
<span class="pl-c1">36</span><span class="pl-kos">:</span> <span class="pl-c1">0x7fadc11ac269</span> - clone
<span class="pl-c1">37</span><span class="pl-kos">:</span> <span class="pl-c1">0x0</span> - <<span class="pl-smi">unknown</span>></pre></div>
<p dir="auto">Version:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc 0.12.0-pre (a8c8e3f80 2014-08-14 19:11:18 +0000)"><pre class="notranslate">rustc <span class="pl-c1">0.12</span><span class="pl-kos">.</span><span class="pl-c1">0</span>-<span class="pl-en">pre</span> <span class="pl-kos">(</span>a8c8e3f80 <span class="pl-c1">2014</span>-<span class="pl-c1">08</span>-<span class="pl-c1">14</span> <span class="pl-c1">19</span><span class="pl-kos">:</span><span class="pl-c1">11</span><span class="pl-kos">:</span><span class="pl-c1">18</span> +<span class="pl-c1">0000</span><span class="pl-kos">)</span></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed to find block with tag 7
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_LOG=std::rt::backtrace` for a backtrace
task 'rustc' failed at 'explicit failure', /usr/local/git/rust/src/libserialize/ebml.rs:209"><pre class="notranslate"><code class="notranslate">failed to find block with tag 7
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_LOG=std::rt::backtrace` for a backtrace
task 'rustc' failed at 'explicit failure', /usr/local/git/rust/src/libserialize/ebml.rs:209
</code></pre></div>
<p dir="auto">The following simple code triggers this:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
println!("{}", ::std::num::Float::to_radians(200));
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, ::std::num::<span class="pl-v">Float</span>::to_radians<span class="pl-kos">(</span><span class="pl-c1">200</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<p dir="auto">For tests that must (for some reason) leak an operation or resource deno test allows us to <a href="https://deno.land/manual/testing#resource-and-async-op-sanitizers" rel="nofollow">opt out of Op and Resource sanitizing for a single test</a>. Unfortunately, the resources purposefully leaked by a "leaky" test end up associated with other tests, causing hard to diagnose errors.</p>
<p dir="auto">I've created a minimal reproduction of the issue in <a href="https://github.com/baetheus/deno_leaky_async_bug">this repository</a>.</p>
<p dir="auto">Thanks for all the hard work you guys are doing!</p> | <p dir="auto">It would be nice to be able to see the async objects that are leaking and their allocation stack. I think this would be useful as a command line switch to enable it while debugging. For my complex application, one part of the system seems to be affecting a different part. Their individual unit tests execute just fine. When running the entire test on the system, I'm getting random failures.</p>
<p dir="auto">Right now I'm hunting for the leaking ops and adding more test coverage, but it would be nice to have some insight here.</p> | 1 |
<p dir="auto">Output of a session of mine:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn factorial(x: int) -> int {
if x <= 0 { 1 } else { x * factorial(x - 1) }
}
fn main() {
let x = 4;
println!("{}", factorial(x));
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">factorial</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">int</span><span class="pl-kos">)</span> -> <span class="pl-smi">int</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> x <= <span class="pl-c1">0</span> <span class="pl-kos">{</span> <span class="pl-c1">1</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> x <span class="pl-c1">*</span> <span class="pl-en">factorial</span><span class="pl-kos">(</span>x - <span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = <span class="pl-c1">4</span><span class="pl-kos">;</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, factorial<span class="pl-kos">(</span>x<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc -g inspect.rs
$ lldb ./inspect
Current executable set to './inspect' (x86_64).
(lldb) b main
Breakpoint 1: 2 locations.
(lldb) r
Process 45203 launched: './inspect' (x86_64)
Process 45203 stopped
* thread #1: tid = 0x370ce1, 0x0000000100001780 inspect`main, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
frame #0: 0x0000000100001780 inspect`main
inspect`main:
-> 0x100001780: cmpq %gs:0x330, %rsp
0x100001789: ja 0x1000017a5 ; main + 37
0x10000178b: movabsq $0x18, %r10
0x100001795: movabsq $0x0, %r11
(lldb) c
Process 45203 resuming
Process 45203 stopped
* thread #2: tid = 0x370cf7, 0x00000001000016b4 inspect`inspect::main + 52 at inspect.rs:6, stop reason = breakpoint 1.1
frame #0: 0x00000001000016b4 inspect`inspect::main + 52 at inspect.rs:6
3 }
4
5 fn main() {
-> 6 let x = 4;
7 println!("{}", factorial(x));
8 }
(lldb) print factorial(5)
Error [IRForTarget]: Size of result type 'long (long)' couldn't be determined
error: warning: function 'factorial' has internal linkage but is not defined
note: used here
error: The expression could not be prepared to run in the target
(lldb) "><pre class="notranslate"><code class="notranslate">$ rustc -g inspect.rs
$ lldb ./inspect
Current executable set to './inspect' (x86_64).
(lldb) b main
Breakpoint 1: 2 locations.
(lldb) r
Process 45203 launched: './inspect' (x86_64)
Process 45203 stopped
* thread #1: tid = 0x370ce1, 0x0000000100001780 inspect`main, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
frame #0: 0x0000000100001780 inspect`main
inspect`main:
-> 0x100001780: cmpq %gs:0x330, %rsp
0x100001789: ja 0x1000017a5 ; main + 37
0x10000178b: movabsq $0x18, %r10
0x100001795: movabsq $0x0, %r11
(lldb) c
Process 45203 resuming
Process 45203 stopped
* thread #2: tid = 0x370cf7, 0x00000001000016b4 inspect`inspect::main + 52 at inspect.rs:6, stop reason = breakpoint 1.1
frame #0: 0x00000001000016b4 inspect`inspect::main + 52 at inspect.rs:6
3 }
4
5 fn main() {
-> 6 let x = 4;
7 println!("{}", factorial(x));
8 }
(lldb) print factorial(5)
Error [IRForTarget]: Size of result type 'long (long)' couldn't be determined
error: warning: function 'factorial' has internal linkage but is not defined
note: used here
error: The expression could not be prepared to run in the target
(lldb)
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelwoerister/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelwoerister">@michaelwoerister</a></p> | <p dir="auto">The way the runtime is currently structured every time "something happens" a callback is registered with a libuv event loop that wakes up that loop to deal with it. This could be "work available to steal" or "message sent to scheduler" for example. The problem with these is that we create massive numbers of the things when we really only need one per scheduler. If the scheduler needs to have a callback registered, register the singleton callback for that scheduler. Doing this would eliminate huge amounts of allocation and many many calls out to libuv functions.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/hataketed/m0t2ng8b/4/" rel="nofollow">https://jsfiddle.net/hataketed/m0t2ng8b/4/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">just run and see the console errors</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">click alert</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">vue.js:634 [Vue warn]: Property or method "eventname" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: <a href="https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties" rel="nofollow">https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties</a>.</p>
<p dir="auto">(found in )<br>
warn @ vue.js:634<br>
vue.js:634 [Vue warn]: Invalid value for dynamic directive argument (expected string or null): undefined</p>
<p dir="auto">(found in )<br>
warn @ vue.js:634<br>
vue.js:634 [Vue warn]: Property or method "attributename" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: <a href="https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties" rel="nofollow">https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties</a>.</p>
<p dir="auto">(found in )<br>
warn @ vue.js:634<br>
vue.js:634 [Vue warn]: Invalid value for dynamic directive argument (expected string or null): undefined</p>
<p dir="auto">(found in )</p> | <h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">when we want to do something like hide / show password input we should add state called "IsVisible" in our data but actually this data is specific for this input not relate to our app so we shoud put it on a scope of the element to prevent our data's pollution</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="field" v-data="{ isVisible : false }">
<button @click="isVisible = !isVisible">isVisible ? 'hide' : 'show'</button>
<input :type=" isVisible ? 'text' : 'password' " />
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">field</span>" <span class="pl-c1">v-data</span>="<span class="pl-s">{ isVisible : false }</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">@click</span>="<span class="pl-s">isVisible = !isVisible</span>"<span class="pl-kos">></span>isVisible ? 'hide' : 'show'<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">:type</span>="<span class="pl-s"> isVisible ? 'text' : 'password' </span>" />
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | 0 |
<h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">Next.js v9.0.0 hard codes the root API directory path to <code class="notranslate">/pages/api</code></p>
<p dir="auto">Making this a config option would allow for a better separation of concerns.</p>
<p dir="auto">We consider pages just that, pages, each one relates to a page you can visit, where as the API is the API an endpoint we consume. Because we are also connecting to a graphql backend to consume our data (which allows you to request everything in a single request) and since the release of serverless pre-rendering we are creating an endpoint for each of our pages to consume, i.e. api/pages/index etc... so right now that looks like /pages/api/pages/index, which gets confusing.</p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">A config option to be able to specify the API direction path.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path')
module.exports = {
apiDir: path.resolve(__dirname, 'api'),
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">apiDir</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'api'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">n/a</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto"><a href="https://spectrum.chat/next-js/general/next-9-is-there-a-config-option-to-change-where-the-api-dir-is-located~81da11ce-cd38-4fb5-bcda-9e95ee07db14" rel="nofollow">https://spectrum.chat/next-js/general/next-9-is-there-a-config-option-to-change-where-the-api-dir-is-located~81da11ce-cd38-4fb5-bcda-9e95ee07db14</a></p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">egg.js: <a href="https://github.com/eggjs/egg">https://github.com/eggjs/egg</a></p>
<p dir="auto">In this example: <a href="https://github.com/zeit/next.js/blob/master/examples/custom-server-koa/server.js">https://github.com/zeit/next.js/blob/master/examples/custom-server-koa/server.js</a>. <strong><code class="notranslate">ctx.respond = false</code></strong> causes a large number of koa middleware to be invalid. <code class="notranslate">egg.js</code> is based on<code class="notranslate">koa</code> implementation.</p>
<h2 dir="auto">Expected Behavior</h2>
<h2 dir="auto">Current Behavior</h2>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>v3</td>
</tr>
<tr>
<td>node</td>
<td>8.4</td>
</tr>
<tr>
<td>OS</td>
<td>mac</td>
</tr>
<tr>
<td>browser</td>
<td>*</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Hey Typescript,</p>
<p dir="auto">React's current typing for setState (at <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react/react.d.ts#L128">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react/react.d.ts#L128</a>) is somewhat wrong - it asks for type S, while the documentation (at <a href="https://facebook.github.io/react/docs/component-api.html#setstate" rel="nofollow">https://facebook.github.io/react/docs/component-api.html#setstate</a>) specifies only that:</p>
<blockquote>
<p dir="auto">The first argument can be an object (containing zero or more keys to update)...</p>
</blockquote>
<p dir="auto">That is, callers aren't required to specify <em>all</em> properties on the state, but only a subset of properties that they're updating. Unfortunately, there's currently no way to express this in the type system. People workaround this by defining type S as having all optional properties to begin with, even if some properties should be required.</p>
<p dir="auto">It'd be great if Typescript had a some type operator that, when applied to an existing type, could construct a new type where all the properties specified in the original type are optional.</p>
<p dir="auto">Example of use:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Component<S> {
setState(state: S?): void;
// example syntax - "S?" is the type S but where all properties are optional
}
interface MyState {
foo: string;
bar: string;
}
class MyComponent extends Component<MyState> {
constructor() {
this.state = {foo: "a", bar: "b"};
}
function updateFoo() {
// this should pass
this.setState({ foo: "newFoo" });
// you can also specify that a value is of an optional type
const updates: MyState? = {
bar: "newBar"
};
this.setState(updates);
// of course, properties not in the original type are still not allowed
// this should throw "'nonExistentProperty' does not exist in type 'MyState?'"
const bad: MyState? = {
nonExistentProperty: 123
};
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Component</span><span class="pl-c1"><</span><span class="pl-smi">S</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">setState</span><span class="pl-kos">(</span><span class="pl-s1">state</span>: <span class="pl-smi">S</span>?<span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span>
<span class="pl-c">// example syntax - "S?" is the type S but where all properties are optional</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">MyState</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">bar</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-k">extends</span> <span class="pl-smi">Component</span><span class="pl-kos"><</span><span class="pl-smi">MyState</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">foo</span>: <span class="pl-s">"a"</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">"b"</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">function</span> <span class="pl-s1">updateFoo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// this should pass</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">"newFoo"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// you can also specify that a value is of an optional type</span>
<span class="pl-k">const</span> <span class="pl-s1">updates</span>: <span class="pl-smi">MyState</span>? <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">bar</span>: <span class="pl-s">"newBar"</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-s1">updates</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// of course, properties not in the original type are still not allowed</span>
<span class="pl-c">// this should throw "'nonExistentProperty' does not exist in type 'MyState?'"</span>
<span class="pl-k">const</span> <span class="pl-s1">bad</span>: <span class="pl-smi">MyState</span>? <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">nonExistentProperty</span>: <span class="pl-c1">123</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Let me know if there's anything else I could clarify, thanks for your time!</p> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Given:
interface Foo {
simpleMember: number;
optionalMember?: string;
objectMember: X; // Where X is a inline object type, interface, or other object-like type
}
// This:
var foo: partial Foo;
// Is equivalent to:
var foo: {simpleMember?: number, optionalMember?: string, objectMember?: X};
// And this:
var bar: deepPartial Foo;
// Is equivalent to:
var foo: {simpleMember?: number, optionalMember?: string, objectMember?: deepPartial X};"><pre class="notranslate"><span class="pl-c">// Given:</span>
<span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">simpleMember</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-c1">optionalMember</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">objectMember</span>: <span class="pl-smi">X</span><span class="pl-kos">;</span> <span class="pl-c">// Where X is a inline object type, interface, or other object-like type </span>
<span class="pl-kos">}</span>
<span class="pl-c">// This:</span>
<span class="pl-k">var</span> <span class="pl-s1">foo</span>: <span class="pl-smi">partial</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span>
<span class="pl-c">// Is equivalent to:</span>
<span class="pl-k">var</span> <span class="pl-s1">foo</span>: <span class="pl-kos">{</span><span class="pl-c1">simpleMember</span>?: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">optionalMember</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">objectMember</span>?: <span class="pl-smi">X</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-c">// And this:</span>
<span class="pl-k">var</span> <span class="pl-s1">bar</span>: <span class="pl-smi">deepPartial</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span>
<span class="pl-c">// Is equivalent to:</span>
<span class="pl-k">var</span> <span class="pl-s1">foo</span>: <span class="pl-kos">{</span><span class="pl-c1">simpleMember</span>?: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">optionalMember</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">objectMember</span>?: <span class="pl-smi">deepPartial</span> <span class="pl-smi">X</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h1 dir="auto">Potential Use Cases</h1>
<ul dir="auto">
<li>Mongo Queries (<code class="notranslate">deepPartial</code>)</li>
<li><code class="notranslate">React.setState</code> (<code class="notranslate">partial</code>)</li>
</ul> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/dubbo/commit/2faf5e71f8cdb732e0234359594c668f39d82157/hovercard" href="https://github.com/apache/dubbo/commit/2faf5e71f8cdb732e0234359594c668f39d82157"><tt>2faf5e7</tt></a></li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">There's no samples of provider/consumer configured by API, So I'd like to add one</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6-SNAPSHOT</li>
<li>Operating System version: ALL</li>
<li>Java version: ALL</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">wrongs comments in org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator line 78</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">test if given type has at least one method annotated with <code class="notranslate">Adaptive</code></p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">test if given type has at least one method annotated with <code class="notranslate">SPI</code></p> | 0 |
<p dir="auto">It's a great step to support importing Android lib via jcenter. However, I'm having trouble in loading pretrained models into <code class="notranslate">TensorFlowInferenceInterface</code>, which says <code class="notranslate">NodeDef mentions attr 'dilations' not in Op...</code>. I think it's a compatibility issue, meaning that the model graph is not consistent with the graph interpreter. The models directly downloaded from <code class="notranslate">slim</code> and frozen by myself. Anyone can help me?</p> | <p dir="auto">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug or a feature request.</li>
<li>The form below must be filled out.</li>
<li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br>
no</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:<br>
source</li>
<li><strong>TensorFlow version (use command below)</strong>:<br>
('v1.3.0-rc1-5733-gb43d0f3', '1.4.0')</li>
<li><strong>Python version</strong>:<br>
2.7.12</li>
<li><strong>Bazel version (if compiling from source)</strong>:<br>
0.9.0</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:<br>
5.4.0</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<p dir="auto">I have retrained a mobilenet_v1_1.0_224 frozen_graph.pb model with the following script:</p>
<p dir="auto">export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages<br>
export IMAGE_SIZE=224<br>
export WIDTH_MUL=1.0 # 0.75 0.50 0.25<br>
export ARCHITECTURE="mobilenet_${WIDTH_MUL}_${IMAGE_SIZE}"<br>
export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"<br>
export TF_FILES_DIR="tf_files"<br>
python -m scripts.retrain <br>
--bottleneck_dir="${TF_FILES_DIR}"/bottlenecks <br>
--how_many_training_steps=4000 <br>
--model_dir="${TF_FILES_DIR}"/models/ <br>
--summaries_dir="${TF_FILES_DIR}"/training_summaries/"${ARCHITECTURE}" <br>
--output_graph="${TF_FILES_DIR}"/retrained_graph.pb <br>
--output_labels="${TF_FILES_DIR}"/retrained_labels.txt <br>
--architecture="${ARCHITECTURE}" <br>
--image_dir="${TF_FILES_DIR}"/flower_photos</p>
<p dir="auto">I copied "retrained_graph.pb" and "retrained_labels.txt" in the "assets" directory of the android demo app in tensorflow/examples/android and modified the source code in ClassifierActivity.java as follows:</p>
<p dir="auto">/* Original code:<br>
private static final String INPUT_NAME = "input";<br>
private static final String OUTPUT_NAME = "output";<br>
private static final String MODEL_FILE = "file:///android_asset/tensorflow_inception_graph.pb";<br>
private static final String LABEL_FILE = "file:///android_asset/imagenet_comp_graph_label_strings.txt";<br>
<em>/<br>
/</em> Replaced by: <em>/<br>
private static final String INPUT_NAME = "input";<br>
private static final String OUTPUT_NAME = "final_result";<br>
private static final String MODEL_FILE = "file:///android_asset/retrained_graph.pb";<br>
private static final String LABEL_FILE = "file:///android_asset/retrained_labels.txt";<br>
/</em> End */</p>
<p dir="auto">I cleaned and rebuilt the whole project in Android Studio, successfully.</p>
<p dir="auto">The app was then loaded on a Huawei P8 Lite (Android 7.0) and starting TF Classify, the following error occurs:</p>
<p dir="auto">E/tensorflow: CameraActivity: Exception!<br>
java.lang.RuntimeException: Failed to load model from 'file:///android_asset/retrained_graph.pb'<br>
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:113)<br>
at org.tensorflow.demo.TensorFlowImageClassifier.create(TensorFlowImageClassifier.java:103)<br>
at org.tensorflow.demo.ClassifierActivity.onPreviewSizeChosen(ClassifierActivity.java:118)<br>
at org.tensorflow.demo.CameraActivity.onPreviewFrame(CameraActivity.java:120)<br>
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1204)<br>
at android.os.Handler.dispatchMessage(Handler.java:105)<br>
at android.os.Looper.loop(Looper.java:156)<br>
at android.app.ActivityThread.main(ActivityThread.java:6523)<br>
at java.lang.reflect.Method.invoke(Native Method)<br>
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)<br>
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)<br>
<strong>Caused by: java.io.IOException: Not a valid TensorFlow Graph serialization: NodeDef mentions attr 'dilations' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]>; NodeDef: MobilenetV1/MobilenetV1/Conv2d_0/convolution = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true](input, MobilenetV1/Conv2d_0/weights/read)</strong>. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).<br>
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.loadGraph(TensorFlowInferenceInterface.java:535)<br>
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:105)<br>
at org.tensorflow.demo.TensorFlowImageClassifier.create(TensorFlowImageClassifier.java:103) <br>
at org.tensorflow.demo.ClassifierActivity.onPreviewSizeChosen(ClassifierActivity.java:118) <br>
at org.tensorflow.demo.CameraActivity.onPreviewFrame(CameraActivity.java:120) <br>
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1204) <br>
at android.os.Handler.dispatchMessage(Handler.java:105) <br>
at android.os.Looper.loop(Looper.java:156) <br>
at android.app.ActivityThread.main(ActivityThread.java:6523) <br>
at java.lang.reflect.Method.invoke(Native Method) <br>
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) <br>
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) <br>
Application terminated.</p>
<p dir="auto">How to fix this error?</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="992703329" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/18127" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/18127/hovercard" href="https://github.com/apache/airflow/issues/18127">#18127</a> Apache Superset noticed the potential of using a test framework created on the basis of Pytest to verify the Helm Chart. I believe that a synergistic effect is possible in this respect.</p>
<p dir="auto">I am aware that Apache Airflow is going to introduce some optimizations to its framework. However, they - for the Apache Superset - are not blocking to the naturally low number of tests at the beginning of the adaptation and the planned strategy to make them fast enough.</p>
<p dir="auto">A more important issue is how to share this code between projects, so as not to have duplicate it (which is necessary for a synergistic effect) and copyright requirements (despite the Apache license, it is necessary to exercise moral rights).</p>
<p dir="auto">What actions are required on the Apache Airflow side to be able to share this code and make it available e.g. as a shared library?</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">Apache Superset would like perform off-line Helm Charts tests to verify that generated manifests have valid format.</p>
<p dir="auto">Apache Airflow had already a few iterations of Helm Chart testing, including generated manifest format. Currently, the solution based on the pytest is satisfying Apache Airflow developers, hence I am looking to adapt it to Apache Superset.</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1110323599" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/18127" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/18127/hovercard" href="https://github.com/apache/superset/issues/18127">apache/superset#18127</a> (discussed by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaxil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaxil">@kaxil</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mik-laj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mik-laj">@mik-laj</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a> )</p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <p dir="auto"><strong>Apache Airflow version</strong>:</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Aliyun</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS Linux" VERSION="7 (Core)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 3.10.0-514.21.1.el7.x86_64</li>
<li><strong>Install tools</strong>: celery 4.4.7 rabbitmq 3.8.17</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
Task log can't be shown on Web-Server when the task runs failed, while log can be shown normally when the task success</p>
<pre class="notranslate">*** Log file does not exist: /home/airflow/airflow/logs/dag_id/task_id/2021-06-28T00:00:00+08:00/28.log
*** Fetching from: http://:8793/log/dag_id/task_id/2021-06-28T00:00:00+08:00/28.log
*** Failed to fetch log file from worker. Unsupported URL protocol
</pre>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
The task log should be shown normally when the task runs failed.</p>
<p dir="auto">The Hostname info doesn't be written into the task instance table, so the webserver can't get the corresponding hostname.</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
Just run a dag and make its task fail to reproduce the bug.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:<br>
I have fixed it in my env and will commit a PR to fix it.</p> | 0 |
<p dir="auto">Whenever you are coding and you press ENTER in an indented line, it will add a new line, remove the indentation and start the cursor at the beginning of that line.</p>
<p dir="auto">Setting editor.formatOnType to false disables this behavior.</p> | <ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 8.1</li>
</ul>
<p dir="auto">The problem is observed only in the following scenario:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (i=0; attr && i<attr.length; i++) {
if (attr[i].specified) {
props[attr[i].name] = attr[i].value;
hasAttrib = true;
}
}"><pre class="notranslate"><code class="notranslate">for (i=0; attr && i<attr.length; i++) {
if (attr[i].specified) {
props[attr[i].name] = attr[i].value;
hasAttrib = true;
}
}
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126733/14071805/c78772c8-f4c1-11e5-9560-1a1c27ff0a82.png"><img src="https://cloud.githubusercontent.com/assets/3126733/14071805/c78772c8-f4c1-11e5-9560-1a1c27ff0a82.png" alt="image" style="max-width: 100%;"></a><br>
compared to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (i=0; attr && i <attr.length; i++) {
if (attr[i].specified) {
props[attr[i].name] = attr[i].value;
hasAttrib = true;
}
}"><pre class="notranslate"><code class="notranslate">for (i=0; attr && i <attr.length; i++) {
if (attr[i].specified) {
props[attr[i].name] = attr[i].value;
hasAttrib = true;
}
}
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126733/14071816/e4f099b6-f4c1-11e5-85f0-a0cf212ce0fc.png"><img src="https://cloud.githubusercontent.com/assets/3126733/14071816/e4f099b6-f4c1-11e5-85f0-a0cf212ce0fc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Notice the space between <code class="notranslate">i</code> and <code class="notranslate"><</code>.</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => opencv.js 4.1.0-pre</li>
<li>Operating System / Platform => Google Chrome 74.0.3729.39</li>
<li>Compiler => opencv.js WASM build from master branch as described <a href="https://docs.opencv.org/master/d4/da1/tutorial_js_setup.html" rel="nofollow">here</a>.</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Executing cv.drawKeypoints now gives an error where it did not use to. (see <a href="https://github.com/ucisysarch/opencvjs/blob/master/test/features_2d.html">https://github.com/ucisysarch/opencvjs/blob/master/test/features_2d.html</a>)</p>
<p dir="auto">Inferring from the errors shown below my guess is that it could just be a function signature mismatch in the bindings. When adding the 'flag' integer in javascript, the error says drawKeypoints does not accept 5 arguments, yet when omitting the flag, it says it cannot convert 'undefined' to an unsigned int, coincidentally the type of the omitted flag.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto"><code class="notranslate">cv.drawKeypoints(input, keyPoints, output, color, 0);</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app.js:157 Uncaught BindingError: Function 'drawKeypoints' called with an invalid number of arguments (5) - expects one of (,,,function drawKeypoints(arg0, arg1, arg2) {
if (arguments.length !== 3) {
throwBindingError('function drawKeypoints called with ' + arguments.length + ' arguments, expected 3 args!');
}
var arg0Wired = argType0.toWireType(null, arg0); // Mat
var arg1Wired = argType1.toWireType(null, arg1); // emscripten::val
var arg2Wired = argType2.toWireType(null, arg2); // Mat
invoker(fn, arg0Wired, arg1Wired, arg2Wired);
},function drawKeypoints(arg0, arg1, arg2, arg3) {
if (arguments.length !== 4) {
throwBindingError('function drawKeypoints called with ' + arguments.length + ' arguments, expected 4 args!');
}
var arg0Wired = argType0.toWireType(null, arg0); // Mat
var arg1Wired = argType1.toWireType(null, arg1); // emscripten::val
var arg2Wired = argType2.toWireType(null, arg2); // Mat
var arg3Wired = argType3.toWireType(null, arg3); // Scalar
invoker(fn, arg0Wired, arg1Wired, arg2Wired, arg3Wired);
arg3Wired_dtor(arg3Wired); // Scalar
})!"><pre class="notranslate"><code class="notranslate">app.js:157 Uncaught BindingError: Function 'drawKeypoints' called with an invalid number of arguments (5) - expects one of (,,,function drawKeypoints(arg0, arg1, arg2) {
if (arguments.length !== 3) {
throwBindingError('function drawKeypoints called with ' + arguments.length + ' arguments, expected 3 args!');
}
var arg0Wired = argType0.toWireType(null, arg0); // Mat
var arg1Wired = argType1.toWireType(null, arg1); // emscripten::val
var arg2Wired = argType2.toWireType(null, arg2); // Mat
invoker(fn, arg0Wired, arg1Wired, arg2Wired);
},function drawKeypoints(arg0, arg1, arg2, arg3) {
if (arguments.length !== 4) {
throwBindingError('function drawKeypoints called with ' + arguments.length + ' arguments, expected 4 args!');
}
var arg0Wired = argType0.toWireType(null, arg0); // Mat
var arg1Wired = argType1.toWireType(null, arg1); // emscripten::val
var arg2Wired = argType2.toWireType(null, arg2); // Mat
var arg3Wired = argType3.toWireType(null, arg3); // Scalar
invoker(fn, arg0Wired, arg1Wired, arg2Wired, arg3Wired);
arg3Wired_dtor(arg3Wired); // Scalar
})!
</code></pre></div>
<hr>
<p dir="auto"><code class="notranslate">cv.drawKeypoints(input, keyPoints, output, color);</code> OR <code class="notranslate">cv.drawKeypoints(input, keyPoints, output);</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="opencv.js:24 Uncaught TypeError: Cannot convert "undefined" to unsigned int
at Object.toWireType (.../opencv.js:24:8400437)
at __emval_as (.../opencv.js:24:8407557)
at wasm-function[311]:47
at wasm-function[313]:82
at wasm-function[970]:38
at wasm-function[914]:20
at Module.dynCall_viiii (.../opencv.js:24:8452614)
at dynCall_viiii_249 (eval at makeDynCaller (.../opencv.js:24:8383640), <anonymous>:4:12)
at Object.drawKeypoints (eval at new_ (.../opencv.js:24:8387470), <anonymous>:10:1)
at Object.proto.<computed> [as drawKeypoints] (.../opencv.js:24:8374345)"><pre class="notranslate"><code class="notranslate">opencv.js:24 Uncaught TypeError: Cannot convert "undefined" to unsigned int
at Object.toWireType (.../opencv.js:24:8400437)
at __emval_as (.../opencv.js:24:8407557)
at wasm-function[311]:47
at wasm-function[313]:82
at wasm-function[970]:38
at wasm-function[914]:20
at Module.dynCall_viiii (.../opencv.js:24:8452614)
at dynCall_viiii_249 (eval at makeDynCaller (.../opencv.js:24:8383640), <anonymous>:4:12)
at Object.drawKeypoints (eval at new_ (.../opencv.js:24:8387470), <anonymous>:10:1)
at Object.proto.<computed> [as drawKeypoints] (.../opencv.js:24:8374345)
</code></pre></div> | <p dir="auto">Is it feasible to merge some <a href="https://github.com/Web-Sight/opencvjs">Web-Sight</a> and <a href="https://github.com/Quramy/opencvjs">Quramy</a> bindings with master ? I don't really know how it can be done, but I would like to do it if so.</p>
<p dir="auto">It is used for example by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Quramy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Quramy">@Quramy</a> in his feature_matching demo (see <a href="https://github.com/Quramy/opencv-wasm-knnmatch-demo">here</a>)<br>
to use feature2d functions like <code class="notranslate">cv.drawMatches</code>, <code class="notranslate">cv.knnMatch</code>, <code class="notranslate">cv.drawMatchesKnn</code>, <code class="notranslate">cv.drawKeypoints </code> and so on which are not working in master repo (if I'm correct).</p>
<p dir="auto"><strong>Errors</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let kp = new cv.KeyPointVector();
let descriptors = new cv.Mat();
let orb = new cv.ORB();
orb.detectAndCompute(src, new cv.Mat(), kp, descriptors);
cv.drawKeypoints(src, kp, dst); // Error here
kp.delete();
orb.delete();"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">kp</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">KeyPointVector</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">descriptors</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">Mat</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">orb</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">ORB</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">orb</span><span class="pl-kos">.</span><span class="pl-en">detectAndCompute</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">Mat</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">kp</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-en">drawKeypoints</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-s1">kp</span><span class="pl-kos">,</span> <span class="pl-s1">dst</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error here</span>
<span class="pl-s1">kp</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">orb</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">raise following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot convert "undefined" to unsigned int"><pre class="notranslate"><code class="notranslate">TypeError: Cannot convert "undefined" to unsigned int
</code></pre></div>
<p dir="auto">and</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let kp = new cv.KeyPointVector();
let descriptors = new cv.Mat();
let orb = new cv.ORB();
orb.detectAndCompute(src, new cv.Mat(), kp, descriptors);
// Run a matcher.
let dm = new cv.DMatchVector();
let matcher = new cv.BFMatcher();
matcher.match(descriptors, descriptors, dm);
const matchingImage = new cv.Mat();
cv.drawMatchesKnn(src, descriptors, src, descriptors, dm, matchingImage);"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">kp</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">KeyPointVector</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">descriptors</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">Mat</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">orb</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">ORB</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">orb</span><span class="pl-kos">.</span><span class="pl-en">detectAndCompute</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">Mat</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">kp</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// Run a matcher.</span>
<span class="pl-k">let</span> <span class="pl-s1">dm</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">DMatchVector</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">matcher</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">BFMatcher</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">matcher</span><span class="pl-kos">.</span><span class="pl-en">match</span><span class="pl-kos">(</span><span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">dm</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">matchingImage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-c1">Mat</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-en">drawMatchesKnn</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">dm</span><span class="pl-kos">,</span> <span class="pl-s1">matchingImage</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">raise</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: cv.drawMatchesKnn is not a function"><pre class="notranslate"><code class="notranslate">TypeError: cv.drawMatchesKnn is not a function
</code></pre></div>
<p dir="auto">while</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cv.drawMatches(src, descriptors, src, descriptors, dm, matchingImage); // Error (2)"><pre class="notranslate"><span class="pl-s1">cv</span><span class="pl-kos">.</span><span class="pl-en">drawMatches</span><span class="pl-kos">(</span><span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">src</span><span class="pl-kos">,</span> <span class="pl-s1">descriptors</span><span class="pl-kos">,</span> <span class="pl-s1">dm</span><span class="pl-kos">,</span> <span class="pl-s1">matchingImage</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error (2)</span></pre></div>
<p dir="auto">raise</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot convert "undefined" to unsigned int"><pre class="notranslate"><code class="notranslate">TypeError: Cannot convert "undefined" to unsigned int
</code></pre></div>
<p dir="auto"><strong>Environnement</strong><br>
I built opencv.js upon opencv master branch and I added to core_bindings.cpp some lines from not merged pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="370520269" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/12855" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/12855/hovercard" href="https://github.com/opencv/opencv/pull/12855">#12855</a> to get DMatch support (see <a href="https://github.com/opencv/opencv/pull/12855/commits/05665f38979f49d87424b7113b8093f0f13b4c79#diff-1edbc1c9e1c9478205122f6accffa452R337">here</a>).</p> | 1 |
<p dir="auto">Hi, love this code but think I see an issue which can be seen on the live example (<a href="https://threejs.org/examples/misc_controls_transform.html" rel="nofollow">https://threejs.org/examples/misc_controls_transform.html</a>) where the user is able to toggle off an axis (X,Y or Z) but is still able to translate the object along that axis even while the handles are not visible... you just have to carefully click and drag where you think the invisible handles are.<br>
I believe the issue may have arisen with how the three.js raycaster catches the handles meshes that are not visible.<br>
I seem to have fixed it for my case by throwing in a conditional checking for visibility of the children in the this.pointerHover handler</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var intersect = ray.intersectObjects(_gizmo.picker[this.mode].children, true)[0] || false;
if (intersect) {
if (!intersect.object.visible) {//my added condition
const intersectedChildren = ray.intersectObjects(_gizmo.picker[this.mode].children, true);
this.axis = null;
for (let i = 0; i < intersectedChildren.length; i++) {
if (intersectedChildren[i].object.visible) {
this.axis = intersect.object.name;
continue;
}
}
} else {
this.axis = intersect.object.name;
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">intersect</span> <span class="pl-c1">=</span> <span class="pl-s1">ray</span><span class="pl-kos">.</span><span class="pl-en">intersectObjects</span><span class="pl-kos">(</span><span class="pl-s1">_gizmo</span><span class="pl-kos">.</span><span class="pl-c1">picker</span><span class="pl-kos">[</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">mode</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c1">||</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">intersect</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">intersect</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">visible</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-c">//my added condition</span>
<span class="pl-k">const</span> <span class="pl-s1">intersectedChildren</span> <span class="pl-c1">=</span> <span class="pl-s1">ray</span><span class="pl-kos">.</span><span class="pl-en">intersectObjects</span><span class="pl-kos">(</span><span class="pl-s1">_gizmo</span><span class="pl-kos">.</span><span class="pl-c1">picker</span><span class="pl-kos">[</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">mode</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">axis</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1"><</span> <span class="pl-s1">intersectedChildren</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">intersectedChildren</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">visible</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">axis</span> <span class="pl-c1">=</span> <span class="pl-s1">intersect</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span>
<span class="pl-k">continue</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">axis</span> <span class="pl-c1">=</span> <span class="pl-s1">intersect</span><span class="pl-kos">.</span><span class="pl-c1">object</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos"></span></pre></div>
<p dir="auto">Just thought I'd let you know.</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">Not sure how many of these are relevant to WebGL as it doens't support geometry shaders but it is a pretty decent article none the less:</p>
<p dir="auto"><a href="http://www.iquilezles.org/www/articles/stereo/stereo.htm" rel="nofollow">http://www.iquilezles.org/www/articles/stereo/stereo.htm</a></p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r76</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/372" rel="nofollow">http://projects.scipy.org/numpy/ticket/372</a> on 2006-11-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrancescAlted/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrancescAlted">@FrancescAlted</a>, assigned to unknown.</em></p>
<p dir="auto">When you create recarrays with records.py and not specify the dtype argument explicitely, the names are generated with 1 as base (i.e. 'f1', 'f2', ...) instead of using 0 (i.e. 'f0','f1',...) which is the default in !NumPy. The next exposes the issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [7]:numpy.array([(1,2), (3,4)], "i4,i4")
Out[7]:
array([(1, 2), (3, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [8]:numpy.rec.array([(1,2), (3,4)], "i4,i4")
Out[8]:
recarray([(1, 2), (3, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [9]:numpy.rec.array([(1,2), (3,4)])
Out[9]:
recarray([(1, 2), (3, 4)],
dtype=[('f1', '<i4'), ('f2', '<i4')]) # !
In [10]:numpy.rec.fromarrays([(1,2), (3,4)], "i4,i4")
Out[10]:
recarray([(1, 3), (2, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [11]:numpy.rec.fromarrays([(1,2), (3,4)])
Out[11]:
recarray([(1, 3), (2, 4)],
dtype=[('f1', '<i4'), ('f2', '<i4')]) # !"><pre class="notranslate"><code class="notranslate">In [7]:numpy.array([(1,2), (3,4)], "i4,i4")
Out[7]:
array([(1, 2), (3, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [8]:numpy.rec.array([(1,2), (3,4)], "i4,i4")
Out[8]:
recarray([(1, 2), (3, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [9]:numpy.rec.array([(1,2), (3,4)])
Out[9]:
recarray([(1, 2), (3, 4)],
dtype=[('f1', '<i4'), ('f2', '<i4')]) # !
In [10]:numpy.rec.fromarrays([(1,2), (3,4)], "i4,i4")
Out[10]:
recarray([(1, 3), (2, 4)],
dtype=[('f0', '<i4'), ('f1', '<i4')])
In [11]:numpy.rec.fromarrays([(1,2), (3,4)])
Out[11]:
recarray([(1, 3), (2, 4)],
dtype=[('f1', '<i4'), ('f2', '<i4')]) # !
</code></pre></div>
<p dir="auto">The next patch is a cure for this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- numpy/core/records.py (revision 3428)
+++ numpy/core/records.py (working copy)
@@ -82,11 +82,11 @@
else:
self._names = []
- # if the names are not specified, they will be assigned as "f1, f2,..."
- # if not enough names are specified, they will be assigned as "f[n+1],
- # f[n+2],..." etc. where n is the number of specified names..."
- self._names += ['f%d' % i for i in range(len(self._names)+1,
- self._nfields+1)]
+ # if the names are not specified, they will be assigned as "f0, f1,..."
+ # if not enough names are specified, they will be assigned as "f[n],
+ # f[n+1],..." etc. where n is the number of specified names..."
+ self._names += ['f%d' % i for i in range(len(self._names),
+ self._nfields)]
# check for redundant names
_dup = find_duplicate(self._names)
if _dup:"><pre class="notranslate"><code class="notranslate">--- numpy/core/records.py (revision 3428)
+++ numpy/core/records.py (working copy)
@@ -82,11 +82,11 @@
else:
self._names = []
- # if the names are not specified, they will be assigned as "f1, f2,..."
- # if not enough names are specified, they will be assigned as "f[n+1],
- # f[n+2],..." etc. where n is the number of specified names..."
- self._names += ['f%d' % i for i in range(len(self._names)+1,
- self._nfields+1)]
+ # if the names are not specified, they will be assigned as "f0, f1,..."
+ # if not enough names are specified, they will be assigned as "f[n],
+ # f[n+1],..." etc. where n is the number of specified names..."
+ self._names += ['f%d' % i for i in range(len(self._names),
+ self._nfields)]
# check for redundant names
_dup = find_duplicate(self._names)
if _dup:
</code></pre></div> | <h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
x = np.rec.array([('abcd',)], dtype=[('a', str)])
print(repr(x))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">rec</span>.<span class="pl-en">array</span>([(<span class="pl-s">'abcd'</span>,)], <span class="pl-s1">dtype</span><span class="pl-c1">=</span>[(<span class="pl-s">'a'</span>, <span class="pl-s1">str</span>)])
<span class="pl-en">print</span>(<span class="pl-en">repr</span>(<span class="pl-s1">x</span>))</pre></div>
<h3 dir="auto">Erroneous Behavior:</h3>
<p dir="auto"><code class="notranslate">str</code> type is inferred as <code class="notranslate"><U</code> dtype.</p>
<p dir="auto">A similar expression using numpy arrays infers the length for <code class="notranslate">'<UN'</code> dtype.</p>
<h3 dir="auto">Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.15.4 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]"><pre class="notranslate"><code class="notranslate">1.15.4 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]
</code></pre></div> | 0 |
<p dir="auto">Running a simple <code class="notranslate">select *</code> query on a DB table and getting an error: <code class="notranslate">DatetimeTZDtype' object has no attribute 'char'</code></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if any</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/views/core.py", line 2076, in sql_json
query_id=query_id, return_results=True)
File "/Users/ruchir/venv/lib/python2.7/site-packages/celery/local.py", line 188, in __call__
return self._get_current_object()(*a, **kw)
File "/Users/ruchir/venv/lib/python2.7/site-packages/celery/app/task.py", line 428, in __call__
return self.run(*args, **kwargs)
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/sql_lab.py", line 91, in get_sql_results
ctask, query_id, return_results, store_results)
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/sql_lab.py", line 233, in execute_sql
'columns': cdf.columns if cdf.columns else [],
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/dataframe.py", line 108, in columns
col_db_type = self.db_type(self.__df.dtypes[col])
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/dataframe.py", line 55, in db_type
return cls.type_map.get(dtype.char)
AttributeError: 'DatetimeTZDtype' object has no attribute 'char'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/views/core.py", line 2076, in sql_json
query_id=query_id, return_results=True)
File "/Users/ruchir/venv/lib/python2.7/site-packages/celery/local.py", line 188, in __call__
return self._get_current_object()(*a, **kw)
File "/Users/ruchir/venv/lib/python2.7/site-packages/celery/app/task.py", line 428, in __call__
return self.run(*args, **kwargs)
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/sql_lab.py", line 91, in get_sql_results
ctask, query_id, return_results, store_results)
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/sql_lab.py", line 233, in execute_sql
'columns': cdf.columns if cdf.columns else [],
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/dataframe.py", line 108, in columns
col_db_type = self.db_type(self.__df.dtypes[col])
File "/Users/ruchir/venv/lib/python2.7/site-packages/superset/dataframe.py", line 55, in db_type
return cls.type_map.get(dtype.char)
AttributeError: 'DatetimeTZDtype' object has no attribute 'char'
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset<br>
Yes</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar<br>
Found this: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="230288393" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/2791" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/2791/hovercard" href="https://github.com/apache/superset/issues/2791">#2791</a> but does not address how to deal with situation when the DB table already exists</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.19.1</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Should return result of SQL query</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Getting Error: 'DatetimeTZDtype' object has no attribute 'char'</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Run any query on a DB which has a timestamptz column type</p> | <p dir="auto">While pulling data from clickhouse within superset things work as long as fields are not of type datetime. When trying to get data for a datetime column then it gives the following python error.</p>
<p dir="auto"><code class="notranslate">AttributeError: 'DatetimeTZDtype' object has no attribute 'char'</code></p>
<h3 dir="auto">Superset version</h3>
<p dir="auto"><code class="notranslate">{ GIT_SHA: "", version: "0.18.2" }</code></p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">SQL query should give all the columns for give query.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Python error (see below).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2017-05-22 10:32:10,890:ERROR:root:'DatetimeTZDtype' object has no attribute 'char'
Traceback (most recent call last):
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/views/core.py", line 2028, in sql_json
query_id=query_id, return_results=True)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/celery/local.py", line 188, in __call__
return self._get_current_object()(*a, **kw)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__
return self.run(*args, **kwargs)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/sql_lab.py", line 181, in get_sql_results
'columns': cdf.columns if cdf.columns else [],
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/dataframe.py", line 108, in columns
col_db_type = self.db_type(self.__df.dtypes[col])
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/dataframe.py", line 55, in db_type
return cls.type_map.get(dtype.char)
AttributeError: 'DatetimeTZDtype' object has no attribute 'char'"><pre class="notranslate"><code class="notranslate">2017-05-22 10:32:10,890:ERROR:root:'DatetimeTZDtype' object has no attribute 'char'
Traceback (most recent call last):
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/views/core.py", line 2028, in sql_json
query_id=query_id, return_results=True)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/celery/local.py", line 188, in __call__
return self._get_current_object()(*a, **kw)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__
return self.run(*args, **kwargs)
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/sql_lab.py", line 181, in get_sql_results
'columns': cdf.columns if cdf.columns else [],
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/dataframe.py", line 108, in columns
col_db_type = self.db_type(self.__df.dtypes[col])
File "/home/neeraj/Apps/superset-env/local/lib/python2.7/site-packages/superset/dataframe.py", line 55, in db_type
return cls.type_map.get(dtype.char)
AttributeError: 'DatetimeTZDtype' object has no attribute 'char'
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Create the following table in clickhouse.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE gauge_metric
(
EventDate Date,
Timestamp DateTime,
Node String,
Name String,
Value Float32
) ENGINE = MergeTree(EventDate, (Name, Node, Timestamp), 8192);"><pre class="notranslate"><code class="notranslate">CREATE TABLE gauge_metric
(
EventDate Date,
Timestamp DateTime,
Node String,
Name String,
Value Float32
) ENGINE = MergeTree(EventDate, (Name, Node, Timestamp), 8192);
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Insert some data into the above table.</p>
</li>
<li>
<p dir="auto">Install <a href="https://github.com/cloudflare/sqlalchemy-clickhouse">sqlalchemy-clickhouse</a> along with <a href="https://github.com/airbnb/superset">superset</a>.</p>
</li>
<li>
<p dir="auto">Add clickhouse as datasource with "clickhouse://:8123" as the SQLAlchemy URI.</p>
</li>
<li>
<p dir="auto">Open SQL Lab and try executing the following query.</p>
</li>
</ol>
<p dir="auto"><code class="notranslate">select EventDate,Node,Value,Timestamp,Name from dbname.gauge_metric LIMIT 10;</code></p> | 1 |
<p dir="auto">Could you please add a setting for where the brace gets placed when autoformat runs.</p>
<p dir="auto">When the auto format runs it moves the brace to a new line. This is very annoying to me.</p> | <p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TJSoftware/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TJSoftware">@TJSoftware</a> on January 29, 2016 17:35</em></p>
<h5 dir="auto">Summary</h5>
<p dir="auto">I am unable to format code for <code class="notranslate">xml</code> and <code class="notranslate">c#</code>. <code class="notranslate">json</code> and <code class="notranslate">javascript</code> do not have any issues.</p>
<h5 dir="auto">What I have done</h5>
<p dir="auto">Originally I modified my <code class="notranslate">editor.tabSize</code> to be 2 (in workspace). I removed this override and just left in the defaults. I also overwrote the keybinding for <code class="notranslate">editor.action.format</code> to use <code class="notranslate">ctrl+k ctrl+d</code>. I also removed those and left just the default in. Working with test files of each type mentioned above I am able to format some file types, but not others. This does not seem to be dependent on any of my settings, I have just added that information in just in case it is relevant.</p>
<h5 dir="auto">C# example - what I expect</h5>
<p dir="auto">The following screenshot the brackets should line up in MyClass.</p>
<p dir="auto">In this case while the tab size is set to 2 I would also expect that <code class="notranslate">MyClass</code> would be moved left to adjust to the correct tab size.</p>
<p dir="auto">Officially the starting bracket would be on the same line as the class definition for my company policy, but I do not see that option available. Bonus points if you can mention how to set this in <code class="notranslate">VSCode</code>. <code class="notranslate">VS Enterprise</code> was able to do this with just a checkbox in settings, I am ok with a bool in json, I just do not see the value anywhere.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4823412/12682728/4263c060-c672-11e5-9958-4dd9f3aa1900.png"><img src="https://cloud.githubusercontent.com/assets/4823412/12682728/4263c060-c672-11e5-9958-4dd9f3aa1900.png" alt="image" style="max-width: 100%;"></a></p>
<h5 dir="auto">XML example - what I expect</h5>
<p dir="auto">Here I expect that <code class="notranslate">subLevel3</code> would be tabbed in to whatever the current tab setting is.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4823412/12682872/0b85cc90-c673-11e5-8e65-b870065e79d8.png"><img src="https://cloud.githubusercontent.com/assets/4823412/12682872/0b85cc90-c673-11e5-8e65-b870065e79d8.png" alt="image" style="max-width: 100%;"></a></p>
<h5 dir="auto">Tech Specs</h5>
<p dir="auto">Windows 10 Pro<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4823412/12682585/71c74e0e-c671-11e5-97c0-46db54335eea.png"><img src="https://cloud.githubusercontent.com/assets/4823412/12682585/71c74e0e-c671-11e5-97c0-46db54335eea.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129833316" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2554" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2554/hovercard" href="https://github.com/microsoft/vscode/issues/2554">microsoft/vscode#2554</a></em></p> | 1 |
<p dir="auto">I just upgraded my projects from pandas 0.16.2 to pandas 0.18.1, but I have a difference on some <code class="notranslate">DataFrame.resample</code> operations, with Weekly frequencies.</p>
<p dir="auto">For instance, I want to resample daily data to weekly data (<code class="notranslate">W-SUN</code>), and apply an offset to the results, so each row will be a <strong>MONDAY</strong> and not a SUNDAY.</p>
<h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
from datetime import timedelta
offset = +timedelta(days=1)
dates = pd.date_range("2001-01-01", freq="D", periods=18)]
a=pd.DataFrame(data=list(range(18)), columns=["value"], index=[dates])
a.resample("1W", how={"value": "sum"}, loffset=offset, closed="right", label="right")"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">timedelta</span>
<span class="pl-s1">offset</span> <span class="pl-c1">=</span> <span class="pl-c1">+</span><span class="pl-en">timedelta</span>(<span class="pl-s1">days</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-s1">dates</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"2001-01-01"</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">"D"</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">18</span>)]
<span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-en">list</span>(<span class="pl-en">range</span>(<span class="pl-c1">18</span>)), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">"value"</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s1">dates</span>])
<span class="pl-s1">a</span>.<span class="pl-en">resample</span>(<span class="pl-s">"1W"</span>, <span class="pl-s1">how</span><span class="pl-c1">=</span>{<span class="pl-s">"value"</span>: <span class="pl-s">"sum"</span>}, <span class="pl-s1">loffset</span><span class="pl-c1">=</span><span class="pl-s1">offset</span>, <span class="pl-s1">closed</span><span class="pl-c1">=</span><span class="pl-s">"right"</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"right"</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">With <code class="notranslate">pandas 0.16.2</code>, I got this correct output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" value
2001-01-08 21
2001-01-15 70
2001-01-22 62"><pre class="notranslate"><code class="notranslate"> value
2001-01-08 21
2001-01-15 70
2001-01-22 62
</code></pre></div>
<p dir="auto">ie, each row is a weekly aggregation of the data, and each date is a <strong>MONDAY</strong></p>
<p dir="auto">Resulting index is as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.index[0]
Timestamp('2001-01-08 00:00:00', offset='W-MON')"><pre class="notranslate"><code class="notranslate">a.index[0]
Timestamp('2001-01-08 00:00:00', offset='W-MON')
</code></pre></div>
<p dir="auto">However, with <code class="notranslate">pandas 0.18.1</code>, I got this output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" value
2001-01-07 21
2001-01-14 70
2001-01-21 62"><pre class="notranslate"><code class="notranslate"> value
2001-01-07 21
2001-01-14 70
2001-01-21 62
</code></pre></div>
<p dir="auto">each row is correctly aggregated, but the dates are <strong>SUNDAY</strong>s</p>
<p dir="auto">Resulting index is as follow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.index[0]
Timestamp('2001-01-07 00:00:00', offset='W-SUN')"><pre class="notranslate"><code class="notranslate">a.index[0]
Timestamp('2001-01-07 00:00:00', offset='W-SUN')
</code></pre></div>
<p dir="auto">It's like the <code class="notranslate">loffset</code> parameter is not correctly taken into account in the new <code class="notranslate">DataFrame.resample()</code> implementation.</p>
<p dir="auto">ie, the output with <code class="notranslate">pandas 0.18.1</code> is the same as the one using <code class="notranslate">pandas 0.16.2</code>, but calling <code class="notranslate">a.resample("1W", how={"value": "sum"}, </code><strong>loffset=None</strong><code class="notranslate">, closed="right", label="right")</code></p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">pandas <code class="notranslate">0.16.1</code> installation:</p>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-106-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
bottleneck: 1.0.0
tables: 3.2.1
numexpr: 2.4.3
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.7
pymysql: 0.6.6.None
psycopg2: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.13.0-106-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.7
Cython: 0.22.1
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.7
bottleneck: 1.0.0
tables: 3.2.1
numexpr: 2.4.3
matplotlib: 1.5.0
openpyxl: 2.3.2
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.7
pymysql: 0.6.6.None
psycopg2: None
</code></pre></div>
</details>
<p dir="auto">pandas <code class="notranslate">0.18.2</code> installation:</p>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-57-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.6.1
xarray: None
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.6
blosc: None
bottleneck: 1.0.0
tables: 3.2.1
numexpr: 2.6.0
matplotlib: 1.4.3
openpyxl: 2.3.2
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.7
pymysql: 0.6.6.None
psycopg2: None
jinja2: 2.7.3
boto: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-57-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.6.1
xarray: None
IPython: 3.2.1
sphinx: 1.3.1
patsy: 0.3.0
dateutil: 2.4.2
pytz: 2015.6
blosc: None
bottleneck: 1.0.0
tables: 3.2.1
numexpr: 2.6.0
matplotlib: 1.4.3
openpyxl: 2.3.2
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.7
pymysql: 0.6.6.None
psycopg2: None
jinja2: 2.7.3
boto: None
pandas_datareader: None
</code></pre></div>
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Create DF
df = pd.DataFrame(np.random.rand(5,2), columns=list('AB'), index=pd.date_range('2010-01-01 09:00:00', periods=5, freq='s'))
print(df)
A B
2010-01-01 09:00:00 0.283113 0.559642
2010-01-01 09:00:01 0.754942 0.621557
2010-01-01 09:00:02 0.102002 0.892100
2010-01-01 09:00:03 0.885400 0.524359
2010-01-01 09:00:04 0.324761 0.706758
#Resample, loffset works fine using mean(), is offset by 2 hours.
print(df.resample('2s', loffset='2h').mean())
A B
2010-01-01 11:00:00 0.519028 0.590599
2010-01-01 11:00:02 0.493701 0.708229
2010-01-01 11:00:04 0.324761 0.706758
# Resample with agg(), loffset doesn't work anymore.
print(df.resample('2s', loffset='2h').agg(dict(A='sum', B='mean')))
A B
2010-01-01 09:00:00 1.038055 0.590599
2010-01-01 09:00:02 0.987402 0.708229
2010-01-01 09:00:04 0.324761 0.706758
"><pre class="notranslate"><code class="notranslate"># Create DF
df = pd.DataFrame(np.random.rand(5,2), columns=list('AB'), index=pd.date_range('2010-01-01 09:00:00', periods=5, freq='s'))
print(df)
A B
2010-01-01 09:00:00 0.283113 0.559642
2010-01-01 09:00:01 0.754942 0.621557
2010-01-01 09:00:02 0.102002 0.892100
2010-01-01 09:00:03 0.885400 0.524359
2010-01-01 09:00:04 0.324761 0.706758
#Resample, loffset works fine using mean(), is offset by 2 hours.
print(df.resample('2s', loffset='2h').mean())
A B
2010-01-01 11:00:00 0.519028 0.590599
2010-01-01 11:00:02 0.493701 0.708229
2010-01-01 11:00:04 0.324761 0.706758
# Resample with agg(), loffset doesn't work anymore.
print(df.resample('2s', loffset='2h').agg(dict(A='sum', B='mean')))
A B
2010-01-01 09:00:00 1.038055 0.590599
2010-01-01 09:00:02 0.987402 0.708229
2010-01-01 09:00:04 0.324761 0.706758
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">I'd expect the same as with mean(), this is how resample worked in the past with resample(how=...).</p>
<p dir="auto">But maybe I also misunderstood something about the change. If so please enlighten me.</p>
<p dir="auto">Since I need this to keep things going, I use the following workaround for now, please let me know if this is the way to go or if there's a more efficient way:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print(df.resample('2s', loffset='2h').agg(dict(A='sum', B='mean')).tshift(2, 'h'))"><pre class="notranslate"><code class="notranslate">print(df.resample('2s', loffset='2h').agg(dict(A='sum', B='mean')).tshift(2, 'h'))
</code></pre></div>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.1.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 15.5.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: de_DE.UTF-8</p>
<p dir="auto">pandas: 0.18.1<br>
nose: 1.3.7<br>
pip: 8.1.2<br>
setuptools: 20.3<br>
Cython: 0.23.4<br>
numpy: 1.10.4<br>
scipy: 0.17.1<br>
statsmodels: 0.6.1<br>
xarray: None<br>
IPython: 4.2.0<br>
sphinx: 1.3.5<br>
patsy: 0.4.0<br>
dateutil: 2.5.1<br>
pytz: 2016.2<br>
blosc: None<br>
bottleneck: 1.0.0<br>
tables: 3.2.2<br>
numexpr: 2.5.2<br>
matplotlib: 1.5.1<br>
openpyxl: 2.3.2<br>
xlrd: 0.9.4<br>
xlwt: 1.0.0<br>
xlsxwriter: 0.8.4<br>
lxml: 3.6.0<br>
bs4: 4.4.1<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.0.12<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: 2.39.0<br>
pandas_datareader: 0.2.1<br>
In [92]:</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to upload a file that weight about 3GB and I'm getting the following error:<br>
"OverflowError: string longer than 2147483647 bytes"</p>
<p dir="auto">If I understand correctly it seems like there's a 2GB limit? didnt manage to find any reference to such limiation or how to bypass it (if possible).</p>
<p dir="auto">The code i'm using is:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
datafile = 'someHugeFile'
with open(datafile, 'rb') as myfile:
args = myfile.read()
resp = requests.put(url, data=args, verify=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/api.py", line 99, in put
return request('put', url, data=data, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/sessions.py", line 456, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/sessions.py", line 559, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/adapters.py", line 327, in send
timeout=timeout
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/packages/urllib3/connectionpool.py", line 493, in urlopen
body=body, headers=headers)
File "/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/packages/urllib3/connectionpool.py", line 291, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python2.7/httplib.py", line 995, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 1029, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 991, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 844, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 820, in send
self.sock.sendall(data)
File "/usr/local/lib/python2.7/ssl.py", line 234, in sendall
v = self.send(data[count:])
File "/usr/local/lib/python2.7/ssl.py", line 203, in send
v = self._sslobj.write(data)
OverflowError: string longer than 2147483647 bytes"><pre class="notranslate"><span class="pl-s1">datafile</span> <span class="pl-c1">=</span> <span class="pl-s">'someHugeFile'</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">datafile</span>, <span class="pl-s">'rb'</span>) <span class="pl-k">as</span> <span class="pl-s1">myfile</span>:
<span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-s1">myfile</span>.<span class="pl-en">read</span>()
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">put</span>(<span class="pl-s1">url</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">args</span>, <span class="pl-s1">verify</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">99</span>, <span class="pl-s1">in</span> <span class="pl-s1">put</span>
<span class="pl-k">return</span> <span class="pl-en">request</span>(<span class="pl-s">'put'</span>, <span class="pl-s1">url</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">data</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">44</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span>
<span class="pl-k">return</span> <span class="pl-s1">session</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span><span class="pl-c1">=</span><span class="pl-s1">method</span>, <span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">456</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span>
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">send</span>(<span class="pl-s1">prep</span>, <span class="pl-c1">**</span><span class="pl-s1">send_kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">559</span>, <span class="pl-s1">in</span> <span class="pl-s1">send</span>
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">adapter</span>.<span class="pl-en">send</span>(<span class="pl-s1">request</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/adapters.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">327</span>, <span class="pl-s1">in</span> <span class="pl-s1">send</span>
<span class="pl-s1">timeout</span><span class="pl-c1">=</span><span class="pl-s1">timeout</span>
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/packages/urllib3/connectionpool.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">493</span>, <span class="pl-s1">in</span> <span class="pl-s1">urlopen</span>
<span class="pl-s1">body</span><span class="pl-c1">=</span><span class="pl-s1">body</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">headers</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/site-packages/requests-2.3.0-py2.7.egg/requests/packages/urllib3/connectionpool.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">291</span>, <span class="pl-s1">in</span> <span class="pl-s1">_make_request</span>
<span class="pl-s1">conn</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span>, <span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">httplib_request_kw</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/httplib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">995</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span>
<span class="pl-s1">self</span>.<span class="pl-en">_send_request</span>(<span class="pl-s1">method</span>, <span class="pl-s1">url</span>, <span class="pl-s1">body</span>, <span class="pl-s1">headers</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/httplib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1029</span>, <span class="pl-s1">in</span> <span class="pl-s1">_send_request</span>
<span class="pl-s1">self</span>.<span class="pl-en">endheaders</span>(<span class="pl-s1">body</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/httplib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">991</span>, <span class="pl-s1">in</span> <span class="pl-s1">endheaders</span>
<span class="pl-s1">self</span>.<span class="pl-en">_send_output</span>(<span class="pl-s1">message_body</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/httplib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">844</span>, <span class="pl-s1">in</span> <span class="pl-s1">_send_output</span>
<span class="pl-s1">self</span>.<span class="pl-en">send</span>(<span class="pl-s1">msg</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/httplib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">820</span>, <span class="pl-s1">in</span> <span class="pl-s1">send</span>
<span class="pl-s1">self</span>.<span class="pl-s1">sock</span>.<span class="pl-en">sendall</span>(<span class="pl-s1">data</span>)
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/ssl.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">234</span>, <span class="pl-s1">in</span> <span class="pl-s1">sendall</span>
<span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">send</span>(<span class="pl-s1">data</span>[<span class="pl-s1">count</span>:])
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/ssl.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">203</span>, <span class="pl-s1">in</span> <span class="pl-s1">send</span>
<span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">_sslobj</span>.<span class="pl-en">write</span>(<span class="pl-s1">data</span>)
<span class="pl-v">OverflowError</span>: <span class="pl-s1">string</span> <span class="pl-s1">longer</span> <span class="pl-s1">than</span> <span class="pl-c1">2147483647</span> <span class="pl-s1">bytes</span></pre></div>
<p dir="auto">For smaller files this code works fine for me.</p> | <p dir="auto">Summary.</p>
<p dir="auto">When creating a session and setting <code class="notranslate">verify=False</code> with a proxy defined value error is raised. The easiest way to setup this issue is to open Fiddler4 and run the following on Windows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import requests
import urllib
url = "https://www.arcgis.com/sharing/rest?f=json"
proxies = urllib.request.getproxies()
session = requests.Session()
session.proxies = proxies
session.trust_env = True
session.verify = False
resp = session.get(url=url)
print(resp.json())
"><pre class="notranslate"><code class="notranslate">import requests
import urllib
url = "https://www.arcgis.com/sharing/rest?f=json"
proxies = urllib.request.getproxies()
session = requests.Session()
session.proxies = proxies
session.trust_env = True
session.verify = False
resp = session.get(url=url)
print(resp.json())
</code></pre></div>
<h2 dir="auto">Expected Result</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{'currentVersion': '9.2'}"><pre class="notranslate"><code class="notranslate">{'currentVersion': '9.2'}
</code></pre></div>
<h2 dir="auto">Actual Result</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
Python Shell, prompt 2, line 10
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connection.py", line 506, in _connect_tls_proxy
ssl_context=ssl_context,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\ssl.py", line 423, in wrap_socket
session=session
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\ssl.py", line 827, in _create
raise ValueError("check_hostname requires server_hostname")
builtins.ValueError: check_hostname requires server_hostname"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
Python Shell, prompt 2, line 10
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\connection.py", line 506, in _connect_tls_proxy
ssl_context=ssl_context,
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\ssl.py", line 423, in wrap_socket
session=session
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-dev\Lib\ssl.py", line 827, in _create
raise ValueError("check_hostname requires server_hostname")
builtins.ValueError: check_hostname requires server_hostname
</code></pre></div>
<p dir="auto">What happened instead.</p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"chardet": {
"version": "4.0.0"
},
"cryptography": {
"version": "3.3.1"
},
"idna": {
"version": "2.10"
},
"implementation": {
"name": "CPython",
"version": "3.7.10"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "1010109f",
"version": "20.0.1"
},
"requests": {
"version": "2.25.1"
},
"system_ssl": {
"version": "1010109f"
},
"urllib3": {
"version": "1.25.11"
},
"using_pyopenssl": true
}"><pre class="notranslate"><code class="notranslate">{
"chardet": {
"version": "4.0.0"
},
"cryptography": {
"version": "3.3.1"
},
"idna": {
"version": "2.10"
},
"implementation": {
"name": "CPython",
"version": "3.7.10"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "1010109f",
"version": "20.0.1"
},
"requests": {
"version": "2.25.1"
},
"system_ssl": {
"version": "1010109f"
},
"urllib3": {
"version": "1.25.11"
},
"using_pyopenssl": true
}
</code></pre></div> | 0 |
<h3 dir="auto">Describe the issue linked to the documentation</h3>
<p dir="auto">Hi folks,</p>
<p dir="auto">I am somewhat in doubt that the <code class="notranslate">sklearn.feature_selection.chi2</code> function is implemented correctly. At least, checking the source code, it is entirely unclear to me why that kind of scoring would make sense.</p>
<p dir="auto">Best,<br>
Felix</p>
<h3 dir="auto">Suggest a potential alternative/fix</h3>
<p dir="auto">Is there any reference that justifies the computation in the implemented way? Then it should be added to the documentation.</p> | <h3 dir="auto">Describe the bug</h3>
<p dir="auto">When looking for correlation between features (for feature selection), I found that sklearn implementation of Chi2 test of independence produce significantly different results from scipy.stats implementation.</p>
<p dir="auto">My sample data contains 300 records, with 6 anonymized categorical features and the label. My focus is on the feature A. This data is available <a href="https://github.com/altanova/stuff/tree/main/projs/2021-10-chi2">in this folder in github</a> . The file sample300.csv has the file, while the file chi2_showcase.ipynb has the code demonstrating the mismatch.</p>
<p dir="auto">For the feature A, <strong>sklearn's SelectKBest()</strong> returned the lowest ranking, suggesting there is no correlation between A and the target. But <strong>scipy.stats.chi2_contingency()</strong> returned very different result, suggesting the correlation is very high.</p>
<p dir="auto">Because of mismatch between the two, I went a long way performing a number of different tests <a href="https://ondata.blog/articles/dont-trust-data-science-ask-the-people/" rel="nofollow">described in detail in this article</a> The results suggest that the scipy implementation is correct, while sklearn implementation is incorrect.</p>
<h3 dir="auto">Steps/Code to Reproduce</h3>
<p dir="auto">Please see the two links given above, where I provided the full source code and the results.<br>
The piece of code is quite standard:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fs = SelectKBest(score_func=skfs.chi2, k = 'all')
X, y = df[cat_feature_cols], df[label]
selector = fs.fit(X, y)
kbest = pd.DataFrame({'feature': X.columns, 'score': fs.scores_})
kbest.sort_values(by = 'score', ascending = False).reset_index()"><pre class="notranslate"><span class="pl-s1">fs</span> <span class="pl-c1">=</span> <span class="pl-v">SelectKBest</span>(<span class="pl-s1">score_func</span><span class="pl-c1">=</span><span class="pl-s1">skfs</span>.<span class="pl-s1">chi2</span>, <span class="pl-s1">k</span> <span class="pl-c1">=</span> <span class="pl-s">'all'</span>)
<span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>[<span class="pl-s1">cat_feature_cols</span>], <span class="pl-s1">df</span>[<span class="pl-s1">label</span>]
<span class="pl-s1">selector</span> <span class="pl-c1">=</span> <span class="pl-s1">fs</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">kbest</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'feature'</span>: <span class="pl-v">X</span>.<span class="pl-s1">columns</span>, <span class="pl-s">'score'</span>: <span class="pl-s1">fs</span>.<span class="pl-s1">scores_</span>})
<span class="pl-s1">kbest</span>.<span class="pl-en">sort_values</span>(<span class="pl-s1">by</span> <span class="pl-c1">=</span> <span class="pl-s">'score'</span>, <span class="pl-s1">ascending</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>).<span class="pl-en">reset_index</span>()</pre></div>
<h3 dir="auto">Expected Results</h3>
<p dir="auto">I would expect that sklearn.feature_selection.SelectKBest(score_func=skfs.chi2) returns same, or at least similar results (p-value and chi2 statistics) as scipy.stats.chi2_contingency() . In the particular case of feature A from my set, these expected results are:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="chi2 = 127.497517
p-value = 1.445816e-29"><pre class="notranslate"><span class="pl-s1">chi2</span> <span class="pl-c1">=</span> <span class="pl-c1">127.497517</span>
<span class="pl-s1">p</span><span class="pl-c1">-</span><span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-c1">1.445816e-29</span></pre></div>
<h3 dir="auto">Actual Results</h3>
<p dir="auto">For the feature A in my set, sklearn.feature_selection.chi2() (encapsulated inside SelectKBest(score_func=skfs.chi2)) returned lowest rank of all features, suggesting no correlation. Feature A has score 1.412797, while other features score between 1647 and 24.</p>
<p dir="auto">In contrast, scipy.stats.chi2_contingency() gave highest rank to feature A, suggesting high correlation. The other tests described in the article suggest that the latter is correct.</p>
<h3 dir="auto">Versions</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System:
python: 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]
executable: C:\Users\pplaszczak\AppData\Local\Continuum\anaconda3\python.exe
machine: Windows-10-10.0.18362-SP0
Python dependencies:
pip: 21.0.1
setuptools: 52.0.0.post20210125
sklearn: 0.24.1
numpy: 1.19.2
scipy: 1.6.2
Cython: 0.29.22
pandas: 1.2.3
matplotlib: 3.3.4
joblib: 1.0.1
threadpoolctl: 2.1.0
Built with OpenMP: True"><pre class="notranslate"><code class="notranslate">System:
python: 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]
executable: C:\Users\pplaszczak\AppData\Local\Continuum\anaconda3\python.exe
machine: Windows-10-10.0.18362-SP0
Python dependencies:
pip: 21.0.1
setuptools: 52.0.0.post20210125
sklearn: 0.24.1
numpy: 1.19.2
scipy: 1.6.2
Cython: 0.29.22
pandas: 1.2.3
matplotlib: 3.3.4
joblib: 1.0.1
threadpoolctl: 2.1.0
Built with OpenMP: True
</code></pre></div> | 1 |
<p dir="auto">I have followed the below steps to generate the bug.</p>
<ul dir="auto">
<li>I have created a file named after <code class="notranslate">server.ts</code> using the below command:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}"><pre class="notranslate"><code class="notranslate">import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}
</code></pre></div>
<ul dir="auto">
<li>
<p dir="auto">I have tried to bundle the code using the below command:<br>
<code class="notranslate">deno bundle server.ts server.bundle.js</code></p>
</li>
<li>
<p dir="auto">Then I have tried to run the bundled code using the below command:<br>
<code class="notranslate">deno run server.bundle.js</code></p>
</li>
</ul>
<p dir="auto">After that, I have found the below issue into the terminal</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Uncaught SyntaxError: Unexpected reserved word
for await (const req of s) {
~~~~~
at file:///Projects/Personal/server.bundle.js:5467:13"><pre class="notranslate"><code class="notranslate">error: Uncaught SyntaxError: Unexpected reserved word
for await (const req of s) {
~~~~~
at file:///Projects/Personal/server.bundle.js:5467:13
</code></pre></div> | <h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Create <code class="notranslate">server.js</code> with the following content:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">serve</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/http/server.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">port</span>: <span class="pl-c1">8000</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"http://localhost:8000/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">req</span> <span class="pl-k">of</span> <span class="pl-s1">s</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">respond</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">body</span>: <span class="pl-s">"Hello World\n"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Run <code class="notranslate">deno bundle server.js out.js</code></p>
<p dir="auto">Run <code class="notranslate">deno out.js</code></p>
<h2 dir="auto">Expected result</h2>
<p dir="auto">The code runs</p>
<h2 dir="auto">Actual result</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: Uncaught SyntaxError: Unexpected reserved word
► file:///path/to/out.js:113:17
113 for await (const req of s) {
~~~~~"><pre class="notranslate">error: Uncaught SyntaxError: Unexpected reserved word
► file:///path/to/out.js:113:17
113 <span class="pl-k">for</span> await (const req of s) {
<span class="pl-k">~</span>~~~~</pre></div>
<h2 dir="auto">Notes</h2>
<p dir="auto">Adding <code class="notranslate">await console.log("test");</code> or any other <code class="notranslate">await</code> statement is detected by the bundler and allows the <code class="notranslate">for-await</code> block to work properly. (See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="573538419" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/4206" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/4206/hovercard" href="https://github.com/denoland/deno/issues/4206">#4206</a>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 0.35.0
v8 8.1.310
typescript 3.8.2"><pre class="notranslate"><code class="notranslate">deno 0.35.0
v8 8.1.310
typescript 3.8.2
</code></pre></div> | 1 |
<p dir="auto">Currently, the only ways to adjust the offset and repeat are to either change it on the texture object or to change the UV coordinates of the geometry. However, there are cases where it would be useful and performant to adjust on the Material.</p>
<p dir="auto">For example, imagine creating a room where the walls would share a repeating texture - perhaps tiles, drywall, marble, etc. Ideally, you'd be able to use a single texture for all the walls and a single geometry, with each wall as its own <code class="notranslate">Mesh</code> object with different scales, positions and rotations. But if the walls had different dimensions, the tiling pattern would be stretched differently on each wall. To solve this now, you'd either have to make many instances of the texture, each with its own repeat/offset values or you'd have to give each wall its own geometry. It would be easier, faster and more flexible to allow each Mesh to have its own values.</p>
<p dir="auto">Yes, you could merge the whole room into a single geometry and tweak the UV values. But that's much harder to do procedurally and it doesn't suit cases that require flexibility such as a scene editor. And it's slower to adjust in real time.</p>
<p dir="auto">(This issue replaces <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198278578" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/10490" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/10490/hovercard" href="https://github.com/mrdoob/three.js/issues/10490">#10490</a>)</p> | <p dir="auto">I use the Texture.clone() function a lot in my code, because I need to set the UV coordinates differently on every model, and this slows down the initiation of the page considerably. If I don't clone the texture, then the scene renders instantly. So something is not optimal in the rendering pipeline.</p>
<p dir="auto">It seems that the Texture.clone() function indeed creates a shallow clone that reuses the image, but then when data is sent to the graphics card these two textures are seen as having two separate images, sending the same image twice. Is this correct? Perhaps this is where the bottleneck is.</p>
<p dir="auto">Coming from XNA and DirectX, where textures are not much more than containers for bitmap data, I wonder why Three.js also includes UV data in them, instead of specifying UV once the texture is applied to a mesh?</p> | 0 |
<p dir="auto">My config file:</p>
<p dir="auto">{<br>
"acrylicOpacity" : 0.75,<br>
"closeOnExit" : false,<br>
"colorScheme" : "Campbell",<br>
"commandline" : "cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"",<br>
"cursorColor" : "#FFFFFF",<br>
"cursorShape" : "bar",<br>
"fontFace" : "Consolas",<br>
"fontSize" : 12,<br>
"guid" : "{e319bb19-0ab7-4f16-a7a2-b76c321d50c2}",<br>
"historySize" : 9001,<br>
"name" : "x64 Native Tools Command Prompt for VS 2019",<br>
"padding" : "0, 0, 0, 0",<br>
"snapOnInput" : true,<br>
"useAcrylic" : true,<br>
"backgroundImage":"D:\Pictures\star.png"<br>
}</p>
<p dir="auto">Outout:<br>
'C:\Program' 不是内部或外部命令,也不是可运行的程序</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?
</code></pre></div>
<p dir="auto">Today I modified the Windows Terminal configuration file and wanted to create a Pwsh with the emoji title. However, I encountered some confusion in this process. I checked the task manager and found that conhost did not escape when the process was started, causing the command line to parse the exception.</p>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I need to start pwsh by the following command line (note that the following command line is in cmd, or you can start pwsh normally using CreateProcessW.)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""C:\Program Files\PowerShell\7-preview\pwsh.exe" -NoExit -Command "$Host.UI.RawUI.WindowTitle=\"Windows Pwsh 💙 (7 Preview)\"""><pre class="notranslate"><code class="notranslate">"C:\Program Files\PowerShell\7-preview\pwsh.exe" -NoExit -Command "$Host.UI.RawUI.WindowTitle=\"Windows Pwsh 💙 (7 Preview)\""
</code></pre></div>
<p dir="auto">Here is the Windows Terminal configuration file (the command line has been properly escaped):</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" {
"startingDirectory": "C:\\Users\\CharlieInc",
"guid": "{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}",
"name": "Windows Pwsh 💙 (7 Preview)",
"colorscheme": "Campbell",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"commandline": "\"C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\" -NoExit -Command \"$Host.UI.RawUI.WindowTitle=\\\"Windows Pwsh 💙 (7 Preview)\\\"\"",
"fontFace": "Consolas",
"fontSize": 12,
"acrylicOpacity": 0.75,
"useAcrylic": true,
"closeOnExit": false,
"padding": "0, 0, 0, 0",
"icon": "ms-appdata:///roaming/pwsh-32.png"
}"><pre class="notranslate"> {
<span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>CharlieInc<span class="pl-pds">"</span></span>,
<span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}<span class="pl-pds">"</span></span>,
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-pds">"</span></span>,
<span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>Campbell<span class="pl-pds">"</span></span>,
<span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>,
<span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>,
<span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>,
<span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\"</span>C:<span class="pl-cce">\\</span>Program Files<span class="pl-cce">\\</span>PowerShell<span class="pl-cce">\\</span>7-preview<span class="pl-cce">\\</span>pwsh.exe<span class="pl-cce">\"</span> -NoExit -Command <span class="pl-cce">\"</span>$Host.UI.RawUI.WindowTitle=<span class="pl-cce">\\\"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-cce">\\\"\"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Consolas<span class="pl-pds">"</span></span>,
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>,
<span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">0.75</span>,
<span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>0, 0, 0, 0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/pwsh-32.png<span class="pl-pds">"</span></span>
}</pre></div>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">As expected, Pwsh should set the title correctly, but pwsh reported the error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png"><img src="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Let's take a look at the command line:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png"><img src="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png"><img src="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">When you see the red line, the command line that pwsh starts is incorrect, and when you start conhost, the command line is still correct!</p>
<p dir="auto">Currently I have found a suspicious code, most likely this code caused an error:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/microsoft/terminal/blob/71e19cd82528d66a0a7867cbed85990cfc1685f1/src/host/ConsoleArguments.cpp#L263-L288">terminal/src/host/ConsoleArguments.cpp</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 263 to 288
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/terminal/commit/71e19cd82528d66a0a7867cbed85990cfc1685f1">71e19cd</a>
</p>
</div>
<div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
<table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">
<tbody><tr class="border-0">
<td id="L263" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="263"></td>
<td id="LC263" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> HRESULT <span class="pl-en">ConsoleArguments::_GetClientCommandline</span>(_Inout_ std::vector<std::wstring>& args, <span class="pl-k">const</span> <span class="pl-c1">size_t</span> index, <span class="pl-k">const</span> <span class="pl-k">bool</span> skipFirst) </td>
</tr>
<tr class="border-0">
<td id="L264" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="264"></td>
<td id="LC264" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L265" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="265"></td>
<td id="LC265" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">auto</span> start = args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>; </td>
</tr>
<tr class="border-0">
<td id="L266" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="266"></td>
<td id="LC266" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L267" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="267"></td>
<td id="LC267" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Erase the first token.</span> </td>
</tr>
<tr class="border-0">
<td id="L268" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="268"></td>
<td id="LC268" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Used to get rid of the explicit commandline token "--"</span> </td>
</tr>
<tr class="border-0">
<td id="L269" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="269"></td>
<td id="LC269" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (skipFirst) </td>
</tr>
<tr class="border-0">
<td id="L270" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="270"></td>
<td id="LC270" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L271" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="271"></td>
<td id="LC271" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Make sure that the arg we're deleting is "--"</span> </td>
</tr>
<tr class="border-0">
<td id="L272" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="272"></td>
<td id="LC272" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">FAIL_FAST_IF</span>(!(CLIENT_COMMANDLINE_ARG == start-><span class="pl-c1">c_str</span>())); </td>
</tr>
<tr class="border-0">
<td id="L273" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="273"></td>
<td id="LC273" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(start); </td>
</tr>
<tr class="border-0">
<td id="L274" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="274"></td>
<td id="LC274" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L275" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="275"></td>
<td id="LC275" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L276" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="276"></td>
<td id="LC276" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline = <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-pds">"</span></span>; </td>
</tr>
<tr class="border-0">
<td id="L277" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="277"></td>
<td id="LC277" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">size_t</span> j = <span class="pl-c1">0</span>; </td>
</tr>
<tr class="border-0">
<td id="L278" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="278"></td>
<td id="LC278" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> (j = <span class="pl-c1">index</span>; j < args.<span class="pl-c1">size</span>(); j++) </td>
</tr>
<tr class="border-0">
<td id="L279" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="279"></td>
<td id="LC279" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L280" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="280"></td>
<td id="LC280" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += args[j]; </td>
</tr>
<tr class="border-0">
<td id="L281" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="281"></td>
<td id="LC281" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (j+<span class="pl-c1">1</span> < args.<span class="pl-c1">size</span>()) </td>
</tr>
<tr class="border-0">
<td id="L282" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="282"></td>
<td id="LC282" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L283" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="283"></td>
<td id="LC283" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += <span class="pl-s"><span class="pl-pds">L"</span> <span class="pl-pds">"</span></span>; </td>
</tr>
<tr class="border-0">
<td id="L284" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="284"></td>
<td id="LC284" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L285" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="285"></td>
<td id="LC285" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L286" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="286"></td>
<td id="LC286" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>, args.<span class="pl-c1">begin</span>()+j); </td>
</tr>
<tr class="border-0">
<td id="L287" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="287"></td>
<td id="LC287" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L288" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="288"></td>
<td id="LC288" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> S_OK; </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">In this code, command line composition is simply a simple connection rather than a concatenated string. If the string contains spaces, this will result in an incorrect command line.</p>
<p dir="auto">Below is a code for the command line escaping, which may be useful:</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="inline std::wstring escape_argument(std::wstring_view ac) {
if (ac.empty()) {
return L"\"\"";
}
bool hasspace = false;
auto n = ac.size();
for (auto c : ac) {
switch (c) {
case L'"':
case L'\\':
n++;
break;
case ' ':
case '\t':
hasspace = true;
break;
default:
break;
}
}
if (hasspace) {
n += 2;
}
if (n == ac.size()) {
return std::wstring(ac.data(), ac.size());
}
std::wstring buf;
if (hasspace) {
buf.push_back(L'"');
}
size_t slashes = 0;
for (auto c : ac) {
switch (c) {
case L'\\':
slashes++;
buf.push_back(L'\\');
break;
case L'"': {
for (; slashes > 0; slashes--) {
buf.push_back(L'\\');
}
buf.push_back(L'\\');
buf.push_back(c);
} break;
default:
slashes = 0;
buf.push_back(c);
break;
}
}
if (hasspace) {
for (; slashes > 0; slashes--) {
buf.push_back(L'\\');
}
buf.push_back(L'"');
}
return buf;
}"><pre class="notranslate"><span class="pl-k">inline</span> std::wstring <span class="pl-en">escape_argument</span>(std::wstring_view ac) {
<span class="pl-k">if</span> (ac.<span class="pl-c1">empty</span>()) {
<span class="pl-k">return</span> <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-cce">\"\"</span><span class="pl-pds">"</span></span>;
}
<span class="pl-k">bool</span> hasspace = <span class="pl-c1">false</span>;
<span class="pl-k">auto</span> n = ac.<span class="pl-c1">size</span>();
<span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) {
<span class="pl-k">switch</span> (c) {
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>:
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>:
n++;
<span class="pl-k">break</span>;
<span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span>:
<span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\t</span><span class="pl-pds">'</span></span>:
hasspace = <span class="pl-c1">true</span>;
<span class="pl-k">break</span>;
<span class="pl-k">default</span>:
<span class="pl-k">break</span>;
}
}
<span class="pl-k">if</span> (hasspace) {
n += <span class="pl-c1">2</span>;
}
<span class="pl-k">if</span> (n == ac.<span class="pl-c1">size</span>()) {
<span class="pl-k">return</span> <span class="pl-c1">std::wstring</span>(ac.<span class="pl-c1">data</span>(), ac.<span class="pl-c1">size</span>());
}
std::wstring buf;
<span class="pl-k">if</span> (hasspace) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>);
}
<span class="pl-c1">size_t</span> slashes = <span class="pl-c1">0</span>;
<span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) {
<span class="pl-k">switch</span> (c) {
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>:
slashes++;
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
<span class="pl-k">break</span>;
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>: {
<span class="pl-k">for</span> (; slashes > <span class="pl-c1">0</span>; slashes--) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
}
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
buf.<span class="pl-c1">push_back</span>(c);
} <span class="pl-k">break</span>;
<span class="pl-k">default</span>:
slashes = <span class="pl-c1">0</span>;
buf.<span class="pl-c1">push_back</span>(c);
<span class="pl-k">break</span>;
}
}
<span class="pl-k">if</span> (hasspace) {
<span class="pl-k">for</span> (; slashes > <span class="pl-c1">0</span>; slashes--) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
}
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>);
}
<span class="pl-k">return</span> buf;
}</pre></div> | 1 |
<ol dir="auto">
<li>ltisys:150:
<ul dir="auto">
<li>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`# transfer function is C (sI - A)**(-1) B + D`"><pre class="notranslate"><code class="notranslate">`# transfer function is C (sI - A)**(-1) B + D`
</code></pre></div>
should read:<br>
<code class="notranslate"># transfer matrix is C (sI - A)**(-1) B + D</code></li>
<li>Although, this matrix is not actually calculated, so the comment should probably be removed.</li>
</ul>
</li>
<li>ltisys:179:
<ul dir="auto">
<li>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`type_test = A[:, 0] + B[:, 0] + C[0, :] + D`"><pre class="notranslate"><code class="notranslate">`type_test = A[:, 0] + B[:, 0] + C[0, :] + D`
</code></pre></div>
</li>
<li>Results in an error when a system with multiple <strong>ouputs</strong> is passed to ss2tf.</li>
</ul>
</li>
</ol>
<p dir="auto">Suggested fix: add an optional argument 'output' which specifies the output for which the transfer function is desired.</p> | <h3 dir="auto">Is your feature request related to a problem? Please describe.</h3>
<p dir="auto">If we specify the covariance matrix manually, we usually do it in a form of rotation matrix and variances. So running the decomposition internally is redundant and inefficient.</p>
<h3 dir="auto">Describe the solution you'd like.</h3>
<p dir="auto">Internally the covariance matrix should be stored in the decomposed form, so we can alter the components separately. We should be able to provide them explicitly, so skipping the solver. We should also be able to provide the angles instead of the matrix, as a more convenient interface, so we don't have to mess with <code class="notranslate">.spatial.transform.Rotation</code> ourselves.</p>
<h3 dir="auto">Describe alternatives you've considered.</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context (e.g. screenshots, GIFs)</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<p dir="auto">all.bash fails on fedora-vm,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="uname -a
Linux fedora-amd64.localdomain 4.2.8-200.fc22.x86_64 #1 SMP Tue Dec 15 16:50:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
git rev-parse HEAD
acc7161320038ee6377d589890526cd11912b4e8
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7851
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited"><pre class="notranslate"><code class="notranslate">uname -a
Linux fedora-amd64.localdomain 4.2.8-200.fc22.x86_64 #1 SMP Tue Dec 15 16:50:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
git rev-parse HEAD
acc7161320038ee6377d589890526cd11912b4e8
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7851
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
</code></pre></div>
<p dir="auto">with the following dying message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestStackBarrierProfiling (0.02s)
pprof_test.go:363: subprocess failed with exit status 2:
SIGTRAP: trace trap
PC=0x459cfd m=2
goroutine 0 [idle]:
runtime.morestack()
/go/src/runtime/asm_amd64.s:331 +0x1d
goroutine 4 [running]:
runtime.systemstack_switch()
/go/src/runtime/asm_amd64.s:245 fp=0xc8200414f8 sp=0xc8200414f0
runtime.gcMarkTermination()
/go/src/runtime/mgc.go:1255 +0x3a9 fp=0xc820041748 sp=0xc8200414f8
runtime.gcMarkDone()
/go/src/runtime/mgc.go:1141 +0x286 fp=0xc820041768 sp=0xc820041748
runtime.gcBgMarkWorker(0xc82001c000)
/go/src/runtime/mgc.go:1465 +0x4d8 fp=0xc8200417d8 sp=0xc820041768
runtime.goexit()
/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8200417e0 sp=0xc8200417d8
created by runtime.gcBgMarkStartWorkers
/go/src/runtime/mgc.go:1335 +0x93
goroutine 1 [chan receive]:
testing.RunTests(0x610ac0, 0x6b03e0, 0x8, 0x8, 0x7f2e00000001)
/go/src/testing/testing.go:583 +0x8d2
testing.(*M).Run(0xc8200bef38, 0x408ee7)
/go/src/testing/testing.go:515 +0x81
main.main()
runtime/pprof/_test/_testmain.go:70 +0x117
goroutine 19 [runnable]:
runtime/pprof_test.deepStack(0x1c1, 0xc820161800)
/go/src/runtime/pprof/pprof_test.go:393 +0x52
runtime/pprof_test.deepStack(0x1c2, 0xc820161400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c3, 0xc820161000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c4, 0xc820160c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c5, 0xc820160800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c6, 0xc820160400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c7, 0xc820160000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c8, 0xc82015fc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c9, 0xc82015f800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ca, 0xc82015f400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cb, 0xc82015f000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cc, 0xc82015ec00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cd, 0xc82015e800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ce, 0xc82015e400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cf, 0xc82015e000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d0, 0xc82015dc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d1, 0xc82015d800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d2, 0xc82015d400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d3, 0xc82015d000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d4, 0xc82015cc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d5, 0xc82015c800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d6, 0xc82015c400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d7, 0xc82015c000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d8, 0xc82015bc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d9, 0xc82015b800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1da, 0xc82015b400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1db, 0xc82015b000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1dc, 0xc82015ac00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1dd, 0xc82015a800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1de, 0xc82015a400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1df, 0xc82015a000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e0, 0xc820159c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e1, 0xc820159800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e2, 0xc820159400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e3, 0xc820159000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e4, 0xc820158c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e5, 0xc820158800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e6, 0xc820158400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e7, 0xc820158000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e8, 0xc820157c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e9, 0xc820157800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ea, 0xc820157400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1eb, 0xc820157000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ec, 0xc820156c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ed, 0xc820156800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ee, 0xc820156400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ef, 0xc820156000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f0, 0xc820155c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f1, 0xc820155800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f2, 0xc820155400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f3, 0xc820155000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f4, 0xc820154c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f5, 0xc820154800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f6, 0xc820154400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f7, 0xc820154000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f8, 0xc820153c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f9, 0xc820153800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fa, 0xc820153400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fb, 0xc820153000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fc, 0xc820152c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fd, 0xc820152800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fe, 0xc820152400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ff, 0xc820152000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x200, 0xc820151c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x201, 0xc820151800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x202, 0xc820151400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x203, 0xc820151000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x204, 0xc820150c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x205, 0xc820150800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x206, 0xc820150400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x207, 0xc820150000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x208, 0xc82014fc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x209, 0xc82014f800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20a, 0xc82014f400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20b, 0xc82014f000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20c, 0xc82014ec00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20d, 0xc82014e800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20e, 0xc82014e400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20f, 0xc82014e000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x210, 0xc82014dc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x211, 0xc82014d800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x212, 0xc82014d400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x213, 0xc82014d000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x214, 0xc82014cc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x215, 0xc82014c800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x216, 0xc82014c400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x217, 0xc82014c000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x218, 0xc82014bc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x219, 0xc82014b800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21a, 0xc82014b400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21b, 0xc82014b000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21c, 0xc82014ac00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21d, 0xc82014a800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21e, 0xc82014a400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
created by testing.RunTests
/go/src/testing/testing.go:582 +0x892
goroutine 20 [runnable]:
runtime/pprof.profileWriter(0x7f2e60199650, 0xc82009a310)
/go/src/runtime/pprof/pprof.go:597
created by runtime/pprof.StartCPUProfile
/go/src/runtime/pprof/pprof.go:593 +0x145
rax 0xf80
rbx 0xc82002a400
rcx 0xc820000900
rdx 0x0
rdi 0x42eec0
rsi 0xc820000900
rbp 0x2
rsp 0xc82003af78
r8 0xc820000f00
r9 0x47ae147ae147ae15
r10 0x4d9e5
r11 0x203
r12 0x42f150
r13 0x60fe08
r14 0x0
r15 0x8
rip 0x459cfd
rflags 0x246
cs 0x33
fs 0x0
gs 0x0
FAIL"><pre class="notranslate"><code class="notranslate">--- FAIL: TestStackBarrierProfiling (0.02s)
pprof_test.go:363: subprocess failed with exit status 2:
SIGTRAP: trace trap
PC=0x459cfd m=2
goroutine 0 [idle]:
runtime.morestack()
/go/src/runtime/asm_amd64.s:331 +0x1d
goroutine 4 [running]:
runtime.systemstack_switch()
/go/src/runtime/asm_amd64.s:245 fp=0xc8200414f8 sp=0xc8200414f0
runtime.gcMarkTermination()
/go/src/runtime/mgc.go:1255 +0x3a9 fp=0xc820041748 sp=0xc8200414f8
runtime.gcMarkDone()
/go/src/runtime/mgc.go:1141 +0x286 fp=0xc820041768 sp=0xc820041748
runtime.gcBgMarkWorker(0xc82001c000)
/go/src/runtime/mgc.go:1465 +0x4d8 fp=0xc8200417d8 sp=0xc820041768
runtime.goexit()
/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8200417e0 sp=0xc8200417d8
created by runtime.gcBgMarkStartWorkers
/go/src/runtime/mgc.go:1335 +0x93
goroutine 1 [chan receive]:
testing.RunTests(0x610ac0, 0x6b03e0, 0x8, 0x8, 0x7f2e00000001)
/go/src/testing/testing.go:583 +0x8d2
testing.(*M).Run(0xc8200bef38, 0x408ee7)
/go/src/testing/testing.go:515 +0x81
main.main()
runtime/pprof/_test/_testmain.go:70 +0x117
goroutine 19 [runnable]:
runtime/pprof_test.deepStack(0x1c1, 0xc820161800)
/go/src/runtime/pprof/pprof_test.go:393 +0x52
runtime/pprof_test.deepStack(0x1c2, 0xc820161400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c3, 0xc820161000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c4, 0xc820160c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c5, 0xc820160800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c6, 0xc820160400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c7, 0xc820160000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c8, 0xc82015fc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1c9, 0xc82015f800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ca, 0xc82015f400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cb, 0xc82015f000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cc, 0xc82015ec00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cd, 0xc82015e800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ce, 0xc82015e400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1cf, 0xc82015e000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d0, 0xc82015dc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d1, 0xc82015d800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d2, 0xc82015d400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d3, 0xc82015d000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d4, 0xc82015cc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d5, 0xc82015c800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d6, 0xc82015c400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d7, 0xc82015c000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d8, 0xc82015bc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1d9, 0xc82015b800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1da, 0xc82015b400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1db, 0xc82015b000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1dc, 0xc82015ac00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1dd, 0xc82015a800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1de, 0xc82015a400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1df, 0xc82015a000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e0, 0xc820159c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e1, 0xc820159800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e2, 0xc820159400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e3, 0xc820159000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e4, 0xc820158c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e5, 0xc820158800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e6, 0xc820158400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e7, 0xc820158000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e8, 0xc820157c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1e9, 0xc820157800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ea, 0xc820157400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1eb, 0xc820157000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ec, 0xc820156c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ed, 0xc820156800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ee, 0xc820156400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ef, 0xc820156000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f0, 0xc820155c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f1, 0xc820155800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f2, 0xc820155400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f3, 0xc820155000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f4, 0xc820154c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f5, 0xc820154800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f6, 0xc820154400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f7, 0xc820154000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f8, 0xc820153c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1f9, 0xc820153800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fa, 0xc820153400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fb, 0xc820153000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fc, 0xc820152c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fd, 0xc820152800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1fe, 0xc820152400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x1ff, 0xc820152000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x200, 0xc820151c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x201, 0xc820151800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x202, 0xc820151400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x203, 0xc820151000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x204, 0xc820150c00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x205, 0xc820150800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x206, 0xc820150400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x207, 0xc820150000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x208, 0xc82014fc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x209, 0xc82014f800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20a, 0xc82014f400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20b, 0xc82014f000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20c, 0xc82014ec00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20d, 0xc82014e800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20e, 0xc82014e400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x20f, 0xc82014e000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x210, 0xc82014dc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x211, 0xc82014d800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x212, 0xc82014d400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x213, 0xc82014d000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x214, 0xc82014cc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x215, 0xc82014c800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x216, 0xc82014c400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x217, 0xc82014c000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x218, 0xc82014bc00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x219, 0xc82014b800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21a, 0xc82014b400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21b, 0xc82014b000)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21c, 0xc82014ac00)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21d, 0xc82014a800)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
runtime/pprof_test.deepStack(0x21e, 0xc82014a400)
/go/src/runtime/pprof/pprof_test.go:394 +0x90
created by testing.RunTests
/go/src/testing/testing.go:582 +0x892
goroutine 20 [runnable]:
runtime/pprof.profileWriter(0x7f2e60199650, 0xc82009a310)
/go/src/runtime/pprof/pprof.go:597
created by runtime/pprof.StartCPUProfile
/go/src/runtime/pprof/pprof.go:593 +0x145
rax 0xf80
rbx 0xc82002a400
rcx 0xc820000900
rdx 0x0
rdi 0x42eec0
rsi 0xc820000900
rbp 0x2
rsp 0xc82003af78
r8 0xc820000f00
r9 0x47ae147ae147ae15
r10 0x4d9e5
r11 0x203
r12 0x42f150
r13 0x60fe08
r14 0x0
r15 0x8
rip 0x459cfd
rflags 0x246
cs 0x33
fs 0x0
gs 0x0
FAIL
</code></pre></div> | <p dir="auto">While stress testing TestStackBarrierProfiling at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/54bd5a71d37f1c69d070af5daa0949092ad59c8b/hovercard" href="https://github.com/golang/go/commit/54bd5a71d37f1c69d070af5daa0949092ad59c8b"><tt>54bd5a7</tt></a> on master, I got a segfault in <code class="notranslate">sigtrampgo</code> in signal_linux.go because g != nil, but g.m == nil.</p>
<p dir="auto">I've saved the binary and core file. Here is some preliminary digging through the core:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Core was generated by `./pprof.test -test.run=TestStackBarrierProfiling'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000043de2e in runtime.sigtrampgo (sig=11, info=0xc820061bf0,
ctx=0xc820061ac0) at /home/austin/go.dev/src/runtime/signal_linux.go:20
20 setg(g.m.gsignal)
Loading Go Runtime support.
(gdb) bt
#0 0x000000000043de2e in runtime.sigtrampgo (sig=11, info=0xc820061bf0,
ctx=0xc820061ac0) at /home/austin/go.dev/src/runtime/signal_linux.go:20
#1 0x000000000045c93b in runtime.sigtramp ()
at /home/austin/go.dev/src/runtime/sys_linux_amd64.s:234
#2 0x000000000045c940 in runtime.sigtramp ()
at /home/austin/go.dev/src/runtime/sys_linux_amd64.s:235
#3 0x0000000000000001 in ?? ()
#4 0x0000000000000000 in ?? ()
(gdb) print/x *g
$5 = {stack = {lo = 0xc820092000, hi = 0xc820092800},
stackguard0 = 0xfffffffffffffade, stackguard1 = 0xffffffffffffffff,
_panic = 0x0, _defer = 0x0, m = 0x0, stackAlloc = 0x1000, sched = {sp = 0x0,
pc = 0x459140, g = 0xc820001200, ctxt = 0x0, ret = 0x0, lr = 0x0,
bp = 0x4}, syscallsp = 0x0, syscallpc = 0x0, stkbar = []runtime.stkbar,
stkbarPos = 0x0, stktopsp = 0xc8200927d8, param = 0x0, atomicstatus = 0x2,
stackLock = 0x0, goid = 0x6, waitsince = 0x0,
waitreason = "GC worker (idle)", schedlink = 0x0, preempt = 0x1,
paniconfault = 0x0, preemptscan = 0x0, gcscandone = 0x1, gcscanvalid = 0x0,
throwsplit = 0x0, raceignore = 0x0, sysblocktraced = 0x0,
sysexitticks = 0x0, sysexitseq = 0x0, lockedm = 0x0, sig = 0x0,
writebuf = []uint8, sigcode0 = 0x0, sigcode1 = 0x0, sigpc = 0x0,
gopc = 0x418163, startpc = 0x4181d0, racectx = 0x0, waiting = 0x0,
gcAssistBytes = 0x0}
(gdb) x/i g.sched.pc
0x459140 <runtime.systemstack_switch>: retq
(gdb) x/i g.gopc
0x418163 <runtime.gcBgMarkStartWorkers+147>:
lea 0x2a4c96(%rip),%rbx # 0x6bce00 <runtime.work>
(gdb) x/i g.startpc
0x4181d0 <runtime.gcBgMarkWorker>: mov %fs:0xfffffffffffffff8,%rcx
(gdb) print/x *(struct 'runtime.sigcontext'*)(ctx+40)
$11 = {r8 = 0x0, r9 = 0x0, r10 = 0xc82003ef18, r11 = 0x206, r12 = 0x800,
r13 = 0x400, r14 = 0x9, r15 = 0x8, rdi = 0x6bcdb0, rsi = 0x0,
rbp = 0xc820026000, rbx = 0x0, rdx = 0x0, rax = 0xc820001200,
rcx = 0xc820001200, rsp = 0xc820092738, rip = 0x45920d, eflags = 0x10246,
cs = 0x33, gs = 0x0, fs = 0x0, __pad0 = 0x0, err = 0x4, trapno = 0xe,
oldmask = 0x0, cr2 = 0x0, fpstate = 0xc820061c80, __reserved1 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
(gdb) x/i $11.rip
0x45920d <runtime.morestack+13>: mov (%rbx),%rsi
(gdb) x/21a $11.rsp
0xc820092738: 0x4189e2 <runtime.gcFlushGCWork+130> 0x417390 <runtime.gcMarkDone+560>
0xc820092748: 0x619060 <runtime.stopTheWorldWithSema.f> 0xffffffff00000001
0xc820092758: 0xffffffff00000001 0x4186a8 <runtime.gcBgMarkWorker+1240>
0xc820092768: 0x0 0x0
0xc820092778: 0xffffffff 0x10
0xc820092788: 0x14 0x0
0xc820092798: 0xffffffff01000000 0xfffffffe
0xc8200927a8: 0x2120869068188 0x0
0xc8200927b8: 0xc820034800 0xc820001200
0xc8200927c8: 0x618e78 <runtime.gcBgMarkWorker.func1.f> 0x45bba1 <runtime.goexit+1>
0xc8200927d8: 0xc820024a00
(gdb) disassemble 'runtime.gcBgMarkWorker'
0x00000000004186a3 <+1235>: callq 0x417160 <runtime.gcMarkDone>
0x00000000004186a8 <+1240>: mov %fs:0xfffffffffffffff8,%rax
(gdb) disassemble 'runtime.gcMarkDone'
0x000000000041738b <+555>: callq 0x418960 <runtime.gcFlushGCWork>
0x0000000000417390 <+560>: callq 0x41a650 <runtime.gcWakeAllAssists>
(gdb) disassemble 'runtime.gcFlushGCWork'
0x00000000004189dd <+125>: callq 0x459290 <runtime.morestack_noctxt>
0x00000000004189e2 <+130>: jmpq 0x418960 <runtime.gcFlushGCWork>"><pre class="notranslate"><code class="notranslate">Core was generated by `./pprof.test -test.run=TestStackBarrierProfiling'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000043de2e in runtime.sigtrampgo (sig=11, info=0xc820061bf0,
ctx=0xc820061ac0) at /home/austin/go.dev/src/runtime/signal_linux.go:20
20 setg(g.m.gsignal)
Loading Go Runtime support.
(gdb) bt
#0 0x000000000043de2e in runtime.sigtrampgo (sig=11, info=0xc820061bf0,
ctx=0xc820061ac0) at /home/austin/go.dev/src/runtime/signal_linux.go:20
#1 0x000000000045c93b in runtime.sigtramp ()
at /home/austin/go.dev/src/runtime/sys_linux_amd64.s:234
#2 0x000000000045c940 in runtime.sigtramp ()
at /home/austin/go.dev/src/runtime/sys_linux_amd64.s:235
#3 0x0000000000000001 in ?? ()
#4 0x0000000000000000 in ?? ()
(gdb) print/x *g
$5 = {stack = {lo = 0xc820092000, hi = 0xc820092800},
stackguard0 = 0xfffffffffffffade, stackguard1 = 0xffffffffffffffff,
_panic = 0x0, _defer = 0x0, m = 0x0, stackAlloc = 0x1000, sched = {sp = 0x0,
pc = 0x459140, g = 0xc820001200, ctxt = 0x0, ret = 0x0, lr = 0x0,
bp = 0x4}, syscallsp = 0x0, syscallpc = 0x0, stkbar = []runtime.stkbar,
stkbarPos = 0x0, stktopsp = 0xc8200927d8, param = 0x0, atomicstatus = 0x2,
stackLock = 0x0, goid = 0x6, waitsince = 0x0,
waitreason = "GC worker (idle)", schedlink = 0x0, preempt = 0x1,
paniconfault = 0x0, preemptscan = 0x0, gcscandone = 0x1, gcscanvalid = 0x0,
throwsplit = 0x0, raceignore = 0x0, sysblocktraced = 0x0,
sysexitticks = 0x0, sysexitseq = 0x0, lockedm = 0x0, sig = 0x0,
writebuf = []uint8, sigcode0 = 0x0, sigcode1 = 0x0, sigpc = 0x0,
gopc = 0x418163, startpc = 0x4181d0, racectx = 0x0, waiting = 0x0,
gcAssistBytes = 0x0}
(gdb) x/i g.sched.pc
0x459140 <runtime.systemstack_switch>: retq
(gdb) x/i g.gopc
0x418163 <runtime.gcBgMarkStartWorkers+147>:
lea 0x2a4c96(%rip),%rbx # 0x6bce00 <runtime.work>
(gdb) x/i g.startpc
0x4181d0 <runtime.gcBgMarkWorker>: mov %fs:0xfffffffffffffff8,%rcx
(gdb) print/x *(struct 'runtime.sigcontext'*)(ctx+40)
$11 = {r8 = 0x0, r9 = 0x0, r10 = 0xc82003ef18, r11 = 0x206, r12 = 0x800,
r13 = 0x400, r14 = 0x9, r15 = 0x8, rdi = 0x6bcdb0, rsi = 0x0,
rbp = 0xc820026000, rbx = 0x0, rdx = 0x0, rax = 0xc820001200,
rcx = 0xc820001200, rsp = 0xc820092738, rip = 0x45920d, eflags = 0x10246,
cs = 0x33, gs = 0x0, fs = 0x0, __pad0 = 0x0, err = 0x4, trapno = 0xe,
oldmask = 0x0, cr2 = 0x0, fpstate = 0xc820061c80, __reserved1 = {0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
(gdb) x/i $11.rip
0x45920d <runtime.morestack+13>: mov (%rbx),%rsi
(gdb) x/21a $11.rsp
0xc820092738: 0x4189e2 <runtime.gcFlushGCWork+130> 0x417390 <runtime.gcMarkDone+560>
0xc820092748: 0x619060 <runtime.stopTheWorldWithSema.f> 0xffffffff00000001
0xc820092758: 0xffffffff00000001 0x4186a8 <runtime.gcBgMarkWorker+1240>
0xc820092768: 0x0 0x0
0xc820092778: 0xffffffff 0x10
0xc820092788: 0x14 0x0
0xc820092798: 0xffffffff01000000 0xfffffffe
0xc8200927a8: 0x2120869068188 0x0
0xc8200927b8: 0xc820034800 0xc820001200
0xc8200927c8: 0x618e78 <runtime.gcBgMarkWorker.func1.f> 0x45bba1 <runtime.goexit+1>
0xc8200927d8: 0xc820024a00
(gdb) disassemble 'runtime.gcBgMarkWorker'
0x00000000004186a3 <+1235>: callq 0x417160 <runtime.gcMarkDone>
0x00000000004186a8 <+1240>: mov %fs:0xfffffffffffffff8,%rax
(gdb) disassemble 'runtime.gcMarkDone'
0x000000000041738b <+555>: callq 0x418960 <runtime.gcFlushGCWork>
0x0000000000417390 <+560>: callq 0x41a650 <runtime.gcWakeAllAssists>
(gdb) disassemble 'runtime.gcFlushGCWork'
0x00000000004189dd <+125>: callq 0x459290 <runtime.morestack_noctxt>
0x00000000004189e2 <+130>: jmpq 0x418960 <runtime.gcFlushGCWork>
</code></pre></div>
<p dir="auto">This appears to be a nested signal. The original signal was a SIGSEGV in morestack at <code class="notranslate">MOVQ m_g0(BX), SI</code> because BX (getg().m) is 0. The signal handler then also crashed for the same reason. We clearly tried to grow the stack in gcFlushGCWork (the stack is very small because this test runs in gcstackbarrierall mode), but I'm not sure why there wasn't an M at that point. It may be related to the fact that we've stopped the world in gcMarkDone at that point.</p>
<p dir="auto">This is relatively easy to reproduce. It happened five times out of 3,000 stress runs on my workstation (which took ~25 minutes).</p> | 1 |
<p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mwaskom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mwaskom">@mwaskom</a> ,</p>
<p dir="auto">I raised an issue regarding importing seaborn error <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="234840117" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1200" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1200/hovercard" href="https://github.com/mwaskom/seaborn/issues/1200">#1200</a><br>
while trying to run the flask application in IIS server. However since I couldn't provide much information at that time you couldn't help me. Sorry for late reply.</p>
<p dir="auto">But I tried to log the traceback error caused due to importing seaborn. Results are below. Any help regarding this?</p>
<p dir="auto">Traceback (most recent call last):<br>
File ".\test.py", line 62, in<br>
import seaborn as sns<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\seaborn_init_.py", line 16, in<br>
from .widgets import *<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\seaborn\widgets.py", line 8, in<br>
from ipywidgets import interact, FloatSlider, IntSlider<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\ipywidgets_init_.py", line 23, in<br>
from IPython import get_ipython<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython_init_.py", line 49, in<br>
from .terminal.embed import embed<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\terminal\embed.py", line 17, in<br>
from IPython.core.interactiveshell import DummyMod, InteractiveShell<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 62, in<br>
from IPython.utils import io<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\utils\io.py", line 97, in<br>
stdin = IOStream(sys.stdin, fallback=devnull)<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\utils\io.py", line 41, in init<br>
for meth in filter(clone, dir(stream)):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\utils\io.py", line 40, in clone<br>
return not hasattr(self, meth) and not meth.startswith('_')<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\utils\io.py", line 84, in closed<br>
return self.stream.closed<br>
ValueError: underlying buffer has been detached</p>
<p dir="auto">Eagerly waiting for your insights into this.</p> | <p dir="auto">I'm fairly certain that I found a bug; though it could be user error on my part. If this is a known issue, please feel free to close :)</p>
<p dir="auto">Minimal Code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
# technically not necessary, but looks nicer :)
sns.set_context("talk")
df = pd.DataFrame({"A": ["foo", "foo", "foo", "foo", "foo",
"bar", "bar", "bar", "bar"],
"B": ["1", "1", "1", "2", "2",
"1", "1", "2", "2"],
"C": ["small", "large", "large", "small",
"small", "large", "small", "small",
"large"],
"D": [1, 2, 2, 3, 3, 4, 5, 6, 7],
"E": [2, 4, 5, 5, 6, 6, 8, 9, 9]})
table = pd.pivot_table(df, values='D', index=['A', 'B'],
columns=['C'], aggfunc=np.sum)
fig, ax = plt.subplots()
sns.heatmap(table, fmt=".2f", cmap=sns.diverging_palette(230, 20, as_cmap=True), ax=ax)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-c"># technically not necessary, but looks nicer :)</span>
<span class="pl-s1">sns</span>.<span class="pl-en">set_context</span>(<span class="pl-s">"talk"</span>)
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">"A"</span>: [<span class="pl-s">"foo"</span>, <span class="pl-s">"foo"</span>, <span class="pl-s">"foo"</span>, <span class="pl-s">"foo"</span>, <span class="pl-s">"foo"</span>,
<span class="pl-s">"bar"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"bar"</span>, <span class="pl-s">"bar"</span>],
<span class="pl-s">"B"</span>: [<span class="pl-s">"1"</span>, <span class="pl-s">"1"</span>, <span class="pl-s">"1"</span>, <span class="pl-s">"2"</span>, <span class="pl-s">"2"</span>,
<span class="pl-s">"1"</span>, <span class="pl-s">"1"</span>, <span class="pl-s">"2"</span>, <span class="pl-s">"2"</span>],
<span class="pl-s">"C"</span>: [<span class="pl-s">"small"</span>, <span class="pl-s">"large"</span>, <span class="pl-s">"large"</span>, <span class="pl-s">"small"</span>,
<span class="pl-s">"small"</span>, <span class="pl-s">"large"</span>, <span class="pl-s">"small"</span>, <span class="pl-s">"small"</span>,
<span class="pl-s">"large"</span>],
<span class="pl-s">"D"</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>],
<span class="pl-s">"E"</span>: [<span class="pl-c1">2</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">6</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>, <span class="pl-c1">9</span>]})
<span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">pivot_table</span>(<span class="pl-s1">df</span>, <span class="pl-s1">values</span><span class="pl-c1">=</span><span class="pl-s">'D'</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>],
<span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'C'</span>], <span class="pl-s1">aggfunc</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">sum</span>)
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>()
<span class="pl-s1">sns</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">table</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">".2f"</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">sns</span>.<span class="pl-en">diverging_palette</span>(<span class="pl-c1">230</span>, <span class="pl-c1">20</span>, <span class="pl-s1">as_cmap</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">Produces:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4402489/119463376-90aa7900-bcf6-11eb-921d-bfa734301d4c.png"><img src="https://user-images.githubusercontent.com/4402489/119463376-90aa7900-bcf6-11eb-921d-bfa734301d4c.png" alt="bug" style="max-width: 100%;"></a></p>
<p dir="auto">Which has misaligned labels along the y-axis. If the labels get longer, seaborn seems to automatically rotate them, in which case the problem disappears.</p>
<p dir="auto">Version Info:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.8.8
seaborn==0.11.1
matplotlib==3.3.4"><pre class="notranslate"><code class="notranslate">Python 3.8.8
seaborn==0.11.1
matplotlib==3.3.4
</code></pre></div> | 0 |
<p dir="auto">The labels-badges. less file uses the nested ampersand & operator to create extra classes by appending "-important", "-warning" etc. to the names ".label" and ".badge".</p>
<p dir="auto">This generates some weird CSS if you use .label or .badge as a mixin on something that ends with a tag rather than a class e.g.</p>
<p dir="auto">".text-with-labels span { .label }" creates ".text-with-label span-warning" etc.</p>
<p dir="auto">It seems like the similar .btn-small and .btn-mini classes in buttons.less don't use this format, and from looking at the history it may have been done this way to reduce some duplication in the .less caused by the merger of badges and labels. Since the reduction in size of the less isn't actually making the output CSS any smaller I wonder if this might have been an overlooked consequence of using this shorthand and it might be changed back to having .label-warning, .badge-warning specified in full in the less to allow .label and .badge to be used freely as mixins again without the production of the spurious CSS.</p> | <p dir="auto">Simply browse the docs page in IE Tester (<a href="http://my-debugbar.com/wiki/IETester/HomePage" rel="nofollow">http://my-debugbar.com/wiki/IETester/HomePage</a>): <a href="http://twitter.github.com/bootstrap/javascript.html#tooltips">http://twitter.github.com/bootstrap/javascript.html#tooltips</a></p>
<p dir="auto">None of the tooltip examples work.</p> | 0 |
<p dir="auto">I am working on the IBM POWER9 Series cluster. When compute the fft with torch. I have to transfer it to GPU and then transfer back to CPU. It's real bad experience espcially when realted code called on Dataloader. Then I have to disable the multi-worker to prevent the error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x = torch.randn(10,10,2)
torch.fft(x,1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: fft: ATen not compiled with MKL support"><pre class="notranslate"><code class="notranslate">x = torch.randn(10,10,2)
torch.fft(x,1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: fft: ATen not compiled with MKL support
</code></pre></div> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto"><code class="notranslate">fft: ATen not compiled with MKL support</code> RuntimeError thrown when trying to compute Spectrogram on Jetson Nano that uses ARM64 processor.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Code sample:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torchaudio
waveform, sample_rate = torchaudio.load('test.wav')
spectrogram = torchaudio.transforms.Spectrogram(sample_rate)(waveform)"><pre class="notranslate"><code class="notranslate">import torchaudio
waveform, sample_rate = torchaudio.load('test.wav')
spectrogram = torchaudio.transforms.Spectrogram(sample_rate)(waveform)
</code></pre></div>
<p dir="auto">Stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "spectrogram_test.py", line 4, in <module>
spectrogram = torchaudio.transforms.Spectrogram(sample_rate)(waveform)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torchaudio-0.7.0a0+102174e-py3.6-linux-aarch64.egg/torchaudio/transforms.py", line 84, in forward
self.win_length, self.power, self.normalized)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torchaudio-0.7.0a0+102174e-py3.6-linux-aarch64.egg/torchaudio/functional.py", line 162, in spectrogram
waveform, n_fft, hop_length, win_length, window, True, "reflect", False, True
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torch/functional.py", line 465, in stft
return _VF.stft(input, n_fft, hop_length, win_length, window, normalized, onesided)
RuntimeError: fft: ATen not compiled with MKL support"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "spectrogram_test.py", line 4, in <module>
spectrogram = torchaudio.transforms.Spectrogram(sample_rate)(waveform)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torchaudio-0.7.0a0+102174e-py3.6-linux-aarch64.egg/torchaudio/transforms.py", line 84, in forward
self.win_length, self.power, self.normalized)
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torchaudio-0.7.0a0+102174e-py3.6-linux-aarch64.egg/torchaudio/functional.py", line 162, in spectrogram
waveform, n_fft, hop_length, win_length, window, True, "reflect", False, True
File "/home/witty/ai-benchmark-2/lib/python3.6/site-packages/torch/functional.py", line 465, in stft
return _VF.stft(input, n_fft, hop_length, win_length, window, normalized, onesided)
RuntimeError: fft: ATen not compiled with MKL support
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Spectrogram from waveform created</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Commands used to install PyTorch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://nvidia.box.com/shared/static/yr6sjswn25z7oankw8zy1roow9cy5ur1.whl -O torch-1.6.0rc2-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python-pip libopenblas-base libopenmpi-dev
pip install Cython
pip install numpy torch-1.6.0rc2-cp36-cp36m-linux_aarch64.whl"><pre class="notranslate"><code class="notranslate">wget https://nvidia.box.com/shared/static/yr6sjswn25z7oankw8zy1roow9cy5ur1.whl -O torch-1.6.0rc2-cp36-cp36m-linux_aarch64.whl
sudo apt-get install python-pip libopenblas-base libopenmpi-dev
pip install Cython
pip install numpy torch-1.6.0rc2-cp36-cp36m-linux_aarch64.whl
</code></pre></div>
<p dir="auto">Commands used to install torchaudio:<br>
sox:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo apt-get update -y
sudo apt-get install -y libsox-dev
pip install sox"><pre class="notranslate"><code class="notranslate">sudo apt-get update -y
sudo apt-get install -y libsox-dev
pip install sox
</code></pre></div>
<p dir="auto">torchaudio:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/pytorch/audio.git audio
cd audio && python setup.py install"><pre class="notranslate"><code class="notranslate">git clone https://github.com/pytorch/audio.git audio
cd audio && python setup.py install
</code></pre></div>
<p dir="auto"><code class="notranslate">torchaudio.__version__</code> output:<br>
<code class="notranslate">0.7.0a0+102174e</code></p>
<p dir="auto"><code class="notranslate">collect_env.py</code> output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.6.0
Is debug build: No
CUDA used to build PyTorch: 10.2
OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_etc.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_train.so.8.0.0
Versions of relevant libraries:
[pip3] numpy==1.16.1
[pip3] pytorch-ignite==0.3.0
[pip3] torch==1.6.0
[pip3] torchaudio==0.7.0a0+102174e
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.6.0
Is debug build: No
CUDA used to build PyTorch: 10.2
OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/usr/lib/aarch64-linux-gnu/libcudnn.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_adv_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_cnn_train.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_etc.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_infer.so.8.0.0
/usr/lib/aarch64-linux-gnu/libcudnn_ops_train.so.8.0.0
Versions of relevant libraries:
[pip3] numpy==1.16.1
[pip3] pytorch-ignite==0.3.0
[pip3] torch==1.6.0
[pip3] torchaudio==0.7.0a0+102174e
[conda] Could not collect
</code></pre></div>
<p dir="auto">Other relevant information:<br>
MKL is not installed, because it is not supported on ARM processors; oneDNN installed</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I did not install MKL because it is not supported on ARM processors, so building PyTorch from source with MKL support is not possible. Is there any workaround to this problem?</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/walterddr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/walterddr">@walterddr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterbell10/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterbell10">@peterbell10</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a></p> | 1 |
<pre class="notranslate">Inlined functions do not show up in backtraces. It would be interesting to add support
for inlined functions in backtraces so that inlining of non-leaf functions does not
break behaviour.</pre> | <p dir="auto">by <strong>consalus</strong>:</p>
<pre class="notranslate">On darwin amd64 at b7b92d1bdcf4+ tip:
"test.bash" in misc/cgo/stdio fails with the following output:
CGOPKGPATH= cgo -- align.go file.go test.go test1.go
6g -o _go_.6 align.cgo1.go file.cgo1.go test.cgo1.go test1.cgo1.go _cgo_gotypes.go
6c -FVw -I"/Users/username/code/go/src/pkg/runtime" _cgo_defun.c
echo 'int main() { return 0; }' >_cgo_main.c
gcc -m64 -g -fPIC -O2 -o _cgo_main.o -c _cgo_main.c
gcc -m64 -g -fPIC -O2 -o align.cgo2.o -c align.cgo2.c
gcc -m64 -g -fPIC -O2 -o file.cgo2.o -c file.cgo2.c
gcc -m64 -g -fPIC -O2 -o test.cgo2.o -c test.cgo2.c
gcc -m64 -g -fPIC -O2 -o test1.cgo2.o -c test1.cgo2.c
gcc -m64 -g -fPIC -O2 -o _cgo1_.o _cgo_main.o align.cgo2.o file.cgo2.o test.cgo2.o
test1.cgo2.o
cgo -dynimport _cgo1_.o >__cgo_import.c && mv -f __cgo_import.c _cgo_import.c
6c -FVw _cgo_import.c
rm -f _obj/stdio.a
gopack grc _obj/stdio.a _go_.6 _cgo_defun.6 _cgo_import.6 align.cgo2.o file.cgo2.o
test.cgo2.o test1.cgo2.o
cp _obj/stdio.a "/Users/username/code/go/pkg/darwin_amd64/stdio.a"
6g hello.go
6l -o hello hello.6
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
amd64.S
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
amd64.S
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
/Users/username/code/go/pkg/darwin_amd64/runtime/cgo.a(amd64.o): duplicate definition of
too many errors
make: *** [hello] Error 1
This has been happening for about a week (I sync regularly to see if it is fixed). I
assumed it was something wrong on my machine, since it would otherwise be caught on any
similar machine running "all.bash", but no amount of make clean|nuke has had
an effect. Same issue was independently reported on go-nuts.</pre> | 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong><br>
The marker edges are not painted nicely on the edge of the marker.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
x = [42,43,44]
y=[42,43,44]
plt.scatter(x,y,alpha=0.7,sizes=[500], linewidths=[15], marker='s')
plt.savefig('sample.pdf')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> [<span class="pl-c1">42</span>,<span class="pl-c1">43</span>,<span class="pl-c1">44</span>]
<span class="pl-s1">y</span><span class="pl-c1">=</span>[<span class="pl-c1">42</span>,<span class="pl-c1">43</span>,<span class="pl-c1">44</span>]
<span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span>,<span class="pl-s1">y</span>,<span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.7</span>,<span class="pl-s1">sizes</span><span class="pl-c1">=</span>[<span class="pl-c1">500</span>], <span class="pl-s1">linewidths</span><span class="pl-c1">=</span>[<span class="pl-c1">15</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'sample.pdf'</span>)</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11406002/62953572-0f6a4680-bdee-11e9-98db-6098d1eacc13.png"><img src="https://user-images.githubusercontent.com/11406002/62953572-0f6a4680-bdee-11e9-98db-6098d1eacc13.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11406002/62953605-21e48000-bdee-11e9-8548-c935e27564be.png"><img src="https://user-images.githubusercontent.com/11406002/62953605-21e48000-bdee-11e9-8548-c935e27564be.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong><br>
The edges should go cleanly around the marker boundary.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11406002/62954167-3117fd80-bdef-11e9-8f1f-7180094fd4ff.png"><img src="https://user-images.githubusercontent.com/11406002/62954167-3117fd80-bdef-11e9-8f1f-7180094fd4ff.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>MacOS 10.14.5</li>
<li>Matplotlib v3.1.1</li>
<li>Matplotlib backend: MacOSX</li>
<li>Python 3.6.7</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Marker edge overlaps with marker and the edge appears to be double the width specified. This becomes obvious when you use alpha transparency and a very larger point marker with a large edge width or in the case where I noticed it a small figure (about 2 inches wide) with the default rcParams.</p>
<h3 dir="auto"></h3>
<p dir="auto">Code for reproduction</p>
<p dir="auto"><strong>Case 1: very large point with a large edge width</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="plt.figure()
plt.plot(1, '.', ms=200, mew=50, alpha=0.5)"><pre class="notranslate"><span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-c1">1</span>, <span class="pl-s">'.'</span>, <span class="pl-s1">ms</span><span class="pl-c1">=</span><span class="pl-c1">200</span>, <span class="pl-s1">mew</span><span class="pl-c1">=</span><span class="pl-c1">50</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>)</pre></div>
<p dir="auto"><strong>Case 2: very small figure with default rcParams: markersize = 8, markeredgewidth=1.0</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="plt.figure(figsize=(1,1), dpi=600)
plt.plot(1, '.', alpha=0.5)"><pre class="notranslate"><span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">600</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-c1">1</span>, <span class="pl-s">'.'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>)</pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
In this figure I have markersize=200 and markeredgewith=50. There is an ugly ring and it looks as if the marker edges are two times wider (100 instead of 50) than I asked.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4636304/52240809-f6f9fc00-289f-11e9-90cd-7dd3832268c6.png"><img src="https://user-images.githubusercontent.com/4636304/52240809-f6f9fc00-289f-11e9-90cd-7dd3832268c6.png" alt="figure_1" style="max-width: 100%;"></a><br>
Now in this figure I have markersize=200 and markeredgewidth=99. There is a single pixel in the center that is faded blue thus the markeredges are definitely twice what I asked for. If I set the markeredgewith to 100 I get a solid core.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4636304/52240852-1db83280-28a0-11e9-9515-13995a4faae2.png"><img src="https://user-images.githubusercontent.com/4636304/52240852-1db83280-28a0-11e9-9515-13995a4faae2.png" alt="figure_2" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong><br>
I would expect that the marker edge would line up perfectly with the marker core. In this plot I set markersize to 300 (200 plus 2*50 edges) to get the same size as the original without the ugly ring.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4636304/52240884-3cb6c480-28a0-11e9-8114-966593fac680.png"><img src="https://user-images.githubusercontent.com/4636304/52240884-3cb6c480-28a0-11e9-8114-966593fac680.png" alt="figure_3" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: macOS 10.13</li>
<li>Matplotlib version: 3.0.2</li>
<li>Matplotlib backend: both with Qt and PGF backends</li>
<li>Python version: 3.7.2</li>
<li>matplotlib installed via pip</li>
</ul> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="312784816" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4651" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4651/hovercard" href="https://github.com/celery/celery/issues/4651">#4651</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="211155296" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3878" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3878/hovercard" href="https://github.com/celery/celery/issues/3878">#3878</a></p>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
software -> celery:3.1.20 (Cipater) kombu:3.0.37 py:2.7.15rc1
billiard:3.3.0.23 py-amqp:1.4.9
platform -> system:Linux arch:64bit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:pyamqp results:disabled
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
pyrfc==1.9.3
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><p dir="auto">This is my <code class="notranslate">tasks.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pyrfc
import os
import datetime
from celery import Celery
from celery.utils.log import get_task_logger
import logging
import requests
from celery.exceptions import SoftTimeLimitExceeded
from argparse import ArgumentParser
#logger = get_task_logger(__name__)
logging.basicConfig(level=logging.INFO)
logger = logging
app = Celery('tasks', broker='pyamqp://guest@localhost//')
config = # redacted
con = pyrfc.Connection(**config)
function_name = # redacted
function_args = # redacted
@app.task
def extract():
logger.info("PID %s", os.getpid())
logger.info("Connecting")
try:
con.call(function_name, **function_args)
except SoftTimeLimitExceeded:
logger.info("Exceeded RFC time")
logger.info("Disconnected")
return 1
@app.task()
def request():
logger.info("Connecting")
logger.info("PID %s", os.getpid())
try:
r = requests.get('http://127.0.0.1:8000')
logger.info("Disconnected")
return r.text
except SoftTimeLimitExceeded:
logger.info("Exceeded time")
def main():
parser = ArgumentParser()
parser.add_argument('func', choices=['request', 'extract'])
args = parser.parse_args()
if args.func == 'request':
request()
elif args.func == 'extract':
extract()
else:
raise
if __name__ == '__main__':"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pyrfc</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">datetime</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">log</span> <span class="pl-k">import</span> <span class="pl-s1">get_task_logger</span>
<span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">exceptions</span> <span class="pl-k">import</span> <span class="pl-v">SoftTimeLimitExceeded</span>
<span class="pl-k">from</span> <span class="pl-s1">argparse</span> <span class="pl-k">import</span> <span class="pl-v">ArgumentParser</span>
<span class="pl-c">#logger = get_task_logger(__name__)</span>
<span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s1">logging</span>.<span class="pl-v">INFO</span>)
<span class="pl-s1">logger</span> <span class="pl-c1">=</span> <span class="pl-s1">logging</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">'pyamqp://guest@localhost//'</span>)
<span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-c"># redacted</span>
<span class="pl-s1">con</span> <span class="pl-c1">=</span> <span class="pl-s1">pyrfc</span>.<span class="pl-v">Connection</span>(<span class="pl-c1">**</span><span class="pl-s1">config</span>)
<span class="pl-s1">function_name</span> <span class="pl-c1">=</span> <span class="pl-c"># redacted </span>
<span class="pl-s1">function_args</span> <span class="pl-c1">=</span> <span class="pl-c"># redacted</span>
@<span class="pl-s1">app</span>.<span class="pl-s1">task</span>
<span class="pl-k">def</span> <span class="pl-en">extract</span>():
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"PID %s"</span>, <span class="pl-s1">os</span>.<span class="pl-en">getpid</span>())
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Connecting"</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">con</span>.<span class="pl-en">call</span>(<span class="pl-s1">function_name</span>, <span class="pl-c1">**</span><span class="pl-s1">function_args</span>)
<span class="pl-k">except</span> <span class="pl-v">SoftTimeLimitExceeded</span>:
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Exceeded RFC time"</span>)
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Disconnected"</span>)
<span class="pl-k">return</span> <span class="pl-c1">1</span>
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>()</span>
<span class="pl-k">def</span> <span class="pl-en">request</span>():
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Connecting"</span>)
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"PID %s"</span>, <span class="pl-s1">os</span>.<span class="pl-en">getpid</span>())
<span class="pl-k">try</span>:
<span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://127.0.0.1:8000'</span>)
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Disconnected"</span>)
<span class="pl-k">return</span> <span class="pl-s1">r</span>.<span class="pl-s1">text</span>
<span class="pl-k">except</span> <span class="pl-v">SoftTimeLimitExceeded</span>:
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"Exceeded time"</span>)
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-s1">parser</span> <span class="pl-c1">=</span> <span class="pl-v">ArgumentParser</span>()
<span class="pl-s1">parser</span>.<span class="pl-en">add_argument</span>(<span class="pl-s">'func'</span>, <span class="pl-s1">choices</span><span class="pl-c1">=</span>[<span class="pl-s">'request'</span>, <span class="pl-s">'extract'</span>])
<span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-s1">parser</span>.<span class="pl-en">parse_args</span>()
<span class="pl-k">if</span> <span class="pl-s1">args</span>.<span class="pl-s1">func</span> <span class="pl-c1">==</span> <span class="pl-s">'request'</span>:
<span class="pl-en">request</span>()
<span class="pl-k">elif</span> <span class="pl-s1">args</span>.<span class="pl-s1">func</span> <span class="pl-c1">==</span> <span class="pl-s">'extract'</span>:
<span class="pl-en">extract</span>()
<span class="pl-k">else</span>:
<span class="pl-k">raise</span>
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:</pre></div>
<p dir="auto">This is run with <code class="notranslate">celery -A tasks worker --loglevel=info -c 1 --soft-time-limit 30</code></p>
<p dir="auto">There are two tasks</p>
<ul dir="auto">
<li><strong>Request</strong>: Performs a HTTP GET to a dummy server, which contains a delay of 60 seconds.</li>
<li><strong>Extract</strong>: Performs a RFC call to a SAP Function, which also contains a delay of 60 seconds.</li>
</ul>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Both tasks should handle the soft time limit equally</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">The <code class="notranslate">extract</code> task doesn't handle the soft time limit exception until the server replies.</p>
<p dir="auto">Running <code class="notranslate">request.delay()</code> we obtain as expected</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2019-05-29 16:45:17,745: INFO/MainProcess] Received task: tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4]
[2019-05-29 16:45:17,746: INFO/Worker-1] Connecting
[2019-05-29 16:45:17,747: INFO/Worker-1] PID 2758
[2019-05-29 16:45:47,750: WARNING/MainProcess] Soft time limit (30.0s) exceeded for tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4]
[2019-05-29 16:45:47,751: INFO/Worker-1] Exceeded time
[2019-05-29 16:45:47,752: INFO/MainProcess] Task tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4] succeeded in 30.005404981s: None"><pre class="notranslate"><code class="notranslate">[2019-05-29 16:45:17,745: INFO/MainProcess] Received task: tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4]
[2019-05-29 16:45:17,746: INFO/Worker-1] Connecting
[2019-05-29 16:45:17,747: INFO/Worker-1] PID 2758
[2019-05-29 16:45:47,750: WARNING/MainProcess] Soft time limit (30.0s) exceeded for tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4]
[2019-05-29 16:45:47,751: INFO/Worker-1] Exceeded time
[2019-05-29 16:45:47,752: INFO/MainProcess] Task tasks.request[47e3fad6-42f2-4896-956d-2e54f7080fb4] succeeded in 30.005404981s: None
</code></pre></div>
<p dir="auto">Note the inmediate logging "Exceeded time" after the Celery warning</p>
<p dir="auto">When running <code class="notranslate">extract.delay()</code> we obtain</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2019-05-29 16:46:03,361: INFO/MainProcess] Received task: tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4]
[2019-05-29 16:46:03,362: INFO/Worker-1] PID 2758
[2019-05-29 16:46:03,362: INFO/Worker-1] Connecting
[2019-05-29 16:46:33,363: WARNING/MainProcess] Soft time limit (30.0s) exceeded for tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4]
[2019-05-29 16:47:04,065: INFO/Worker-1] Exceeded RFC time
[2019-05-29 16:47:04,065: INFO/Worker-1] Disconnected
[2019-05-29 16:47:04,066: INFO/MainProcess] Task tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4] succeeded in 60.704235596s: 1"><pre class="notranslate"><code class="notranslate">[2019-05-29 16:46:03,361: INFO/MainProcess] Received task: tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4]
[2019-05-29 16:46:03,362: INFO/Worker-1] PID 2758
[2019-05-29 16:46:03,362: INFO/Worker-1] Connecting
[2019-05-29 16:46:33,363: WARNING/MainProcess] Soft time limit (30.0s) exceeded for tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4]
[2019-05-29 16:47:04,065: INFO/Worker-1] Exceeded RFC time
[2019-05-29 16:47:04,065: INFO/Worker-1] Disconnected
[2019-05-29 16:47:04,066: INFO/MainProcess] Task tasks.extract[213f1eae-a872-4bc7-83af-69fd3350bce4] succeeded in 60.704235596s: 1
</code></pre></div>
<p dir="auto">Note the "Exceeded RFC time" is logged well after the Celery Warning. Remembering the 60 seconds server delay, we see the task handles the Exception only after the server reply.</p>
<p dir="auto">I tested this both with my current celery version (3.1.20) and with the newer (4.3.0) with the same results.</p>
<h1 dir="auto">Other Tests</h1>
<p dir="auto">Running the tasks outside celery and sending the <strong>SIGSUR1</strong> signal via <code class="notranslate">kill -s USR1 <pid></code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python tasks.py request
INFO:root:Connecting
INFO:root:PID 3645
[1] 3645 user-defined signal 1 python tasks.py request"><pre class="notranslate"><code class="notranslate">$ python tasks.py request
INFO:root:Connecting
INFO:root:PID 3645
[1] 3645 user-defined signal 1 python tasks.py request
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python tasks.py extract
INFO:root:PID 3699
INFO:root:Connecting
[1] 3699 user-defined signal 1 python tasks.py extract"><pre class="notranslate"><code class="notranslate">$ python tasks.py extract
INFO:root:PID 3699
INFO:root:Connecting
[1] 3699 user-defined signal 1 python tasks.py extract
</code></pre></div>
<p dir="auto">Both functions do receive the signal (without delay) which makes me believe (perhaps incorrectly) the issue is not related to <code class="notranslate">pyrfc</code> compatibility with the signal.</p>
<p dir="auto">I do understand this may not be a Celery fault, but any hint on where to look at / test is welcomed.</p>
<p dir="auto">Regards</p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I can have the following sqs broker configuration</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" broker_transport_options={
"predefined_queues": {
"MY_QUEUE": {
"url": "MYURL.fifo"
},
},"><pre class="notranslate"><code class="notranslate"> broker_transport_options={
"predefined_queues": {
"MY_QUEUE": {
"url": "MYURL.fifo"
},
},
</code></pre></div>
<p dir="auto">And no error will raise when calling my tasks.</p>
<h1 dir="auto">Actual Behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 425, in delay
return self.apply_async(args, kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 575, in apply_async
return app.send_task(
File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 788, in send_task
amqp.send_task_message(P, name, message, **options)
File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 510, in send_task_message
ret = producer.publish(
File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 177, in publish
return _publish(
File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 524, in _ensured
return fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 199, in _publish
return channel.basic_publish(
File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 604, in basic_publish
return self._put(routing_key, message, **kwargs)
File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 392, in _put
c.send_message(**kwargs)
File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 391, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 719, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (MissingParameter) when calling the SendMessage operation: The request must contain the parameter MessageGroupId."><pre class="notranslate"><code class="notranslate"> File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 425, in delay
return self.apply_async(args, kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/task.py", line 575, in apply_async
return app.send_task(
File "/usr/local/lib/python3.9/site-packages/celery/app/base.py", line 788, in send_task
amqp.send_task_message(P, name, message, **options)
File "/usr/local/lib/python3.9/site-packages/celery/app/amqp.py", line 510, in send_task_message
ret = producer.publish(
File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 177, in publish
return _publish(
File "/usr/local/lib/python3.9/site-packages/kombu/connection.py", line 524, in _ensured
return fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/kombu/messaging.py", line 199, in _publish
return channel.basic_publish(
File "/usr/local/lib/python3.9/site-packages/kombu/transport/virtual/base.py", line 604, in basic_publish
return self._put(routing_key, message, **kwargs)
File "/usr/local/lib/python3.9/site-packages/kombu/transport/SQS.py", line 392, in _put
c.send_message(**kwargs)
File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 391, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.9/site-packages/botocore/client.py", line 719, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (MissingParameter) when calling the SendMessage operation: The request must contain the parameter MessageGroupId.
</code></pre></div>
<h1 dir="auto">Explanation of the bug:</h1>
<p dir="auto">In the <a href="https://docs.celeryproject.org/projects/kombu/en/stable/_modules/kombu/transport/SQS.html" rel="nofollow">konbu</a> documentation there is the following lines that manage this exception.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if queue.endswith('.fifo'):
if 'MessageGroupId' in message['properties']:
kwargs['MessageGroupId'] = \
message['properties']['MessageGroupId']
else:
kwargs['MessageGroupId'] = 'default'"><pre class="notranslate"> <span class="pl-k">if</span> <span class="pl-s1">queue</span>.<span class="pl-en">endswith</span>(<span class="pl-s">'.fifo'</span>):
<span class="pl-k">if</span> <span class="pl-s">'MessageGroupId'</span> <span class="pl-c1">in</span> <span class="pl-s1">message</span>[<span class="pl-s">'properties'</span>]:
<span class="pl-s1">kwargs</span>[<span class="pl-s">'MessageGroupId'</span>] <span class="pl-c1">=</span> \
<span class="pl-s1">message</span>[<span class="pl-s">'properties'</span>][<span class="pl-s">'MessageGroupId'</span>]
<span class="pl-k">else</span>:
<span class="pl-s1">kwargs</span>[<span class="pl-s">'MessageGroupId'</span>] <span class="pl-c1">=</span> <span class="pl-s">'default'</span></pre></div>
<p dir="auto">Since <code class="notranslate">Konbu</code> checks that <code class="notranslate">routing_key</code> ends with <code class="notranslate">.fifo</code>, and not what it has been configured inside celery as <code class="notranslate">MY_URL</code>, means that the property <code class="notranslate">MessageGroupId</code> is never set, and the <code class="notranslate">botocore</code> error is raised.</p>
<p dir="auto">I can see why this is not a celery bug, or not a bug at all, but I would say this case should be at least documented: having to force celery queues name to follow the SQS paradigm, in my opinion, can mislead people.</p> | 0 |
<p dir="auto">Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):<br>
No</p>
<h2 dir="auto">What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):<br>
kubernetes, openstack, cloud-config, loadbalancer</h2>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br>
BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack@kube-2:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:42:39Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">stack@kube-2:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:42:39Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Cloud provider or hardware configuration</strong>:<br>
VM</p>
</li>
<li>
<p dir="auto"><strong>OS</strong> (e.g. from /etc/os-release):<br>
Ubuntu 16.04</p>
</li>
<li>
<p dir="auto"><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</p>
</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack@kube-2:~$ uname -a
Linux kube-2 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">stack@kube-2:~$ uname -a
Linux kube-2 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
</code></pre></div>
<ul dir="auto">
<li>
<p dir="auto"><strong>Install tools</strong>:<br>
Installed K8S cluster using kubeadm</p>
</li>
<li>
<p dir="auto"><strong>Others</strong>:<br>
I am trying to use openstack's load balancer as an external load balancer for k8s services(type:loadbalancer). Currently my setup is as follows:<br>
One node k8s cluster installed on a VM with Ubuntu 16.04. I have another node where devstack is installed. I have the following details in the cloud config file:</p>
</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Global]
auth-url=http://10.10.40.152/identity_admin
username=admin
password=password
tenant-name=admin
region=regionOne"><pre class="notranslate"><code class="notranslate">[Global]
auth-url=http://10.10.40.152/identity_admin
username=admin
password=password
tenant-name=admin
region=regionOne
</code></pre></div>
<p dir="auto">I have updated the kube-controller-manager.json and kube-apiserver.json with the following configuration:<br>
"--cloud-provider=openstack",<br>
"--cloud-config=/etc/sysconfig/kube_openstack_config",</p>
<p dir="auto"><strong>What happened</strong>:<br>
As soon as I updated the above config files, kube-controller-manager container crashes.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
kube-controller-manager is supposed to read the cloud config file and listen to kubernetes api calls and create load balancer on openstack.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Update the above files with cloud-provider and cloud-config options.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
The k8s cluster is not running inside openstack/devstack. One node runs k8s cluster and another node is running devstack.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack@kube-2:~$ kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
kube-system calico-node-k9wsj 2/2 Running 0 1h 10.10.40.151 kube-2
kube-system calico-policy-controller-2snnc 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system dummy-2088944543-l5cmf 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system etcd-kube-2 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-apiserver-kube-2 1/1 Running 2 1h 10.10.40.151 kube-2
**kube-system kube-controller-manager-kube-2 0/1 CrashLoopBackOff 28 3s 10.10.40.151 kube-2**
kube-system kube-discovery-1150918428-iwg0p 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-dns-654381707-cv1f1 3/3 Running 0 1h 192.168.212.198 kube-2
kube-system kube-proxy-32pls 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-scheduler-kube-2 1/1 Running 0 1h 10.10.40.151 kube-2"><pre class="notranslate"><code class="notranslate">stack@kube-2:~$ kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE
kube-system calico-node-k9wsj 2/2 Running 0 1h 10.10.40.151 kube-2
kube-system calico-policy-controller-2snnc 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system dummy-2088944543-l5cmf 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system etcd-kube-2 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-apiserver-kube-2 1/1 Running 2 1h 10.10.40.151 kube-2
**kube-system kube-controller-manager-kube-2 0/1 CrashLoopBackOff 28 3s 10.10.40.151 kube-2**
kube-system kube-discovery-1150918428-iwg0p 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-dns-654381707-cv1f1 3/3 Running 0 1h 192.168.212.198 kube-2
kube-system kube-proxy-32pls 1/1 Running 0 1h 10.10.40.151 kube-2
kube-system kube-scheduler-kube-2 1/1 Running 0 1h 10.10.40.151 kube-2
</code></pre></div> | <p dir="auto">Possibly a duplicate of an earlier issue. I can't delete pods and I have to keep re-trying <code class="notranslate">kubectl delete</code> which often fails. GCE.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-0
pods/serve-hostname-0-1
pods/serve-hostname-0-10
F0331 17:06:00.464445 15992 delete.go:67] Client error: 501: All the given peers are not reachable (failed to propose on members [http://127.0.0.1:4001] twice [last error: dial tcp 127.0.0.1:4001: too many open files]) [0]
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-11
pods/serve-hostname-0-12
pods/serve-hostname-0-13
pods/serve-hostname-0-14
pods/serve-hostname-0-15
pods/serve-hostname-0-16
pods/serve-hostname-0-17
F0331 17:06:21.511183 16000 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-0-18?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-18
pods/serve-hostname-0-19
pods/serve-hostname-0-2
pods/serve-hostname-0-20
pods/serve-hostname-0-21
pods/serve-hostname-0-22
pods/serve-hostname-0-23
pods/serve-hostname-0-24
pods/serve-hostname-0-25
pods/serve-hostname-0-26
pods/serve-hostname-0-27
pods/serve-hostname-0-28
pods/serve-hostname-0-29
pods/serve-hostname-0-3
pods/serve-hostname-0-4
pods/serve-hostname-0-5
pods/serve-hostname-0-6
pods/serve-hostname-0-7
pods/serve-hostname-0-8
pods/serve-hostname-0-9
pods/serve-hostname-1-0
pods/serve-hostname-1-1
pods/serve-hostname-1-10
pods/serve-hostname-1-11
pods/serve-hostname-1-12
pods/serve-hostname-1-13
F0331 17:06:50.483268 16008 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-14?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-1-14
pods/serve-hostname-1-15
pods/serve-hostname-1-16
pods/serve-hostname-1-17
pods/serve-hostname-1-18
pods/serve-hostname-1-19
pods/serve-hostname-1-2
pods/serve-hostname-1-20
pods/serve-hostname-1-21
pods/serve-hostname-1-22
pods/serve-hostname-1-23
pods/serve-hostname-1-24
pods/serve-hostname-1-25
pods/serve-hostname-1-26
pods/serve-hostname-1-27
pods/serve-hostname-1-28
pods/serve-hostname-1-29
F0331 17:07:17.744491 16017 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-3?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:07:36.299212 16025 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-3?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
7pods/serve-hostname-1-3
pods/serve-hostname-1-4 pods/serve-hostname-1-5
pods/serve-hostname-1-6
pods/serve-hostname-1-7
pods/serve-hostname-1-8
F0331 17:08:21.421952 16049 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-9?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:08:51.879079 16057 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506?quorum=false&recursive=true&sorted=true: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:08:55.015498 16068 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506?quorum=false&recursive=true&sorted=true: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:09:16.905368 16077 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-9?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-1-9
F0331 17:14:20.492245 16139 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-0?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:15:04.572098 16149 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-0?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-10-0
pods/serve-hostname-10-1
pods/serve-hostname-10-10
pods/serve-hostname-10-11
pods/serve-hostname-10-12
pods/serve-hostname-10-13
pods/serve-hostname-10-14
pods/serve-hostname-10-15
pods/serve-hostname-10-16
pods/serve-hostname-10-17
pods/serve-hostname-10-18
pods/serve-hostname-10-19
pods/serve-hostname-10-2
pods/serve-hostname-10-20
pods/serve-hostname-10-21
pods/serve-hostname-10-22
pods/serve-hostname-10-23
F0331 17:17:15.837176 16174 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-24?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$"><pre class="notranslate"><code class="notranslate">satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-0
pods/serve-hostname-0-1
pods/serve-hostname-0-10
F0331 17:06:00.464445 15992 delete.go:67] Client error: 501: All the given peers are not reachable (failed to propose on members [http://127.0.0.1:4001] twice [last error: dial tcp 127.0.0.1:4001: too many open files]) [0]
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-11
pods/serve-hostname-0-12
pods/serve-hostname-0-13
pods/serve-hostname-0-14
pods/serve-hostname-0-15
pods/serve-hostname-0-16
pods/serve-hostname-0-17
F0331 17:06:21.511183 16000 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-0-18?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-0-18
pods/serve-hostname-0-19
pods/serve-hostname-0-2
pods/serve-hostname-0-20
pods/serve-hostname-0-21
pods/serve-hostname-0-22
pods/serve-hostname-0-23
pods/serve-hostname-0-24
pods/serve-hostname-0-25
pods/serve-hostname-0-26
pods/serve-hostname-0-27
pods/serve-hostname-0-28
pods/serve-hostname-0-29
pods/serve-hostname-0-3
pods/serve-hostname-0-4
pods/serve-hostname-0-5
pods/serve-hostname-0-6
pods/serve-hostname-0-7
pods/serve-hostname-0-8
pods/serve-hostname-0-9
pods/serve-hostname-1-0
pods/serve-hostname-1-1
pods/serve-hostname-1-10
pods/serve-hostname-1-11
pods/serve-hostname-1-12
pods/serve-hostname-1-13
F0331 17:06:50.483268 16008 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-14?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-1-14
pods/serve-hostname-1-15
pods/serve-hostname-1-16
pods/serve-hostname-1-17
pods/serve-hostname-1-18
pods/serve-hostname-1-19
pods/serve-hostname-1-2
pods/serve-hostname-1-20
pods/serve-hostname-1-21
pods/serve-hostname-1-22
pods/serve-hostname-1-23
pods/serve-hostname-1-24
pods/serve-hostname-1-25
pods/serve-hostname-1-26
pods/serve-hostname-1-27
pods/serve-hostname-1-28
pods/serve-hostname-1-29
F0331 17:07:17.744491 16017 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-3?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:07:36.299212 16025 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-3?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
7pods/serve-hostname-1-3
pods/serve-hostname-1-4 pods/serve-hostname-1-5
pods/serve-hostname-1-6
pods/serve-hostname-1-7
pods/serve-hostname-1-8
F0331 17:08:21.421952 16049 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-9?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:08:51.879079 16057 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506?quorum=false&recursive=true&sorted=true: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:08:55.015498 16068 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506?quorum=false&recursive=true&sorted=true: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:09:16.905368 16077 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-1-9?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-1-9
F0331 17:14:20.492245 16139 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-0?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
F0331 17:15:04.572098 16149 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-0?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$ kubectl delete pods --all --namespace=serve-hostnames-3506
pods/serve-hostname-10-0
pods/serve-hostname-10-1
pods/serve-hostname-10-10
pods/serve-hostname-10-11
pods/serve-hostname-10-12
pods/serve-hostname-10-13
pods/serve-hostname-10-14
pods/serve-hostname-10-15
pods/serve-hostname-10-16
pods/serve-hostname-10-17
pods/serve-hostname-10-18
pods/serve-hostname-10-19
pods/serve-hostname-10-2
pods/serve-hostname-10-20
pods/serve-hostname-10-21
pods/serve-hostname-10-22
pods/serve-hostname-10-23
F0331 17:17:15.837176 16174 delete.go:67] Client error: Get http://127.0.0.1:4001/v2/keys/registry/pods/serve-hostnames-3506/serve-hostname-10-24?quorum=false&recursive=false&sorted=false: dial tcp 127.0.0.1:4001: too many open files
satnam@asia-east1-b:~/gocode/src/github.com/GoogleCloudPlatform/kubernetes/test/soak/serve_hostnames$
</code></pre></div> | 0 |
<p dir="auto">Bug.</p>
<p dir="auto">If I put several input type="radio" with same name (as in jsfiddle example below) onChange handler triggered only once for individual input when mouse click on input happen.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input type="radio" name="some" onChange={...} />
<input type="radio" name="some" onChange={...} />
..."><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"some"</span> <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span>...<span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-s1">input</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"some"</span> <span class="pl-s1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span>...<span class="pl-kos">}</span> <span class="pl-c1">/</span>>
...</pre></div>
<p dir="auto">Example: <a href="https://jsfiddle.net/Bacher/jxrar3ke/7/" rel="nofollow">https://jsfiddle.net/Bacher/jxrar3ke/7/</a><br>
Try to click on different radio inputs several times. Next clicks has no console.log output.</p>
<p dir="auto">I expect trigger onChange every time when I click on non-selected radio input.</p>
<p dir="auto">Bug reproduces in several latest versions of React, at least 15.6.0 and 15.6.1.<br>
My OS is Ubuntu. I try in latest Chrome and latest Firefox.</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
In React 15.6.1, this behaviour is changed; In 15.5.4, it fires the change event reliably.</p>
<p dir="auto">15.6.1 - <a href="https://codesandbox.io/embed/VPA42ZnRo" rel="nofollow">https://codesandbox.io/embed/VPA42ZnRo</a><br>
15.5.4 - <a href="https://codesandbox.io/embed/JZ0mnE5oy" rel="nofollow">https://codesandbox.io/embed/JZ0mnE5oy</a></p>
<p dir="auto">You'll need to have the console open to get the debugger statement.</p>
<p dir="auto">In 15.6.1, the first change fires, but all subsequent changes do not fire. In 15.5.4, all changes fire.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">React 15.6.1 vs React 15.5.4; Chrome latest stable.</p> | 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">If some link is shown in the terminal, it would be nice to allow open it whether clicking over it.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Maybe <code class="notranslate">ctrl+left mouse key</code> as default combination could produce a similar behaviour like VSCode integrated terminal.<br>
If the link uses a file path such as <code class="notranslate">C:\myfile.txt</code>, clicking opens it.<br>
If the link is an URL, then default system browser will open it in a new tab.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.476]
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0
"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.476]
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.5.2762.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">open multiple tabs in terminal. The switch tab between them</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I can see which tab is active clearly.</p>
<h1 dir="auto">Actual behavior -- Could we use a very different color to identify the active tab ?</h1>
<p dir="auto">Please see bellow picture. it's hard to figure out which tab is active when my monitor is not so good. I have to chick on each tab to find the active one.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/36788337/69489026-c37b7300-0ead-11ea-99a7-eef2d59775f9.png"><img src="https://user-images.githubusercontent.com/36788337/69489026-c37b7300-0ead-11ea-99a7-eef2d59775f9.png" alt="not clear" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I build and install Atom on my Gentoo.<br>
But when I open any file I see chrome console that contains <code class="notranslate">Uncaught Error: spawn ENOENT</code>.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6450725/3790792/536f7a7a-1b1a-11e4-9aed-965a27369d3f.png"><img src="https://cloud.githubusercontent.com/assets/6450725/3790792/536f7a7a-1b1a-11e4-9aed-965a27369d3f.png" alt="snapshot2" style="max-width: 100%;"></a></p> | <p dir="auto">I'm getting an error when ever lint tries to run on my *.ts files:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="activate linter-csslint init.coffee:8
activate linter-jscs init.coffee:9
activate linter-jshint init.coffee:8
activate linter-scss-lint init.coffee:7
Window load time: 1394ms /Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:18
command and arguments ["tslint", "-t", "json", "-f", "/var/folders/h5/qvc0ydkj0bz9gntxfv4xpt7m0000gn/T/11462-1252-1nivsndsource.ts"] linter.coffee:68
is node executable: false linter.coffee:91
Uncaught Error: spawn ENOENT util.js:682
exports._errnoException util.js:682
ChildProcess._handle.onexit child_process.js:857
(anonymous function) child_process.js:1005
_tickCallback node.js:605
stderr execvp(): No such file or directory linter.coffee:110"><pre class="notranslate"><code class="notranslate">activate linter-csslint init.coffee:8
activate linter-jscs init.coffee:9
activate linter-jshint init.coffee:8
activate linter-scss-lint init.coffee:7
Window load time: 1394ms /Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:18
command and arguments ["tslint", "-t", "json", "-f", "/var/folders/h5/qvc0ydkj0bz9gntxfv4xpt7m0000gn/T/11462-1252-1nivsndsource.ts"] linter.coffee:68
is node executable: false linter.coffee:91
Uncaught Error: spawn ENOENT util.js:682
exports._errnoException util.js:682
ChildProcess._handle.onexit child_process.js:857
(anonymous function) child_process.js:1005
_tickCallback node.js:605
stderr execvp(): No such file or directory linter.coffee:110
</code></pre></div>
<p dir="auto">My thinking is that it isn't tslint at it was working about 4-5 days ago, but today when I went to open my *.ts files, I started getting the above, but it could have also been the 0.107.0 release as well. Not sure.</p> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
6.0.11 and v7.0.0-beta.6</li>
<li><strong>Operating System:</strong><br>
MacOs Mojave Version 10.14.5</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Hi, I need to create a multi-threaded application. I used two threads options, but both don't work.<br>
First option is <code class="notranslate">worker_threads</code> <a href="https://nodejs.org/api/worker_threads.html" rel="nofollow">https://nodejs.org/api/worker_threads.html</a><br>
Second option is web workers <a href="https://electronjs.org/docs/tutorial/multithreading" rel="nofollow">https://electronjs.org/docs/tutorial/multithreading</a></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When i used <code class="notranslate">worker_threads</code> i got this error: <code class="notranslate">Uncaught Error: The V8 platform used by this instance of Node does not support creating Workers</code><br>
When i used <code class="notranslate">web workers</code> I ran into a threads creation limit. I can create max 240-243 threads, but when i add 1 more thread - it crash. I have free 7 GB RAM, but it crush anyway. Btw, in activity monitor it'll show x2 threads count, than i created. If i created 240 threads - it'll show 480+ threads in activity monitor</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>For reproduce <code class="notranslate">worker_threads</code> error:<br>
<code class="notranslate"> const { Worker } = require("worker_threads") new Worker("./src/workers/profile.js")</code> // need provide a path to file</li>
<li>For reproduce <code class="notranslate">web workers</code> error:<br>
<code class="notranslate">for( let i = 0 ; i < 250 ; i ++ ) { new Worker("./src/workers/profile.js") // need provide a path to file } // 240 = no crush, 250 will crush</code></li>
</ol>
<h3 dir="auto">Screenshots</h3>
<ol dir="auto">
<li><code class="notranslate">worker_threads</code></li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699551-935a8500-ecf0-11e9-884e-fc589e1e7d15.png"><img src="https://user-images.githubusercontent.com/24946599/66699551-935a8500-ecf0-11e9-884e-fc589e1e7d15.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li><code class="notranslate">Web workers</code></li>
</ol>
<p dir="auto">This screenshot shows that were created x2 threads, than I actually create (as I described above). Were created 240 threads, but in fact 486 is displayed<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699513-378ffc00-ecf0-11e9-8c63-4760b39160c1.png"><img src="https://user-images.githubusercontent.com/24946599/66699513-378ffc00-ecf0-11e9-8c63-4760b39160c1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This screenshot shows what happens when I add one thread, after creating 240 web workers<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24946599/66699533-6b6b2180-ecf0-11e9-9b93-5e505664cf66.png"><img src="https://user-images.githubusercontent.com/24946599/66699533-6b6b2180-ecf0-11e9-9b93-5e505664cf66.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">If i can provide more info for you - tell me it please !</p> | <h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
v5.0.2</li>
<li><strong>Operating System:</strong><br>
Windows 10</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">On app ready start nodejs worker which consoles string.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">App crash immediately after run</p>
<h3 dir="auto">To Reproduce</h3>
<ul dir="auto">
<li>git clone <a href="https://github.com/BorysTyminski/electron-issue.git">https://github.com/BorysTyminski/electron-issue.git</a></li>
<li>cd electron-issue</li>
<li>npm install</li>
<li>npm run start</li>
</ul>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I used electron-forge to quick build app.</p> | 1 |
<p dir="auto">I'm using Atom 0.196.0 on Windows,<br>
when deleting a folder and this folder is open at atom folder explorer (enpanded on left bar)<br>
EPERM is thrown.</p>
<p dir="auto">Expected Behavior:</p>
<ol dir="auto">
<li>Atom shouldn't lock the folder,allowing to delete it from another running program</li>
<li>After the folder is deleted, atom must reload the file explorer and do not list that folder nor it's files</li>
</ol> | <p dir="auto">Instead of vaguely explaining, here are the steps for reproducing the bug:</p>
<ol dir="auto">
<li>If you have a Yeoman-created project folder i.e. <code class="notranslate">generator-webapp</code> created project, run <code class="notranslate">grunt serve</code>. It'll create a .tmp file, and I'll assume you haven't had one at first.</li>
<li>When everything goes well expand the folder .tmp in Atom so you can see the subfolders inside.</li>
<li>Stop the grunt process.</li>
<li>Run <code class="notranslate">grunt serve</code> again, and it will run <code class="notranslate">grunt-contrib-clean</code> to delete .tmp.</li>
</ol>
<p dir="auto">It won't. .tmp will still exist as a "corrupted file" and you can't delete it by the Windows Explorer. Command line will show <code class="notranslate">Warning: Unable to create directory [path to .tmp folder]" (Error code: EPERM). Use --force to continue.</code> when trying to create a new .tmp folder.</p>
<p dir="auto">Go to Atom and try to delete it, and the Dev Tools will show the same error: <code class="notranslate">Uncaught Error: EPERM, operation not permitted: [path to .tmp folder]</code>. All you need to do is close the folder again on the sidebar to remove the folder. I also tried the same method to Sublime Text, and it doesn't do the same, so I assume there's a clash between <code class="notranslate">grunt-contrib-clean</code> and Atom's way of handling files.</p>
<p dir="auto">Atom is 0.123.0, and Windows is 8.1. Command line running Grunt is running as Administrator.</p> | 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/davegould41/pen/qBRqyRo?editors=101" rel="nofollow"> https://codepen.io/davegould41/pen/qBRqyRo?editors=101</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ul dir="auto">
<li>Create an input element with event modifier <code class="notranslate">v-model.number="num"</code></li>
<li>try typing .01</li>
<li>notice it resets the value to 1</li>
<li>(inputting 0.01 works though)</li>
</ul>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">If the user enters <code class="notranslate">.01</code> the input element should have the value of <code class="notranslate">.01</code></p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto"><code class="notranslate">.number</code> input modifier is removing decimal on user input</p>
<p dir="auto">If a user inputs <code class="notranslate">.01</code> they the input element will capture as <code class="notranslate">1</code></p>
<hr>
<p dir="auto">I realize that javascript evaluates <code class="notranslate">.0</code> as <code class="notranslate">0</code> but this is a common scenario when adding numbers to an input element</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.5.8</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/50wL7mdz/79189/" rel="nofollow">https://jsfiddle.net/50wL7mdz/79189/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Included in fiddle</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Input type='number' should not clear values, accept stings formatted in different locales. v-model.number should not return string.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Input value is cleared sometimes, v-model.number returns "" for "" and partially typed numbers.</p>
<hr>
<p dir="auto">This issue started with topic on forum <a href="https://forum.vuejs.org/t/extra-directive-for-number-inputs/22438" rel="nofollow">https://forum.vuejs.org/t/extra-directive-for-number-inputs/22438</a>, it was suggested to open an issue for that. Here is original post:</p>
<p dir="auto">Hi!</p>
<p dir="auto">I've found that <code class="notranslate">v-model.number</code> has limitations and requires some boilerplate in some cases. This is mostly because <code class="notranslate">input[type="number"]</code> returns <code class="notranslate">''</code> for partially input numbers (like <code class="notranslate">1.</code>). Here are some problems with it:</p>
<ul dir="auto">
<li>App has no difference when input is either empty or invalid/partial.</li>
<li>Bound attribute has to be of <code class="notranslate">[String, Number]</code> type.</li>
<li><code class="notranslate">''</code>, <code class="notranslate">undefined</code>, and <code class="notranslate">0</code> are falsy values. This leads to <code class="notranslate">val !== ''</code> checks in all places this attribute is used.</li>
</ul>
<p dir="auto">2nd and 3d issues can be solved with computed property, but it's hard to implement for nested ones and array of values.</p>
<p dir="auto">I came to using separate field for casted values:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<input
type='number'
v-model='obj.val'
@input='$set(obj, "valCasted", _nOrNull($event.target.value))'
/>"><pre class="notranslate"><code class="notranslate"><input
type='number'
v-model='obj.val'
@input='$set(obj, "valCasted", _nOrNull($event.target.value))'
/>
</code></pre></div>
<p dir="auto">I wanted to it implement with custom directive (like <code class="notranslate">v-model-number='obj.valCasted'</code>), but I see that <code class="notranslate">v-model</code> is handled differently by compiler. This way it can automatically use <code class="notranslate">$set</code> when property is not defined on object. But I have not found how this can be implemented with custom directives.</p>
<p dir="auto">So here are questions :) :</p>
<ul dir="auto">
<li>Is there a better way to work with <code class="notranslate">input[type="number"]</code>?<br>
If not:</li>
<li>Can this be implemented with custom directives as convenient as <code class="notranslate">v-model</code> is?</li>
<li>Should this be added to vue?</li>
</ul>
<hr>
<p dir="auto">After that post I've tried to implement custom component, it's included in fiddle, but it also has some issues.<br>
I've also added different types of inputs to fiddle to check their behaviour and checked against different locales.</p>
<p dir="auto">Thank you!</p> | 1 |
<p dir="auto">I am getting a compiler failure on the latest rust under linux. The problem seems to be the combination of cross-crate, pub use and an empty struct.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task 'rustc' failed at 'expected bare rust fn or an intrinsic', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:1720"><pre class="notranslate"><code class="notranslate">task 'rustc' failed at 'expected bare rust fn or an intrinsic', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/base.rs:1720
</code></pre></div>
<p dir="auto">Output with backtrace and code to reproduce:<br>
<a href="https://gist.github.com/rainbow-alex/4f50ce8f4be22dc93a21">https://gist.github.com/rainbow-alex/4f50ce8f4be22dc93a21</a></p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.rs
#[crate_type = "lib"];
pub use foo::{T, foo};
mod foo {
pub struct T;
pub fn foo(x: T) { }
}
fn bar(x: T) { }"><pre class="notranslate"><span class="pl-c">// foo.rs</span>
<span class="pl-c1">#<span class="pl-kos">[</span>crate_type = <span class="pl-s">"lib"</span><span class="pl-kos">]</span></span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">use</span> foo<span class="pl-kos">::</span><span class="pl-kos">{</span><span class="pl-v">T</span><span class="pl-kos">,</span> foo<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">mod</span> foo <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// bar.rs
extern crate foo;
fn main() {
let x = foo::T;
foo::foo(x);
}"><pre class="notranslate"><span class="pl-c">// bar.rs</span>
<span class="pl-k">extern</span> <span class="pl-k">crate</span> foo<span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = foo<span class="pl-kos">::</span><span class="pl-v">T</span><span class="pl-kos">;</span>
foo<span class="pl-kos">::</span><span class="pl-en">foo</span><span class="pl-kos">(</span>x<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc foo.rs
foo.rs:8:16: 8:17 warning: unused variable: `x`, #[warn(unused_variable)] on by default
foo.rs:8 pub fn foo(x: T) { }
^
foo.rs:11:1: 11:17 warning: code is never used: `bar`, #[warn(dead_code)] on by default
foo.rs:11 fn bar(x: T) { }
^~~~~~~~~~~~~~~~
foo.rs:11:8: 11:9 warning: unused variable: `x`, #[warn(unused_variable)] on by default
foo.rs:11 fn bar(x: T) { }
^
$ RUST_BACKTRACE=1 rustc bar.rs -L.
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'expected bare rust fn or an intrinsic', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/librustc/middle/trans/base.rs:1680
stack backtrace:
1: 0x110cef874 - rt::backtrace::imp::write::h582661243a615e40bJa::v0.11.pre
2: 0x110c53f06 - rt::unwind::begin_unwind_inner::h5002e0468a55cabcFja::v0.11.pre
3: 0x10de45138 - rt::unwind::begin_unwind::h670fd7da7bbaeb39XSp::v0.11.pre
4: 0x10df2c042 - middle::trans::base::register_fn::hbb8759275b04cae89Eo::v0.11.pre
5: 0x10de52e52 - middle::trans::base::get_item_val::h1dad62be08e5991cjSo::v0.11.pre
6: 0x10dead30f - middle::trans::callee::trans_fn_ref_with_vtables::hd733f6b7fa8eefa3Vgd::v0.11.pre
7: 0x10dea8a7f - middle::trans::callee::trans_fn_ref::h6a1417fef0060143fad::v0.11.pre
8: 0x10dec40e3 - middle::trans::expr::trans_def::he35a3c93856d755dJ4e::v0.11.pre
9: 0x10debcd9a - middle::trans::expr::trans_unadjusted::haae245a7ffe8dcdc8Ke::v0.11.pre
10: 0x10de83b4d - middle::trans::expr::trans_into::h0e643c2e225a30a12me::v0.11.pre
11: 0x10df552df - middle::trans::_match::store_local::closure.60265
12: 0x10df5506d - middle::trans::_match::mk_binding_alloca::h82ee2b7aab9fd4e0Z7s::v0.11.pre
13: 0x10df1f8ea - middle::trans::_match::store_local::h1c633f23d36a0e6200s::v0.11.pre
14: 0x10de8403a - middle::trans::base::init_local::hdfee3862f4f3e9b2OJn::v0.11.pre
15: 0x10de830b6 - middle::trans::controlflow::trans_stmt::h86aa667e8541c7bdgYa::v0.11.pre
16: 0x10de848d1 - middle::trans::controlflow::trans_block::h8aa8f39fad96fc82k2a::v0.11.pre
17: 0x10df262c7 - middle::trans::base::trans_closure::h4e08e9cd3360b77aTeo::v0.11.pre
18: 0x10de566f7 - middle::trans::base::trans_fn::hdf8711108b73013cImo::v0.11.pre
19: 0x10de519f8 - middle::trans::base::trans_item::h7661c7f317341e64kyo::v0.11.pre
20: 0x10df2a031 - middle::trans::base::trans_mod::h9eb441b3554b8c85pDo::v0.11.pre
21: 0x10df33444 - middle::trans::base::trans_crate::hfe2773250e6168b518p::v0.11.pre
22: 0x10e62090e - driver::driver::phase_4_translate_to_llvm::he8011930693c3fablve::v0.11.pre
23: 0x10e623c56 - driver::driver::compile_input::hea278442c58ce8f7aLe::v0.11.pre
24: 0x10e647f58 - run_compiler::he3998ac58048ca23Rcm::v0.11.pre
25: 0x10e65badd - main_args::closure.91897
26: 0x10e65a2f2 - monitor::closure.91782
27: 0x10e655e9b - task::TaskBuilder::try::closure.91557
28: 0x10de0950c - task::spawn_opts::closure.7941
29: 0x110ceac98 - rt::task::Task::run::closure.41277
30: 0x110cf568c - rust_try
31: 0x110ceab17 - rt::task::Task::run::hdd1e4ef4aaf329acIc8::v0.11.pre
32: 0x10de0938f - task::spawn_opts::closure.7913
33: 0x110cee256 - rt::thread::thread_start::h6e64617662b609aepR8::v0.11.pre
34: 0x7fff92737899 - _pthread_body
35: 0x7fff9273772a - _pthread_struct_init"><pre class="notranslate"><code class="notranslate">$ rustc foo.rs
foo.rs:8:16: 8:17 warning: unused variable: `x`, #[warn(unused_variable)] on by default
foo.rs:8 pub fn foo(x: T) { }
^
foo.rs:11:1: 11:17 warning: code is never used: `bar`, #[warn(dead_code)] on by default
foo.rs:11 fn bar(x: T) { }
^~~~~~~~~~~~~~~~
foo.rs:11:8: 11:9 warning: unused variable: `x`, #[warn(unused_variable)] on by default
foo.rs:11 fn bar(x: T) { }
^
$ RUST_BACKTRACE=1 rustc bar.rs -L.
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'expected bare rust fn or an intrinsic', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/librustc/middle/trans/base.rs:1680
stack backtrace:
1: 0x110cef874 - rt::backtrace::imp::write::h582661243a615e40bJa::v0.11.pre
2: 0x110c53f06 - rt::unwind::begin_unwind_inner::h5002e0468a55cabcFja::v0.11.pre
3: 0x10de45138 - rt::unwind::begin_unwind::h670fd7da7bbaeb39XSp::v0.11.pre
4: 0x10df2c042 - middle::trans::base::register_fn::hbb8759275b04cae89Eo::v0.11.pre
5: 0x10de52e52 - middle::trans::base::get_item_val::h1dad62be08e5991cjSo::v0.11.pre
6: 0x10dead30f - middle::trans::callee::trans_fn_ref_with_vtables::hd733f6b7fa8eefa3Vgd::v0.11.pre
7: 0x10dea8a7f - middle::trans::callee::trans_fn_ref::h6a1417fef0060143fad::v0.11.pre
8: 0x10dec40e3 - middle::trans::expr::trans_def::he35a3c93856d755dJ4e::v0.11.pre
9: 0x10debcd9a - middle::trans::expr::trans_unadjusted::haae245a7ffe8dcdc8Ke::v0.11.pre
10: 0x10de83b4d - middle::trans::expr::trans_into::h0e643c2e225a30a12me::v0.11.pre
11: 0x10df552df - middle::trans::_match::store_local::closure.60265
12: 0x10df5506d - middle::trans::_match::mk_binding_alloca::h82ee2b7aab9fd4e0Z7s::v0.11.pre
13: 0x10df1f8ea - middle::trans::_match::store_local::h1c633f23d36a0e6200s::v0.11.pre
14: 0x10de8403a - middle::trans::base::init_local::hdfee3862f4f3e9b2OJn::v0.11.pre
15: 0x10de830b6 - middle::trans::controlflow::trans_stmt::h86aa667e8541c7bdgYa::v0.11.pre
16: 0x10de848d1 - middle::trans::controlflow::trans_block::h8aa8f39fad96fc82k2a::v0.11.pre
17: 0x10df262c7 - middle::trans::base::trans_closure::h4e08e9cd3360b77aTeo::v0.11.pre
18: 0x10de566f7 - middle::trans::base::trans_fn::hdf8711108b73013cImo::v0.11.pre
19: 0x10de519f8 - middle::trans::base::trans_item::h7661c7f317341e64kyo::v0.11.pre
20: 0x10df2a031 - middle::trans::base::trans_mod::h9eb441b3554b8c85pDo::v0.11.pre
21: 0x10df33444 - middle::trans::base::trans_crate::hfe2773250e6168b518p::v0.11.pre
22: 0x10e62090e - driver::driver::phase_4_translate_to_llvm::he8011930693c3fablve::v0.11.pre
23: 0x10e623c56 - driver::driver::compile_input::hea278442c58ce8f7aLe::v0.11.pre
24: 0x10e647f58 - run_compiler::he3998ac58048ca23Rcm::v0.11.pre
25: 0x10e65badd - main_args::closure.91897
26: 0x10e65a2f2 - monitor::closure.91782
27: 0x10e655e9b - task::TaskBuilder::try::closure.91557
28: 0x10de0950c - task::spawn_opts::closure.7941
29: 0x110ceac98 - rt::task::Task::run::closure.41277
30: 0x110cf568c - rust_try
31: 0x110ceab17 - rt::task::Task::run::hdd1e4ef4aaf329acIc8::v0.11.pre
32: 0x10de0938f - task::spawn_opts::closure.7913
33: 0x110cee256 - rt::thread::thread_start::h6e64617662b609aepR8::v0.11.pre
34: 0x7fff92737899 - _pthread_body
35: 0x7fff9273772a - _pthread_struct_init
</code></pre></div> | 1 |
<p dir="auto">I built a project using (Merge, merge) layer once, and use share layer in another. The problem I can't find any documentation that explains how merge or share layer works like convolution or max-pooling layers.<br>
I will be grateful if anyone can direct me or suggest some paper to me ???</p> | <ul class="contains-task-list">
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br>
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p>
</li>
</ul>
<p dir="auto"><a href="https://github.com/fchollet/keras/blob/master/keras/preprocessing/image.py#L417">ImageDataGenerator.flow()</a> expects numpy arrays and does not accept but TF tensors containing the same image data. Should this be updated to accept TF tensors of images and labels, and are there any plans to do so?</p>
<p dir="auto">Proposed example code of loading such data from a TFRecord for semantic segmentation:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from keras.preprocessing.image import ImageDataGenerator
# tfrecord_filenames_queue : tfrecord filename queue
# String queue object from tf.train.string_input_producer()
reader = tf.TFRecordReader()
_, serialized_example = reader.read(tfrecord_filenames_queue)
features = tf.parse_single_example(
serialized_example,
features={
'height': tf.FixedLenFeature([], tf.int64),
'width': tf.FixedLenFeature([], tf.int64),
'image_raw': tf.FixedLenFeature([], tf.string),
'mask_raw': tf.FixedLenFeature([], tf.string)
})
image = tf.decode_raw(features['image_raw'], tf.uint8)
annotation = tf.decode_raw(features['mask_raw'], tf.uint8)
height = tf.cast(features['height'], tf.int32)
width = tf.cast(features['width'], tf.int32)
image_shape = tf.pack([height, width, 3])
annotation_shape = tf.pack([height, width, 1])
image = tf.reshape(image, image_shape)
annotation = tf.reshape(annotation, annotation_shape)
# This will do preprocessing and realtime data augmentation:
datagen = ImageDataGenerator(
featurewise_center=False, # set input mean to 0 over the dataset
samplewise_center=False, # set each sample mean to 0
featurewise_std_normalization=False, # divide inputs by std of the dataset
samplewise_std_normalization=False, # divide each input by its std
zca_whitening=False, # apply ZCA whitening
rotation_range=0, # randomly rotate images in the range (degrees, 0 to 180)
width_shift_range=0.1, # randomly shift images horizontally (fraction of total width)
height_shift_range=0.1, # randomly shift images vertically (fraction of total height)
horizontal_flip=True, # randomly flip images
vertical_flip=False) # randomly flip images
datagen.flow(image, annotation,
batch_size=32)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">preprocessing</span>.<span class="pl-s1">image</span> <span class="pl-k">import</span> <span class="pl-v">ImageDataGenerator</span>
<span class="pl-c"># tfrecord_filenames_queue : tfrecord filename queue</span>
<span class="pl-c"># String queue object from tf.train.string_input_producer()</span>
<span class="pl-s1">reader</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">TFRecordReader</span>()
<span class="pl-s1">_</span>, <span class="pl-s1">serialized_example</span> <span class="pl-c1">=</span> <span class="pl-s1">reader</span>.<span class="pl-en">read</span>(<span class="pl-s1">tfrecord_filenames_queue</span>)
<span class="pl-s1">features</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">parse_single_example</span>(
<span class="pl-s1">serialized_example</span>,
<span class="pl-s1">features</span><span class="pl-c1">=</span>{
<span class="pl-s">'height'</span>: <span class="pl-s1">tf</span>.<span class="pl-v">FixedLenFeature</span>([], <span class="pl-s1">tf</span>.<span class="pl-s1">int64</span>),
<span class="pl-s">'width'</span>: <span class="pl-s1">tf</span>.<span class="pl-v">FixedLenFeature</span>([], <span class="pl-s1">tf</span>.<span class="pl-s1">int64</span>),
<span class="pl-s">'image_raw'</span>: <span class="pl-s1">tf</span>.<span class="pl-v">FixedLenFeature</span>([], <span class="pl-s1">tf</span>.<span class="pl-s1">string</span>),
<span class="pl-s">'mask_raw'</span>: <span class="pl-s1">tf</span>.<span class="pl-v">FixedLenFeature</span>([], <span class="pl-s1">tf</span>.<span class="pl-s1">string</span>)
})
<span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">decode_raw</span>(<span class="pl-s1">features</span>[<span class="pl-s">'image_raw'</span>], <span class="pl-s1">tf</span>.<span class="pl-s1">uint8</span>)
<span class="pl-s1">annotation</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">decode_raw</span>(<span class="pl-s1">features</span>[<span class="pl-s">'mask_raw'</span>], <span class="pl-s1">tf</span>.<span class="pl-s1">uint8</span>)
<span class="pl-s1">height</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">cast</span>(<span class="pl-s1">features</span>[<span class="pl-s">'height'</span>], <span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>)
<span class="pl-s1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">cast</span>(<span class="pl-s1">features</span>[<span class="pl-s">'width'</span>], <span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>)
<span class="pl-s1">image_shape</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">pack</span>([<span class="pl-s1">height</span>, <span class="pl-s1">width</span>, <span class="pl-c1">3</span>])
<span class="pl-s1">annotation_shape</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">pack</span>([<span class="pl-s1">height</span>, <span class="pl-s1">width</span>, <span class="pl-c1">1</span>])
<span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reshape</span>(<span class="pl-s1">image</span>, <span class="pl-s1">image_shape</span>)
<span class="pl-s1">annotation</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reshape</span>(<span class="pl-s1">annotation</span>, <span class="pl-s1">annotation_shape</span>)
<span class="pl-c"># This will do preprocessing and realtime data augmentation:</span>
<span class="pl-s1">datagen</span> <span class="pl-c1">=</span> <span class="pl-v">ImageDataGenerator</span>(
<span class="pl-s1">featurewise_center</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c"># set input mean to 0 over the dataset</span>
<span class="pl-s1">samplewise_center</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c"># set each sample mean to 0</span>
<span class="pl-s1">featurewise_std_normalization</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c"># divide inputs by std of the dataset</span>
<span class="pl-s1">samplewise_std_normalization</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c"># divide each input by its std</span>
<span class="pl-s1">zca_whitening</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c"># apply ZCA whitening</span>
<span class="pl-s1">rotation_range</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-c"># randomly rotate images in the range (degrees, 0 to 180)</span>
<span class="pl-s1">width_shift_range</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-c"># randomly shift images horizontally (fraction of total width)</span>
<span class="pl-s1">height_shift_range</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-c"># randomly shift images vertically (fraction of total height)</span>
<span class="pl-s1">horizontal_flip</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-c"># randomly flip images</span>
<span class="pl-s1">vertical_flip</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># randomly flip images</span>
<span class="pl-s1">datagen</span>.<span class="pl-en">flow</span>(<span class="pl-s1">image</span>, <span class="pl-s1">annotation</span>,
<span class="pl-s1">batch_size</span><span class="pl-c1">=</span><span class="pl-c1">32</span>)</pre></div> | 0 |
<p dir="auto">Code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Foo {
}
interface Bar implements Foo {
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Bar</span> <span class="pl-s1">implements</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Expected (from old compiler):</p>
<blockquote>
<p dir="auto">(4,15): Interface declaration cannot have 'implements' clause.</p>
</blockquote>
<p dir="auto">Actual (current):</p>
<blockquote>
<p dir="auto">(4,15): '{' expected.<br>
(4,26): ';' expected.<br>
(4,30): ';' expected.</p>
</blockquote> | <p dir="auto">Now with the dedicated <code class="notranslate">Path</code> type (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114170852" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5462" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/5462/hovercard" href="https://github.com/microsoft/TypeScript/pull/5462">#5462</a>), we should be able to minimize the number of normalization in tsserver by changing all the file name strings to the <code class="notranslate">Path</code> type. We also have many duplicated file name normalization in <code class="notranslate">program.ts</code> and other places.</p> | 0 |
<p dir="auto"><strong>UPDATED DESCRIPTION:</strong></p>
<p dir="auto">We now allow the original problem, but some corner cases are still unhandled. See comments below.</p>
<p dir="auto"><strong>ORIGINAL DESCRIPTION:</strong></p>
<p dir="auto">Where clauses right now require predicates to contain type parameters, as in:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo {
fn foo(&self);
}
struct Bar<T> {
x: T,
}
impl<T> Foo for Bar<T> where T: Foo {
fn foo(&self) {
self.x.foo()
}
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">struct</span> <span class="pl-smi">Bar</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c1">x</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">Bar</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-k">where</span> <span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But we cannot add constraints on non-generic types:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Baz { x: i32 }
impl Foo for Baz where i32: Foo {
fn foo(&self) {
self.x.foo()
}
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Baz</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span><span class="pl-kos">:</span> <span class="pl-smi">i32</span> <span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-k">for</span> <span class="pl-smi">Baz</span> <span class="pl-k">where</span> <span class="pl-smi">i32</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Will error out with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:15:1: 19:2 error: cannot bound type `i32`, where clause bounds may only be attached to types involving type parameters
test.rs:15 impl Foo for Baz where i32: Foo {
test.rs:16 fn foo(&self) {
test.rs:17 self.x.foo()
test.rs:18 }
test.rs:19 }"><pre class="notranslate"><code class="notranslate">test.rs:15:1: 19:2 error: cannot bound type `i32`, where clause bounds may only be attached to types involving type parameters
test.rs:15 impl Foo for Baz where i32: Foo {
test.rs:16 fn foo(&self) {
test.rs:17 self.x.foo()
test.rs:18 }
test.rs:19 }
</code></pre></div>
<p dir="auto">In hand written code this usually won't come up, but this would be really helpful for a code generator like <code class="notranslate">macro_rules!</code> or <code class="notranslate">#[derive]</code>, especially when dealing with associated types. Currently the only way to know if a type is generic or not is to manually walk it and see if any of the type paths start with the same name as a type parameter. If so, add that type to the predicate list. Instead, it would be much simpler if we could just add all the types listed in a field or enum to the predicate list and let the type checker report an error if one of those types doesn't implement the trait.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jroesch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jroesch">@jroesch</a></p> | <p dir="auto">Today’s <a href="http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz" rel="nofollow">rust-nightly-x86_64-unknown-linux-gnu.tar.gz</a> is 125MiB in size. I did a <code class="notranslate">make dist-tar-bins</code> which output <del>the same</del> tarball, but only 88MiB in size. <del>This is 70% of whatever we publish to s3.</del></p>
<p dir="auto">I took liberty to also test:</p>
<ul dir="auto">
<li><del>xz (the default level, -6) → 69MiB (55% original);</del></li>
<li><del>xz -9 → 59MiB (47% original, but has high memory requirements to decompress)</del></li>
<li><del>bz2 → 82MiB (65% original);</del></li>
<li><del>lzma → 69MiB, but took longer than xz.</del></li>
</ul>
<p dir="auto">I strongly propose to either migrate to a more modern compression algorithm (xz) <del>or at least investigating why gzip does such a bad job on the build bots</del>.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brson">@brson</a></p> | 0 |
<p dir="auto">Here's the error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Plugin 0 specified in "/home/ubuntu/grok/source/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/home/ubuntu/grok/source/node_modules/next/babel.js")
at Plugin.init (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
"><pre class="notranslate"><code class="notranslate">Error: Plugin 0 specified in "/home/ubuntu/grok/source/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/home/ubuntu/grok/source/node_modules/next/babel.js")
at Plugin.init (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/home/ubuntu/grok/source/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
</code></pre></div>
<p dir="auto">And here's the dependencies and babel config of my <code class="notranslate">package.json</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"dependencies": {
"@babel/core": "7.0.0-beta.44",
"@babel/plugin-proposal-decorators": "7.0.0-beta.44",
"@babel/polyfill": "7.0.0-beta.44",
"@babel/preset-env": "7.0.0-beta.44",
"@babel/preset-stage-0": "7.0.0-beta.44",
"@babel/register": "7.0.0-beta.44",
"auto-sni": "2.3.2",
"body-parser": "1.18.2",
"chalk": "2.3.0",
"compression": "1.7.2",
"cookie-parser": "1.4.3",
"cookies": "0.7.1",
"credential": "2.0.0",
"elasticlunr": "0.9.5",
"encode32": "1.1.0",
"expect": "22.0.3",
"express": "4.16.2",
"express-await": "0.0.4",
"express-brute": "1.0.1",
"express-force-ssl": "0.3.2",
"express-graceful-exit": "0.4.1",
"fingerprintjs2": "1.5.1",
"forcedomain": "0.8.1",
"glamor": "2.20.40",
"glamorous": "4.11.2",
"goby": "1.1.2",
"google-id-token-verifier": "0.2.3",
"helmet": "3.12.0",
"homoglyph": "1.1.2",
"immutable": "3.8.2",
"is-hotkey": "0.1.2",
"isomorphic-unfetch": "2.0.0",
"js-base64": "2.4.3",
"js-cookie": "2.2.0",
"json-stringify-safe": "5.0.1",
"json5": "1.0.1",
"jsonfile": "4.0.0",
"jwt-simple": "0.5.1",
"keymaster": "1.6.2",
"luxon": "1.1.0",
"material-ui": "0.20.0",
"mobx": "4.1.1",
"mobx-react": "5.0.0",
"next": "6.0.0",
"next-cookies": "1.0.2",
"node-ssh": "5.1.1",
"nodemailer": "4.6.3",
"nodemailer-mailgun-transport": "1.3.6",
"nprogress": "0.2.0",
"pg": "7.4.0",
"platform": "1.3.4",
"prop-types": "15.6.0",
"react": "16.3.1",
"react-anime": "2.0.1",
"react-dnd": "2.5.4",
"react-dnd-html5-backend": "2.2.4",
"react-dom": "16.3.1",
"react-html-email": "3.0.0",
"react-keydown": "1.7.0",
"react-modal": "3.1.10",
"react-ripples": "1.1.2",
"react-scroll": "1.7.5",
"react-select": "1.1.0",
"react-stickynode": "1.4.0",
"react-tap-event-plugin": "3.0.2",
"react-tooltip": "3.4.0",
"react-transition-group": "2.2.1",
"react-youtube": "7.5.0",
"redirect-https": "1.1.5",
"request-ip": "2.0.2",
"slate": "0.33.5",
"slate-auto-replace": "0.9.0",
"slate-html-serializer": "0.6.2",
"slate-react": "0.12.5",
"textversionjs": "1.0.2",
"universal-analytics": "0.4.16",
"url-parse": "1.2.0",
"uuid": "3.1.0",
"webpack-bundle-analyzer": "2.9.1",
"webpack-bundle-size-analyzer": "2.7.0",
"winston": "2.4.1",
"winston-loggly-bulk": "2.0.2"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.44",
"@types/jest": "22.1.1",
"@types/node": "9.4.7",
"@types/react-dom": "16.0.4",
"@zeit/next-typescript": "0.0.10",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-module-resolver": "3.0.0",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"concurrently": "3.5.1",
"cross-env": "5.1.3",
"jest": "22.4.3",
"nodemon": "1.14.7",
"typescript": "2.8.1"
},
"babel": {
"presets": [
"next/babel"
],
"plugins": [
"transform-decorators-legacy",
[
"module-resolver",
{
"root": [
"."
]
}
]
]
}
}"><pre class="notranslate"><code class="notranslate">{
"dependencies": {
"@babel/core": "7.0.0-beta.44",
"@babel/plugin-proposal-decorators": "7.0.0-beta.44",
"@babel/polyfill": "7.0.0-beta.44",
"@babel/preset-env": "7.0.0-beta.44",
"@babel/preset-stage-0": "7.0.0-beta.44",
"@babel/register": "7.0.0-beta.44",
"auto-sni": "2.3.2",
"body-parser": "1.18.2",
"chalk": "2.3.0",
"compression": "1.7.2",
"cookie-parser": "1.4.3",
"cookies": "0.7.1",
"credential": "2.0.0",
"elasticlunr": "0.9.5",
"encode32": "1.1.0",
"expect": "22.0.3",
"express": "4.16.2",
"express-await": "0.0.4",
"express-brute": "1.0.1",
"express-force-ssl": "0.3.2",
"express-graceful-exit": "0.4.1",
"fingerprintjs2": "1.5.1",
"forcedomain": "0.8.1",
"glamor": "2.20.40",
"glamorous": "4.11.2",
"goby": "1.1.2",
"google-id-token-verifier": "0.2.3",
"helmet": "3.12.0",
"homoglyph": "1.1.2",
"immutable": "3.8.2",
"is-hotkey": "0.1.2",
"isomorphic-unfetch": "2.0.0",
"js-base64": "2.4.3",
"js-cookie": "2.2.0",
"json-stringify-safe": "5.0.1",
"json5": "1.0.1",
"jsonfile": "4.0.0",
"jwt-simple": "0.5.1",
"keymaster": "1.6.2",
"luxon": "1.1.0",
"material-ui": "0.20.0",
"mobx": "4.1.1",
"mobx-react": "5.0.0",
"next": "6.0.0",
"next-cookies": "1.0.2",
"node-ssh": "5.1.1",
"nodemailer": "4.6.3",
"nodemailer-mailgun-transport": "1.3.6",
"nprogress": "0.2.0",
"pg": "7.4.0",
"platform": "1.3.4",
"prop-types": "15.6.0",
"react": "16.3.1",
"react-anime": "2.0.1",
"react-dnd": "2.5.4",
"react-dnd-html5-backend": "2.2.4",
"react-dom": "16.3.1",
"react-html-email": "3.0.0",
"react-keydown": "1.7.0",
"react-modal": "3.1.10",
"react-ripples": "1.1.2",
"react-scroll": "1.7.5",
"react-select": "1.1.0",
"react-stickynode": "1.4.0",
"react-tap-event-plugin": "3.0.2",
"react-tooltip": "3.4.0",
"react-transition-group": "2.2.1",
"react-youtube": "7.5.0",
"redirect-https": "1.1.5",
"request-ip": "2.0.2",
"slate": "0.33.5",
"slate-auto-replace": "0.9.0",
"slate-html-serializer": "0.6.2",
"slate-react": "0.12.5",
"textversionjs": "1.0.2",
"universal-analytics": "0.4.16",
"url-parse": "1.2.0",
"uuid": "3.1.0",
"webpack-bundle-analyzer": "2.9.1",
"webpack-bundle-size-analyzer": "2.7.0",
"winston": "2.4.1",
"winston-loggly-bulk": "2.0.2"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.44",
"@types/jest": "22.1.1",
"@types/node": "9.4.7",
"@types/react-dom": "16.0.4",
"@zeit/next-typescript": "0.0.10",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-module-resolver": "3.0.0",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"concurrently": "3.5.1",
"cross-env": "5.1.3",
"jest": "22.4.3",
"nodemon": "1.14.7",
"typescript": "2.8.1"
},
"babel": {
"presets": [
"next/babel"
],
"plugins": [
"transform-decorators-legacy",
[
"module-resolver",
{
"root": [
"."
]
}
]
]
}
}
</code></pre></div> | <p dir="auto">I just upgraded to <code class="notranslate">[email protected]</code>, I use a custom server, when I try to <code class="notranslate">run dev</code>, I get an error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm run dev
> [email protected] dev /Users/foo/gitlab/next-project/backend
> babel-node ./src/server.js
/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Plugin 0 specified in "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js")
at Plugin.init (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `babel-node ./src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/foo/.npm/_logs/2018-04-30T08_41_09_819Z-debug.log"><pre class="notranslate"><code class="notranslate">npm run dev
> [email protected] dev /Users/foo/gitlab/next-project/backend
> babel-node ./src/server.js
/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Plugin 0 specified in "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js")
at Plugin.init (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `babel-node ./src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/foo/.npm/_logs/2018-04-30T08_41_09_819Z-debug.log
</code></pre></div>
<blockquote>
<p dir="auto">UPDATE all this passed after upgrading all babel packages to v7</p>
</blockquote>
<p dir="auto">Now this is the new error.... See below for complete error message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR Failed to compile with 1 errors 10:32:07
error in ./pages/_document.js
Module build failed: Error: [BABEL] /Users/foo/gitlab/zyombo/backend/pages/_document.js: .value is not a valid Plugin property"><pre class="notranslate"><code class="notranslate">ERROR Failed to compile with 1 errors 10:32:07
error in ./pages/_document.js
Module build failed: Error: [BABEL] /Users/foo/gitlab/zyombo/backend/pages/_document.js: .value is not a valid Plugin property
</code></pre></div> | 1 |
<p dir="auto">Right now it's "firebase_storage" instead of "plugins.flutter.io/firebase_storage"</p>
<p dir="auto">I think we should also rename <code class="notranslate">FirebaseStorage._channel</code> to <code class="notranslate">FirebaseStorage.channel</code> and mark it <code class="notranslate">@visibleForTesting</code> so it can only be used in tests, like we do for <a href="https://github.com/flutter/plugins/blob/master/packages/firebase_auth/lib/firebase_auth.dart#L89">firebase_auth</a>. Then we wouldn't need to duplicate the channel name in tests.</p> | <p dir="auto">I happened to have a file called <code class="notranslate">BUILD</code> in my directory. I think we already had this reported but I didn't see one when searching. FYI <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/danrubel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/danrubel">@danrubel</a></p>
<p dir="auto">I doubt this will be a common error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run
Launching loader on iPhone SE...
Exception from flutter run: FileSystemException: Creation failed, path = 'build' (OS Error: File exists, errno = 17)
dart:io _Directory.createSync
package:file/src/sync/local/local_directory.dart 13 _LocalDirectory.create
package:flutter_tools/src/base/file_system.dart 65 ensureDirectoryExists
package:flutter_tools/src/flx.dart 149 assemble.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 144 AssetBundle.build.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 290 _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:flutter_tools/src/flx.dart 158 assemble.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 144 AssetBundle.build.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 290 _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/flx.dart assemble
package:flutter_tools/src/flx.dart 105 build.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/flx.dart build
package:flutter_tools/src/ios/simulators.dart 526 IOSSimulator._sideloadUpdatedAssetsForInstalledApplicationBundle.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator._sideloadUpdatedAssetsForInstalledApplicationBundle
package:flutter_tools/src/ios/simulators.dart 490 IOSSimulator._setupUpdatedApplicationBundle.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator._setupUpdatedApplicationBundle
package:flutter_tools/src/ios/simulators.dart 419 IOSSimulator.startApp.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator.startApp
package:flutter_tools/src/hot.dart 220 HotRunner._run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/resident_runner.dart 93 ResidentRunner.startEchoingDeviceLog.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart HotRunner._run
package:flutter_tools/src/hot.dart 147 HotRunner.run.<fn>
dart:async runZoned
package:flutter_tools/src/hot.dart 146 HotRunner.run
package:flutter_tools/src/commands/run.dart 194 RunCommand.runCommand.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/run.dart RunCommand.runCommand
package:flutter_tools/src/runner/flutter_command.dart 150 FlutterCommand.verifyThenRunCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/dart/pub.dart 62 pubGet.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.verifyThenRunCommand
package:flutter_tools/src/commands/run.dart 122 RunCommand.verifyThenRunCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 199 FlutterCommand.findTargetDevice.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/device.dart 70 DeviceManager.getAllConnectedDevices.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.verifyThenRunCommand
package:flutter_tools/src/runner/flutter_command.dart 117 FlutterCommand.run
package:args/command_runner.dart 177 CommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 130 CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 186 FlutterCommandRunner.runCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/cache.dart 71 Cache.lock.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand
package:args/command_runner.dart 104 CommandRunner.run.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 104 CommandRunner.run
package:flutter_tools/src/runner/flutter_command_runner.dart 132 FlutterCommandRunner.run
package:flutter_tools/executable.dart 97 main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace Chain.capture
package:flutter_tools/executable.dart 91 main.<async>
AppleIDAuthAgent[66101]: objc: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10e7b1910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10bf3f210). One of the two will be used. Which one is undefined.
locationd: Location icon should now be in state 'Inactive'"><pre class="notranslate"><code class="notranslate">flutter run
Launching loader on iPhone SE...
Exception from flutter run: FileSystemException: Creation failed, path = 'build' (OS Error: File exists, errno = 17)
dart:io _Directory.createSync
package:file/src/sync/local/local_directory.dart 13 _LocalDirectory.create
package:flutter_tools/src/base/file_system.dart 65 ensureDirectoryExists
package:flutter_tools/src/flx.dart 149 assemble.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 144 AssetBundle.build.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 290 _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:flutter_tools/src/flx.dart 158 assemble.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 144 AssetBundle.build.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/asset.dart 290 _obtainLicenses.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/flx.dart assemble
package:flutter_tools/src/flx.dart 105 build.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/flx.dart build
package:flutter_tools/src/ios/simulators.dart 526 IOSSimulator._sideloadUpdatedAssetsForInstalledApplicationBundle.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator._sideloadUpdatedAssetsForInstalledApplicationBundle
package:flutter_tools/src/ios/simulators.dart 490 IOSSimulator._setupUpdatedApplicationBundle.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator._setupUpdatedApplicationBundle
package:flutter_tools/src/ios/simulators.dart 419 IOSSimulator.startApp.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/ios/simulators.dart IOSSimulator.startApp
package:flutter_tools/src/hot.dart 220 HotRunner._run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/resident_runner.dart 93 ResidentRunner.startEchoingDeviceLog.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/hot.dart HotRunner._run
package:flutter_tools/src/hot.dart 147 HotRunner.run.<fn>
dart:async runZoned
package:flutter_tools/src/hot.dart 146 HotRunner.run
package:flutter_tools/src/commands/run.dart 194 RunCommand.runCommand.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/run.dart RunCommand.runCommand
package:flutter_tools/src/runner/flutter_command.dart 150 FlutterCommand.verifyThenRunCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/dart/pub.dart 62 pubGet.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.verifyThenRunCommand
package:flutter_tools/src/commands/run.dart 122 RunCommand.verifyThenRunCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 199 FlutterCommand.findTargetDevice.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/device.dart 70 DeviceManager.getAllConnectedDevices.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.verifyThenRunCommand
package:flutter_tools/src/runner/flutter_command.dart 117 FlutterCommand.run
package:args/command_runner.dart 177 CommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 130 CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 186 FlutterCommandRunner.runCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/cache.dart 71 Cache.lock.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand
package:args/command_runner.dart 104 CommandRunner.run.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 104 CommandRunner.run
package:flutter_tools/src/runner/flutter_command_runner.dart 132 FlutterCommandRunner.run
package:flutter_tools/executable.dart 97 main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace Chain.capture
package:flutter_tools/executable.dart 91 main.<async>
AppleIDAuthAgent[66101]: objc: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10e7b1910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10bf3f210). One of the two will be used. Which one is undefined.
locationd: Location icon should now be in state 'Inactive'
</code></pre></div> | 0 |
<p dir="auto">Windows 7, atom already opened with the window in the background.<br>
When I open a file via the explorer, the symbol in the task bar is blinking but atom doesn't come to the front.<br>
Is this a wanted behavior?</p>
<p dir="auto">(I couldn't find any existing issue. If this is the case, please let me know)</p> | <p dir="auto">When Atom is restored but hidden behind several windows. "Open with Atom" right click function should send it to the front.</p> | 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">InstancedMesh instancing breaks if the supplied material has been already been used.</p>
<p dir="auto">If a .clone() of the material is passed into the InstancedMesh, it works.</p>
<p dir="auto">Repro showing the issue... remove the .clone() operation to see instancing break.</p>
<p dir="auto"><a href="https://jsfiddle.net/4u1aox7j/" rel="nofollow">https://jsfiddle.net/4u1aox7j/</a></p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r117</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">I'm having a problem where the InstancedMesh method <code class="notranslate">setMatrixAt</code> seems to fail (the matrix positions doesn't change visually) whenever I add another object with the same material object (not a clone) in the scene. No log/warning/errors are emitted.</p>
<p dir="auto">The following briefly illustrates:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var geometry = new THREE.BoxBufferGeometry();
var material = new THREE.MeshStandardMaterial( { roughness: 0, envMap: texture });
var mesh1 = new THREE.Mesh( geometry, material );
mesh1.position.set(0, 1, 0);
scene.add( mesh1 ); // removing this line makes the instanced mesh work as intended
mesh = new THREE.InstancedMesh( geometry, material, 9 ); // same material usage
scene.add( mesh ); // This works and I can see both meshes in the scene.
var dummy = new THREE.Object3D();
dummy.position.set( 1, 5, 1 );
dummy.updateMatrix();
mesh.setMatrixAt( 0, dummy.matrix ); // Nope, doesn't work, it just stays where it's at.
mesh.setMatrixAt( 1, dummy.matrix ); // Rotation seems to be applied, but position doesn't.
// It looks like every instance is at the same place, but I don't know."><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">geometry</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BoxBufferGeometry</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">material</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshStandardMaterial</span><span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-c1">roughness</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">envMap</span>: <span class="pl-s1">texture</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">mesh1</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mesh1</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// removing this line makes the instanced mesh work as intended</span>
<span class="pl-s1">mesh</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">InstancedMesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span><span class="pl-kos">,</span> <span class="pl-c1">9</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// same material usage</span>
<span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// This works and I can see both meshes in the scene.</span>
<span class="pl-k">var</span> <span class="pl-s1">dummy</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Object3D</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-en">updateMatrix</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Nope, doesn't work, it just stays where it's at.</span>
<span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Rotation seems to be applied, but position doesn't.</span>
<span class="pl-c">// It looks like every instance is at the same place, but I don't know.</span></pre></div>
<p dir="auto">Note that if I use material.clone() at the instanced mesh declaration, the problem also goes away / is fixed, but now I have two materials, and I intend to have one for performance reasons.</p>
<p dir="auto">A live example is available here:</p>
<ul dir="auto">
<li><a href="https://jsfiddle.net/ghmrdk4z/4/" rel="nofollow">jsfiddle</a> (The problem is that you should see multiple boxes, but only 1 or 2 are visible, remove line 41 to fix)</li>
</ul>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r109</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r108</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">(Not applicable, as far as I know)</p> | 1 |
<p dir="auto">In continuing to try to get astropy's <code class="notranslate">Quantity</code> to behave with <code class="notranslate">__numpy_ufunc__</code>, I found what probably is another bug. One of our tests checks that an integer can be used as an <code class="notranslate">__index__</code> to, e.g., multiply a list, as in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
np.array([2]) * ['a', 'b']"><pre class="notranslate"><code class="notranslate">import numpy as np
np.array([2]) * ['a', 'b']
</code></pre></div>
<p dir="auto">(which yields <code class="notranslate">['a', 'b', 'a', 'b']</code>).</p>
<p dir="auto">But if I make a trivial class that implements <code class="notranslate">__numpy_ufunc__</code>, the <code class="notranslate">NotImplemented</code> does not seem to be passed on correctly:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class MyA(np.ndarray):
def __numpy_ufunc__(self, ufunc, method, i, inputs, **kwargs):
result = getattr(ufunc, method)(*((input.view(np.ndarray)
if isinstance(input, np.ndarray)
else input) for input in inputs),
**kwargs)
print("Got result={}".format(result))
return result
np.array([2]).view(MyA) * ['a', 'b']"><pre class="notranslate"><code class="notranslate">class MyA(np.ndarray):
def __numpy_ufunc__(self, ufunc, method, i, inputs, **kwargs):
result = getattr(ufunc, method)(*((input.view(np.ndarray)
if isinstance(input, np.ndarray)
else input) for input in inputs),
**kwargs)
print("Got result={}".format(result))
return result
np.array([2]).view(MyA) * ['a', 'b']
</code></pre></div>
<p dir="auto">yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Got result=NotImplemented
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-21-b1e259840c66> in <module>()
----> 1 np.array([2]).view(MyA) * ['a', 'b']
TypeError: __numpy_ufunc__ not implemented for this type."><pre class="notranslate"><code class="notranslate">Got result=NotImplemented
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-21-b1e259840c66> in <module>()
----> 1 np.array([2]).view(MyA) * ['a', 'b']
TypeError: __numpy_ufunc__ not implemented for this type.
</code></pre></div>
<p dir="auto">p.s. This may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36045125" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/4815" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/4815/hovercard" href="https://github.com/numpy/numpy/pull/4815">#4815</a></p> | <p dir="auto">There is a complex set of questions around how to handle method resolution in the presence of <code class="notranslate">__numpy_ufunc__</code>. Currently in master is an extremely complicated set of rules that isn't documented and that I don't actually understand (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66389458" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5748" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/5748/hovercard" href="https://github.com/numpy/numpy/pull/5748">#5748</a> for the latest set of changes to this), so it's kinda hard to know whether they are correct, but I suspect not. And this is a blocker for 1.10, b/c whatever we release in 1.10 will be set in stone forever.</p>
<p dir="auto">I strongly feel that we cannot include <code class="notranslate">__numpy_ufunc__</code> in a release without at least having a document somewhere describing what the actual dispatch rules are. I hope that doesn't mean we have to defer <code class="notranslate">__numpy_ufunc__</code> for another release, but if it does then it does.</p>
<p dir="auto">AFAICT this is how <code class="notranslate">a op b</code> dispatch works for ndarrays, BEFORE <code class="notranslate">__numpy_ufunc__</code> (i.e., this is how 1.9 works):</p>
<ul dir="auto">
<li>First Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. So in the case where one of these objects is a proper subclass of the other, that object always gets to do absolutely anything, so that's fine. The interesting cases are the ones where neither is a proper subclass of the other (either because it's like, <code class="notranslate">matrix + masked array</code>, or because it's like <code class="notranslate">ndarray + scipy.sparse</code>). So without loss of generality, let's focus on the case where Python calls <code class="notranslate">a.__op__(b)</code>, and <code class="notranslate">a</code> is either an instance of <code class="notranslate">ndarray</code> or else an instance of a subclass of <code class="notranslate">ndarray</code> which has not overridden <code class="notranslate">__op__</code>, i.e. we're getting <code class="notranslate">ndarray.__op__(a, b)</code>.</li>
<li><code class="notranslate">ndarray.__op__</code> has the following logic (see <code class="notranslate">PyArray_GenericBinaryFunction</code> in <code class="notranslate">number.c</code>):
<ul dir="auto">
<li>If <code class="notranslate">b</code> is not an <code class="notranslate">ndarray</code> at all (even a subclass), and <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, then we return <code class="notranslate">NotImplemented</code> and let control pass to <code class="notranslate">b.__rop__(a)</code>.</li>
<li>Otherwise, we call <code class="notranslate">np.op(a, b)</code> and let the ufunc machinery take over.</li>
</ul>
</li>
<li><code class="notranslate">np.op(a, b)</code> does the following (see <code class="notranslate">PyUFunc_GenericFunction</code>, <code class="notranslate">PyUFunc_GeneralizedFunction</code>, in <code class="notranslate">ufunc_object.c</code>, and also <code class="notranslate">ufunc_generic_call</code> which converts <code class="notranslate">-2</code> return values from the previous into <code class="notranslate">NotImplemented</code> so you have to audit their whole call stack):
<ul dir="auto">
<li>If <code class="notranslate">b</code> is not an <code class="notranslate">ndarray</code>, and calling <code class="notranslate">np.array(b)</code> returns an object array (presumably because coercion failed... though I guess this could also be hit if <code class="notranslate">b.__array__()</code> return an object array or something), AND <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, and <code class="notranslate">b</code> has an <code class="notranslate">__rop__</code> method, then return <code class="notranslate">NotImplemented</code>.</li>
<li>If any of our arrays contain structured dtypes or strings, and there are no special struct ufunc loops registered, but not if any of our arrays contain objects, then return <code class="notranslate">NotImplemented</code>. (This is buried in <code class="notranslate">get_ufunc_arguments</code>, search for <code class="notranslate">return -2</code>.)</li>
<li>Otherwise we return the actual ufunc result.</li>
</ul>
</li>
</ul>
<p dir="auto">Now, my suggestion is that the way we would EVENTUALLY like this to look is:</p>
<ul dir="auto">
<li>First, Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. As above, let's assume that it invokes <code class="notranslate">ndarray.__op__(a, b)</code>.</li>
<li><code class="notranslate">ndarray.__op__(a, b)</code> calls <code class="notranslate">np.op(a, b)</code> (which in turn invokes all the standard ufunc stuff, including <code class="notranslate">__numpy_ufunc__</code> resolution).</li>
<li>There is no step 3.</li>
</ul>
<p dir="auto">I submit that it is obvious that IF we can make this work, then it is obviously the ideal outcome, because it is the simplest possible solution. But is it too simple? To determine this we have to answer two questions: (1) Will it adequately address all the relevant use cases? (2) Can we get there from here?</p>
<p dir="auto">So let's compare the current rules to my dream rules.</p>
<p dir="auto">First, we observe that everything that currently happens inside the ufunc machinery looks like it's totally wrong. The first check can only be triggered if <code class="notranslate">b</code> is a non-<code class="notranslate">ndarray</code> that has a higher <code class="notranslate">__array_priority__</code> (among other things), but if we look above, we see that those conditions are sufficient to trigger the check in <code class="notranslate">ndarray.__op__</code>, so checking again at the ufunc level is redundant at best. And the second check is just incoherent nonsense AFAICT. The only reason to return <code class="notranslate">NotImplemented</code> is b/c you want to pass control to another <code class="notranslate">__(r)op__</code> method, and there's no reason arrays containing structured dtypes in particular should somehow magically have different <code class="notranslate">__(r)op__</code> methods available than other arrays. So we can just get rid of all the ufunc stuff immediately, great.</p>
<p dir="auto">That leaves the <code class="notranslate">__array_priority__</code> stuff. We have two problems here: we can't just drop this immediately b/c of backcompat issues, and we need to have some way to continue to support all the use cases that this currently supports. The first problem is just a matter of having a deprecation period. For the second, observe that a class which defines a <code class="notranslate">__numpy_ufunc__</code> method gets complete control over what any ufunc call does, so it has <em>almost</em> as much power as a class that currently sets <code class="notranslate">__array_priority__</code>. The only additional power that <code class="notranslate">__array_priority__</code> currently gives you is that it lets you distinguish between e.g. a call to <code class="notranslate">ndarray.__add(a, b)</code> versus a call to <code class="notranslate">np.add(a, b)</code>. So the only code that really loses out from my proposed change is code which wants <code class="notranslate">a + b</code> and <code class="notranslate">add(a, b)</code> to do different things.</p>
<p dir="auto">AFAIK in the entire history of numpy there is only one situation where this power has been used on purpose: the definition of matrix classes where <code class="notranslate">a * b</code> is matmul, but <code class="notranslate">np.multiply(a, b)</code> is elmul. And we've all agreed that such classes should be deprecated and eventually phased out (cite: PEP 465).</p>
<p dir="auto">So, I conclude that EVENTUALLY my dream rules should work great. The only problem is that we need some temporary compromises to get us from here to there. Therefore, I propose we use the following dispatch rules in numpy 1.10, with the goal of moving to my "dream rules" in some future version:</p>
<ul dir="auto">
<li>First, Python uses the subclass rule to decide whether to invoke <code class="notranslate">a.__op__(b)</code> or <code class="notranslate">b.__rop__(a)</code>. As above, let's assume that it invokes <code class="notranslate">ndarray.__op__(a, b)</code>.</li>
<li><code class="notranslate">ndarray.__op__(a, b)</code> does the following:
<ul dir="auto">
<li>If <code class="notranslate">b</code> <strong>does not define <code class="notranslate">__numpy_ufunc__</code> and</strong> is not an <code class="notranslate">ndarray</code> at all (even a subclass), and <code class="notranslate">b</code> has a higher <code class="notranslate">__array_priority__</code> than <code class="notranslate">a</code>, then we <strong>issue a deprecation warning and</strong> return <code class="notranslate">NotImplemented</code> and let control pass to <code class="notranslate">b.__rop__(a)</code>. (bolded parts are changes compared to the current behaviour)</li>
<li>If <code class="notranslate">__op__</code> is <code class="notranslate">__mul__</code> and <code class="notranslate">b->tp_class->tp_name.startswith("scipy.sparse.")</code>, then return <code class="notranslate">NotImplemented</code>. (This rule is necessary in addition to the above, because <code class="notranslate">scipy.sparse</code> has already made a release containing <code class="notranslate">__numpy_ufunc__</code> methods, so the exception above doesn't apply.)</li>
<li>Otherwise, we call <code class="notranslate">np.op(a, b)</code> and let the ufunc machinery take over.</li>
</ul>
</li>
</ul>
<p dir="auto">I believe that this is adequate to covers all practical use cases for the current dispatch machinery, and gives us a clean path to better dispatch machinery in the future.</p>
<p dir="auto">The main alternative proposal is Pauli's, which involves a very complicated check (I won't try to summarize here, see <a href="https://github.com/numpy/numpy/blob/eecb2e3c07f29c0ac991d364a846a2f8293a432a/numpy/core/src/multiarray/number.c#L103">this comment and following code</a>). The goal of that approach is to continue supporting classes where <code class="notranslate">a + b</code> and <code class="notranslate">add(a, b)</code> do different things. I don't think that keeping substantial additional complexity around indefinitely is worth it in order to support functionality that no-one has ever found a use for except in one very specific case (overriding <code class="notranslate">__mul__</code>), and where we generally agree that that one specific case should be phased out as possible.</p>
<p dir="auto">I would very much appreciate feedback from scipy.sparse and astropy in particular on whether the above covers all their concerns.</p>
<p dir="auto">(Partial) History: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36045125" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/4815" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/4815/hovercard" href="https://github.com/numpy/numpy/pull/4815">#4815</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66389458" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5748" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/5748/hovercard" href="https://github.com/numpy/numpy/pull/5748">#5748</a><br>
CC: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cowlicks/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cowlicks">@cowlicks</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhvk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhvk">@mhvk</a></p> | 1 |
<p dir="auto"><strong>Glide Version</strong>:<br>
glide_version = '4.7.1'</p>
<p dir="auto"><strong>Integration libraries</strong>:<br>
retrofit_version = '2.4.0'<br>
rxjava = '2.2.0'<br>
rxandroid = '2.0.2'</p>
<p dir="auto"><strong>Device/Android Version</strong>:<br>
all</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="only Glide.with(imageView.getContext()).load(url).into(imageView);"><pre class="notranslate"><span class="pl-smi">only</span> <span class="pl-s1">Glide</span>.<span class="pl-k">with</span>(<span class="pl-s1">imageView</span>.<span class="pl-en">getContext</span>()).<span class="pl-en">load</span>(<span class="pl-s1">url</span>).<span class="pl-en">into</span>(<span class="pl-s1">imageView</span>);</pre></div>
<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="val imageView = ImageView (this)
val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT)
imageView.layoutParams = params
ImageLoader.load(imageView, getRealUrl(it))
ll_detail_activity_detail.addView(imageView)"><pre class="notranslate">val imageView = ImageView (this)
val params = LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT)
imageView.layoutParams = params
ImageLoader.load(imageView, getRealUrl(it))
ll_detail_activity_detail.addView(imageView)</pre></div>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="09-13 16:51:12.801 15465-15465/com.zhiguan.rebate W/Glide: Load failed for https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg with size [1008x1920]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There were 2 causes:
java.io.FileNotFoundException(https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg)
java.io.FileNotFoundException(No content provider: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
There was 1 cause:
java.io.FileNotFoundException(https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetch failed
There was 1 cause:
java.io.FileNotFoundException(https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg
Cause (2 of 2): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class android.content.res.AssetFileDescriptor, LOCAL
There was 1 cause:
java.io.FileNotFoundException(No content provider: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.io.FileNotFoundException: No content provider: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg
09-13 16:51:12.802 15465-15465/com.zhiguan.rebate I/Glide: Root cause (1 of 2)
java.io.FileNotFoundException: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:250)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:106)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:59)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:99)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.startNextOrFail(MultiModelLoader.java:150)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.onLoadFailed(MultiModelLoader.java:144)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:65)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:99)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
09-13 16:51:12.803 15465-15465/com.zhiguan.rebate I/Glide: Root cause (2 of 2)
java.io.FileNotFoundException: No content provider: https://img.alicdn.com/imgextra/i4/2036357896/TB2GhVnwZtnpuFjSZFKXXalFFXa_!!2036357896.jpg
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1135)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:986)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:909)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherFailed(DecodeJob.java:397)
at com.bumptech.glide.load.engine.SourceGenerator.onLoadFailed(SourceGenerator.java:119)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.startNextOrFail(MultiModelLoader.java:153)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.onLoadFailed(MultiModelLoader.java:144)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:65)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:99)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.startNextOrFail(MultiModelLoader.java:150)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.onLoadFailed(MultiModelLoader.java:144)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:65)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:99)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:272)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)"><pre class="notranslate"><span class="pl-c1">09</span>-<span class="pl-c1">13</span> <span class="pl-c1">16</span><span class="pl-pds">:51</span><span class="pl-pds">:12</span><span class="pl-kos">.</span><span class="pl-c1">801</span> <span class="pl-c1">15465</span>-<span class="pl-c1">15465</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">zhiguan</span><span class="pl-kos">.</span><span class="pl-en">rebate</span> <span class="pl-c1">W</span>/<span class="pl-v">Glide</span>: <span class="pl-v">Load</span> <span class="pl-en">failed</span> <span class="pl-k">for</span> <span class="pl-en">https</span><span class="pl-pds">:/</span>/<span class="pl-en">img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span> <span class="pl-en">with</span> <span class="pl-en">size</span> <span class="pl-kos">[</span><span class="pl-c1">1008</span><span class="pl-en">x1920</span><span class="pl-kos">]</span>
<span class="pl-k">class</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-v">GlideException</span>: <span class="pl-v">Failed</span> <span class="pl-en">to</span> <span class="pl-en">load</span> <span class="pl-en">resource</span>
<span class="pl-v">There</span> <span class="pl-en">were</span> <span class="pl-c1">2</span> <span class="pl-pds">causes</span>:
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span><span class="pl-kos">(</span><span class="pl-pds">https</span>:<span class="pl-sr">//img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span><span class="pl-kos">)</span>
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span><span class="pl-kos">(</span><span class="pl-en">No</span> <span class="pl-en">content</span> <span class="pl-pds">provider</span>: <span class="pl-en">https</span>:/<span class="pl-sr">/img.alicdn.com/imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span><span class="pl-kos">)</span>
<span class="pl-en">call</span> <span class="pl-v">GlideException</span><span class="pl-c">#logRootCauses(String) for more detail</span>
<span class="pl-v">Cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">2</span><span class="pl-kos">)</span>: <span class="pl-k">class</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-v">GlideException</span>: <span class="pl-v">Fetching</span> <span class="pl-en">data</span> <span class="pl-en">failed</span><span class="pl-kos">,</span> <span class="pl-k">class</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">InputStream</span><span class="pl-kos">,</span> <span class="pl-c1">REMOTE</span>
<span class="pl-v">There</span> <span class="pl-en">was</span> <span class="pl-c1">1</span> <span class="pl-pds">cause</span>:
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span><span class="pl-kos">(</span><span class="pl-pds">https</span>:<span class="pl-sr">//img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span><span class="pl-kos">)</span>
<span class="pl-en">call</span> <span class="pl-v">GlideException</span><span class="pl-c">#logRootCauses(String) for more detail</span>
<span class="pl-v">Cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">1</span><span class="pl-kos">)</span>: <span class="pl-k">class</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-v">GlideException</span>: <span class="pl-v">Fetch</span> <span class="pl-en">failed</span>
<span class="pl-v">There</span> <span class="pl-en">was</span> <span class="pl-c1">1</span> <span class="pl-pds">cause</span>:
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span><span class="pl-kos">(</span><span class="pl-pds">https</span>:<span class="pl-sr">//img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span><span class="pl-kos">)</span>
<span class="pl-en">call</span> <span class="pl-v">GlideException</span><span class="pl-c">#logRootCauses(String) for more detail</span>
<span class="pl-v">Cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">1</span><span class="pl-kos">)</span>: <span class="pl-k">class</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span>: <span class="pl-pds">https</span><span class="pl-pds">:/</span>/<span class="pl-en">img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span>
<span class="pl-v">Cause</span> <span class="pl-kos">(</span><span class="pl-c1">2</span> <span class="pl-en">of</span> <span class="pl-c1">2</span><span class="pl-kos">)</span>: <span class="pl-k">class</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-v">GlideException</span>: <span class="pl-v">Fetching</span> <span class="pl-en">data</span> <span class="pl-en">failed</span><span class="pl-kos">,</span> <span class="pl-k">class</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">res</span><span class="pl-kos">.</span><span class="pl-en">AssetFileDescriptor</span><span class="pl-kos">,</span> <span class="pl-c1">LOCAL</span>
<span class="pl-v">There</span> <span class="pl-en">was</span> <span class="pl-c1">1</span> <span class="pl-pds">cause</span>:
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span><span class="pl-kos">(</span><span class="pl-en">No</span> <span class="pl-en">content</span> <span class="pl-pds">provider</span>: <span class="pl-en">https</span>:/<span class="pl-sr">/img.alicdn.com/imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span><span class="pl-kos">)</span>
<span class="pl-en">call</span> <span class="pl-v">GlideException</span><span class="pl-c">#logRootCauses(String) for more detail</span>
<span class="pl-v">Cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">1</span><span class="pl-kos">)</span>: <span class="pl-k">class</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-v">FileNotFoundException</span>: <span class="pl-v">No</span> <span class="pl-en">content</span> <span class="pl-pds">provider</span>: <span class="pl-pds">https</span><span class="pl-pds">:/</span>/<span class="pl-en">img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span>
<span class="pl-c1">09</span>-<span class="pl-c1">13</span> <span class="pl-c1">16</span><span class="pl-pds">:51</span><span class="pl-pds">:12</span><span class="pl-kos">.</span><span class="pl-c1">802</span> <span class="pl-c1">15465</span>-<span class="pl-c1">15465</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">zhiguan</span><span class="pl-kos">.</span><span class="pl-en">rebate</span> <span class="pl-c1">I</span>/<span class="pl-pds">Glide</span>: <span class="pl-v">Root</span> <span class="pl-en">cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">2</span><span class="pl-kos">)</span>
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span>: <span class="pl-pds">https</span><span class="pl-pds">:/</span>/<span class="pl-en">img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">okhttp</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">huc</span><span class="pl-kos">.</span><span class="pl-en">HttpURLConnectionImpl</span><span class="pl-kos">.</span><span class="pl-en">getInputStream</span><span class="pl-kos">(</span><span class="pl-v">HttpURLConnectionImpl</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:250</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">okhttp</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">huc</span><span class="pl-kos">.</span><span class="pl-en">DelegatingHttpsURLConnection</span><span class="pl-kos">.</span><span class="pl-en">getInputStream</span><span class="pl-kos">(</span><span class="pl-v">DelegatingHttpsURLConnection</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:210</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">okhttp</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">huc</span><span class="pl-kos">.</span><span class="pl-en">HttpsURLConnectionImpl</span><span class="pl-kos">.</span><span class="pl-en">getInputStream</span><span class="pl-kos">(</span><span class="pl-v">HttpsURLConnectionImpl</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadDataWithRedirects</span><span class="pl-kos">(</span><span class="pl-v">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:106</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:59</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:99</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">startNextOrFail</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:150</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:144</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:65</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:99</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">startNext</span><span class="pl-kos">(</span><span class="pl-v">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:62</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runGenerators</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:302</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runWrapped</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:272</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:233</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">runWorker</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1133</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span>$Worker<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:607</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">Thread</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">Thread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:761</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">executor</span><span class="pl-kos">.</span><span class="pl-en">GlideExecutor</span>$DefaultThreadFactory$1<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">GlideExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:446</span><span class="pl-kos">)</span>
<span class="pl-c1">09</span>-<span class="pl-c1">13</span> <span class="pl-c1">16</span><span class="pl-pds">:51</span><span class="pl-pds">:12</span><span class="pl-kos">.</span><span class="pl-c1">803</span> <span class="pl-c1">15465</span>-<span class="pl-c1">15465</span>/<span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">zhiguan</span><span class="pl-kos">.</span><span class="pl-en">rebate</span> <span class="pl-c1">I</span>/<span class="pl-pds">Glide</span>: <span class="pl-v">Root</span> <span class="pl-en">cause</span> <span class="pl-kos">(</span><span class="pl-c1">2</span> <span class="pl-en">of</span> <span class="pl-c1">2</span><span class="pl-kos">)</span>
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-v">FileNotFoundException</span>: <span class="pl-v">No</span> <span class="pl-en">content</span> <span class="pl-pds">provider</span>: <span class="pl-pds">https</span><span class="pl-pds">:/</span>/<span class="pl-en">img</span><span class="pl-kos">.</span><span class="pl-en">alicdn</span><span class="pl-kos">.</span><span class="pl-en">com</span>/<span class="pl-en">imgextra</span>/<span class="pl-en">i4</span>/<span class="pl-c1">2036357896</span>/<span class="pl-pds">TB2GhVnwZtnpuFjSZFKXXalFFXa_!</span>!<span class="pl-c1">2036357896</span><span class="pl-kos">.</span><span class="pl-en">jpg</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openTypedAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1135</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:986</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:909</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadResource</span><span class="pl-kos">(</span><span class="pl-v">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:22</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadResource</span><span class="pl-kos">(</span><span class="pl-v">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:13</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">LocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">LocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:44</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">startNext</span><span class="pl-kos">(</span><span class="pl-v">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:62</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runGenerators</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:302</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">onDataFetcherFailed</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:397</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:119</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">startNextOrFail</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:153</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:144</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:65</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:99</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">startNextOrFail</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:150</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:144</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">HttpUrlFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:65</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos">.</span><span class="pl-en">MultiModelLoader</span>$MultiFetcher<span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">MultiModelLoader</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:99</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">startNext</span><span class="pl-kos">(</span><span class="pl-v">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:62</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runGenerators</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:302</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runWrapped</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:272</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:233</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">runWorker</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1133</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span>$Worker<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:607</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">Thread</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">Thread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:761</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">executor</span><span class="pl-kos">.</span><span class="pl-en">GlideExecutor</span>$DefaultThreadFactory$1<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">GlideExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:446</span><span class="pl-kos">)</span></pre></div> | <p dir="auto">Glide 4.7 :<br>
public GifDrawable(Context context, GifDecoder gifDecoder, BitmapPool bitmapPool, Transformation frameTransformation, int targetFrameWidth, int targetFrameHeight, Bitmap firstFrame) {<br>
this(context, gifDecoder, frameTransformation, targetFrameWidth, targetFrameHeight, firstFrame);<br>
}</p>
<p dir="auto">public GifDrawable(Context context, GifDecoder gifDecoder, Transformation frameTransformation, int targetFrameWidth, int targetFrameHeight, Bitmap firstFrame) {<br>
this(new GifDrawable.GifState(new GifFrameLoader(Glide.get(context), gifDecoder, targetFrameWidth, targetFrameHeight, frameTransformation, firstFrame)));<br>
}</p>
<p dir="auto">GifDrawable:<br>
In these two Constructor,How to get GifDecoder without reflection ?<br>
Or,Do I have to use reflect if I want a callback for GIF play?</p> | 0 |
<p dir="auto">After the update, the new confirm, alert and prompt do not work properly.</p>
<p dir="auto">Platform: Windows 10 x 86_64</p>
<p dir="auto">I was able to reproduce the issue in another Windows machine.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let name = prompt("What's your name?");
let sure = confirm(`Is ${name} your real name?`);
if (sure) {
alert("OK, you are sure");
} else {
alert("Well, you are not sure!");
}"><pre class="notranslate"><code class="notranslate">let name = prompt("What's your name?");
let sure = confirm(`Is ${name} your real name?`);
if (sure) {
alert("OK, you are sure");
} else {
alert("Well, you are not sure!");
}
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/62385800/97415756-456dea80-190e-11eb-9386-63f7188e2cd0.PNG"><img src="https://user-images.githubusercontent.com/62385800/97415756-456dea80-190e-11eb-9386-63f7188e2cd0.PNG" alt="deno-issue" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Note: The example code from the release blog post do not work as well.</em></p> | <p dir="auto">to reproduce:</p>
<p dir="auto">Linux (WSL) | Windows</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28438021/97340972-761c3880-18aa-11eb-89d5-1a51d6ba1226.png"><img src="https://user-images.githubusercontent.com/28438021/97340972-761c3880-18aa-11eb-89d5-1a51d6ba1226.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">isn't limited to repl</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28438021/97341736-77019a00-18ab-11eb-980d-5ca55ae1b496.png"><img src="https://user-images.githubusercontent.com/28438021/97341736-77019a00-18ab-11eb-980d-5ca55ae1b496.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>Open legacy rails(1.2.3) project from ubuntu terminal with command "atom ."</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.165.0<br>
<strong>System</strong>: linux 3.13.0-43-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: spawn /usr/share/atom/atom (deleted) ENOENT</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /usr/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /usr/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"atom-rails",
"rails-snippets"
]
},
"editor": {
"fontSize": 21,
"showIndentGuide": true,
"softWrapAtPreferredLineLength": true,
"preferredLineLength": 140,
"softWrap": true,
"softTabs": false
}
}"><pre class="notranslate"><code class="notranslate">{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"atom-rails",
"rails-snippets"
]
},
"editor": {
"fontSize": 21,
"showIndentGuide": true,
"softWrapAtPreferredLineLength": true,
"preferredLineLength": 140,
"softWrap": true,
"softTabs": false
}
}
</code></pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
No installed packages
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
<span class="pl-en">No</span> <span class="pl-en">installed</span> packages
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto"><strong>TEMPORARY WORKAROUND</strong>: <code class="notranslate">ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"</code></p>
<p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.152.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">master <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/80e2fc202cb3fe24fd98d7c803808d25c195002d/hovercard" href="https://github.com/apache/shardingsphere/commit/80e2fc202cb3fe24fd98d7c803808d25c195002d"><tt>80e2fc2</tt></a></p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Create READWRITE_SPLITTING RULE and SHADOW RULE respectively with the same name, it should report duplicate data source</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE READWRITE_SPLITTING RULE duplicate_ds (
WRITE_STORAGE_UNIT=ds_0,
READ_STORAGE_UNITS(ds_1,ds_2),
TYPE(NAME="random")
);
CREATE SHADOW RULE duplicate_ds (
SOURCE=ds_0,
SHADOW=ds_1,
t_order(TYPE(NAME="SQL_HINT"))
);
"><pre class="notranslate">CREATE READWRITE_SPLITTING RULE duplicate_ds (
WRITE_STORAGE_UNIT<span class="pl-k">=</span>ds_0,
READ_STORAGE_UNITS(ds_1,ds_2),
TYPE(NAME<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>random<span class="pl-pds">"</span></span>)
);
CREATE SHADOW RULE duplicate_ds (
SOURCE<span class="pl-k">=</span>ds_0,
SHADOW<span class="pl-k">=</span>ds_1,
t_order(TYPE(NAME<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>SQL_HINT<span class="pl-pds">"</span></span>))
);
</pre></div>
<h3 dir="auto">Actual behavior</h3>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Query OK, 0 rows affected"><pre class="notranslate">Query OK, <span class="pl-c1">0</span> rows affected</pre></div>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">missing check</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto">i have raise this bug for twice, but the project owner close it twice.<br>
But it's not a duplicated and nonsensical issue, it's really a bug, please pay attention to the description as below.</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="select * from t_order where create_time between '2018-01-01 00:00:00' and '2018-01-02 00:00:00'"><pre class="notranslate"><span class="pl-k">select</span> <span class="pl-k">*</span> <span class="pl-k">from</span> t_order <span class="pl-k">where</span> create_time between <span class="pl-s"><span class="pl-pds">'</span>2018-01-01 00:00:00<span class="pl-pds">'</span></span> <span class="pl-k">and</span> <span class="pl-s"><span class="pl-pds">'</span>2018-01-02 00:00:00<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">SQL like above is not supported, we use create_time for RangeShardingAlgorithm<br>
and we always get the wrong RangeShardingValue ( we expected Range ['2018-01-01 00:00:00', '2018-01-02 00:00:00'] bu we received Range [-1, -1] ), the column type of create_time is datetime.</p>
<p dir="auto">in the OrConditionFilter.java line 206, there is a bug</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private com.google.common.base.Optional<SQLExpression> buildExpression(final SelectStatement selectStatement, final ExpressionSegment expressionSegment, final String sql,
final ShardingRule shardingRule, final ShardingTableMetaData shardingTableMetaData) {
if (!(expressionSegment instanceof CommonExpressionSegment)) {
new ExpressionFiller().fill(expressionSegment, selectStatement, sql, shardingRule, shardingTableMetaData);
return com.google.common.base.Optional.absent();
}
CommonExpressionSegment commonExpressionSegment = (CommonExpressionSegment) expressionSegment;
if (-1 < commonExpressionSegment.getIndex()) {
return com.google.common.base.Optional.<SQLExpression>of(new SQLPlaceholderExpression(commonExpressionSegment.getIndex()));
}
// it will always return SQLNumberExpression because there is a default value -1 for commonExpressionSegment.getValue()
if (null != commonExpressionSegment.getValue()) {
return com.google.common.base.Optional.<SQLExpression>of(new SQLNumberExpression(commonExpressionSegment.getValue()));
}
String expression = sql.substring(commonExpressionSegment.getStartPosition(), commonExpressionSegment.getEndPosition() + 1);
return Optional.<SQLExpression>of(new SQLTextExpression(expression));
}"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-smi">com</span>.<span class="pl-smi">google</span>.<span class="pl-smi">common</span>.<span class="pl-smi">base</span>.<span class="pl-smi">Optional</span><<span class="pl-smi">SQLExpression</span>> <span class="pl-s1">buildExpression</span>(<span class="pl-k">final</span> <span class="pl-smi">SelectStatement</span> <span class="pl-s1">selectStatement</span>, <span class="pl-k">final</span> <span class="pl-smi">ExpressionSegment</span> <span class="pl-s1">expressionSegment</span>, <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">sql</span>,
<span class="pl-k">final</span> <span class="pl-smi">ShardingRule</span> <span class="pl-s1">shardingRule</span>, <span class="pl-k">final</span> <span class="pl-smi">ShardingTableMetaData</span> <span class="pl-s1">shardingTableMetaData</span>) {
<span class="pl-k">if</span> (!(<span class="pl-s1">expressionSegment</span> <span class="pl-k">instanceof</span> <span class="pl-smi">CommonExpressionSegment</span>)) {
<span class="pl-k">new</span> <span class="pl-smi">ExpressionFiller</span>().<span class="pl-en">fill</span>(<span class="pl-s1">expressionSegment</span>, <span class="pl-s1">selectStatement</span>, <span class="pl-s1">sql</span>, <span class="pl-s1">shardingRule</span>, <span class="pl-s1">shardingTableMetaData</span>);
<span class="pl-k">return</span> <span class="pl-s1">com</span>.<span class="pl-s1">google</span>.<span class="pl-s1">common</span>.<span class="pl-s1">base</span>.<span class="pl-s1">Optional</span>.<span class="pl-en">absent</span>();
}
<span class="pl-smi">CommonExpressionSegment</span> <span class="pl-s1">commonExpressionSegment</span> = (<span class="pl-smi">CommonExpressionSegment</span>) <span class="pl-s1">expressionSegment</span>;
<span class="pl-k">if</span> (-<span class="pl-c1">1</span> < <span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getIndex</span>()) {
<span class="pl-k">return</span> <span class="pl-s1">com</span>.<span class="pl-s1">google</span>.<span class="pl-s1">common</span>.<span class="pl-s1">base</span>.<span class="pl-s1">Optional</span>.<<span class="pl-smi">SQLExpression</span>><span class="pl-en">of</span>(<span class="pl-k">new</span> <span class="pl-smi">SQLPlaceholderExpression</span>(<span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getIndex</span>()));
}
<span class="pl-c">// it will always return SQLNumberExpression because there is a default value -1 for commonExpressionSegment.getValue()</span>
<span class="pl-k">if</span> (<span class="pl-c1">null</span> != <span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getValue</span>()) {
<span class="pl-k">return</span> <span class="pl-s1">com</span>.<span class="pl-s1">google</span>.<span class="pl-s1">common</span>.<span class="pl-s1">base</span>.<span class="pl-s1">Optional</span>.<<span class="pl-smi">SQLExpression</span>><span class="pl-en">of</span>(<span class="pl-k">new</span> <span class="pl-smi">SQLNumberExpression</span>(<span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getValue</span>()));
}
<span class="pl-smi">String</span> <span class="pl-s1">expression</span> = <span class="pl-s1">sql</span>.<span class="pl-en">substring</span>(<span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getStartPosition</span>(), <span class="pl-s1">commonExpressionSegment</span>.<span class="pl-en">getEndPosition</span>() + <span class="pl-c1">1</span>);
<span class="pl-k">return</span> <span class="pl-smi">Optional</span>.<<span class="pl-smi">SQLExpression</span>><span class="pl-en">of</span>(<span class="pl-k">new</span> <span class="pl-smi">SQLTextExpression</span>(<span class="pl-s1">expression</span>));
}</pre></div>
<p dir="auto">the value field in CommonExpressionSegment has a default value -1. so it will be always consider as SQLNumberExpression.</p>
<p dir="auto">after i remove the default value -1 for field value in CommonExpressionSegment.java, it's ok.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public final class CommonExpressionSegment extends ExpressionWithAliasSegment
{
private final int startPosition;
private final int endPosition;
private int index = -1;
//remove the default value -1
private Number value;
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">final</span> <span class="pl-k">class</span> <span class="pl-smi">CommonExpressionSegment</span> <span class="pl-k">extends</span> <span class="pl-smi">ExpressionWithAliasSegment</span>
{
<span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">startPosition</span>;
<span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">endPosition</span>;
<span class="pl-k">private</span> <span class="pl-smi">int</span> <span class="pl-s1">index</span> = -<span class="pl-c1">1</span>;
<span class="pl-c">//remove the default value -1</span>
<span class="pl-k">private</span> <span class="pl-smi">Number</span> <span class="pl-s1">value</span>;
}</pre></div>
<p dir="auto">but the range value keep the single quote for the string like this:<br>
['2018-01-01 00:00:00', '2018-01-01 23:59:59']<br>
lowerEndpoint: '2018-01-01 00:00:00' upperEndpoint: '2018-01-01 23:59:59'<br>
and what we expected is like this:<br>
[2018-01-01 00:00:00, 2018-01-01 23:59:59]<br>
lowerEndpoint: 2018-01-01 00:00:00 upperEndpoint: 2018-01-01 23:59:59</p>
<p dir="auto">the source code for RangeShardingAlgorithm is like this:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public Collection<String> doSharding(Collection<String> availableTargetNames, RangeShardingValue<String> value)"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">Collection</span><<span class="pl-smi">String</span>> <span class="pl-s1">doSharding</span>(<span class="pl-smi">Collection</span><<span class="pl-smi">String</span>> <span class="pl-s1">availableTargetNames</span>, <span class="pl-smi">RangeShardingValue</span><<span class="pl-smi">String</span>> <span class="pl-s1">value</span>)</pre></div>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">3.1.0</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">supported</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">not supported</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">as mentioned above</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">as mentioned above</p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">as mentioned above</p> | 0 |
<p dir="auto">These volumes don't support stats metrics, and yet the errors got printed out periodically for each pod.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0614 17:01:54.337456 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod kube-proxy-e2e-test-yjhong-minion-group-21rr_kube-system(b7c4ad73450e2cf13c9cb849231754c2) volume kubeconfig: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337464 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod kube-proxy-e2e-test-yjhong-minion-group-21rr_kube-system(b7c4ad73450e2cf13c9cb849231754c2) volume varlog: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337544 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod e2e-image-puller-e2e-test-yjhong-minion-group-21rr_kube-system(0d136a4468db307b8063df140402a70e) volume socket: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337563 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod e2e-image-puller-e2e-test-yjhong-minion-group-21rr_kube-system(0d136a4468db307b8063df140402a70e) volume docker: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337591 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod node-problem-detector-v0.1-oa8xn_kube-system(b9edf393-3187-11e6-8f11-42010af00002) volume log: metrics are not supported for MetricsNil Volumes"><pre class="notranslate"><code class="notranslate">I0614 17:01:54.337456 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod kube-proxy-e2e-test-yjhong-minion-group-21rr_kube-system(b7c4ad73450e2cf13c9cb849231754c2) volume kubeconfig: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337464 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod kube-proxy-e2e-test-yjhong-minion-group-21rr_kube-system(b7c4ad73450e2cf13c9cb849231754c2) volume varlog: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337544 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod e2e-image-puller-e2e-test-yjhong-minion-group-21rr_kube-system(0d136a4468db307b8063df140402a70e) volume socket: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337563 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod e2e-image-puller-e2e-test-yjhong-minion-group-21rr_kube-system(0d136a4468db307b8063df140402a70e) volume docker: metrics are not supported for MetricsNil Volumes
I0614 17:01:54.337591 30118 volume_stat_caculator.go:103] Failed to calculate volume metrics for pod node-problem-detector-v0.1-oa8xn_kube-system(b9edf393-3187-11e6-8f11-42010af00002) volume log: metrics are not supported for MetricsNil Volumes
</code></pre></div> | <p dir="auto">Many volumes do not support GetMetrics and return an error when called. Because this returns an error, we cannot differentiate from an actual error condition when a volume that does support metrics fails to gather metrics. The latter should be logged and investigated, whereas the former should be silently ignored.</p> | 1 |
<p dir="auto">Trying to create an FTP Extension but I need a way to be able to view the contents on the FTP server. A side bar panel would be great or at least the have access to the folder panel to create a virtual tree for the user to use for navigation.</p> | <p dir="auto">One great feature that could be added to VsCode is the possibility to add more "tabs" in the letf area like the Git and the Debug one.</p>
<p dir="auto">This way one developer can add other things like Sql server browser, github issues and more<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1300681/11424016/cb99b700-9449-11e5-9997-a2929316e825.PNG"><img src="https://cloud.githubusercontent.com/assets/1300681/11424016/cb99b700-9449-11e5-9997-a2929316e825.PNG" alt="vscode" style="max-width: 100%;"></a></p>
<p dir="auto">If somebody already has an idea to where to add these extension pointe I will be glad to help.</p> | 1 |
<p dir="auto">rustdoc panic in certain combinations of inline code blocks, list items and headlines :</p>
<p dir="auto">this works :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//! - `test`"><pre class="notranslate"><code class="notranslate">//! - `test`
</code></pre></div>
<p dir="auto">this works too :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//! # Overview
//! - `test`"><pre class="notranslate"><code class="notranslate">//! # Overview
//! - `test`
</code></pre></div>
<p dir="auto">But this fails :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//! # Overview
//!
//! - ` test`"><pre class="notranslate"><code class="notranslate">//! # Overview
//!
//! - ` test`
</code></pre></div>
<p dir="auto">with the following error :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<stdin>:1:3: 1:4 error: unknown start of token: `
<stdin>:1 - `test`
^
thread '<unnamed>' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/parse/lexer/mod.rs:184
thread '<main>' panicked at 'called `Result::unwrap()` on an "><pre class="notranslate"><code class="notranslate"><stdin>:1:3: 1:4 error: unknown start of token: `
<stdin>:1 - `test`
^
thread '<unnamed>' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/parse/lexer/mod.rs:184
thread '<main>' panicked at 'called `Result::unwrap()` on an
</code></pre></div>
<p dir="auto">backtrace :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace:
1: 0x7f6c23a25939 - sys::backtrace::write::h479a8ad00fbfddd90Us
2: 0x7f6c23a2d918 - panicking::on_panic::h5028078e4ae51e97fix
3: 0x7f6c239eb682 - rt::unwind::begin_unwind_inner::hd4dec672e7375653pXw
4: 0x7f6c213625ed - rt::unwind::begin_unwind::h389727515196150120
5: 0x7f6c2141c445 - parse::lexer::StringReader<'a>::fatal_span::h6f198e45ef7825caMIN
6: 0x7f6c2141eefd - parse::lexer::StringReader<'a>::fatal_span_char::h50230fe90eafded9oKN
7: 0x7f6c21419493 - parse::lexer::StringReader<'a>::advance_token::hb4cd73d83e85192bmNN
8: 0x7f6c21417d7e - parse::lexer::StringReader<'a>.Reader::next_token::hce70e69372b967c1cCN
9: 0x7f6c2401c802 - html::highlight::highlight::h4de69d3743a51126aVj
10: 0x7f6c24032b66 - html::markdown::render::block::h82612f4123cd4429Bmm
11: 0x7f6c2416db3d - parse_block
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:1745
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:2400
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:2354
12: 0x7f6c2416fe56 - hoedown_document_render
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c
:2802
13: 0x7f6c24031a5d - html::markdown::render::h54451570ba64cddalmm
14: 0x7f6c2403a030 - html::markdown::Markdown<'a>.fmt..Display::fmt::h14a6a1448f1ca5719Pm
15: 0x7f6c23a922b0 - fmt::write::h725b13cc543cb1131FN
16: 0x7f6c23a8c851 - fmt::Formatter<'a>::write_fmt::h89b7141692180be4tWN
17: 0x7f6c24076478 - html::render::document::hb92e21fb1283eb402cp
18: 0x7f6c24071594 - html::render::Item<'a>.fmt..Display::fmt::h624519293bd64316jVo
19: 0x7f6c23a92211 - fmt::write::h725b13cc543cb1131FN
20: 0x7f6c2405ed96 - io::Write::write_fmt::h2029946465966684158
21: 0x7f6c2406dc61 - html::render::Context::item::render::h3c786309288297a9qwo
22: 0x7f6c24068ae1 - html::render::Context::recurse::h7309834789769284986
23: 0x7f6c24045a23 - html::render::run::h1fc72b998f61687bvan
24: 0x7f6c240c9035 - main_args::h7ab54dee6157b3a5fPt
25: 0x7f6c240c49f0 - boxed::F.FnBox<A>::call_box::h6206483487655731891
26: 0x7f6c240c39f9 - rt::unwind::try::try_fn::h14506545780071665698
27: 0x7f6c23aa4e78 - rust_try_inner
28: 0x7f6c23aa4e65 - rust_try
29: 0x7f6c240c3cc5 - boxed::F.FnBox<A>::call_box::h1066950650817129193
30: 0x7f6c23a2c4e1 - sys::thread::create::thread_start::h09b6c8d6cadbe2b5wgw
31: 0x7f6c1de71373 - start_thread
32: 0x7f6c2367427c - clone
33: 0x0 - <unknown>
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Any', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:750
stack backtrace:
1: 0x7f6c23a25939 - sys::backtrace::write::h479a8ad00fbfddd90Us
2: 0x7f6c23a2d918 - panicking::on_panic::h5028078e4ae51e97fix
3: 0x7f6c239eb682 - rt::unwind::begin_unwind_inner::hd4dec672e7375653pXw
4: 0x7f6c239eb94c - rt::unwind::begin_unwind_fmt::he10562f3655cff5f3Vw
5: 0x7f6c23a2d1d6 - rust_begin_unwind
6: 0x7f6c23a7ed94 - panicking::panic_fmt::h0077c224f0419f55USC
7: 0x7f6c240c3605 - main::hfe0e2a1069fe72452Kt
8: 0x7f6c23aa4e78 - rust_try_inner
9: 0x7f6c23aa4e65 - rust_try
10: 0x7f6c23a2f13b - rt::lang_start::h67a4b8e9e9c38485Kcx
11: 0x7f6c235ac7ff - __libc_start_main
12: 0x7f6c24746738 - <unknown>"><pre class="notranslate"><code class="notranslate">stack backtrace:
1: 0x7f6c23a25939 - sys::backtrace::write::h479a8ad00fbfddd90Us
2: 0x7f6c23a2d918 - panicking::on_panic::h5028078e4ae51e97fix
3: 0x7f6c239eb682 - rt::unwind::begin_unwind_inner::hd4dec672e7375653pXw
4: 0x7f6c213625ed - rt::unwind::begin_unwind::h389727515196150120
5: 0x7f6c2141c445 - parse::lexer::StringReader<'a>::fatal_span::h6f198e45ef7825caMIN
6: 0x7f6c2141eefd - parse::lexer::StringReader<'a>::fatal_span_char::h50230fe90eafded9oKN
7: 0x7f6c21419493 - parse::lexer::StringReader<'a>::advance_token::hb4cd73d83e85192bmNN
8: 0x7f6c21417d7e - parse::lexer::StringReader<'a>.Reader::next_token::hce70e69372b967c1cCN
9: 0x7f6c2401c802 - html::highlight::highlight::h4de69d3743a51126aVj
10: 0x7f6c24032b66 - html::markdown::render::block::h82612f4123cd4429Bmm
11: 0x7f6c2416db3d - parse_block
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:1745
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:2400
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c:2354
12: 0x7f6c2416fe56 - hoedown_document_render
at /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/rt/hoedown/src/document.c
:2802
13: 0x7f6c24031a5d - html::markdown::render::h54451570ba64cddalmm
14: 0x7f6c2403a030 - html::markdown::Markdown<'a>.fmt..Display::fmt::h14a6a1448f1ca5719Pm
15: 0x7f6c23a922b0 - fmt::write::h725b13cc543cb1131FN
16: 0x7f6c23a8c851 - fmt::Formatter<'a>::write_fmt::h89b7141692180be4tWN
17: 0x7f6c24076478 - html::render::document::hb92e21fb1283eb402cp
18: 0x7f6c24071594 - html::render::Item<'a>.fmt..Display::fmt::h624519293bd64316jVo
19: 0x7f6c23a92211 - fmt::write::h725b13cc543cb1131FN
20: 0x7f6c2405ed96 - io::Write::write_fmt::h2029946465966684158
21: 0x7f6c2406dc61 - html::render::Context::item::render::h3c786309288297a9qwo
22: 0x7f6c24068ae1 - html::render::Context::recurse::h7309834789769284986
23: 0x7f6c24045a23 - html::render::run::h1fc72b998f61687bvan
24: 0x7f6c240c9035 - main_args::h7ab54dee6157b3a5fPt
25: 0x7f6c240c49f0 - boxed::F.FnBox<A>::call_box::h6206483487655731891
26: 0x7f6c240c39f9 - rt::unwind::try::try_fn::h14506545780071665698
27: 0x7f6c23aa4e78 - rust_try_inner
28: 0x7f6c23aa4e65 - rust_try
29: 0x7f6c240c3cc5 - boxed::F.FnBox<A>::call_box::h1066950650817129193
30: 0x7f6c23a2c4e1 - sys::thread::create::thread_start::h09b6c8d6cadbe2b5wgw
31: 0x7f6c1de71373 - start_thread
32: 0x7f6c2367427c - clone
33: 0x0 - <unknown>
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Any', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:750
stack backtrace:
1: 0x7f6c23a25939 - sys::backtrace::write::h479a8ad00fbfddd90Us
2: 0x7f6c23a2d918 - panicking::on_panic::h5028078e4ae51e97fix
3: 0x7f6c239eb682 - rt::unwind::begin_unwind_inner::hd4dec672e7375653pXw
4: 0x7f6c239eb94c - rt::unwind::begin_unwind_fmt::he10562f3655cff5f3Vw
5: 0x7f6c23a2d1d6 - rust_begin_unwind
6: 0x7f6c23a7ed94 - panicking::panic_fmt::h0077c224f0419f55USC
7: 0x7f6c240c3605 - main::hfe0e2a1069fe72452Kt
8: 0x7f6c23aa4e78 - rust_try_inner
9: 0x7f6c23aa4e65 - rust_try
10: 0x7f6c23a2f13b - rt::lang_start::h67a4b8e9e9c38485Kcx
11: 0x7f6c235ac7ff - __libc_start_main
12: 0x7f6c24746738 - <unknown>
</code></pre></div>
<p dir="auto">on <code class="notranslate">rustdoc 1.0.0-nightly (a52182ffd 2015-04-17) (built 2015-04-17)</code>, running on linux</p> | <p dir="auto">When I run <code class="notranslate">make check</code> today (at commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/e72c917f7120eef8f7b2e18537a8b9589fb21b10/hovercard" href="https://github.com/rust-lang/rust/commit/e72c917f7120eef8f7b2e18537a8b9589fb21b10"><tt>e72c917</tt></a>), I hit the following assertion failure with 100% reproducibility. This is a recent regression because I ran <code class="notranslate">make check</code> successfully yesterday (perhaps at commit bffe308).</p>
<p dir="auto">test private::at_exit::test_at_exit ... Assertion failed: (runner == at_exit_runner && "there can be only one at_exit_runner"), function register_exit_function, file /Users/chris/Code/mozilla/rust/cpeterso/src/rt/rust_kernel.cpp, line 368.</p> | 0 |
<p dir="auto">This has lost so much work in the las few days. I can't find a pattern: it happens in different file types and there doesn't appear to be any trigger, other than Undo.</p>
<p dir="auto">I hit (Cmd-Z, with the keyboard), and occasionally and randomly it takes the file back to some previous state, but it's clearly NOT the last saved state. I believe it's the originally opened state.</p>
<p dir="auto">If I'm not watching close, it'll happen and I miss it, then continue editing.</p>
<p dir="auto">It leaves the file marked as "dirty", so saving after this happens will overwrite any changes since the state it restored it to, which in one case was a few days ago, so saving often does not help.</p>
<p dir="auto">Version 0.120.0 on OS X Mavericks.</p> | <p dir="auto">The default keyboard mapping for <code class="notranslate">editor:checkout-head-revision</code> is <kbd>Cmd+Alt+Z</kbd> or <kbd>Ctrl+Alt+Z</kbd> on Windows/Linux. This is pretty easy to fat-finger and there is no confirmation dialog. Also, the Redo command doesn't restore what was lost ... but Undo does ... which is confusing when this command is accidentally triggered.</p>
<p dir="auto">We should probably display a confirmation dialog for this command to be certain it is what the user wants and since data loss (or perceived data loss) can result.</p>
<p dir="auto">See Discuss topics:</p>
<ul dir="auto">
<li><a href="https://discuss.atom.io/t/sometimes-s-or-z-does-buu-buu/11186?u=leedohm" rel="nofollow">https://discuss.atom.io/t/sometimes-s-or-z-does-buu-buu/11186?u=leedohm</a></li>
<li><a href="https://discuss.atom.io/t/a-seriously-nasty-problem/11286" rel="nofollow">https://discuss.atom.io/t/a-seriously-nasty-problem/11286</a></li>
<li><a href="https://discuss.atom.io/t/undo-redo-broken/10658" rel="nofollow">https://discuss.atom.io/t/undo-redo-broken/10658</a></li>
<li><a href="https://discuss.atom.io/t/undo-defect-undo-make-my-file-back-to-status-when-i-open-it/10512" rel="nofollow">https://discuss.atom.io/t/undo-defect-undo-make-my-file-back-to-status-when-i-open-it/10512</a></li>
</ul> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.36.1]</li>
<li>Operating System: [Linux 6.4.2-3-MANJARO]</li>
<li>Browser: [All]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/deepanchal/playwright-auth-setup-tests-bug">[https://github.com/deepanchal/playwright-auth-setup-tests-bug]</a></p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Clone the <a href="https://github.com/deepanchal/playwright-auth-setup-tests-bug">repo</a></li>
<li><code class="notranslate">cd playwright-auth-setup-tests-bug</code></li>
<li><code class="notranslate">npm install</code></li>
<li><code class="notranslate">npx playwright install</code></li>
<li><code class="notranslate">npm run test:e2e</code> - Runs <code class="notranslate">playwright test</code> - Everything passes in headless mode</li>
<li><code class="notranslate">npm run test:e2e:headed</code> - Runs <code class="notranslate">playwright test --headed</code> - Browser opens and then crashes when running auth setup tests and skips all other tests</li>
</ul>
<p dir="auto"><strong>Logs</strong></p>
<p dir="auto">Output from <code class="notranslate">DEBUG='pw:api,pw:browser*' pnpm test:e2e:headed</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running 4 tests using 2 workers
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api => selectors.setTestIdAttribute started +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api => selectors.setTestIdAttribute started +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api => browserType.launch started +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api => browserType.launch started +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api <= selectors.setTestIdAttribute succeeded +6ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api <= selectors.setTestIdAttribute succeeded +6ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser <launching> /home/deep/.cache/ms-playwright/chromium-1071/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-5I2MQ2 --remote-debugging-pipe --no-startup-window +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser <launching> /home/deep/.cache/ms-playwright/chromium-1071/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-G9J9QP --remote-debugging-pipe --no-startup-window +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser <launched> pid=794121 +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser <launched> pid=794122 +3ms
pw:browser [pid=794122][err] Gtk-Message: 14:09:41.482: Failed to load module "appmenu-gtk-module" +96ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] Gtk-Message: 14:09:41.482: Failed to load module "appmenu-gtk-module" +97ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] [794122:794122:0718/140941.552875:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled. +70ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] [794121:794121:0718/140941.579003:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled. +96ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api <= browserType.launch succeeded +272ms
pw:api => browser.newContext started +4ms
pw:api <= browser.newContext succeeded +11ms
pw:api => browserContext.newPage started +6ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api <= browserType.launch succeeded +295ms
pw:api => browser.newContext started +4ms
pw:api <= browser.newContext succeeded +8ms
pw:api => browserContext.newPage started +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] [0718/140941.651295:ERROR:elf_dynamic_array_reader.h(64)] tag not found +98ms
pw:browser [pid=794122][err] [0718/140941.651647:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794122][err] [0718/140941.651706:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794122][err] [0718/140941.653636:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) +2ms
pw:browser [pid=794122][err] [0718/140941.653652:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2) +0ms
pw:browser [pid=794122][err] Received signal 11 SEGV_MAPERR 000000000148 +5ms
pw:browser [pid=794122][err] #0 0x55d34825d302 base::debug::CollectStackTrace() +5ms
pw:browser [pid=794122][err] #1 0x55d34824a753 base::debug::StackTrace::StackTrace() +4ms
pw:browser [pid=794122][err] #2 0x55d34825cd91 base::debug::(anonymous namespace)::StackDumpSignalHandler() +3ms
pw:browser [pid=794122][err] #3 0x7f3c5b4bfab0 (/usr/lib/libc.so.6+0x39aaf) +1ms
pw:browser [pid=794122][err] #4 0x55d343fc9670 base::ObserverList<>::AddObserver() +0ms
pw:browser [pid=794122][err] #5 0x55d34da99375 AvatarMenu::AvatarMenu() +14ms
pw:browser [pid=794122][err] #6 0x55d34da95dff DbusAppmenu::Initialize() +12ms
pw:browser [pid=794122][err] #7 0x55d34da98296 DbusAppmenuRegistrar::InitializeMenu() +10ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] [0718/140941.708612:ERROR:elf_dynamic_array_reader.h(64)] tag not found +129ms
pw:browser [pid=794121][err] [0718/140941.709143:ERROR:elf_dynamic_array_reader.h(64)] tag not found +1ms
pw:browser [pid=794121][err] [0718/140941.709227:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794121][err] [0718/140941.711820:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) +2ms
pw:browser [pid=794121][err] [0718/140941.711844:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2) +1ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #8 0x55d34da98aa3 DbusAppmenuRegistrar::OnNameOwnerChanged() +9ms
pw:browser [pid=794122][err] #9 0x55d343fbc4f1 base::internal::Invoker<>::Run() +0ms
pw:browser [pid=794122][err] #10 0x55d3447b0911 base::internal::Invoker<>::RunOnce() +1ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] Received signal 11 SEGV_MAPERR 000000000148 +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #11 0x55d3481ed1c4 base::TaskAnnotator::RunTaskImpl() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #0 0x55b529df1302 base::debug::CollectStackTrace() +6ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #12 0x55d34820752f base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #1 0x55b529dde753 base::debug::StackTrace::StackTrace() +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #13 0x55d348206fa9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #2 0x55b529df0d91 base::debug::(anonymous namespace)::StackDumpSignalHandler() +4ms
pw:browser [pid=794121][err] #3 0x7fe52acf1ab0 (/usr/lib/libc.so.6+0x39aaf) +0ms
pw:browser [pid=794121][err] #4 0x55b525b5d670 base::ObserverList<>::AddObserver() +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #14 0x55d348207a05 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
pw:browser [pid=794122][err] #15 0x55d348270e14 base::MessagePumpGlib::Run() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #5 0x55b52f62d375 AvatarMenu::AvatarMenu() +10ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #16 0x55d348207d79 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() +6ms
pw:browser [pid=794122][err] #17 0x55d3481cde66 base::RunLoop::Run() +5ms
pw:browser [pid=794122][err] #18 0x55d3461b0fa3 content::BrowserMainLoop::RunMainMessageLoop() +2ms
pw:browser [pid=794122][err] #19 0x55d3461b2aa2 content::BrowserMainRunnerImpl::Run() +2ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #6 0x55b52f629dff DbusAppmenu::Initialize() +12ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #20 0x55d3461ae616 content::BrowserMain() +2ms
pw:browser [pid=794122][err] #21 0x55d347653088 content::RunBrowserProcessMain() +3ms
pw:browser [pid=794122][err] #22 0x55d3476549e4 content::ContentMainRunnerImpl::RunBrowser() +3ms
pw:browser [pid=794122][err] #23 0x55d3476547d6 content::ContentMainRunnerImpl::Run() +3ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #7 0x55b52f62c296 DbusAppmenuRegistrar::InitializeMenu() +11ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #24 0x55d347651d90 content::RunContentProcess() +4ms
pw:browser [pid=794122][err] #25 0x55d347651fbd content::ContentMain() +3ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #8 0x55b52f62caa3 DbusAppmenuRegistrar::OnNameOwnerChanged() +13ms
pw:browser [pid=794121][err] #9 0x55b525b504f1 base::internal::Invoker<>::Run() +0ms
pw:browser [pid=794121][err] #10 0x55b526344911 base::internal::Invoker<>::RunOnce() +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #26 0x55d343e1a309 ChromeMain +11ms
pw:browser [pid=794122][err] #27 0x7f3c5b4a9850 (/usr/lib/libc.so.6+0x2384f) +1ms
pw:browser [pid=794122][err] #28 0x7f3c5b4a990a __libc_start_main +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #11 0x55b529d811c4 base::TaskAnnotator::RunTaskImpl() +6ms
pw:browser [pid=794121][err] #12 0x55b529d9b52f base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() +5ms
pw:browser [pid=794121][err] #13 0x55b529d9afa9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #29 0x55d343e1a02a _start +11ms
pw:browser [pid=794122][err] r8: 0000000000000002 r9: 0000000000000000 r10: 000055d34ec43b80 r11: 0000000000000040 +0ms
pw:browser [pid=794122][err] r12: 000055d34eb8a000 r13: 00003a4800f32d40 r14: 00003a4800f32d00 r15: 00003a4800f32d18 +0ms
pw:browser [pid=794122][err] di: 0000000000000148 si: 00003a4800f32d00 bp: 00007ffe29b90130 bx: 0000000000000148 +0ms
pw:browser [pid=794122][err] dx: 000055d341f38b20 ax: 0000000000000000 cx: 000000004e593401 sp: 00007ffe29b900e0 +0ms
pw:browser [pid=794122][err] ip: 000055d343fc9670 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 +0ms
pw:browser [pid=794122][err] trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000148 +0ms
pw:browser [pid=794122][err] [end of stack trace] +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #14 0x55b529d9ba05 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +5ms
pw:browser [pid=794121][err] #15 0x55b529e04e14 base::MessagePumpGlib::Run() +4ms
pw:browser [pid=794121][err] #16 0x55b529d9bd79 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() +4ms
pw:browser [pid=794121][err] #17 0x55b529d61e66 base::RunLoop::Run() +4ms
pw:browser [pid=794121][err] #18 0x55b527d44fa3 content::BrowserMainLoop::RunMainMessageLoop() +2ms
pw:browser [pid=794121][err] #19 0x55b527d46aa2 content::BrowserMainRunnerImpl::Run() +2ms
pw:browser [pid=794121][err] #20 0x55b527d42616 content::BrowserMain() +2ms
pw:browser [pid=794121][err] #21 0x55b5291e7088 content::RunBrowserProcessMain() +3ms
pw:browser [pid=794121][err] #22 0x55b5291e89e4 content::ContentMainRunnerImpl::RunBrowser() +3ms
pw:browser [pid=794121][err] #23 0x55b5291e87d6 content::ContentMainRunnerImpl::Run() +3ms
pw:browser [pid=794121][err] #24 0x55b5291e5d90 content::RunContentProcess() +4ms
pw:browser [pid=794121][err] #25 0x55b5291e5fbd content::ContentMain() +3ms
pw:browser [pid=794121][err] #26 0x55b5259ae309 ChromeMain +10ms
pw:browser [pid=794121][err] #27 0x7fe52acdb850 (/usr/lib/libc.so.6+0x2384f) +0ms
pw:browser [pid=794121][err] #28 0x7fe52acdb90a __libc_start_main +0ms
pw:browser [pid=794121][err] #29 0x55b5259ae02a _start +10ms
pw:browser [pid=794121][err] r8: 0000000000000002 r9: 0000000000000000 r10: 000055b5307d7b80 r11: 00007fe529b6e988 +0ms
pw:browser [pid=794121][err] r12: 000055b53071e000 r13: 000007fc00f4e200 r14: 000007fc00f4e1c0 r15: 000007fc00f4e1d8 +0ms
pw:browser [pid=794121][err] di: 0000000000000148 si: 000007fc00f4e1c0 bp: 00007ffc13df7700 bx: 0000000000000148 +0ms
pw:browser [pid=794121][err] dx: 000055b523accb20 ax: 0000000000000000 cx: 0000000030127401 sp: 00007ffc13df76b0 +0ms
pw:browser [pid=794121][err] ip: 000055b525b5d670 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 +0ms
pw:browser [pid=794121][err] trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000148 +1ms
pw:browser [pid=794121][err] [end of stack trace] +0ms
pw:browser [pid=794121][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) +41ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) +103ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121] <process did exit: exitCode=null, signal=SIGSEGV> +465ms
pw:browser [pid=794121] starting temporary directories cleanup +0ms
pw:api <= browserContext.newPage failed +737ms
1) [setup] › auth.setup.ts:10:6 › authenticate as admin ──────────────────
Error: Page closed
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122] <process did exit: exitCode=null, signal=SIGSEGV> +489ms
pw:browser [pid=794122] starting temporary directories cleanup +0ms
pw:api <= browserContext.newPage failed +781ms
2) [setup] › auth.setup.ts:3:6 › authenticate as user ────────────────────────────────────────────
Error: Page closed
2 failed
[setup] › auth.setup.ts:3:6 › authenticate as user ─────────────────────────────────────────────
[setup] › auth.setup.ts:10:6 › authenticate as admin ───────────────────────────────────────────
2 skipped
To open last HTML report run:
npx playwright show-report
ELIFECYCLE Command failed with exit code 1."><pre lang="log" class="notranslate"><code class="notranslate">Running 4 tests using 2 workers
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api => selectors.setTestIdAttribute started +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api => selectors.setTestIdAttribute started +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api => browserType.launch started +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api => browserType.launch started +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api <= selectors.setTestIdAttribute succeeded +6ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api <= selectors.setTestIdAttribute succeeded +6ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser <launching> /home/deep/.cache/ms-playwright/chromium-1071/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-5I2MQ2 --remote-debugging-pipe --no-startup-window +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser <launching> /home/deep/.cache/ms-playwright/chromium-1071/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-G9J9QP --remote-debugging-pipe --no-startup-window +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser <launched> pid=794121 +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser <launched> pid=794122 +3ms
pw:browser [pid=794122][err] Gtk-Message: 14:09:41.482: Failed to load module "appmenu-gtk-module" +96ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] Gtk-Message: 14:09:41.482: Failed to load module "appmenu-gtk-module" +97ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] [794122:794122:0718/140941.552875:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled. +70ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] [794121:794121:0718/140941.579003:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled. +96ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:api <= browserType.launch succeeded +272ms
pw:api => browser.newContext started +4ms
pw:api <= browser.newContext succeeded +11ms
pw:api => browserContext.newPage started +6ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:api <= browserType.launch succeeded +295ms
pw:api => browser.newContext started +4ms
pw:api <= browser.newContext succeeded +8ms
pw:api => browserContext.newPage started +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] [0718/140941.651295:ERROR:elf_dynamic_array_reader.h(64)] tag not found +98ms
pw:browser [pid=794122][err] [0718/140941.651647:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794122][err] [0718/140941.651706:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794122][err] [0718/140941.653636:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) +2ms
pw:browser [pid=794122][err] [0718/140941.653652:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2) +0ms
pw:browser [pid=794122][err] Received signal 11 SEGV_MAPERR 000000000148 +5ms
pw:browser [pid=794122][err] #0 0x55d34825d302 base::debug::CollectStackTrace() +5ms
pw:browser [pid=794122][err] #1 0x55d34824a753 base::debug::StackTrace::StackTrace() +4ms
pw:browser [pid=794122][err] #2 0x55d34825cd91 base::debug::(anonymous namespace)::StackDumpSignalHandler() +3ms
pw:browser [pid=794122][err] #3 0x7f3c5b4bfab0 (/usr/lib/libc.so.6+0x39aaf) +1ms
pw:browser [pid=794122][err] #4 0x55d343fc9670 base::ObserverList<>::AddObserver() +0ms
pw:browser [pid=794122][err] #5 0x55d34da99375 AvatarMenu::AvatarMenu() +14ms
pw:browser [pid=794122][err] #6 0x55d34da95dff DbusAppmenu::Initialize() +12ms
pw:browser [pid=794122][err] #7 0x55d34da98296 DbusAppmenuRegistrar::InitializeMenu() +10ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] [0718/140941.708612:ERROR:elf_dynamic_array_reader.h(64)] tag not found +129ms
pw:browser [pid=794121][err] [0718/140941.709143:ERROR:elf_dynamic_array_reader.h(64)] tag not found +1ms
pw:browser [pid=794121][err] [0718/140941.709227:ERROR:elf_dynamic_array_reader.h(64)] tag not found +0ms
pw:browser [pid=794121][err] [0718/140941.711820:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) +2ms
pw:browser [pid=794121][err] [0718/140941.711844:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2) +1ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #8 0x55d34da98aa3 DbusAppmenuRegistrar::OnNameOwnerChanged() +9ms
pw:browser [pid=794122][err] #9 0x55d343fbc4f1 base::internal::Invoker<>::Run() +0ms
pw:browser [pid=794122][err] #10 0x55d3447b0911 base::internal::Invoker<>::RunOnce() +1ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] Received signal 11 SEGV_MAPERR 000000000148 +5ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #11 0x55d3481ed1c4 base::TaskAnnotator::RunTaskImpl() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #0 0x55b529df1302 base::debug::CollectStackTrace() +6ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #12 0x55d34820752f base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #1 0x55b529dde753 base::debug::StackTrace::StackTrace() +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #13 0x55d348206fa9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #2 0x55b529df0d91 base::debug::(anonymous namespace)::StackDumpSignalHandler() +4ms
pw:browser [pid=794121][err] #3 0x7fe52acf1ab0 (/usr/lib/libc.so.6+0x39aaf) +0ms
pw:browser [pid=794121][err] #4 0x55b525b5d670 base::ObserverList<>::AddObserver() +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #14 0x55d348207a05 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
pw:browser [pid=794122][err] #15 0x55d348270e14 base::MessagePumpGlib::Run() +4ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #5 0x55b52f62d375 AvatarMenu::AvatarMenu() +10ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #16 0x55d348207d79 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() +6ms
pw:browser [pid=794122][err] #17 0x55d3481cde66 base::RunLoop::Run() +5ms
pw:browser [pid=794122][err] #18 0x55d3461b0fa3 content::BrowserMainLoop::RunMainMessageLoop() +2ms
pw:browser [pid=794122][err] #19 0x55d3461b2aa2 content::BrowserMainRunnerImpl::Run() +2ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #6 0x55b52f629dff DbusAppmenu::Initialize() +12ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #20 0x55d3461ae616 content::BrowserMain() +2ms
pw:browser [pid=794122][err] #21 0x55d347653088 content::RunBrowserProcessMain() +3ms
pw:browser [pid=794122][err] #22 0x55d3476549e4 content::ContentMainRunnerImpl::RunBrowser() +3ms
pw:browser [pid=794122][err] #23 0x55d3476547d6 content::ContentMainRunnerImpl::Run() +3ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #7 0x55b52f62c296 DbusAppmenuRegistrar::InitializeMenu() +11ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #24 0x55d347651d90 content::RunContentProcess() +4ms
pw:browser [pid=794122][err] #25 0x55d347651fbd content::ContentMain() +3ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #8 0x55b52f62caa3 DbusAppmenuRegistrar::OnNameOwnerChanged() +13ms
pw:browser [pid=794121][err] #9 0x55b525b504f1 base::internal::Invoker<>::Run() +0ms
pw:browser [pid=794121][err] #10 0x55b526344911 base::internal::Invoker<>::RunOnce() +0ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #26 0x55d343e1a309 ChromeMain +11ms
pw:browser [pid=794122][err] #27 0x7f3c5b4a9850 (/usr/lib/libc.so.6+0x2384f) +1ms
pw:browser [pid=794122][err] #28 0x7f3c5b4a990a __libc_start_main +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #11 0x55b529d811c4 base::TaskAnnotator::RunTaskImpl() +6ms
pw:browser [pid=794121][err] #12 0x55b529d9b52f base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl() +5ms
pw:browser [pid=794121][err] #13 0x55b529d9afa9 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +4ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] #29 0x55d343e1a02a _start +11ms
pw:browser [pid=794122][err] r8: 0000000000000002 r9: 0000000000000000 r10: 000055d34ec43b80 r11: 0000000000000040 +0ms
pw:browser [pid=794122][err] r12: 000055d34eb8a000 r13: 00003a4800f32d40 r14: 00003a4800f32d00 r15: 00003a4800f32d18 +0ms
pw:browser [pid=794122][err] di: 0000000000000148 si: 00003a4800f32d00 bp: 00007ffe29b90130 bx: 0000000000000148 +0ms
pw:browser [pid=794122][err] dx: 000055d341f38b20 ax: 0000000000000000 cx: 000000004e593401 sp: 00007ffe29b900e0 +0ms
pw:browser [pid=794122][err] ip: 000055d343fc9670 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 +0ms
pw:browser [pid=794122][err] trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000148 +0ms
pw:browser [pid=794122][err] [end of stack trace] +0ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121][err] #14 0x55b529d9ba05 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() +5ms
pw:browser [pid=794121][err] #15 0x55b529e04e14 base::MessagePumpGlib::Run() +4ms
pw:browser [pid=794121][err] #16 0x55b529d9bd79 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run() +4ms
pw:browser [pid=794121][err] #17 0x55b529d61e66 base::RunLoop::Run() +4ms
pw:browser [pid=794121][err] #18 0x55b527d44fa3 content::BrowserMainLoop::RunMainMessageLoop() +2ms
pw:browser [pid=794121][err] #19 0x55b527d46aa2 content::BrowserMainRunnerImpl::Run() +2ms
pw:browser [pid=794121][err] #20 0x55b527d42616 content::BrowserMain() +2ms
pw:browser [pid=794121][err] #21 0x55b5291e7088 content::RunBrowserProcessMain() +3ms
pw:browser [pid=794121][err] #22 0x55b5291e89e4 content::ContentMainRunnerImpl::RunBrowser() +3ms
pw:browser [pid=794121][err] #23 0x55b5291e87d6 content::ContentMainRunnerImpl::Run() +3ms
pw:browser [pid=794121][err] #24 0x55b5291e5d90 content::RunContentProcess() +4ms
pw:browser [pid=794121][err] #25 0x55b5291e5fbd content::ContentMain() +3ms
pw:browser [pid=794121][err] #26 0x55b5259ae309 ChromeMain +10ms
pw:browser [pid=794121][err] #27 0x7fe52acdb850 (/usr/lib/libc.so.6+0x2384f) +0ms
pw:browser [pid=794121][err] #28 0x7fe52acdb90a __libc_start_main +0ms
pw:browser [pid=794121][err] #29 0x55b5259ae02a _start +10ms
pw:browser [pid=794121][err] r8: 0000000000000002 r9: 0000000000000000 r10: 000055b5307d7b80 r11: 00007fe529b6e988 +0ms
pw:browser [pid=794121][err] r12: 000055b53071e000 r13: 000007fc00f4e200 r14: 000007fc00f4e1c0 r15: 000007fc00f4e1d8 +0ms
pw:browser [pid=794121][err] di: 0000000000000148 si: 000007fc00f4e1c0 bp: 00007ffc13df7700 bx: 0000000000000148 +0ms
pw:browser [pid=794121][err] dx: 000055b523accb20 ax: 0000000000000000 cx: 0000000030127401 sp: 00007ffc13df76b0 +0ms
pw:browser [pid=794121][err] ip: 000055b525b5d670 efl: 0000000000010206 cgf: 002b000000000033 erf: 0000000000000004 +0ms
pw:browser [pid=794121][err] trp: 000000000000000e msk: 0000000000000000 cr2: 0000000000000148 +1ms
pw:browser [pid=794121][err] [end of stack trace] +0ms
pw:browser [pid=794121][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) +41ms
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122][err] libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) +103ms
[setup] › auth.setup.ts:10:6 › authenticate as admin
pw:browser [pid=794121] <process did exit: exitCode=null, signal=SIGSEGV> +465ms
pw:browser [pid=794121] starting temporary directories cleanup +0ms
pw:api <= browserContext.newPage failed +737ms
1) [setup] › auth.setup.ts:10:6 › authenticate as admin ──────────────────
Error: Page closed
[setup] › auth.setup.ts:3:6 › authenticate as user
pw:browser [pid=794122] <process did exit: exitCode=null, signal=SIGSEGV> +489ms
pw:browser [pid=794122] starting temporary directories cleanup +0ms
pw:api <= browserContext.newPage failed +781ms
2) [setup] › auth.setup.ts:3:6 › authenticate as user ────────────────────────────────────────────
Error: Page closed
2 failed
[setup] › auth.setup.ts:3:6 › authenticate as user ─────────────────────────────────────────────
[setup] › auth.setup.ts:10:6 › authenticate as admin ───────────────────────────────────────────
2 skipped
To open last HTML report run:
npx playwright show-report
ELIFECYCLE Command failed with exit code 1.
</code></pre></div>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Auth setup tests should run in headed mode and not skip all other tests.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Auth setup tests fails and skips other tests in headed mode. Currently, it also prevents tester from running tests in debug mode as it tries to open browser for auth setup tests.</p> | <p dir="auto">Note: this is ultimately a problem between chair and keyboard but I'm filing an issue as it might be worth considering to make Playwright more robust against the problem described here. If not, maybe it'll at least help someone else who runs into this in the future.</p>
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.15.0</li>
<li>Operating System: Windows</li>
<li>Node.js version: 16.10.0 (was also able to repro in 14.17.6 LTS)</li>
<li>Browser: Chromium / All</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Repo: <a href="https://github.com/fkleuver/playwright-test-repro">https://github.com/fkleuver/playwright-test-repro</a><br>
(although it should be reproducible with any setup)</p>
<p dir="auto">Simplest steps to repro:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd C:\projects
git clone [email protected]:fkleuver/playwright-test-repro.git
cd playwright-test-repro
npm ci
npm run --prefix ../Playwright-test-repro e2e
# ^ note the capital P "><pre class="notranslate"><code class="notranslate">cd C:\projects
git clone [email protected]:fkleuver/playwright-test-repro.git
cd playwright-test-repro
npm ci
npm run --prefix ../Playwright-test-repro e2e
# ^ note the capital P
</code></pre></div>
<p dir="auto">The above repro steps fail with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: test\w3.spec.js:3:1: test() can only be called in a test file
at errorWithLocation (C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\util.js:195:10)
at TestTypeImpl._createTest (C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\testType.js:78:51)
at C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\transform.js:133:12
at file:///C:/projects/Playwright-test-repro/test/w3.spec.js:3:1
at ModuleJob.run (node:internal/modules/esm/module_job:183:25)
at Loader.import (node:internal/modules/esm/loader:178:24)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at Loader._requireOrImport (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\loader.js:214:52)
at Loader.loadTestFile (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\loader.js:130:7)
at Runner._run (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\runner.js:219:40)"><pre class="notranslate"><code class="notranslate">Error: test\w3.spec.js:3:1: test() can only be called in a test file
at errorWithLocation (C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\util.js:195:10)
at TestTypeImpl._createTest (C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\testType.js:78:51)
at C:\projects\Playwright-test-repro\node_modules\@playwright\test\lib\test\transform.js:133:12
at file:///C:/projects/Playwright-test-repro/test/w3.spec.js:3:1
at ModuleJob.run (node:internal/modules/esm/module_job:183:25)
at Loader.import (node:internal/modules/esm/loader:178:24)
at importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at Loader._requireOrImport (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\loader.js:214:52)
at Loader.loadTestFile (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\loader.js:130:7)
at Runner._run (C:\projects\playwright-test-repro\node_modules\@playwright\test\lib\test\runner.js:219:40)
</code></pre></div>
<p dir="auto">The repro steps may seem a bit contrived but it's simply the easiest way to reproduce if you folks want to debug this.</p>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">The "culprit" is module-scoped variables in Playwright which are used as a cache.<br>
File: <code class="notranslate">src/test/globals.ts</code> (fns <code class="notranslate">setCurrentlyLoadingFileSuite</code> / <code class="notranslate">currentlyLoadingFileSuite</code>)</p>
<p dir="auto">Apparently when the entry point is invoked with the wrong casing, two of those modules end up being loaded. <code class="notranslate">setCurrentlyLoadingFileSuite</code> is called on one instance of the module whereas <code class="notranslate">currentlyLoadingFileSuite</code> is called on another instance (where the backing <code class="notranslate">currentFileSuite</code> variable is always <code class="notranslate">undefined</code>)</p>
<p dir="auto">How I ran into this: I had a shortcut to open <code class="notranslate">cmd.exe</code> in <code class="notranslate">C:\Projects\my-project</code> (the actual folder is <code class="notranslate">C:\projects\my-project</code>). Typo, my bad, but it worked fine until I switched from mocha to the playwright test runner.</p>
<p dir="auto">Since the error itself doesn't really help (nor does googling for it), it took a while to find out the root cause.<br>
Imagine the fun:</p>
<ul dir="auto">
<li>run tests: fails</li>
<li>try a bunch of things, up to eventually <code class="notranslate">cd .. && rmdir my-project /s /q</code> followed by a fresh git clone & install</li>
<li>run tests: succeeds</li>
<li>open another command prompt to the same folder, run tests: fails (?!)</li>
</ul>
<p dir="auto">I don't know the inner workings and constraints of Playwright well enough to confidently suggest any particular solution, but at least detecting duplicate module instantiation to throw a more helpful error in this scenario would seem like good form.</p>
<p dir="auto">Something like this at the top of <code class="notranslate">globals.ts</code> would accomplish just that:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const s = Symbol.for('__playwright');
if (globalThis[s]) {
throw new Error(`more than one instance of globals.js was loaded`);
} else {
Reflect.defineProperty(globalThis, s, { value: true, configurable: true });
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-smi">Symbol</span><span class="pl-kos">.</span><span class="pl-en">for</span><span class="pl-kos">(</span><span class="pl-s">'__playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">globalThis</span><span class="pl-kos">[</span><span class="pl-s1">s</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">`more than one instance of globals.js was loaded`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-smi">Reflect</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">globalThis</span><span class="pl-kos">,</span> <span class="pl-s1">s</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">configurable</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Then the error will directly point to this specific issue if it's caused by duplicate module instantiation, rather than potentially send the user on a trail to nowhere :-)</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> immutable Words32
lo::UInt32
hi::UInt32
end
julia> isbits(Words32)
true
julia> a=UInt64(0x123456789abcdef0)
0x123456789abcdef0
julia> b=reinterpret(Words32,a)
ERROR: reinterpret: expected bits type as first argument
in reinterpret at essentials.jl:115"><pre class="notranslate"><code class="notranslate">julia> immutable Words32
lo::UInt32
hi::UInt32
end
julia> isbits(Words32)
true
julia> a=UInt64(0x123456789abcdef0)
0x123456789abcdef0
julia> b=reinterpret(Words32,a)
ERROR: reinterpret: expected bits type as first argument
in reinterpret at essentials.jl:115
</code></pre></div>
<p dir="auto">Besides the contradiction isbits() != bits type I think that would definitely be useful to be able to reinterpret immutables</p> | <p dir="auto">I was wondering, why this works:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="reinterpret(Float32, Int32(0))
@assert isbits(ImmutableType1) && isbits(ImmutableType2) && (sizeof(ImmutableType1) == sizeof(ImmutableType2))
reinterpret(ImmutableType1, Array(ImmutableType2, 42))"><pre class="notranslate"><span class="pl-c1">reinterpret</span>(Float32, <span class="pl-c1">Int32</span>(<span class="pl-c1">0</span>))
<span class="pl-c1">@assert</span> <span class="pl-c1">isbits</span>(ImmutableType1) <span class="pl-k">&&</span> <span class="pl-c1">isbits</span>(ImmutableType2) <span class="pl-k">&&</span> (<span class="pl-c1">sizeof</span>(ImmutableType1) <span class="pl-k">==</span> <span class="pl-c1">sizeof</span>(ImmutableType2))
<span class="pl-c1">reinterpret</span>(ImmutableType1, <span class="pl-c1">Array</span>(ImmutableType2, <span class="pl-c1">42</span>))</pre></div>
<p dir="auto">and this does not:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="reinterpret(ImmutableType1, ImmutableType2(...))"><pre class="notranslate"><span class="pl-c1">reinterpret</span>(ImmutableType1, <span class="pl-c1">ImmutableType2</span>(<span class="pl-k">...</span>))</pre></div>
<p dir="auto">This is convenient for converting different FixedSizeArrays with the same layout without copying anything.<br>
It's probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38461766" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/7697" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/7697/hovercard" href="https://github.com/JuliaLang/julia/issues/7697">#7697</a>, which didn't get fully implemented?</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a> answered on Julia users:</p>
<blockquote>
<p dir="auto">That last one requires a different sequence of llvm instructions than the other examples (it's the difference between isbits and bitstype). Not hard, but likely unimplemented.</p>
</blockquote>
<p dir="auto">Is anyone willing to implement this, or give some pointers on how to implement it?</p> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide a description of the new feature</h2>
<h2 dir="auto">Every now and then, I want to use normal half-width Aero snap for one of my windows when the rest of them are in FancyZones zones and <em>I know</em> I can just drag as usual, but because I use Fancy Zones so much, I find I've gone and pressed the Shift modifier by accident! can anyone think of a good way of having a special drop zone where it would end up as normal Aero snap without that being confusing when you really did want the FancyZone zone? It's just I've done it three times today (I clearly need more coffee!)</h2>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | <p dir="auto">Make it so that Win+Arrow will also cycle through Aero Snap locations as part of the rotation.</p> | 1 |
<p dir="auto">[Environment] Windows 10 1903 18362.356<br>
1.In general, when I type 'cmd' in the address bar of a folder, cmd will switch the directory location to the location of the folder.However, if the open is 'wt', it is still the same, he still opens C:\Users\XXXX,even if I did not write the parameter ”startingDirectory“.<br>
2.Even if I set the WSL ‘startingDirectory’ parameter on the terminal to the absolute location of a folder in the wsl root directory, he still opens the root directory of wsl.</p>
<hr>
<p dir="auto">If it is my parameters are not written, please advise<br>
If it is a bug, please fix it as soon as possible.</p> | <p dir="auto">This bug-tracker is monitored by Windows Console development team and other technical types. <strong>We like detail!</strong></p>
<p dir="auto">If you have a feature request, please post to <a href="https://wpdev.uservoice.com/forums/266908" rel="nofollow">the UserVoice</a>.</p>
<blockquote>
<p dir="auto"><strong>Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues</strong>. Instead, send dumps/traces to <a href="mailto:[email protected]">[email protected]</a>, referencing this GitHub issue.</p>
</blockquote>
<p dir="auto">Please use this form and describe your issue, concisely but precisely, with as much detail as possible</p>
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br>
Version 10.0.16299.309</p>
</li>
<li>
<p dir="auto">What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)<br>
using ssh to a remote server, running ls -l | more in /var/log/</p>
</li>
<li>
<p dir="auto">What's wrong / what should be happening instead:<br>
It should just disable a list of files in this folder but for some reason the terminal goes nuts and shows black texted with a white background as if i have highlighted it (I haven't)</p>
</li>
</ul>
<p dir="auto">Seems to invert the colours when you get to -- more --<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37409036/39624675-19f1f29a-4f92-11e8-8b23-f9bb0c1a166e.PNG"><img src="https://user-images.githubusercontent.com/37409036/39624675-19f1f29a-4f92-11e8-8b23-f9bb0c1a166e.PNG" alt="wsl_terminal_issue1" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37409036/39624676-1a0a5646-4f92-11e8-954d-835d073fa3e7.PNG"><img src="https://user-images.githubusercontent.com/37409036/39624676-1a0a5646-4f92-11e8-954d-835d073fa3e7.PNG" alt="wsl_terminal_issue2" style="max-width: 100%;"></a></p>
<p dir="auto">I wouldn't need to use more if i could find a way to scroll the terminal without the mouse!!</p>
<p dir="auto">Thanks</p> | 0 |
<p dir="auto">I only have this error in windows. In linux it works fine.</p>
<p dir="auto">When I type the character in settings view it does work. In the editor if I do "alt gr + [" it doesn't print the character. Instead it prints nothing at all.</p> | <p dir="auto">Original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28529842" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1625" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1625/hovercard" href="https://github.com/atom/atom/issues/1625">atom/atom#1625</a></p>
<hr>
<p dir="auto">Use <a href="https://atom.io/packages/keyboard-localization" rel="nofollow">https://atom.io/packages/keyboard-localization</a> until this issue gets fixed (should be in the Blink upstream).</p> | 1 |
<pre class="notranslate">This script:
#!/bin/bash
set -e
while true; do
date
rm -rf $GOPATH/pkg/linux_amd64
GOMAXPROCS=1 go install -x -work launchpad.net/juju-core/cmd/...
done
Breaks down after a couple of tries with errors like:
pack: non-object file $WORK/launchpad.net/juju-core/cmd/_obj/_go_.6
Preserving the working directory with -work or hacking the code to disable the mkdir
cache do not fix the problem.
Running it without parallelism with -p 1 makes it work reliably.
The full log of such a broken build is attached.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/4105/0/log.txt" rel="nofollow">log.txt</a> (37653 bytes)</li>
</ol> | <p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">I use GC 1.0.1 from <a href="http://code.google.com/p/go/downloads/list" rel="nofollow">http://code.google.com/p/go/downloads/list</a>
Windows 2008 Server
Testcase:
===
package main
import (
"fmt"
"runtime"
)
func main() {
for i:=0; i<10000; i++ {
buf := make([]byte, 0x100000)
buf[0] = 0 // supress warning
var ms runtime.MemStats
runtime.ReadMemStats(&ms)
fmt.Println(float64(ms.Alloc)/1024.0/1024.0)
//if (ms.Alloc > 200*1024*1024) { runtime.GC() }
}
}
===
This works well compiled with 6g, consuming 1-2Mb of memory.
But being compiled with 8g it goes to "out of memory" very quickly.
Adding explicit runtime.GC() call makes memory consumption fluctuate between 120Mb and
200Mb (yes, 120Mb just after runtime.GC() call)</pre> | 0 |
<p dir="auto">When I read the documentation of the rust standard library from google, I don't know to which version of rust it refers. It could be great to have a footer with the version and a text which appear when we put our cursor on the rust logo which display the version of the library this doc refer to.</p>
<p dir="auto">That mean improving the documentation compilator of rust.</p> | <p dir="auto">I recently was using a library whose online documentation was out of date. One of the method signatures had changed and that wasn't reflected in the documentation. I checked the source code of the project to confirm that the signature had changed, but it also would have been nice to see on the documentation page that the version I was using didn't match up to the documentation version.</p> | 1 |
<p dir="auto">Per discussion at <a href="https://groups.google.com/forum/#!topic/ansible-project/A79N7LRm-9I" rel="nofollow">https://groups.google.com/forum/#!topic/ansible-project/A79N7LRm-9I</a>, when I add systems to a group using group_by, they don't get variables for that group which are defined in group_vars.</p>
<p dir="auto">I've given an example that shows the issue in current devel (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/c41a23a35ad166aa1e22d205fe8ad11318bef88a/hovercard" href="https://github.com/ansible/ansible/commit/c41a23a35ad166aa1e22d205fe8ad11318bef88a"><tt>c41a23a</tt></a>) in a gist at <a href="https://gist.github.com/mcodd/8250193">https://gist.github.com/mcodd/8250193</a>. When running the test.yml playbook, I'd expect the variable groupvar to resolve to "this_group_var", but it instead remains undefined.</p> | <h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">inventory files</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.1.0
config file = /Users/craig.bryan/.ansible.cfg
configured module search path = [u'/Users/craig.bryan/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/craig.bryan/.virtualenvs/ansible24/lib/python2.7/site-packages/ansible
executable location = /Users/craig.bryan/.virtualenvs/ansible24/bin/ansible
python version = 2.7.13 (default, Dec 17 2016, 23:03:43) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.1.0
config file = /Users/craig.bryan/.ansible.cfg
configured module search path = [u'/Users/craig.bryan/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/craig.bryan/.virtualenvs/ansible24/lib/python2.7/site-packages/ansible
executable location = /Users/craig.bryan/.virtualenvs/ansible24/bin/ansible
python version = 2.7.13 (default, Dec 17 2016, 23:03:43) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No changes in configuration</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Running on OSX 10.11.6</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Adding a inventory group var block before the inventory group member block causes the group membership to be modified.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Run <code class="notranslate">ansible-inventory</code> against the following inventories files to see the changes to group membership</p>
<p dir="auto">Test inventory 1</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[supergroup:children]
subgroup
[subgroup]
host1
[subgroup:vars]
foo=bar"><pre class="notranslate"><code class="notranslate">[supergroup:children]
subgroup
[subgroup]
host1
[subgroup:vars]
foo=bar
</code></pre></div>
<p dir="auto">Test inventory 2</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[supergroup:children]
subgroup
[subgroup:vars]
foo=bar
[subgroup]
host1"><pre class="notranslate"><code class="notranslate">[supergroup:children]
subgroup
[subgroup:vars]
foo=bar
[subgroup]
host1
</code></pre></div>
<p dir="auto">Both are inspected with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-inventory -i <INVENTORY_FILE> --list"><pre class="notranslate"><code class="notranslate">ansible-inventory -i <INVENTORY_FILE> --list
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Both inventories act the same way when listed with <code class="notranslate">ansible-inventory</code></p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Test inventory 1 acts as expected - <code class="notranslate">subgroup</code> is within the <code class="notranslate">supergroup</code> group</p>
<p dir="auto">Test inventory 2 does not act the same way - <code class="notranslate">subgroup</code> is no longer within the <code class="notranslate">supergroup</code> group.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" % ansible-inventory -i test-inventory-1 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {
"children": [
"subgroup"
]
},
"ungrouped": {}
}
% ansible-inventory -i test-inventory-2 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"subgroup",
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {},
"ungrouped": {}
}"><pre class="notranslate"><code class="notranslate"> % ansible-inventory -i test-inventory-1 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {
"children": [
"subgroup"
]
},
"ungrouped": {}
}
% ansible-inventory -i test-inventory-2 --list
{
"_meta": {
"hostvars": {
"host1": {
"foo": "bar"
}
}
},
"all": {
"children": [
"subgroup",
"supergroup",
"ungrouped"
]
},
"subgroup": {
"hosts": [
"host1"
],
"vars": {
"foo": "bar"
}
},
"supergroup": {},
"ungrouped": {}
}
</code></pre></div> | 0 |
<p dir="auto">This issue is an exact analog of <a href="https://github.com/numpy/numpy/issues/3733" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/3733/hovercard">numpy 3733</a>, because the code between these this function and <code class="notranslate">np.percentile</code> is mostly duplicated.</p>
<p dir="auto"><code class="notranslate">scoreatpercentile</code> claims to function with the <code class="notranslate">per</code> argument (the percentiles to calculate) being either a scalar or an array_like. However, the initial lines of code do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if per == 0:
return a.min(axis=axis, out=out)
elif per == 100:
return a.max(axis=axis, out=out)"><pre class="notranslate"><code class="notranslate">if per == 0:
return a.min(axis=axis, out=out)
elif per == 100:
return a.max(axis=axis, out=out)
</code></pre></div>
<p dir="auto">which of course breaks with a "truth value of array undefined" exception if <code class="notranslate">per</code> is in fact an ndarray. It doesn't break if <code class="notranslate">per</code> is a list, since <code class="notranslate">per</code> isn't coerced to array-ness, but that's just two bugs canceling.</p>
<p dir="auto">From an initial reading, I think the implementations of these two functions could be merged. <code class="notranslate">np.concatenate</code> could be given an <code class="notranslate">interpolate_method</code> argument like <code class="notranslate">scoreatpercentile</code>, and then <code class="notranslate">scipy.stats.scoreatpercentile</code> could just become an alias for the Numpy function.</p> | <p dir="auto">The discussion started in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="75641955" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/4864" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/4864/hovercard" href="https://github.com/scipy/scipy/issues/4864">#4864</a> . I propose that the usage of <code class="notranslate">polish</code> in the <code class="notranslate">_differentialevolution.py</code> must be deprecated. The polish functionality simply repeats the functionality of other <code class="notranslate">scipy.optimize</code> module. The library functions must be simple, universal and not specialised and overfeatured. The polish can be applied to the result externally by a user using <code class="notranslate">optimize.minimize</code> with the same cost, but <code class="notranslate">_differentialevolution.py</code> will be more universal, will have one less dependency and cleaner code.</p>
<p dir="auto">Additional reasoning:<br>
The function is called <code class="notranslate">differential_evolution</code> and not a <code class="notranslate">differential_evolution_with_polishing</code>. I would not expect from this function to do something else from DE. OK, if there is statistics that this polishing really goes in majority of real world cases, then let leave it. But, at least the default behavior should be changed to <code class="notranslate">polish = False</code>. (Are there some benchmarks about comparing what is more efficient -- letting a couple of additional iterations of DE, or applying polishing? What about the type of the testfunction?)<br>
Additionally, this polisher, I hypothesize, works OK only with differentiable functions. But there are a lot of real engineering problems (my among them), where objective functions are not only nonlinear, but also are discontinuous and non-differentiable and somewhat noizy, and where the global minimum can be just near the discontinuity. I still prefer modularity, and I belive, that all library functions should be modular and perform good just one task.</p>
<p dir="auto">So, this additional feature could be removed with mentioning in documentation, or in the examples, that <code class="notranslate">L-BFGS-B</code> polishing is usually best suited and gives good results for differentiable smooth objective functions. Or, at least, the default behaviour should be changed to <code class="notranslate">polish = False</code>.</p> | 0 |
<p dir="auto">support/6be6d1eaa44911e38bd5c0467822a465?page=1</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/083b5472896f2ccf565018dcb5fdeacf09ee817001e0d49eb7382c48c4ff401c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313437362f323335323632332f39346132616131652d613538652d313165332d383933322d6632383562656465643662352e706e67"><img src="https://camo.githubusercontent.com/083b5472896f2ccf565018dcb5fdeacf09ee817001e0d49eb7382c48c4ff401c/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313437362f323335323632332f39346132616131652d613538652d313165332d383933322d6632383562656465643662352e706e67" alt="screen shot 2014-03-06 at 4 21 49 pm" data-canonical-src="https://f.cloud.github.com/assets/1476/2352623/94a2aa1e-a58e-11e3-8932-f285beded6b5.png" style="max-width: 100%;"></a></p> | <p dir="auto">First of all, can't find any references about this thing around the issue tracker, so sorry if this is a duplicate.</p>
<p dir="auto">Windows 8.1 here, title says it all. When I Alt+Tab on something else and then back to the editor the cursor disappears and forgets the place it was at. Can't immediately type after getting back to the editor.</p>
<p dir="auto">I've rebuilt the whole thing again before submitting this, FYI.</p> | 0 |
<p dir="auto">This is an existing issue that has been fixed, but it has returned in 3.1.1.</p>
<p dir="auto">A tooltip is not removed after parent element has been removed either in normal or modal window.</p>
<p dir="auto">I am preparing a demo.</p> | <p dir="auto">I use Tooltip on buttons initiating AJAX loads, which remove the content including the tooltip parent element. In that case the tooltip won't hide.</p>
<p dir="auto">Steps to reproduce:</p>
<ol dir="auto">
<li>Mouseover the button with tooltip</li>
<li>Tooltip is shown</li>
<li>Click the button (while the tooltip is shown)</li>
<li>The element where the tooltip parent element was placed is now removed/replaced with AJAX</li>
<li>New content is displayed, but the tooltip is still present, and I am unable to remove it (the mouseleave event won't fire, because the tooltip parent element is no longer there).</li>
</ol>
<p dir="auto">I created JS fiddle demonstrating the issue: <a href="http://jsfiddle.net/fjHh5/" rel="nofollow">http://jsfiddle.net/fjHh5/</a></p> | 1 |
<h5 dir="auto">System information (version)</h5>
<p dir="auto">OpenCV => 4.3<br>
Operating system : windows 10 64 bit<br>
Compiler : Mingw-64 v8.1.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\opencv\build>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)"><pre class="notranslate"><code class="notranslate">C:\opencv\build>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
Thread model: posix
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
</code></pre></div>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Getting error related to rc object</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/matmul.avx2.cpp.obj
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mean.avx2.cpp.obj
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/merge.avx2.cpp.obj
[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/split.avx2.cpp.obj
[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/sum.avx2.cpp.obj
[ 23%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:2564: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:2701: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2"><pre class="notranslate"><code class="notranslate">[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/matmul.avx2.cpp.obj
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mean.avx2.cpp.obj
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/merge.avx2.cpp.obj
[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/split.avx2.cpp.obj
[ 23%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/sum.avx2.cpp.obj
[ 23%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:2564: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:2701: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<ul dir="auto">
<li>install Cmake 3.8.2 or latest ( i tried latest and 3.8.2 as some users on forums said that they downgraded to 3.8.2 and then rc.object error resolved ) but not worked for me</li>
<li>download and install mingw-64 to C:\mingw-w64 : <a href="https://netix.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe" rel="nofollow">https://netix.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe</a></li>
<li>set system path to : C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin</li>
<li>open CMD</li>
<li>cd C:\opencv\source</li>
<li>git clone <a href="https://github.com/opencv/opencv.git">https://github.com/opencv/opencv.git</a></li>
<li>git clone <a href="https://github.com/opencv/opencv_contrib.git">https://github.com/opencv/opencv_contrib.git</a></li>
<li>open cmake gui</li>
<li>set source and build directories : C:\opencv\build</li>
<li>click configure</li>
<li>search java , uncheck BUILD_JAVA</li>
<li>search python uncheck BUILD_PYTHON</li>
<li>search openexr , uncheck BUILD_OPENEXR</li>
<li>search WITH_IPP , uncheck WITH_IPP</li>
<li>search ENABLE_PRECOMPILED_HEADERS , uncheck it</li>
<li>search WITH_OPENGL , check it</li>
<li>search free and check OPENCV_ENABLE_NONFREE</li>
<li>set OPENCV_EXTRA_MODULES_PATH to C:\opencv\source\opencv-contrib\modules</li>
</ul>
<p dir="auto">+click configure , wait till its completed<br>
+click generate</p>
<ul dir="auto">
<li>open CMD with admin rights</li>
<li>cd C:\opencv\build</li>
<li>mingw32-make -j 8</li>
<li>you will see error ?</li>
</ul>
<p dir="auto">Cmake config output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Detected processor: AMD64
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.2" (found C:/Users/Zworks/AppData/Local/Microsoft/WindowsApps/python3.exe)
AVX_512F is not supported by C++ compiler
AVX512_COMMON is not supported by C++ compiler
AVX512_SKX is not supported by C++ compiler
Dispatch optimization AVX512_SKX is not available, skipped
libjpeg-turbo: VERSION = 2.0.4, BUILD = opencv-4.3.0-dev-libjpeg-turbo
Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1)
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: C:/opencv/build/python_loader
Module opencv_alphamat disabled because the following dependencies are not found: Eigen
Caffe: NO
Protobuf: NO
Glog: NO
freetype2: NO
harfbuzz: NO
Module opencv_ovis disabled because OGRE3D was not found
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Tesseract: NO
Allocator metrics storage type: 'long long'
Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp
Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/opencv/source/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn: filter out cuda4dnn source code
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
General configuration for OpenCV 4.3.0-dev =====================================
Version control: 4.3.0-66-gf351653589-dirty
Extra modules:
Location (extra): C:/opencv/source/opencv-contrib/modules
Version control (extra): 4.3.0-4-gbcfbc4fa
Platform:
Timestamp: 2020-04-14T12:50:07Z
Host: Windows 10.0.18362 AMD64
CMake: 3.8.2
CMake generator: MinGW Makefiles
CMake build tool: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/mingw32-make.exe
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (16 files): + SSSE3 SSE4_1
SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (30 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++:
Built as dynamic libs?: YES
C++ standard: 11
C++ Compiler: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe (ver 8.1.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
ccache: NO
Precompiled headers: NO
Extra dependencies: glu32 opengl32
3rdparty dependencies:
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor ml objdetect optflow phase_unwrapping photo plot quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: java_bindings_generator python_bindings_generator python_tests world
Disabled by dependency: -
Unavailable: alphamat cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 python3 sfm viz
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
Windows RT support: NO
GUI:
Win32 UI: YES
OpenGL support: YES (glu32 opengl32)
VTK support: NO
Media I/O:
ZLib: build (ver 1.2.11)
JPEG: build-libjpeg-turbo (ver 2.0.4-62)
WEBP: build (ver encoder: 0x020f)
PNG: build (ver 1.6.37)
TIFF: build (ver 42 - 4.0.10)
JPEG 2000: build Jasper (ver 1.900.1)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.54.100)
avformat: YES (58.29.100)
avutil: YES (56.31.100)
swscale: YES (5.5.100)
avresample: YES (4.0.0)
GStreamer: NO
DirectShow: YES
Parallel framework: none
Trace: YES (built-in)
Other third-party libraries:
Lapack: NO
Eigen: NO
Custom HAL: NO
Protobuf: build (3.5.1)
OpenCL: YES (no extra features)
Include path: C:/opencv/source/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python (for build): NO
Install to: C:/opencv/build/install
-----------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">Detected processor: AMD64
Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "3.2" (found C:/Users/Zworks/AppData/Local/Microsoft/WindowsApps/python3.exe)
AVX_512F is not supported by C++ compiler
AVX512_COMMON is not supported by C++ compiler
AVX512_SKX is not supported by C++ compiler
Dispatch optimization AVX512_SKX is not available, skipped
libjpeg-turbo: VERSION = 2.0.4, BUILD = opencv-4.3.0-dev-libjpeg-turbo
Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1)
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
A library with BLAS API not found. Please specify library location.
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: C:/opencv/build/python_loader
Module opencv_alphamat disabled because the following dependencies are not found: Eigen
Caffe: NO
Protobuf: NO
Glog: NO
freetype2: NO
harfbuzz: NO
Module opencv_ovis disabled because OGRE3D was not found
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
Tesseract: NO
Allocator metrics storage type: 'long long'
Excluding from source files list: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp
Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp
Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/opencv/source/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn: filter out cuda4dnn source code
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
General configuration for OpenCV 4.3.0-dev =====================================
Version control: 4.3.0-66-gf351653589-dirty
Extra modules:
Location (extra): C:/opencv/source/opencv-contrib/modules
Version control (extra): 4.3.0-4-gbcfbc4fa
Platform:
Timestamp: 2020-04-14T12:50:07Z
Host: Windows 10.0.18362 AMD64
CMake: 3.8.2
CMake generator: MinGW Makefiles
CMake build tool: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/mingw32-make.exe
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (16 files): + SSSE3 SSE4_1
SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (30 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++:
Built as dynamic libs?: YES
C++ standard: 11
C++ Compiler: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe (ver 8.1.0)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: C:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
ccache: NO
Precompiled headers: NO
Extra dependencies: glu32 opengl32
3rdparty dependencies:
OpenCV modules:
To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor ml objdetect optflow phase_unwrapping photo plot quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
Disabled: java_bindings_generator python_bindings_generator python_tests world
Disabled by dependency: -
Unavailable: alphamat cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java js matlab ovis python2 python3 sfm viz
Applications: tests perf_tests apps
Documentation: NO
Non-free algorithms: YES
Windows RT support: NO
GUI:
Win32 UI: YES
OpenGL support: YES (glu32 opengl32)
VTK support: NO
Media I/O:
ZLib: build (ver 1.2.11)
JPEG: build-libjpeg-turbo (ver 2.0.4-62)
WEBP: build (ver encoder: 0x020f)
PNG: build (ver 1.6.37)
TIFF: build (ver 42 - 4.0.10)
JPEG 2000: build Jasper (ver 1.900.1)
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
DC1394: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.54.100)
avformat: YES (58.29.100)
avutil: YES (56.31.100)
swscale: YES (5.5.100)
avresample: YES (4.0.0)
GStreamer: NO
DirectShow: YES
Parallel framework: none
Trace: YES (built-in)
Other third-party libraries:
Lapack: NO
Eigen: NO
Custom HAL: NO
Protobuf: build (3.5.1)
OpenCL: YES (no extra features)
Include path: C:/opencv/source/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python (for build): NO
Install to: C:/opencv/build/install
-----------------------------------------------------------------
</code></pre></div> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.3.0</li>
<li>Operating System / Platform => Windows 64-bit</li>
<li>Compiler => mingw-w64 v7.3.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Our current build script fails on our Appveyor CI build when we update to OpenCV 4.3.0. Not sure about the origin of this issue. Thanks for any help.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 43%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1265: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:3666: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2"><pre class="notranslate"><code class="notranslate">[ 43%] Building RC object modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj
gcc: error: long: No such file or directory
C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin\windres.exe: preprocessing failed.
mingw32-make[2]: *** [modules\core\CMakeFiles\opencv_core.dir\build.make:1265: modules/core/CMakeFiles/opencv_core.dir/vs_version.rc.obj] Error 1
mingw32-make[2]: *** Waiting for unfinished jobs....
mingw32-make[1]: *** [CMakeFiles\Makefile2:3666: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">See <a href="https://ci.appveyor.com/project/deadprogram/gocv/builds/31965264#L1242" rel="nofollow">https://ci.appveyor.com/project/deadprogram/gocv/builds/31965264#L1242</a></p> | 1 |
<p dir="auto">I got this code, a simplified form of what I saw in the Guide (section Testing):</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn three_times_four() -> int { 3 * 4 }
#[test]
fn test_1() {
assert_eq!(12, three_times_four());
}
#[cfg(test)]
mod test {
use super::three_times_four;
#[test]
fn test_2() {
assert!(12, three_times_four())
}
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">three_times_four</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">int</span> <span class="pl-kos">{</span> <span class="pl-c1">3</span> <span class="pl-c1">*</span> <span class="pl-c1">4</span> <span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>test<span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">test_1</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-c1">12</span>, three_times_four<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>cfg<span class="pl-kos">(</span>test<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">mod</span> test <span class="pl-kos">{</span>
<span class="pl-k">use</span> <span class="pl-k">super</span><span class="pl-kos">::</span>three_times_four<span class="pl-kos">;</span>
<span class="pl-c1">#<span class="pl-kos">[</span>test<span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">test_2</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-c1">12</span>, three_times_four<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">And running it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version
rustc 0.12.0-pre (471862f40 2014-08-24 09:30:56 +0000)
$ uname --all
Linux thome 3.15-trunk-amd64 #1 SMP Debian 3.15.1-1~exp1 (2014-06-20) x86_64 GNU/Linux
$ RUST_BACKTRACE=1 rustc --test main.rs
<std macros>:8:12: 14:19 error: mismatched types: expected `bool` but found `<generic integer #0>` (expected bool but found integral variable)
<std macros>:8 if !$cond {
<std macros>:9 fail!($($arg),+)
<std macros>:10 }
<std macros>:11 );
<std macros>:12 )
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /home/tshepang/projects/rust/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f0cb4473480 - rt::backtrace::imp::write::h235035dd269e20b4UYq
2: 0x7f0cb4476630 - failure::on_fail::hd1a7e992688ab3ceBkr
3: 0x7f0cb8a28e40 - unwind::begin_unwind_inner::hb4c6bf8d66435096pie
4: 0x7f0cb8a28b40 - unwind::begin_unwind_fmt::h86f5356db6ec628ePfe
5: 0x7f0cb8a28b00 - rust_begin_unwind
6: 0x7f0cb8a77800 - failure::begin_unwind::h7b5a533fc9421dfbnAk
7: 0x7f0cb8a7a7c0 - failure::fail_bounds_check::h2e800593d4e78a44zyk
8: 0x7f0cb758dee0 - codemap::FileMap::get_line::hddd51750c3eea6b5EyE
9: 0x7f0cb7597f50 - diagnostic::emit::h17d12cac27463098tVF
10: 0x7f0cb7594e70 - diagnostic::EmitterWriter.Emitter::emit::h072471d33cf09c1a0QF
11: 0x7f0cb75931f0 - diagnostic::Handler::emit::h5ef2540673a3b36epyF
12: 0x7f0cb758cae0 - diagnostic::SpanHandler::span_err::haa1d6440e60b94bbEmF
13: 0x7f0cb9593990 - middle::typeck::infer::InferCtxt<'a>::type_error_message_str_with_expected::hecddb89bcc2602a1Pdc
14: 0x7f0cb9632e50 - middle::typeck::infer::InferCtxt<'a>::type_error_message::h82a8041df2114fa6glc
15: 0x7f0cb9633060 - middle::typeck::infer::InferCtxt<'a>::report_mismatched_types::he1a60d697010400emmc
16: 0x7f0cb95e6580 - middle::typeck::check::demand::suptype::closure.122490
17: 0x7f0cb95e6490 - middle::typeck::check::demand::suptype_with_fn::h36e7cd05f630094aISO
18: 0x7f0cb9642be0 - middle::typeck::check::check_expr_has_type::closure.123466
19: 0x7f0cb9637df0 - middle::typeck::check::check_expr_with_unifier::h532c026a98936bd1cxU
20: 0x7f0cb9637df0 - middle::typeck::check::check_expr_with_unifier::h532c026a98936bd1cxU
21: 0x7f0cb9604850 - middle::typeck::check::check_block_with_expected::hcc1fb6e3f987aab0VFW
22: 0x7f0cb96009d0 - middle::typeck::check::check_fn::haf17c837a63ca21aYOR
23: 0x7f0cb96006f0 - middle::typeck::check::check_bare_fn::h1697162caded9650DDR
24: 0x7f0cb95f98d0 - middle::typeck::check::check_item::h3c5ed16ca47f89b7KbS
25: 0x7f0cb95fb5d0 - visit::walk_item::h13949830449449897568
26: 0x7f0cb96004f0 - middle::typeck::check::check_item_types::h86b08addca7a3d44UCR
27: 0x7f0cb907c880 - util::common::time::h7845477028010386476
28: 0x7f0cb97de3e0 - middle::typeck::check_crate::hca6bcc1827718082koi
29: 0x7f0cb98a0660 - driver::driver::phase_3_run_analysis_passes::ha18773997d369cedkSw
30: 0x7f0cb989b800 - driver::driver::compile_input::h83dff1ab89a68b6eqEw
31: 0x7f0cb992f8d0 - driver::run_compiler::hf037f9b7b9d7b27ejbA
32: 0x7f0cb992f7e0 - driver::main_args::closure.137206
33: 0x7f0cb99416b0 - task::TaskBuilder<S>::try_future::closure.138326
34: 0x7f0cb99414b0 - task::TaskBuilder<S>::spawn_internal::closure.138303
35: 0x7f0cb8d91640 - task::spawn_opts::closure.8268
36: 0x7f0cb8a89d20 - rust_try_inner
37: 0x7f0cb8a89d10 - rust_try
38: 0x7f0cb8a264b0 - unwind::try::h4632958e716dfba1F6d
39: 0x7f0cb8a26250 - task::Task::run::h717f2b1ef13686ffZcd
40: 0x7f0cb8d91400 - task::spawn_opts::closure.8214
41: 0x7f0cb8a28090 - thread::thread_start::h8bc121b89a283d9aLBd
42: 0x7f0cb37f2fe0 - start_thread
43: 0x7f0cb86f6f89 - __clone
44: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">$ rustc --version
rustc 0.12.0-pre (471862f40 2014-08-24 09:30:56 +0000)
$ uname --all
Linux thome 3.15-trunk-amd64 #1 SMP Debian 3.15.1-1~exp1 (2014-06-20) x86_64 GNU/Linux
$ RUST_BACKTRACE=1 rustc --test main.rs
<std macros>:8:12: 14:19 error: mismatched types: expected `bool` but found `<generic integer #0>` (expected bool but found integral variable)
<std macros>:8 if !$cond {
<std macros>:9 fail!($($arg),+)
<std macros>:10 }
<std macros>:11 );
<std macros>:12 )
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /home/tshepang/projects/rust/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f0cb4473480 - rt::backtrace::imp::write::h235035dd269e20b4UYq
2: 0x7f0cb4476630 - failure::on_fail::hd1a7e992688ab3ceBkr
3: 0x7f0cb8a28e40 - unwind::begin_unwind_inner::hb4c6bf8d66435096pie
4: 0x7f0cb8a28b40 - unwind::begin_unwind_fmt::h86f5356db6ec628ePfe
5: 0x7f0cb8a28b00 - rust_begin_unwind
6: 0x7f0cb8a77800 - failure::begin_unwind::h7b5a533fc9421dfbnAk
7: 0x7f0cb8a7a7c0 - failure::fail_bounds_check::h2e800593d4e78a44zyk
8: 0x7f0cb758dee0 - codemap::FileMap::get_line::hddd51750c3eea6b5EyE
9: 0x7f0cb7597f50 - diagnostic::emit::h17d12cac27463098tVF
10: 0x7f0cb7594e70 - diagnostic::EmitterWriter.Emitter::emit::h072471d33cf09c1a0QF
11: 0x7f0cb75931f0 - diagnostic::Handler::emit::h5ef2540673a3b36epyF
12: 0x7f0cb758cae0 - diagnostic::SpanHandler::span_err::haa1d6440e60b94bbEmF
13: 0x7f0cb9593990 - middle::typeck::infer::InferCtxt<'a>::type_error_message_str_with_expected::hecddb89bcc2602a1Pdc
14: 0x7f0cb9632e50 - middle::typeck::infer::InferCtxt<'a>::type_error_message::h82a8041df2114fa6glc
15: 0x7f0cb9633060 - middle::typeck::infer::InferCtxt<'a>::report_mismatched_types::he1a60d697010400emmc
16: 0x7f0cb95e6580 - middle::typeck::check::demand::suptype::closure.122490
17: 0x7f0cb95e6490 - middle::typeck::check::demand::suptype_with_fn::h36e7cd05f630094aISO
18: 0x7f0cb9642be0 - middle::typeck::check::check_expr_has_type::closure.123466
19: 0x7f0cb9637df0 - middle::typeck::check::check_expr_with_unifier::h532c026a98936bd1cxU
20: 0x7f0cb9637df0 - middle::typeck::check::check_expr_with_unifier::h532c026a98936bd1cxU
21: 0x7f0cb9604850 - middle::typeck::check::check_block_with_expected::hcc1fb6e3f987aab0VFW
22: 0x7f0cb96009d0 - middle::typeck::check::check_fn::haf17c837a63ca21aYOR
23: 0x7f0cb96006f0 - middle::typeck::check::check_bare_fn::h1697162caded9650DDR
24: 0x7f0cb95f98d0 - middle::typeck::check::check_item::h3c5ed16ca47f89b7KbS
25: 0x7f0cb95fb5d0 - visit::walk_item::h13949830449449897568
26: 0x7f0cb96004f0 - middle::typeck::check::check_item_types::h86b08addca7a3d44UCR
27: 0x7f0cb907c880 - util::common::time::h7845477028010386476
28: 0x7f0cb97de3e0 - middle::typeck::check_crate::hca6bcc1827718082koi
29: 0x7f0cb98a0660 - driver::driver::phase_3_run_analysis_passes::ha18773997d369cedkSw
30: 0x7f0cb989b800 - driver::driver::compile_input::h83dff1ab89a68b6eqEw
31: 0x7f0cb992f8d0 - driver::run_compiler::hf037f9b7b9d7b27ejbA
32: 0x7f0cb992f7e0 - driver::main_args::closure.137206
33: 0x7f0cb99416b0 - task::TaskBuilder<S>::try_future::closure.138326
34: 0x7f0cb99414b0 - task::TaskBuilder<S>::spawn_internal::closure.138303
35: 0x7f0cb8d91640 - task::spawn_opts::closure.8268
36: 0x7f0cb8a89d20 - rust_try_inner
37: 0x7f0cb8a89d10 - rust_try
38: 0x7f0cb8a264b0 - unwind::try::h4632958e716dfba1F6d
39: 0x7f0cb8a26250 - task::Task::run::h717f2b1ef13686ffZcd
40: 0x7f0cb8d91400 - task::spawn_opts::closure.8214
41: 0x7f0cb8a28090 - thread::thread_start::h8bc121b89a283d9aLBd
42: 0x7f0cb37f2fe0 - start_thread
43: 0x7f0cb86f6f89 - __clone
44: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Fixing the typo (<code class="notranslate">assert</code> -> <code class="notranslate">assert_eq</code>) builds without an issue.</p> | <h2 dir="auto"><em>Believed</em> current test case</h2>
<p dir="auto">(pnkfelix says: "if you are looking at this bug, please try to keep this test up-to-date ... potentially by checking the newest linked dupes in the comment feed below.")</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Very
// sensitive
pub struct BytePos(pub u32);
// to particular
// line numberings / offsets
fn main() {
let x = BytePos(1);
assert!(x, x);
}"><pre class="notranslate"><span class="pl-c">// Very</span>
<span class="pl-c">// sensitive</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">BytePos</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">u32</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// to particular</span>
<span class="pl-c">// line numberings / offsets</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = <span class="pl-v">BytePos</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>x, x<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Original Bug Filed</h2>
<p dir="auto">Script to reproduce:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
// if any comment line is removed, the ICE disappears
// adding more lines keep the ICE alive
//
//
//
//
//
//
//
//
//
assert!(vec!(1.0), vec!(1.0))
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// if any comment line is removed, the ICE disappears</span>
<span class="pl-c">// adding more lines keep the ICE alive</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-c">//</span>
<span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>vec!<span class="pl-kos">(</span><span class="pl-c1">1.0</span><span class="pl-kos">)</span>, vec!<span class="pl-kos">(</span><span class="pl-c1">1.0</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc ice.rs
<std macros>:8:12: 13:23 error: cannot apply unary operator `!` to type `std::vec::Vec<<generic float #0>>`
<std macros>:8 if !$cond {
<std macros>:9 fail!($($arg),+)
<std macros>:10 }
<std macros>:11 );
<std macros>:12 )
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f0c3dda8180 - rt::backtrace::imp::write::h706b65acfe967902xTF::v0.11.pre
2: 0x7f0c3dd11730 - rt::unwind::begin_unwind_inner::hcc57db58853efcfdAtF::v0.11.pre
3: 0x7f0c3dda7e10 - <unknown>
4: 0x7f0c3dda7d30 - rust_fail_bounds_check
5: 0x7f0c3ddb9a90 - failure::fail_bounds_check::h8ed58f060b870dd6EwF::v0.11.pre
6: 0x7f0c3d1d80f0 - codemap::FileMap::get_line::hbf104ad3bfda6f77Drd::v0.11.pre
7: 0x7f0c3d1d4e90 - <unknown>
8: 0x7f0c3d1ccd40 - diagnostic::EmitterWriter.Emitter::emit::h7c42f3840a82760aQcc::v0.11.pre
9: 0x7f0c3d1c9f90 - diagnostic::Handler::emit::h971cc5635478154dV0b::v0.11.pre
10: 0x7f0c3d1c8ec0 - diagnostic::SpanHandler::span_err::h3735f152282993cc3Sb::v0.11.pre
11: 0x7f0c3eadda90 - middle::typeck::infer::InferCtxt<'a>::type_error_message_str_with_expected::he1b302cd7901cc2apJq::v0.11.pre
12: 0x7f0c3eb7f0e0 - middle::typeck::infer::InferCtxt<'a>::type_error_message::h6e536a01d806a7af7Qq::v0.11.pre
13: 0x7f0c3eb8d9f0 - <unknown>
14: 0x7f0c3eb8b250 - <unknown>
15: 0x7f0c3eb8d650 - <unknown>
16: 0x7f0c3eb7fb20 - <unknown>
17: 0x7f0c3eb7fb20 - <unknown>
18: 0x7f0c3eb5fd00 - middle::typeck::check::check_block_with_expected::hec61a0d86b711c5ck7c::v0.11.pre
19: 0x7f0c3eb5af90 - <unknown>
20: 0x7f0c3eb5ad30 - <unknown>
21: 0x7f0c3eb53790 - middle::typeck::check::check_item::he7c19452bac809220R8::v0.11.pre
22: 0x7f0c3eb5ab30 - middle::typeck::check::check_item_types::hca38e25e2d3c1969ek8::v0.11.pre
23: 0x7f0c3ec9d280 - <unknown>
24: 0x7f0c3ec9c090 - middle::typeck::check_crate::h540b9b663571145fQgw::v0.11.pre
25: 0x7f0c3f0e8e90 - driver::driver::phase_3_run_analysis_passes::h129732fc31300f8bbei::v0.11.pre
26: 0x7f0c3f0eef10 - driver::driver::compile_input::h36b4d97be6c65511gEi::v0.11.pre
27: 0x7f0c3f1143c0 - run_compiler::hd111892d49d8dfe1saq::v0.11.pre
28: 0x7f0c3f12ffb0 - <unknown>
29: 0x7f0c3f12e860 - <unknown>
30: 0x7f0c3f129020 - <unknown>
31: 0x7f0c3e2ce670 - <unknown>
32: 0x7f0c3dd9f430 - <unknown>
33: 0x7f0c3ddc04a0 - rust_try
34: 0x7f0c3dd9f270 - rt::task::Task::run::hd2e6ec18f16de5eeiiD::v0.11.pre
35: 0x7f0c3e2ce440 - <unknown>
36: 0x7f0c3dda6c60 - <unknown>
37: 0x7f0c3ba9c000 - start_thread
38: 0x7f0c3d9e43d9 - clone
39: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc ice.rs
<std macros>:8:12: 13:23 error: cannot apply unary operator `!` to type `std::vec::Vec<<generic float #0>>`
<std macros>:8 if !$cond {
<std macros>:9 fail!($($arg),+)
<std macros>:10 }
<std macros>:11 );
<std macros>:12 )
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f0c3dda8180 - rt::backtrace::imp::write::h706b65acfe967902xTF::v0.11.pre
2: 0x7f0c3dd11730 - rt::unwind::begin_unwind_inner::hcc57db58853efcfdAtF::v0.11.pre
3: 0x7f0c3dda7e10 - <unknown>
4: 0x7f0c3dda7d30 - rust_fail_bounds_check
5: 0x7f0c3ddb9a90 - failure::fail_bounds_check::h8ed58f060b870dd6EwF::v0.11.pre
6: 0x7f0c3d1d80f0 - codemap::FileMap::get_line::hbf104ad3bfda6f77Drd::v0.11.pre
7: 0x7f0c3d1d4e90 - <unknown>
8: 0x7f0c3d1ccd40 - diagnostic::EmitterWriter.Emitter::emit::h7c42f3840a82760aQcc::v0.11.pre
9: 0x7f0c3d1c9f90 - diagnostic::Handler::emit::h971cc5635478154dV0b::v0.11.pre
10: 0x7f0c3d1c8ec0 - diagnostic::SpanHandler::span_err::h3735f152282993cc3Sb::v0.11.pre
11: 0x7f0c3eadda90 - middle::typeck::infer::InferCtxt<'a>::type_error_message_str_with_expected::he1b302cd7901cc2apJq::v0.11.pre
12: 0x7f0c3eb7f0e0 - middle::typeck::infer::InferCtxt<'a>::type_error_message::h6e536a01d806a7af7Qq::v0.11.pre
13: 0x7f0c3eb8d9f0 - <unknown>
14: 0x7f0c3eb8b250 - <unknown>
15: 0x7f0c3eb8d650 - <unknown>
16: 0x7f0c3eb7fb20 - <unknown>
17: 0x7f0c3eb7fb20 - <unknown>
18: 0x7f0c3eb5fd00 - middle::typeck::check::check_block_with_expected::hec61a0d86b711c5ck7c::v0.11.pre
19: 0x7f0c3eb5af90 - <unknown>
20: 0x7f0c3eb5ad30 - <unknown>
21: 0x7f0c3eb53790 - middle::typeck::check::check_item::he7c19452bac809220R8::v0.11.pre
22: 0x7f0c3eb5ab30 - middle::typeck::check::check_item_types::hca38e25e2d3c1969ek8::v0.11.pre
23: 0x7f0c3ec9d280 - <unknown>
24: 0x7f0c3ec9c090 - middle::typeck::check_crate::h540b9b663571145fQgw::v0.11.pre
25: 0x7f0c3f0e8e90 - driver::driver::phase_3_run_analysis_passes::h129732fc31300f8bbei::v0.11.pre
26: 0x7f0c3f0eef10 - driver::driver::compile_input::h36b4d97be6c65511gEi::v0.11.pre
27: 0x7f0c3f1143c0 - run_compiler::hd111892d49d8dfe1saq::v0.11.pre
28: 0x7f0c3f12ffb0 - <unknown>
29: 0x7f0c3f12e860 - <unknown>
30: 0x7f0c3f129020 - <unknown>
31: 0x7f0c3e2ce670 - <unknown>
32: 0x7f0c3dd9f430 - <unknown>
33: 0x7f0c3ddc04a0 - rust_try
34: 0x7f0c3dd9f270 - rt::task::Task::run::hd2e6ec18f16de5eeiiD::v0.11.pre
35: 0x7f0c3e2ce440 - <unknown>
36: 0x7f0c3dda6c60 - <unknown>
37: 0x7f0c3ba9c000 - start_thread
38: 0x7f0c3d9e43d9 - clone
39: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version
rustc 0.11-pre (1001635 2014-05-10 09:56:34 -0700)
host: x86_64-unknown-linux-gnu"><pre class="notranslate"><code class="notranslate">$ rustc --version
rustc 0.11-pre (1001635 2014-05-10 09:56:34 -0700)
host: x86_64-unknown-linux-gnu
</code></pre></div> | 1 |
<p dir="auto"><<Please describe the issue in detail here, and for bug reports fill in the fields below.>><br>
I want to use interpolate.splprep but it returns SystemError</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy import interpolate
A = [-50.49072266, -50.49072266, -54.49072266, -54.49072266]
tck, t = interpolate.splprep([A])"><pre class="notranslate"><code class="notranslate">from scipy import interpolate
A = [-50.49072266, -50.49072266, -54.49072266, -54.49072266]
tck, t = interpolate.splprep([A])
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** SystemError: <built-in function _parcur> returned NULL without setting an error"><pre class="notranslate"><code class="notranslate">*** SystemError: <built-in function _parcur> returned NULL without setting an error
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0.19.0 1.12.1 sys.version_info(major=3, minor=6, micro=1, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">0.19.0 1.12.1 sys.version_info(major=3, minor=6, micro=1, releaselevel='final', serial=0)
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/978" rel="nofollow">http://projects.scipy.org/scipy/ticket/978</a> on 2009-07-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josef-pkt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josef-pkt">@josef-pkt</a>, assigned to unknown.</em></p>
<p dir="auto">floating point errors in ceil is not corrected in nbinom._ppf</p>
<p dir="auto">PierreGM</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" >>> from scipy.stats.distributions import nbinom
>>> nbinom(.3,.15).ppf(nbinom(.3,.15).cdf(np.arange(20)))
array([ 1., 2., 2., 3., 5., 5., 6., 8., 9., 10., 11.,
12., 13., 14., 15., 16., 17., 18., 19., 20.])
I would have naturally expected np.arange(20)."><pre class="notranslate"><code class="notranslate"> >>> from scipy.stats.distributions import nbinom
>>> nbinom(.3,.15).ppf(nbinom(.3,.15).cdf(np.arange(20)))
array([ 1., 2., 2., 3., 5., 5., 6., 8., 9., 10., 11.,
12., 13., 14., 15., 16., 17., 18., 19., 20.])
I would have naturally expected np.arange(20).
</code></pre></div>
<p dir="auto">Robert Kern:</p>
<p dir="auto">The problem here is that we are using nbdtr() inside this function to compute temp, but nbdtr doesn't handle n<1. The _cdf() method uses betainc() instead. If one replaces these lines:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" vals1 = vals-1
temp = special.nbdtr(vals1,n,pr)"><pre class="notranslate"><code class="notranslate"> vals1 = vals-1
temp = special.nbdtr(vals1,n,pr)
</code></pre></div>
<p dir="auto">with these:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" vals1 = (vals-1).clip(0.0, np.inf)
temp = special.betainc(n,vals,pr)"><pre class="notranslate"><code class="notranslate"> vals1 = (vals-1).clip(0.0, np.inf)
temp = special.betainc(n,vals,pr)
</code></pre></div>
<p dir="auto">then you get the desired answer.</p>
<p dir="auto">josef:</p>
<p dir="auto">It would be better to replace the duplication of the _cdf method directly with a call to self._cdf.<br>
For example, in changeset 4673, _cdf method was changed to use betainc instead of nbdtr, but not the _ppf method. Without the code duplication, partial corrections could be more easily avoided.</p>
<p dir="auto">add roundtrip test to all discrete distributions, like</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> n=10
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
True
>>> n=0.3
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
False"><pre class="notranslate"><code class="notranslate">>>> n=10
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
True
>>> n=0.3
>>> (nbinom(n,0.15).ppf(nbinom(n,0.15).cdf(np.arange(100)))==np.arange(100)).all()
False
</code></pre></div> | 0 |
<p dir="auto">Open Gallery, go into Expansion Panels, tap into Trip name, then tap into the Trip name text field.</p>
<p dir="auto">Notice how the cursor is at the right of the string, but the cursor handle is at the left of the string.</p>
<p dir="auto">(The expectation is that the cursor handle is under the cursor.)</p> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">When I type something with the Android keyboard, the keyboard hangs on the key press animation.</p>
<p dir="auto">Code snippet:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// newRecipient is a field inside a State that is connected to a StatefulWidget
// Text Changed Handler
void _handleInputChange(InputValue input) {
setState(() {
newRecipient = input.text;
});
}
// Text Input
new Input(
onChanged: _handleInputChange,
value: new InputValue(text: newRecipient),
)"><pre class="notranslate"><span class="pl-c">// newRecipient is a field inside a State that is connected to a StatefulWidget</span>
<span class="pl-c">// Text Changed Handler</span>
<span class="pl-k">void</span> <span class="pl-en">_handleInputChange</span>(<span class="pl-c1">InputValue</span> input) {
<span class="pl-en">setState</span>(() {
newRecipient <span class="pl-k">=</span> input.text;
});
}
<span class="pl-c">// Text Input</span>
<span class="pl-k">new</span> <span class="pl-c1">Input</span>(
onChanged<span class="pl-k">:</span> _handleInputChange,
value<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InputValue</span>(text<span class="pl-k">:</span> newRecipient),
)</pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<p dir="auto">[✓] Flutter (on Mac OS, channel master)<br>
• Flutter at /Users/dayang/fuchsia/sysui/third_party/flutter<br>
• Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/9109bb02b96a06e429308c6cd99b1c7fbc636453/hovercard" href="https://github.com/flutter/flutter/commit/9109bb02b96a06e429308c6cd99b1c7fbc636453"><tt>9109bb0</tt></a> (6 days ago), 2016-09-15 09:15:11<br>
• Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/e9dd3e4e0dfb4fb6458ad5fde4218a3096022837/hovercard" href="https://github.com/flutter/flutter/commit/e9dd3e4e0dfb4fb6458ad5fde4218a3096022837"><tt>e9dd3e4</tt></a><br>
• Tools Dart version 1.20.0-dev.1.0</p>
<p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 23.0.3)<br>
• Android SDK at /Users/dayang/Library/Android/sdk<br>
• Platform android-23, build-tools 23.0.3<br>
• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)</p>
<p dir="auto">[✓] iOS toolchain - develop for iOS devices (Xcode 7.3)<br>
• XCode at /Applications/Xcode.app/Contents/Developer<br>
• Xcode 7.3, Build version 7D175</p>
<p dir="auto">[✓] Atom - a lightweight development environment for Flutter<br>
• flutter plugin version 0.2.5<br>
• dartlang plugin version 0.6.39</p>
<p dir="auto">[✓] Connected devices<br>
• Nexus 6P • 8XV5T15A23006055 • android-arm</p>
<h2 dir="auto">Logs and Crash Reports</h2>
<p dir="auto">E/ActivityManager: ANR in com.google.android.inputmethod.latin<br>
E/ActivityManager: PID: 17724<br>
E/ActivityManager: Reason: Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }<br>
E/ActivityManager: Load: 0.0 / 0.0 / 0.0<br>
E/ActivityManager: CPU usage from 11020ms to 0ms ago (2016-09-21 15:57:35.279 to 2016-09-21 15:57:46.299):<br>
E/ActivityManager: 71% 900/system_server: 60% user + 11% kernel / faults: 5188 minor<br>
E/ActivityManager: 62% 17724/com.google.android.inputmethod.latin: 53% user + 9.4% kernel / faults: 40406 minor<br>
E/ActivityManager: 19% 4337/com.google.android.gms.persistent: 13% user + 6% kernel / faults: 2245 minor<br>
E/ActivityManager: 8.8% 15886/adbd: 2.6% user + 6.2% kernel / faults: 4851 minor<br>
E/ActivityManager: 8.7% 17635/org.domokit: 5.1% user + 3.5% kernel / faults: 187 minor<br>
E/ActivityManager: 5.2% 356/logd: 1.9% user + 3.3% kernel / faults: 11 minor<br>
E/ActivityManager: 4.8% 15146/android.process.acore: 2.6% user + 2.1% kernel / faults: 347 minor<br>
E/ActivityManager: 3.6% 248/mmcqd/0: 0% user + 3.6% kernel<br>
E/ActivityManager: 3.3% 17610/logcat: 1.6% user + 1.7% kernel<br>
E/ActivityManager: 2.5% 8/rcu_preempt: 0% user + 2.5% kernel<br>
E/ActivityManager: 1.6% 523/jbd2/dm-2-8: 0% user + 1.6% kernel<br>
E/ActivityManager: 1.1% 3/ksoftirqd/0: 0% user + 1.1% kernel<br>
E/ActivityManager: 1% 3880/com.android.phone: 0.5% user + 0.5% kernel / faults: 1 minor<br>
E/ActivityManager: 0.9% 408/servicemanager: 0.2% user + 0.7% kernel<br>
E/ActivityManager: 0.9% 500/dmcrypt_write: 0% user + 0.9% kernel<br>
E/ActivityManager: 0.8% 12/ksoftirqd/1: 0% user + 0.8% kernel<br>
E/ActivityManager: 0.8% 292/msm-core:sampli: 0% user + 0.8% kernel<br>
E/ActivityManager: 0.8% 14746/kworker/u16:4: 0% user + 0.8% kernel<br>
E/ActivityManager: 0.7% 16/ksoftirqd/2: 0% user + 0.7% kernel<br>
E/ActivityManager: 0.6% 41/ksoftirqd/4: 0% user + 0.6% kernel<br>
E/ActivityManager: 0.6% 239/cfinteractive: 0% user + 0.6% kernel<br>
E/ActivityManager: 0.6% 17103/kworker/0:1: 0% user + 0.6% kernel<br>
E/ActivityManager: 0.6% 17989/kworker/u17:6: 0% user + 0.6% kernel<br>
E/ActivityManager: 0.5% 456/irq/215-fc38800: 0% user + 0.5% kernel<br>
E/ActivityManager: 0.5% 3736/com.android.systemui: 0.2% user + 0.2% kernel / faults: 14 minor<br>
E/ActivityManager: 0.5% 17183/kworker/u17:7: 0% user + 0.5% kernel<br>
E/ActivityManager: 0.5% 17299/kworker/2:3: 0% user + 0.5% kernel<br>
E/ActivityManager: 0.4% 17531/kworker/1:0: 0% user + 0.4% kernel<br>
E/ActivityManager: 0.3% 20/ksoftirqd/3: 0% user + 0.3% kernel<br>
E/ActivityManager: 0.3% 436/ksoftirqd/5: 0% user + 0.3% kernel<br>
E/ActivityManager: 0.3% 17130/kworker/u17:5: 0% user + 0.3% kernel<br>
E/ActivityManager: 0.2% 17853/kworker/u17:1: 0% user + 0.2% kernel<br>
E/ActivityManager: 0.1% 35/kworker/u17:0: 0% user + 0.1% kernel<br>
E/ActivityManager: 0.1% 51/system: 0% user + 0.1% kernel<br>
E/ActivityManager: 0.1% 252/irq/224-spdm_bw: 0% user + 0.1% kernel<br>
E/ActivityManager: 0.1% 409/surfaceflinger: 0% user + 0.1% kernel / faults: 1 minor<br>
E/ActivityManager: 0.1% 16937/kworker/u17:2: 0% user + 0.1% kernel<br>
E/ActivityManager: 0% 231/irq/216-tsens_i: 0% user + 0% kernel<br>
E/ActivityManager: 0% 443/ksoftirqd/6: 0% user + 0% kernel<br>
E/ActivityManager: 0% 543/oem_qmi_server: 0% user + 0% kernel / faults: 165 minor 36 major<br>
E/ActivityManager: 0% 3749/wpa_supplicant: 0% user + 0% kernel<br>
E/ActivityManager: 0% 4402/com.android.nfc: 0% user + 0% kernel / faults: 15 minor<br>
E/ActivityManager: 0% 14974/android.process.media: 0% user + 0% kernel<br>
E/ActivityManager: 0% 16947/kworker/u16:2: 0% user + 0% kernel<br>
E/ActivityManager: 0% 17185/com.android.keychain: 0% user + 0% kernel<br>
E/ActivityManager: 28% TOTAL: 18% user + 7.2% kernel + 1.8% iowait + 0.4% irq + 0.4% softirq<br>
E/ActivityManager: CPU usage from 24478357ms to 24478357ms ago (1969-12-31 16:00:00.000 to 1969-12-31 16:00:00.000) with 0% awake:<br>
E/ActivityManager: 0% TOTAL: 0% user + 0% kernel<br>
W/ActivityManager: Scheduling restart of crashed service com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME in 1000ms</p> | 1 |
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python -c 'import numpy as np; np.test()'"><pre class="notranslate"><span class="pl-s1">python</span> <span class="pl-c1">-</span><span class="pl-s1">c</span> <span class="pl-s">'import numpy as np; np.test()'</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================= FAILURES =======================================================__________________________________________ TestLinspace.test_denormal_numbers __________________________________________
self = <numpy.core.tests.test_function_base.TestLinspace object at 0x7f70ac7be2e8>
def test_denormal_numbers(self):
# Regression test for gh-5437. Will probably fail when compiled
# with ICC, which flushes denormals to zero
for ftype in sctypes['float']:
stop = nextafter(ftype(0), ftype(1)) * 5 # A denormal number
> assert_(any(linspace(0, stop, 10, endpoint=False, dtype=ftype)))
E AssertionError
ftype = <class 'numpy.float128'>
self = <numpy.core.tests.test_function_base.TestLinspace object at 0x7f70ac7be2e8>
stop = 0.0
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_function_base.py:308: AssertionError
_____________________________________ TestFloatExceptions.test_floating_exceptions _____________________________________
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
def test_floating_exceptions(self):
# Test basic arithmetic function errors
with np.errstate(all='raise'):
# Test for all real and complex float types
for typecode in np.typecodes['AllFloat']:
ftype = np.obj2sctype(typecode)
if np.dtype(ftype).kind == 'f':
# Get some extreme values for the type
fi = np.finfo(ftype)
ft_tiny = fi.tiny
ft_max = fi.max
ft_eps = fi.eps
underflow = 'underflow'
divbyzero = 'divide by zero'
else:
# 'c', complex, corresponding real dtype
rtype = type(ftype(0).real)
fi = np.finfo(rtype)
ft_tiny = ftype(fi.tiny)
ft_max = ftype(fi.max)
ft_eps = ftype(fi.eps)
# The complex types raise different exceptions
underflow = ''
divbyzero = ''
overflow = 'overflow'
invalid = 'invalid'
self.assert_raises_fpe(underflow,
> lambda a, b: a/b, ft_tiny, ft_max)
divbyzero = 'divide by zero'
fi = finfo(resolution=1.0000000000000002641e-18, min=-inf, max=inf, dtype=float128)
ft_eps = 1.084202172485504434e-19
ft_max = inf
ft_tiny = 3.3621031431120935063e-4932
ftype = <class 'numpy.float128'>
invalid = 'invalid'
overflow = 'overflow'
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
typecode = 'g'
underflow = 'underflow'
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_numeric.py:580:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>, fpeerr = 'underflow'
flop = <function TestFloatExceptions.test_floating_exceptions.<locals>.<lambda> at 0x7f70aca5a730>
x = 3.3621031431120935063e-4932, y = inf
def assert_raises_fpe(self, fpeerr, flop, x, y):
ftype = type(x)
try:
flop(x, y)
assert_(False,
> "Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
E AssertionError: Type <class 'numpy.float128'> did not raise fpe error 'underflow'.
flop = <function TestFloatExceptions.test_floating_exceptions.<locals>.<lambda> at 0x7f70aca5a730>
fpeerr = 'underflow'
ftype = <class 'numpy.float128'>
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
x = 3.3621031431120935063e-4932
y = inf
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_numeric.py:535: AssertionError
_______________________________ TestComplexFunctions.test_loss_of_precision_longcomplex ________________________________
self = <numpy.core.tests.test_umath.TestComplexFunctions object at 0x7f70ac0965c0>
@pytest.mark.skipif(is_longdouble_finfo_bogus(),
reason="Bogus long double finfo")
def test_loss_of_precision_longcomplex(self):
> self.check_loss_of_precision(np.longcomplex)
self = <numpy.core.tests.test_umath.TestComplexFunctions object at 0x7f70ac0965c0>
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2642:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2592: in check_loss_of_precision
check(x_series, 50*eps)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([1.00000000e-20, 1.21736864e-20, 1.48198641e-20, 1.80412378e-20,
2.19628372e-20, 2.67368693e-20, 3.254862...5156e-04, 4.54267386e-04,
5.53010871e-04, 6.73218092e-04, 8.19554595e-04, 9.97700064e-04],
dtype=float128)
rtol = 5.42101086242752217e-18
def check(x, rtol):
x = x.astype(real_dtype)
z = x.astype(dtype)
d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1)
assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(),
> 'arcsinh'))
E AssertionError: (190, 0.00016990298344866943845, 4.4408920985006261617e-16, 'arcsinh')
d = array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.000000...2302e-16, 0.00000000e+00,
3.33066907e-16, 0.00000000e+00, 2.22044605e-16, 1.11022302e-16],
dtype=float128)
dtype = <class 'numpy.complex256'>
real_dtype = dtype('float128')
rtol = 5.42101086242752217e-18
x = array([1.00000000e-20, 1.21736864e-20, 1.48198641e-20, 1.80412378e-20,
2.19628372e-20, 2.67368693e-20, 3.254862...5156e-04, 4.54267386e-04,
5.53010871e-04, 6.73218092e-04, 8.19554595e-04, 9.97700064e-04],
dtype=float128)
z = array([1.00000000e-20+0.j, 1.21736864e-20+0.j, 1.48198641e-20+0.j,
1.80412378e-20+0.j, 2.19628372e-20+0.j, 2.67...7386e-04+0.j, 5.53010871e-04+0.j, 6.73218092e-04+0.j,
8.19554595e-04+0.j, 9.97700064e-04+0.j], dtype=complex256)
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2565: AssertionError
___________________________________________________ test_nextafter_0 ___________________________________________________
def test_nextafter_0():
for t, direction in itertools.product(np.sctypes['float'], (1, -1)):
tiny = np.finfo(t).tiny
> assert_(0. < direction * np.nextafter(t(0), t(direction)) < tiny)
E AssertionError
direction = 1
t = <class 'numpy.float128'>
tiny = 3.3621031431120935063e-4932
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2776: AssertionError
4 failed, 5040 passed, 409 skipped, 167 deselected, 12 xfailed, 1 xpassed in 137.51 seconds
### Numpy/Python version information:
<!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' -->
1.16.0.dev0+db5f9d3 3.6.6
"><pre class="notranslate"><code class="notranslate">======================================================= FAILURES =======================================================__________________________________________ TestLinspace.test_denormal_numbers __________________________________________
self = <numpy.core.tests.test_function_base.TestLinspace object at 0x7f70ac7be2e8>
def test_denormal_numbers(self):
# Regression test for gh-5437. Will probably fail when compiled
# with ICC, which flushes denormals to zero
for ftype in sctypes['float']:
stop = nextafter(ftype(0), ftype(1)) * 5 # A denormal number
> assert_(any(linspace(0, stop, 10, endpoint=False, dtype=ftype)))
E AssertionError
ftype = <class 'numpy.float128'>
self = <numpy.core.tests.test_function_base.TestLinspace object at 0x7f70ac7be2e8>
stop = 0.0
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_function_base.py:308: AssertionError
_____________________________________ TestFloatExceptions.test_floating_exceptions _____________________________________
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
def test_floating_exceptions(self):
# Test basic arithmetic function errors
with np.errstate(all='raise'):
# Test for all real and complex float types
for typecode in np.typecodes['AllFloat']:
ftype = np.obj2sctype(typecode)
if np.dtype(ftype).kind == 'f':
# Get some extreme values for the type
fi = np.finfo(ftype)
ft_tiny = fi.tiny
ft_max = fi.max
ft_eps = fi.eps
underflow = 'underflow'
divbyzero = 'divide by zero'
else:
# 'c', complex, corresponding real dtype
rtype = type(ftype(0).real)
fi = np.finfo(rtype)
ft_tiny = ftype(fi.tiny)
ft_max = ftype(fi.max)
ft_eps = ftype(fi.eps)
# The complex types raise different exceptions
underflow = ''
divbyzero = ''
overflow = 'overflow'
invalid = 'invalid'
self.assert_raises_fpe(underflow,
> lambda a, b: a/b, ft_tiny, ft_max)
divbyzero = 'divide by zero'
fi = finfo(resolution=1.0000000000000002641e-18, min=-inf, max=inf, dtype=float128)
ft_eps = 1.084202172485504434e-19
ft_max = inf
ft_tiny = 3.3621031431120935063e-4932
ftype = <class 'numpy.float128'>
invalid = 'invalid'
overflow = 'overflow'
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
typecode = 'g'
underflow = 'underflow'
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_numeric.py:580:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>, fpeerr = 'underflow'
flop = <function TestFloatExceptions.test_floating_exceptions.<locals>.<lambda> at 0x7f70aca5a730>
x = 3.3621031431120935063e-4932, y = inf
def assert_raises_fpe(self, fpeerr, flop, x, y):
ftype = type(x)
try:
flop(x, y)
assert_(False,
> "Type %s did not raise fpe error '%s'." % (ftype, fpeerr))
E AssertionError: Type <class 'numpy.float128'> did not raise fpe error 'underflow'.
flop = <function TestFloatExceptions.test_floating_exceptions.<locals>.<lambda> at 0x7f70aca5a730>
fpeerr = 'underflow'
ftype = <class 'numpy.float128'>
self = <numpy.core.tests.test_numeric.TestFloatExceptions object at 0x7f70acbb4550>
x = 3.3621031431120935063e-4932
y = inf
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_numeric.py:535: AssertionError
_______________________________ TestComplexFunctions.test_loss_of_precision_longcomplex ________________________________
self = <numpy.core.tests.test_umath.TestComplexFunctions object at 0x7f70ac0965c0>
@pytest.mark.skipif(is_longdouble_finfo_bogus(),
reason="Bogus long double finfo")
def test_loss_of_precision_longcomplex(self):
> self.check_loss_of_precision(np.longcomplex)
self = <numpy.core.tests.test_umath.TestComplexFunctions object at 0x7f70ac0965c0>
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2642:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2592: in check_loss_of_precision
check(x_series, 50*eps)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
x = array([1.00000000e-20, 1.21736864e-20, 1.48198641e-20, 1.80412378e-20,
2.19628372e-20, 2.67368693e-20, 3.254862...5156e-04, 4.54267386e-04,
5.53010871e-04, 6.73218092e-04, 8.19554595e-04, 9.97700064e-04],
dtype=float128)
rtol = 5.42101086242752217e-18
def check(x, rtol):
x = x.astype(real_dtype)
z = x.astype(dtype)
d = np.absolute(np.arcsinh(x)/np.arcsinh(z).real - 1)
assert_(np.all(d < rtol), (np.argmax(d), x[np.argmax(d)], d.max(),
> 'arcsinh'))
E AssertionError: (190, 0.00016990298344866943845, 4.4408920985006261617e-16, 'arcsinh')
d = array([0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.000000...2302e-16, 0.00000000e+00,
3.33066907e-16, 0.00000000e+00, 2.22044605e-16, 1.11022302e-16],
dtype=float128)
dtype = <class 'numpy.complex256'>
real_dtype = dtype('float128')
rtol = 5.42101086242752217e-18
x = array([1.00000000e-20, 1.21736864e-20, 1.48198641e-20, 1.80412378e-20,
2.19628372e-20, 2.67368693e-20, 3.254862...5156e-04, 4.54267386e-04,
5.53010871e-04, 6.73218092e-04, 8.19554595e-04, 9.97700064e-04],
dtype=float128)
z = array([1.00000000e-20+0.j, 1.21736864e-20+0.j, 1.48198641e-20+0.j,
1.80412378e-20+0.j, 2.19628372e-20+0.j, 2.67...7386e-04+0.j, 5.53010871e-04+0.j, 6.73218092e-04+0.j,
8.19554595e-04+0.j, 9.97700064e-04+0.j], dtype=complex256)
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2565: AssertionError
___________________________________________________ test_nextafter_0 ___________________________________________________
def test_nextafter_0():
for t, direction in itertools.product(np.sctypes['float'], (1, -1)):
tiny = np.finfo(t).tiny
> assert_(0. < direction * np.nextafter(t(0), t(direction)) < tiny)
E AssertionError
direction = 1
t = <class 'numpy.float128'>
tiny = 3.3621031431120935063e-4932
/usr/local/lib/python3.6/dist-packages/numpy-1.16.0.dev0+db5f9d3-py3.6-linux-x86_64.egg/numpy/core/tests/test_umath.py:2776: AssertionError
4 failed, 5040 passed, 409 skipped, 167 deselected, 12 xfailed, 1 xpassed in 137.51 seconds
### Numpy/Python version information:
<!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' -->
1.16.0.dev0+db5f9d3 3.6.6
</code></pre></div> | <p dir="auto">I am on hackerrank, I installed anaconda before and numpy works fine on my spyder IDE but not on hackerrank. My os is windows 10 and I don't have multiple versions of python installed.</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto"><code class="notranslate"> import numpy</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
<< your code here >>"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1"><<</span> <span class="pl-s1">your</span> <span class="pl-s1">code</span> <span class="pl-s1">here</span> <span class="pl-c1">>></span></pre></div>
<h3 dir="auto">Error message:</h3>
<h3 dir="auto">Numpy/Python version information:</h3> | 0 |
<p dir="auto">Babel 6.1.1 (babel-core 6.0.20)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Foo {
bar() {
let bar = 2
console.log(bar)
}
}"><pre class="notranslate"><code class="notranslate">class Foo {
bar() {
let bar = 2
console.log(bar)
}
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./node_modules/.bin/babel test.js"><pre class="notranslate"><code class="notranslate">./node_modules/.bin/babel test.js
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: test.js: Duplicate declaration "bar"
2 |
3 | bar() {
> 4 | let bar = 2
| ^
5 | console.log(bar)
6 | }
7 | }
at File.buildCodeFrameError (***/node_modules/babel-core/lib/transformation/file/index.js:409:15)
at Scope.checkBlockScopedCollisions (***/node_modules/babel-traverse/lib/scope/index.js:428:27)
at Scope.<anonymous> (***/node_modules/babel-traverse/lib/scope/index.js:613:18)
at Scope.registerBinding (***/node_modules/babel-traverse/lib/scope/index.js:627:8)
at Scope.registerDeclaration (***/node_modules/babel-traverse/lib/scope/index.js:515:14)
at Object.BlockScoped (***/node_modules/babel-traverse/lib/scope/index.js:165:28)
at Object.newFn (***/node_modules/babel-traverse/lib/visitors.js:300:17)
at NodePath._call (***/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (***/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (***/node_modules/babel-traverse/lib/path/context.js:102:12)"><pre class="notranslate"><code class="notranslate">TypeError: test.js: Duplicate declaration "bar"
2 |
3 | bar() {
> 4 | let bar = 2
| ^
5 | console.log(bar)
6 | }
7 | }
at File.buildCodeFrameError (***/node_modules/babel-core/lib/transformation/file/index.js:409:15)
at Scope.checkBlockScopedCollisions (***/node_modules/babel-traverse/lib/scope/index.js:428:27)
at Scope.<anonymous> (***/node_modules/babel-traverse/lib/scope/index.js:613:18)
at Scope.registerBinding (***/node_modules/babel-traverse/lib/scope/index.js:627:8)
at Scope.registerDeclaration (***/node_modules/babel-traverse/lib/scope/index.js:515:14)
at Object.BlockScoped (***/node_modules/babel-traverse/lib/scope/index.js:165:28)
at Object.newFn (***/node_modules/babel-traverse/lib/visitors.js:300:17)
at NodePath._call (***/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (***/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (***/node_modules/babel-traverse/lib/path/context.js:102:12)
</code></pre></div>
<p dir="auto">IMO this code is 100% valid :)</p> | <p dir="auto">Recently, LICENSE files were added to packages/* for Babel 7 and Babel 6 (I think). However, packages/babel-runtime appears to be missing its LICENSE file.</p>
<p dir="auto">Can a LICENSE file please be added to packages/babel-runtime, like with the other packages?</p> | 0 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows 10, PS 6, Windows Terminal.</p>
<p dir="auto">Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0<br>
PSVersion 5.1.18362.145<br>
BuildVersion 10.0.18362.145<br>
Windows Terminal version 0.6.2951.0</p>
<p dir="auto">In addition to trying the ootb PowerShell experience, I've added in a profile matching my SharePoint Online Management Shell shortcut (other than the GUID which I just modified from the standard PS one). Behaviour below replicated in both windows/environments.</p>
<p dir="auto"><code class="notranslate">{ "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bc}", "name": "SPO PowerShell", "commandline": "powershell.exe -NoExit -Command \"Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking;\" ", "hidden": false },</code></p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Fairly simple really, I have a variable assignment in PowerShell that breaks over multiple lines for readability, but PS in Terminal interprets as multiple commands.<br>
I completely accept there may be a simple modification to the way I've been doing it that'll make it work in PS as delivered by Windows terminal. Problem may be sitting between chair and keyboard.</p>
<p dir="auto">I've tried:<br>
$MyDocs = [environment]::getfolderpath("mydocuments")</p>
<p dir="auto">`<br>
$Dlls = ("$MyDocs\ISAPI16\05Microsoft.SharePoint.Client.Runtime.dll",<br>
"$MyDocs\ISAPI16\02Microsoft.SharePoint.Client.Publishing.dll",<br>
"$MyDocs\ISAPI16\04Microsoft.SharePoint.Client.Taxonomy.dll",<br>
"$MyDocs\ISAPI16\31Microsoft.SharePoint.Security.dll",<br>
"$MyDocs\ISAPI16\09Microsoft.SharePoint.Client.UserProfiles.dll")'</p>
<p dir="auto">and with single backticks after each line (edit: as Quotes are designated by backticks, they've been stripped from this code entry, but they <strong><em>were</em></strong> there, and produce the same result<br>
$MyDocs = [environment]::getfolderpath("mydocuments")</p>
<p dir="auto"><code class="notranslate">$Dlls = ("$MyDocs\ISAPI16\05Microsoft.SharePoint.Client.Runtime.dll",</code><br>
"$MyDocs\ISAPI16\02Microsoft.SharePoint.Client.Publishing.dll",<code class="notranslate"> "$MyDocs\ISAPI16\04Microsoft.SharePoint.Client.Taxonomy.dll",</code><br>
"$MyDocs\ISAPI16\31Microsoft.SharePoint.Security.dll",`<br>
"$MyDocs\ISAPI16\09Microsoft.SharePoint.Client.UserProfiles.dll")'</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">In my regular PowerShell console and in SharePoint Online Management Console it assigns a variable with a collection of paths, which can be iterated through with foreach.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Interpreted as a series of incomplete commands, 1 per line.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25006517/68110657-4f206600-fee5-11e9-8483-3adadd5b16e9.png"><img src="https://user-images.githubusercontent.com/25006517/68110657-4f206600-fee5-11e9-8483-3adadd5b16e9.png" alt="Line breaking bug" style="max-width: 100%;"></a></p>
<p dir="auto">Can of course be mitigated by replacing all commands broken over multiple lines with the same commands on a single line, so not P0, but fairly annoying, as I have quite a few, including a giant if() statement</p>
<h1 dir="auto">Tags</h1>
<p dir="auto">#PowerShell</p> | <p dir="auto">When copying and pasting a multiline command to the terminal. I get weird extra lines and terminal errors that command was not valid.</p>
<p dir="auto">In particular this is related to PowerShell (5 and 6 core)</p>
<p dir="auto">Even function definitions that are complex also show errors</p>
<p dir="auto">Here is a sample response from Powershell when pasting the function to the console window</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:"><pre class="notranslate"><code class="notranslate">Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:
</code></pre></div>
<p dir="auto">g i t Space r e s e t Space o r i g i n / m a s t e r Enter<br>
Ctrl+Enter Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space # g i t Space s t a t u s Enter<br>
Ctrl+Enter Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space Space } Enter Ctrl+Enter Space Space Space Space Space Space Space Space Space Space Space Space } Enter<br>
Ctrl+Enter Space Space Space Space Space Space Space Space } Space - E n d Space { Enter<br>
Ctrl+Enter Space Space Space Space Space Space Space Space Space Space Space Space g e t - g i t s t a t u s Enter Ctrl+Enter Space Space Space Space Space Space Space Space } Enter<br>
Ctrl+Enter Space Space Space Space } Enter<br>
Ctrl+Enter Enter<br>
Ctrl+Enter E n d Space { Enter<br>
Ctrl+Enter Space Space Space Space Enter<br>
Ctrl+Enter Space Space Space Space Enter<br>
Ctrl+Enter Space Space Space Space p o p - L o c a t i o n Enter<br>
Ctrl+Enter } Enter<br>
Ctrl+Enter Enter<br>
Ctrl+Enter }</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Exception:"><pre class="notranslate"><code class="notranslate">
Exception:
</code></pre></div>
<p dir="auto">System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.<br>
Parameter name: top<br>
Actual value was -111.<br>
at System.Console.SetCursorPosition(Int32 left, Int32 top)<br>
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)<br>
at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()<br>
at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)<br>
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable<code class="notranslate">1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary</code>2 dispatchTable, Boolean ignoreIfNoAction, Object arg)<br>
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()<br>
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-----------------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">-----------------------------------------------------------------------
</code></pre></div>
<p dir="auto">However if I open the regular terminal window for Powershell, it works fine.</p> | 0 |
<p dir="auto">Lesson: <a href="http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images</a></p>
<ol dir="auto">
<li>Instructions are the wrong way around, should assign the class after instructing you to make the new <code class="notranslate">img</code> tag</li>
<li>Switches from <code class="notranslate">https://</code> to <code class="notranslate">http://</code> requirement for second <code class="notranslate">img</code></li>
<li>If you add <code class="notranslate">img-responsive</code> to the existing <code class="notranslate">img</code> tag you are then unable to complete the lesson even if you add another image below it with the correct <code class="notranslate">src</code> and <code class="notranslate">class</code></li>
<li>Lesson accepts itself as complete before you have to close the image tag eg: <code class="notranslate"><img class="img-responsive" src="http://bit.ly/fcc-kittens2"</code> is accepted (missing <code class="notranslate">></code> on the end)</li>
<li>Don't think the notes should have the words <code class="notranslate">responsive design</code> wrapped in a code tag, previously only seen it used to describe markup.</li>
<li>Don't think this needs the caps either: <code class="notranslate">Fortunately, we have access to a Responsive CSS Framework called Bootstrap.</code> should just be <code class="notranslate">responsive CSS framework</code></li>
</ol> | <p dir="auto">Challenge <a href="http://www.freecodecamp.org/challenges/waypoint-mobile-responsive-images" rel="nofollow">http://www.freecodecamp.org/challenges/waypoint-mobile-responsive-images</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p>
<p dir="auto">The following will pass the test:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<img class="img-responsive" src="http://bit.ly/fcc-kittens2""><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">src</span>="<span class="pl-s">http://bit.ly/fcc-kittens2</span>"<span class="pl-kos"></span></pre></div>
<p dir="auto">Note: it's missing a <code class="notranslate">></code> at the end of it</p>
<p dir="auto">Im thinking this is a flaw with it rendering it on the fly creating the dom elements even if it's not complete? But it leads to a false sense of being done when you really aren't done with the element to pass it. Subjective I guess depending on your view of it?</p> | 1 |
<p dir="auto">Debian systems generally don't install sudo, and none of our production servers have it installed. Instead, when we need to execute commands as another user, we use <code class="notranslate">su username -c</code>.</p>
<p dir="auto">Could Ansible be modified to support different user-switching techniques than sudo? <code class="notranslate">su -c</code> can't be made to accept the same options as sudo, as far as I know. At least trying to set sudo_exe to various invocations of <code class="notranslate">su -c</code> weren't successful for me.</p>
<p dir="auto">The problem showed up when trying to use the postgresql_user module as user 'postgresql' on a Debian machine. If I use <code class="notranslate">sudo_user: postgresql</code> on a machine without sudo, things fail, of course, since the root user (which we normally connect as) isn't allowed to admin the PostgreSQL database.</p>
<p dir="auto">This can be solved in two ways, either by making root a trusted superuser on PostgreSQL by rewriting pg_hba.conf via Ansible or by having a different mechanism to become the user postgres.</p>
<p dir="auto">We would prefer not to install sudo anywhere, since we don't have a need for it and it just adds one more layer and attack vector to the system's security and is yet another component we'd have to manage.</p> | <p dir="auto">file.set_context_if_different() contains this code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for i in range(len(context)):
if context[i] is not None and context[i] != cur_context[i]:"><pre class="notranslate"><code class="notranslate">for i in range(len(context)):
if context[i] is not None and context[i] != cur_context[i]:
</code></pre></div>
<p dir="auto">On my box <code class="notranslate">context</code> looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[None, None, None, u's0']"><pre class="notranslate"><code class="notranslate">[None, None, None, u's0']
</code></pre></div>
<p dir="auto">And <code class="notranslate">cur_context</code> looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[u'user_u', u'object_r', u'etc_t']"><pre class="notranslate"><code class="notranslate">[u'user_u', u'object_r', u'etc_t']
</code></pre></div>
<p dir="auto">Point being that <code class="notranslate">cur_context[3]</code> doesn't exist, so it crashes with <code class="notranslate">list index out of range</code>. I don't know anything about SELinux, so I have no idea what these mean or what the fix is. Incidentally, this error is <em>not</em> bubbled up to the user, so I just get an 'unreachable' error with a dict that looks like everything is fine.</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I've found a small big in the email validation that is causing me some grief.</p>
<p dir="auto">Using a compound email validator, the following email address is considered as valid: <a href="mailto:[email protected]">[email protected]</a></p>
<p dir="auto">However when trying to send an email to this email address using swiftmailer, an exception is thrown with the following message:<br>
Address in mailbox given [<a href="mailto:[email protected]">[email protected]</a>] does not comply with RFC 2822, 3.6.2.<br>
500 Internal Server Error - Swift_RfcComplianceException</p>
<p dir="auto">I would expect the SF2 email validation to match the SwiftMailer email validation so these types of issues do not occur.</p>
<p dir="auto">Thanks</p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>v4.0.4 (probably older)</td>
</tr>
</tbody>
</table>
<p dir="auto">I have something along the lines of:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$io = new SymfonyStyle($input, $output);
$io->comment(
sprintf(
'Loading the configuration file "<comment>%s</comment>".',
$configPath
)
);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>io</span> = <span class="pl-k">new</span> <span class="pl-v">SymfonyStyle</span>(<span class="pl-s1"><span class="pl-c1">$</span>input</span>, <span class="pl-s1"><span class="pl-c1">$</span>output</span>);
<span class="pl-s1"><span class="pl-c1">$</span>io</span>-><span class="pl-en">comment</span>(
sprintf(
<span class="pl-s">'Loading the configuration file "<comment>%s</comment>".'</span>,
<span class="pl-s1"><span class="pl-c1">$</span>configPath</span>
)
);</pre></div>
<p dir="auto">So you can see the <code class="notranslate"><comment></code> tag being used. When using <code class="notranslate">comment()</code> or another similar method, the text is eventually wrapped when too long:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // Loading the configuration file
// "/very/long/path/to/box.json.dist</commen
// t>"."><pre class="notranslate"><code class="notranslate"> // Loading the configuration file
// "/very/long/path/to/box.json.dist</commen
// t>".
</code></pre></div>
<p dir="auto">However you can see above that this breaks the <code class="notranslate">comment</code> tag</p> | 0 |
<p dir="auto">With Python 2.7 (from homebrew) on OSX 10.7.5, "sudo pip install pandas" gives:</p>
<p dir="auto">Downloading/unpacking pandas<br>
Running setup.py egg_info for package pandas</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="warning: no files found matching 'TODO.rst'
warning: no files found matching 'setupegg.py'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.png' found anywhere in distribution"><pre class="notranslate"><code class="notranslate">warning: no files found matching 'TODO.rst'
warning: no files found matching 'setupegg.py'
no previously-included directories found matching 'doc/build'
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.png' found anywhere in distribution
</code></pre></div>
<p dir="auto">Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /Library/Python/2.7/site-packages (from pandas)<br>
Requirement already satisfied (use --upgrade to upgrade): pytz in /Library/Python/2.7/site-packages (from pandas)<br>
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /Library/Python/2.7/site-packages (from pandas)<br>
Requirement already satisfied (use --upgrade to upgrade): six in /Library/Python/2.7/site-packages (from python-dateutil->pandas)<br>
Installing collected packages: pandas<br>
Running setup.py install for pandas<br>
skipping 'pandas/index.c' Cython extension (up-to-date)<br>
building 'pandas.index' extension<br>
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -Ipandas/src/klib -Ipandas/src -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pandas/index.c -o build/temp.macosx-10.7-intel-2.7/pandas/index.o<br>
In file included from pandas/index.c:260:<br>
pandas/src/numpy_helper.h: In function ‘infer_type’:<br>
pandas/src/numpy_helper.h:32: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h:32: error: (Each undeclared identifier is reported only once<br>
pandas/src/numpy_helper.h:32: error: for each function it appears in.)<br>
pandas/src/numpy_helper.h: In function ‘get_datetime64_value’:<br>
pandas/src/numpy_helper.h:53: error: ‘PyDatetimeScalarObject’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h:53: error: expected expression before ‘)’ token<br>
pandas/src/numpy_helper.h: In function ‘is_datetime64_object’:<br>
pandas/src/numpy_helper.h:84: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h: In function ‘is_timedelta64_object’:<br>
pandas/src/numpy_helper.h:89: error: ‘PyTimedeltaArrType_Type’ undeclared (first use in this function)<br>
In file included from pandas/src/klib/khash_python.h:3,<br>
from pandas/index.c:261:<br>
pandas/src/klib/khash.h: In function ‘kh_del_str’:<br>
pandas/src/klib/khash.h:573: warning: statement with no effect<br>
pandas/src/klib/khash.h: In function ‘kh_del_int32’:<br>
pandas/src/klib/khash.h:574: warning: statement with no effect<br>
pandas/src/klib/khash.h: In function ‘kh_del_int64’:<br>
pandas/src/klib/khash.h:575: warning: statement with no effect<br>
In file included from pandas/index.c:261:<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_float64’:<br>
pandas/src/klib/khash_python.h:13: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_pymap’:<br>
pandas/src/klib/khash_python.h:38: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_pyset’:<br>
pandas/src/klib/khash_python.h:44: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_strbox’:<br>
pandas/src/klib/khash_python.h:49: warning: statement with no effect<br>
In file included from pandas/index.c:267:<br>
pandas/src/datetime/np_datetime.h: At top level:<br>
pandas/src/datetime/np_datetime.h:107: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
In file included from pandas/index.c:268:<br>
pandas/src/datetime/np_datetime_strings.h:46: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
pandas/src/datetime/np_datetime_strings.h:84: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
pandas/index.c:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘<strong>pyx_t_5numpy_float16_t’<br>
pandas/index.c: In function ‘__pyx_pf_6pandas_5index_get_value_at’:<br>
pandas/index.c:1928: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine_get_value’:<br>
pandas/index.c:2424: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_convert_scalar’:<br>
pandas/index.c:8594: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_8datetime__cstring_to_dts’:<br>
pandas/index.c:9395: error: ‘NPY_UNSAFE_CASTING’ undeclared (first use in this function)<br>
pandas/index.c:9395: warning: passing argument 5 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: warning: passing argument 6 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: warning: passing argument 7 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: error: too many arguments to function ‘parse_iso_8601_datetime’<br>
pandas/index.c: In function ‘__pyx_f_8datetime__dts_to_pydatetime’:<br>
pandas/index.c:9499: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
In file included from pandas/index.c:260:<br>
pandas/src/numpy_helper.h: In function ‘infer_type’:<br>
pandas/src/numpy_helper.h:32: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h:32: error: (Each undeclared identifier is reported only once<br>
pandas/src/numpy_helper.h:32: error: for each function it appears in.)<br>
pandas/src/numpy_helper.h: In function ‘get_datetime64_value’:<br>
pandas/src/numpy_helper.h:53: error: ‘PyDatetimeScalarObject’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h:53: error: expected expression before ‘)’ token<br>
pandas/src/numpy_helper.h: In function ‘is_datetime64_object’:<br>
pandas/src/numpy_helper.h:84: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)<br>
pandas/src/numpy_helper.h: In function ‘is_timedelta64_object’:<br>
pandas/src/numpy_helper.h:89: error: ‘PyTimedeltaArrType_Type’ undeclared (first use in this function)<br>
In file included from pandas/src/klib/khash_python.h:3,<br>
from pandas/index.c:261:<br>
pandas/src/klib/khash.h: In function ‘kh_resize_str’:<br>
pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_put_str’:<br>
pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_del_str’:<br>
pandas/src/klib/khash.h:573: warning: statement with no effect<br>
pandas/src/klib/khash.h: In function ‘kh_resize_int32’:<br>
pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_put_int32’:<br>
pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_del_int32’:<br>
pandas/src/klib/khash.h:574: warning: statement with no effect<br>
pandas/src/klib/khash.h: In function ‘kh_resize_int64’:<br>
pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_put_int64’:<br>
pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash.h: In function ‘kh_del_int64’:<br>
pandas/src/klib/khash.h:575: warning: statement with no effect<br>
In file included from pandas/index.c:261:<br>
pandas/src/klib/khash_python.h: In function ‘kh_get_float64’:<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_resize_float64’:<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_put_float64’:<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_float64’:<br>
pandas/src/klib/khash_python.h:13: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_get_pymap’:<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_resize_pymap’:<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_put_pymap’:<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_pymap’:<br>
pandas/src/klib/khash_python.h:38: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_get_pyset’:<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_resize_pyset’:<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_put_pyset’:<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_pyset’:<br>
pandas/src/klib/khash_python.h:44: warning: statement with no effect<br>
pandas/src/klib/khash_python.h: In function ‘kh_resize_strbox’:<br>
pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_put_strbox’:<br>
pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/src/klib/khash_python.h: In function ‘kh_del_strbox’:<br>
pandas/src/klib/khash_python.h:49: warning: statement with no effect<br>
In file included from pandas/index.c:267:<br>
pandas/src/datetime/np_datetime.h: At top level:<br>
pandas/src/datetime/np_datetime.h:107: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
In file included from pandas/index.c:268:<br>
pandas/src/datetime/np_datetime_strings.h:46: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
pandas/src/datetime/np_datetime_strings.h:84: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’<br>
pandas/index.c:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute</strong>’ before ‘<strong>pyx_t_5numpy_float16_t’<br>
pandas/index.c: In function ‘__pyx_pf_6pandas_5index_get_value_at’:<br>
pandas/index.c:1928: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine_get_value’:<br>
pandas/index.c:2424: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine__maybe_get_bool_indexer’:<br>
pandas/index.c:3733: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_11Int64Engine__maybe_get_bool_indexer’:<br>
pandas/index.c:5724: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/index.c: In function ‘__pyx_f_6pandas_5index_convert_scalar’:<br>
pandas/index.c:8594: error: ‘NPY_DATETIME’ undeclared (first use in this function)<br>
pandas/index.c: In function ‘__pyx_f_8datetime__string_to_dts’:<br>
pandas/index.c:9312: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
pandas/index.c: In function ‘__pyx_f_8datetime__cstring_to_dts’:<br>
pandas/index.c:9395: error: ‘NPY_UNSAFE_CASTING’ undeclared (first use in this function)<br>
pandas/index.c:9395: warning: passing argument 5 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: warning: passing argument 6 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: warning: passing argument 7 of ‘parse_iso_8601_datetime’ from incompatible pointer type<br>
pandas/index.c:9395: error: too many arguments to function ‘parse_iso_8601_datetime’<br>
pandas/index.c: In function ‘__pyx_f_8datetime__dts_to_pydatetime’:<br>
pandas/index.c:9499: warning: implicit conversion shortens 64-bit value into a 32-bit value<br>
lipo: can't open input file: /var/tmp//ccIxVO4R.out (No such file or directory)<br>
error: command 'llvm-gcc-4.2' failed with exit status 1<br>
Complete output from command /usr/bin/python -c "import setuptools;__file</strong>='/private/tmp/pip-build-root/pandas/setup.py';exec(compile(open(<strong>file</strong>).read().replace('\r\n', '\n'), <strong>file</strong>, 'exec'))" install --record /tmp/pip-NIyRvg-record/install-record.txt --single-version-externally-managed:<br>
running install</p>
<p dir="auto">running build</p>
<p dir="auto">running build_py</p>
<p dir="auto">copying pandas/version.py -> build/lib.macosx-10.7-intel-2.7/pandas</p>
<p dir="auto">running build_ext</p>
<p dir="auto">skipping 'pandas/index.c' Cython extension (up-to-date)</p>
<p dir="auto">building 'pandas.index' extension</p>
<p dir="auto">llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -Ipandas/src/klib -Ipandas/src -I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pandas/index.c -o build/temp.macosx-10.7-intel-2.7/pandas/index.o</p>
<p dir="auto">In file included from pandas/index.c:260:</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘infer_type’:</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: (Each undeclared identifier is reported only once</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: for each function it appears in.)</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘get_datetime64_value’:</p>
<p dir="auto">pandas/src/numpy_helper.h:53: error: ‘PyDatetimeScalarObject’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h:53: error: expected expression before ‘)’ token</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘is_datetime64_object’:</p>
<p dir="auto">pandas/src/numpy_helper.h:84: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘is_timedelta64_object’:</p>
<p dir="auto">pandas/src/numpy_helper.h:89: error: ‘PyTimedeltaArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">In file included from pandas/src/klib/khash_python.h:3,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" from pandas/index.c:261:"><pre class="notranslate"><code class="notranslate"> from pandas/index.c:261:
</code></pre></div>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_str’:</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_int32’:</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_int64’:</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: statement with no effect</p>
<p dir="auto">In file included from pandas/index.c:261:</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_float64’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_pymap’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_pyset’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_strbox’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: statement with no effect</p>
<p dir="auto">In file included from pandas/index.c:267:</p>
<p dir="auto">pandas/src/datetime/np_datetime.h: At top level:</p>
<p dir="auto">pandas/src/datetime/np_datetime.h:107: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">In file included from pandas/index.c:268:</p>
<p dir="auto">pandas/src/datetime/np_datetime_strings.h:46: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">pandas/src/datetime/np_datetime_strings.h:84: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">pandas/index.c:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘__pyx_t_5numpy_float16_t’</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_pf_6pandas_5index_get_value_at’:</p>
<p dir="auto">pandas/index.c:1928: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine_get_value’:</p>
<p dir="auto">pandas/index.c:2424: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_convert_scalar’:</p>
<p dir="auto">pandas/index.c:8594: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_8datetime__cstring_to_dts’:</p>
<p dir="auto">pandas/index.c:9395: error: ‘NPY_UNSAFE_CASTING’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 5 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 6 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 7 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: error: too many arguments to function ‘parse_iso_8601_datetime’</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_8datetime__dts_to_pydatetime’:</p>
<p dir="auto">pandas/index.c:9499: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">In file included from pandas/index.c:260:</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘infer_type’:</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: (Each undeclared identifier is reported only once</p>
<p dir="auto">pandas/src/numpy_helper.h:32: error: for each function it appears in.)</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘get_datetime64_value’:</p>
<p dir="auto">pandas/src/numpy_helper.h:53: error: ‘PyDatetimeScalarObject’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h:53: error: expected expression before ‘)’ token</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘is_datetime64_object’:</p>
<p dir="auto">pandas/src/numpy_helper.h:84: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">pandas/src/numpy_helper.h: In function ‘is_timedelta64_object’:</p>
<p dir="auto">pandas/src/numpy_helper.h:89: error: ‘PyTimedeltaArrType_Type’ undeclared (first use in this function)</p>
<p dir="auto">In file included from pandas/src/klib/khash_python.h:3,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" from pandas/index.c:261:"><pre class="notranslate"><code class="notranslate"> from pandas/index.c:261:
</code></pre></div>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_resize_str’:</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_put_str’:</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_str’:</p>
<p dir="auto">pandas/src/klib/khash.h:573: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_resize_int32’:</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_put_int32’:</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_int32’:</p>
<p dir="auto">pandas/src/klib/khash.h:574: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_resize_int64’:</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_put_int64’:</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash.h: In function ‘kh_del_int64’:</p>
<p dir="auto">pandas/src/klib/khash.h:575: warning: statement with no effect</p>
<p dir="auto">In file included from pandas/index.c:261:</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_get_float64’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_resize_float64’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_put_float64’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_float64’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:13: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_get_pymap’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_resize_pymap’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_put_pymap’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_pymap’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:38: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_get_pyset’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_resize_pyset’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_put_pyset’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_pyset’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:44: warning: statement with no effect</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_resize_strbox’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_put_strbox’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/src/klib/khash_python.h: In function ‘kh_del_strbox’:</p>
<p dir="auto">pandas/src/klib/khash_python.h:49: warning: statement with no effect</p>
<p dir="auto">In file included from pandas/index.c:267:</p>
<p dir="auto">pandas/src/datetime/np_datetime.h: At top level:</p>
<p dir="auto">pandas/src/datetime/np_datetime.h:107: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">In file included from pandas/index.c:268:</p>
<p dir="auto">pandas/src/datetime/np_datetime_strings.h:46: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">pandas/src/datetime/np_datetime_strings.h:84: error: expected declaration specifiers or ‘...’ before ‘NPY_CASTING’</p>
<p dir="auto">pandas/index.c:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘__pyx_t_5numpy_float16_t’</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_pf_6pandas_5index_get_value_at’:</p>
<p dir="auto">pandas/index.c:1928: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine_get_value’:</p>
<p dir="auto">pandas/index.c:2424: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_11IndexEngine__maybe_get_bool_indexer’:</p>
<p dir="auto">pandas/index.c:3733: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_11Int64Engine__maybe_get_bool_indexer’:</p>
<p dir="auto">pandas/index.c:5724: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_6pandas_5index_convert_scalar’:</p>
<p dir="auto">pandas/index.c:8594: error: ‘NPY_DATETIME’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_8datetime__string_to_dts’:</p>
<p dir="auto">pandas/index.c:9312: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_8datetime__cstring_to_dts’:</p>
<p dir="auto">pandas/index.c:9395: error: ‘NPY_UNSAFE_CASTING’ undeclared (first use in this function)</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 5 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 6 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: warning: passing argument 7 of ‘parse_iso_8601_datetime’ from incompatible pointer type</p>
<p dir="auto">pandas/index.c:9395: error: too many arguments to function ‘parse_iso_8601_datetime’</p>
<p dir="auto">pandas/index.c: In function ‘__pyx_f_8datetime__dts_to_pydatetime’:</p>
<p dir="auto">pandas/index.c:9499: warning: implicit conversion shortens 64-bit value into a 32-bit value</p>
<p dir="auto">lipo: can't open input file: /var/tmp//ccIxVO4R.out (No such file or directory)</p>
<p dir="auto">error: command 'llvm-gcc-4.2' failed with exit status 1</p>
<hr>
<p dir="auto">I tried to update everything under the sun: numpy (1.7.1), pip (1.3.1), XCode command line tools (4.6.2)..</p> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# A value is trying to be set on a copy of a slice from a DataFrame.
"><pre class="notranslate"><span class="pl-c"># A value is trying to be set on a copy of a slice from a DataFrame.</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">It is better to add some hints beside this error, or this information will coufuse many people. Suggestion: you can add a sentence like "Maybe you should reset the index of the slice". It can be more clear to make modification.</p>
<p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p>
<p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p>
<p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p>
<p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p>
<p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p>
<p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p>
<h4 dir="auto">Expected Output</h4>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p>
</details> | 0 |
<h1 dir="auto">Toggle console with a Hotkey</h1>
<p dir="auto">When I'm working I use a lot of windows and I think it would be a good idea to have a HotKey to toggle the console (minimize/on top).</p> | <h1 dir="auto">Environment</h1>
<p dir="auto">Version: 1903<br>
OS BUILD: 18362.10006 (Microsoft Windows [Version 10.0.18362.10006])</p>
<p dir="auto">Windows Terminal version (if applicable):</p>
<p dir="auto">Any other software?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
# Steps to reproduce
Build code from 42c1e58966b50c72039808b09b663b74180519ce and the build completes, but when I start the app, I get failures and app just instantly closes out.
If I restore the file (src/cascadia/TerminalConnection/ConhostConnection.cpp) from 0da13cdf2d5ba2081f12f85f6816546489d4918b to any newer code then build succeeds and the app starts normally
# Expected behavior
I expect the newer version of src/cascadia/TerminalConnection/ConhostConnection.cpp to not cause the app to crash on startup
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I start the app with newest code and app crashes. But when I restore the file of src/cascadia/TerminalConnection/ConhostConnection.cpp to pre 42c1e58966b50c72039808b09b663b74180519ce version, everything works fine.
# Actual behavior
The app crashes when I use the latest code of src/cascadia/TerminalConnection/ConhostConnection.cpp"><pre class="notranslate"><code class="notranslate">
# Steps to reproduce
Build code from 42c1e58966b50c72039808b09b663b74180519ce and the build completes, but when I start the app, I get failures and app just instantly closes out.
If I restore the file (src/cascadia/TerminalConnection/ConhostConnection.cpp) from 0da13cdf2d5ba2081f12f85f6816546489d4918b to any newer code then build succeeds and the app starts normally
# Expected behavior
I expect the newer version of src/cascadia/TerminalConnection/ConhostConnection.cpp to not cause the app to crash on startup
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I start the app with newest code and app crashes. But when I restore the file of src/cascadia/TerminalConnection/ConhostConnection.cpp to pre 42c1e58966b50c72039808b09b663b74180519ce version, everything works fine.
# Actual behavior
The app crashes when I use the latest code of src/cascadia/TerminalConnection/ConhostConnection.cpp
</code></pre></div> | 0 |
<p dir="auto">Cannot style the expandalble Icon button<br>
version 0.18.1 by npm</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">This is my code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class TaskCard extends React.Component {
constructor(props){
super(props);
}
render(){
const {data}=this.props;
return (
<Card >
<CardHeader
title={this.props.title}
subtitle= {data.FixDetails}
actAsExpander={true}
showExpandableButton={true}
avatar={
<div style={{display:'inline'}}>
<FontIcon className="material-icons" style={{marginRight:'15px'}} >play_arrow</FontIcon>
<FontIcon className="material-icons" color={getSevrityColor(data.Sevirity)} >error</FontIcon>
</div>
}
style={{display:'inline-block',width:'80%'}}
iconStyle={{margin:'0px'}}
/>
<CardActions style={{display:'inline-block'}}>`
//buttons
</CardActions>
<CardText expandable={true} >
{data.FixDetails}
</CardText>
</Card>
)
}`
};"><pre class="notranslate"><code class="notranslate">class TaskCard extends React.Component {
constructor(props){
super(props);
}
render(){
const {data}=this.props;
return (
<Card >
<CardHeader
title={this.props.title}
subtitle= {data.FixDetails}
actAsExpander={true}
showExpandableButton={true}
avatar={
<div style={{display:'inline'}}>
<FontIcon className="material-icons" style={{marginRight:'15px'}} >play_arrow</FontIcon>
<FontIcon className="material-icons" color={getSevrityColor(data.Sevirity)} >error</FontIcon>
</div>
}
style={{display:'inline-block',width:'80%'}}
iconStyle={{margin:'0px'}}
/>
<CardActions style={{display:'inline-block'}}>`
//buttons
</CardActions>
<CardText expandable={true} >
{data.FixDetails}
</CardText>
</Card>
)
}`
};
</code></pre></div>
<p dir="auto">which I render through map<br>
<code class="notranslate">data.Tasks.map((x,i) => <TaskCard key={i} data={x} Tags={x.Tags} title={x.Tags.origin} subtitle={x.Type}/>)</code></p>
<p dir="auto">The error I get is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Unknown prop `iconStyle` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in div (created by CardHeader)
in CardHeader (created by TaskCard)
in div (created by Card)
in div (created by Paper)
in Paper (created by Card)
in Card (created by TaskCard)
in TaskCard (created by tasks)
in div (created by List)
in List (created by tasks)
in div (created by tasks)
in div (created by tasks)
in div (created by tasks)
in tasks (created by Unknown)
in div (created by Page)
in TweenOne (created by QueueAnim)
in div (created by QueueAnim)
in QueueAnim (created by Page)
in div (created by Page)
in Page (created by Connect(Page))
in Connect(Page) (created by DimensionsHOC)
in div (created by DimensionsHOC)
in DimensionsHOC (created by Unknown)
in div (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in section (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in MainAppLoggedIn (created by DimensionsHOC)
in div (created by DimensionsHOC)
in DimensionsHOC (created by BaseDashboard)
in BaseDashboard (created by Connect(BaseDashboard))
in Connect(BaseDashboard) (created by Unknown)
in div (created by App)
in div (created by App)
in MuiThemeProvider (created by App)
in App (created by Connect(App))
in Connect(App) (created by Unknown)
in Unknown (created by Unknown)
in Unknown
in Provider
"><pre class="notranslate"><code class="notranslate">Warning: Unknown prop `iconStyle` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in div (created by CardHeader)
in CardHeader (created by TaskCard)
in div (created by Card)
in div (created by Paper)
in Paper (created by Card)
in Card (created by TaskCard)
in TaskCard (created by tasks)
in div (created by List)
in List (created by tasks)
in div (created by tasks)
in div (created by tasks)
in div (created by tasks)
in tasks (created by Unknown)
in div (created by Page)
in TweenOne (created by QueueAnim)
in div (created by QueueAnim)
in QueueAnim (created by Page)
in div (created by Page)
in Page (created by Connect(Page))
in Connect(Page) (created by DimensionsHOC)
in div (created by DimensionsHOC)
in DimensionsHOC (created by Unknown)
in div (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in section (created by MainAppLoggedIn)
in div (created by MainAppLoggedIn)
in MainAppLoggedIn (created by DimensionsHOC)
in div (created by DimensionsHOC)
in DimensionsHOC (created by BaseDashboard)
in BaseDashboard (created by Connect(BaseDashboard))
in Connect(BaseDashboard) (created by Unknown)
in div (created by App)
in div (created by App)
in MuiThemeProvider (created by App)
in App (created by Connect(App))
in Connect(App) (created by Unknown)
in Unknown (created by Unknown)
in Unknown
in Provider
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When clicking on the TableSortLabel I would expect to see the aria-label change value to be "ascending" or "descending" for that element it nested inside of. It would look something like this example here: <a href="https://dequeuniversity.com/library/aria/tables/sf-sortable-grid" rel="nofollow">https://dequeuniversity.com/library/aria/tables/sf-sortable-grid</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19170080/33954892-bc0352b8-e007-11e7-9ddf-2f21804cde18.png"><img src="https://user-images.githubusercontent.com/19170080/33954892-bc0352b8-e007-11e7-9ddf-2f21804cde18.png" alt="screen shot 2017-12-13 at 1 15 38 pm" style="max-width: 100%;"></a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">What currently renders is elements without any aria-sort attribute like so:<br>
<a href="https://material-ui.com/demos/tables/" rel="nofollow">https://material-ui.com/demos/tables/</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19170080/33955035-392c604a-e008-11e7-9dde-2163ad564044.png"><img src="https://user-images.githubusercontent.com/19170080/33955035-392c604a-e008-11e7-9dde-2163ad564044.png" alt="screen shot 2017-12-13 at 1 16 26 pm" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Visit: <a href="https://material-ui.com/demos/tables/" rel="nofollow">https://material-ui.com/demos/tables/</a></li>
<li>Goto "Sorting & Selecting"</li>
<li>Click on any of the header columns</li>
<li>Inspect the element and look at the attributes</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.21</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table>
<p dir="auto">I'm wondering if there would be approval for adding this in? I wouldn't mind taking on the work. Looking at the code a rough idea for how this could work could be the fact that I know inside <Table> component there is a context property of 'head' that is a boolean. Knowing that information, I could use it later on inside of tableCell to set the appropriate aria-sort value. When one of the columns changes ordering the rest of the columns need to reflect that change and set their aria-sort status to "none" so there would need to be a function inside of <Table> that would signal a change to all the other table header columns.</p> | 0 |
<p dir="auto">When you use "TAB" and you select a checkbox it looks like in picture1. If you set programmatically the focus of the checkbox it does not have the effect. If you set the checkbox programmatically it doesn`t have the effect and looks like in picture2.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25934591/34425252-b532f838-ec2a-11e7-8f0d-e2bb0e0a99ac.PNG"><img src="https://user-images.githubusercontent.com/25934591/34425252-b532f838-ec2a-11e7-8f0d-e2bb0e0a99ac.PNG" alt="checkbox_materialui" style="max-width: 100%;"></a><br>
(Picture1)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25934591/34425349-33f8f870-ec2b-11e7-98bf-b09dd223e81a.PNG"><img src="https://user-images.githubusercontent.com/25934591/34425349-33f8f870-ec2b-11e7-98bf-b09dd223e81a.PNG" alt="checkbox2" style="max-width: 100%;"></a><br>
(Picture2)</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Picture1</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Picture2</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Checkbox
checked={true}
inputRef={ ref => this.myReference= ref}
/>"><pre class="notranslate"><code class="notranslate"><Checkbox
checked={true}
inputRef={ ref => this.myReference= ref}
/>
</code></pre></div>
<p dir="auto">And then make a timer that waits a few seconds before you set the focus:<br>
<code class="notranslate">this.myReference.focus();</code></p>
<p dir="auto">Sorry, I tried Codesandbox, but I didn`t get it working :-/</p>
<h2 dir="auto">Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>Beta25</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | <p dir="auto">In the docs, the <code class="notranslate"><Slide></code> component specifies that <code class="notranslate"><Transition></code> properties are also available. <a href="https://reactcommunity.org/react-transition-group/#Transition-prop-children" rel="nofollow">Transition allows for a function or a React Element for the children prop</a>, but the Slide component is expecting only an element. If you do use a function, it works as defined in the Transition docs, but supplies the invalid prop warning in the console.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto"><code class="notranslate"><Slide></code> children prop should accept a function that passes in status and returns a React Element as well as a React Element like <code class="notranslate"><Transition></code>.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><code class="notranslate"><Slide></code> only accepts a ReactElement in PropTypes. Passing a function throws a PropTypes warning, but still functions as expected in the <code class="notranslate"><Transition></code> docs.</p>
<p dir="auto">Console warning:<br>
<code class="notranslate">Warning: Failed prop type: Invalid prop `children` of type `function` supplied to `Slide`, expected a single ReactElement.</code></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/0348zn430l" rel="nofollow">https://codesandbox.io/s/0348zn430l</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">We are animating <code class="notranslate"><Paper></code> elements with Slide transitions based on React Router routes. The problem with just Using slide and an element is React Router will unmount before the slide out animation happens, so we need to always have the Slide element rendered and have the route control the <code class="notranslate">in</code> prop on <code class="notranslate"><Slide></code>. This however creates some issues because <code class="notranslate"><Slide></code> always mounts the child, so I need to control whether a dummy empty element, or the element in the route is being displayed based on the status of <code class="notranslate"><Slide></code>. So when the slide is about to happen, we mount the correct child and when the slide has exited we unmount.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const AnimatedPageRoute = props => (
<Route
path={props.path}
exact={props.exact}
>
{({ match }) => (
<Slide in={match !== null} direction={props.direction} mountOnEnter unmountOnExit>
{(status) => {
if (match && status !== 'unmounted') {
return <Page light>{props.children}</Page>;
}
return <Page light><SplitView /></Page>;
}}
</Slide>
)}
</Route>
);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">AnimatedPageRoute</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Route</span>
<span class="pl-c1">path</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">path</span><span class="pl-kos">}</span>
<span class="pl-c1">exact</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">exact</span><span class="pl-kos">}</span>
<span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">{</span> match <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Slide</span> <span class="pl-c1">in</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">match</span> <span class="pl-c1">!==</span> <span class="pl-c1">null</span><span class="pl-kos">}</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">direction</span><span class="pl-kos">}</span> <span class="pl-c1">mountOnEnter</span> <span class="pl-c1">unmountOnExit</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-s1">status</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">match</span> <span class="pl-c1">&&</span> <span class="pl-s1">status</span> <span class="pl-c1">!==</span> <span class="pl-s">'unmounted'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">Page</span> <span class="pl-c1">light</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Page</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">Page</span> <span class="pl-c1">light</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">SplitView</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Page</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Slide</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Route</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.25</td>
</tr>
<tr>
<td>React</td>
<td>16.1.1</td>
</tr>
<tr>
<td>browser</td>
<td>Electron 1.8.1</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/16451955/12433578/c2c6a8ce-bef9-11e5-89ae-ec2c3ac0b290.png"><img src="https://cloud.githubusercontent.com/assets/16451955/12433578/c2c6a8ce-bef9-11e5-89ae-ec2c3ac0b290.png" alt="screen shot 2016-01-19 at 20 07 13" style="max-width: 100%;"></a></p> | <p dir="auto">After completing a challenge I press <kbd>CTRL</kbd> + <kbd>Enter</kbd> or <kbd>Cmd</kbd> + <kbd>Enter</kbd>, this submits my challenge.</p>
<p dir="auto">Doing the same once again should take me to the next challenge as per the behaviour of the current site.</p> | 0 |
<p dir="auto">I'm very sorry about the quality of this issue report, I've yet to be able to resolve it to a smaller reproduction.</p>
<p dir="auto">The background is we have an API server which instruments types and exposes their methods over an RPC interface. This stack trace is from the sever side, attempting to dispatch to <code class="notranslate">agent.(*AgentAPIV1).StateServingInfo</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unexpected fault address 0xf8010260f8010260
fatal error: fault
[signal 0xb code=0x1 addr=0xf8010260f8010260 pc=0x1e56c]
goroutine 229 [running]:
runtime.throw(0xf45d00, 0x5)
/home/ubuntu/go/src/runtime/panic.go:543 +0x8c fp=0xc2083ff688 sp=0xc2083ff670
runtime.sigpanic()
/home/ubuntu/go/src/runtime/sigpanic_unix.go:27 +0x2f0 fp=0xc2083ff6d8 sp=0xc2083ff688
runtime.convI2E(0xf8010260f8010258, 0x7c030378e8410070, 0x0, 0x0)
/home/ubuntu/go/src/runtime/iface.go:256 +0x74 fp=0xc2083ff708 sp=0xc2083ff6e0
github.com/juju/juju/apiserver/agent.(*AgentAPIV0).StateServingInfo(0x31f5c8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/agent/agent_v0.go:93 +0xa0 fp=0xc2083ff830 sp=0xc2083ff708
github.com/juju/juju/apiserver/agent.(*AgentAPIV1).StateServingInfo(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
<autogenerated>:22 +0x40 fp=0xc2083ff838 sp=0xc2083ff830
runtime.call128(0xc208205bd0, 0xe85098, 0xc208398380)
/home/ubuntu/go/src/runtime/asm_ppc64x.s:413 +0x88 fp=0xc2083ff8c0 sp=0xc2083ff838
reflect.Value.call(0xe84f40, 0xc20802c5f0, 0x913, 0xf30060, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/go/src/reflect/value.go:432 +0xe30 fp=0xc2083ffc00 sp=0xc2083ff8c0
reflect.Value.Call(0xe84f40, 0xc20802c5f0, 0x913, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/reflect/value.go:300 +0x94 fp=0xc2083ffc60 sp=0xc2083ffc00
github.com/juju/juju/rpc/rpcreflect.newMethod.func6(0xe84f40, 0xc20802c5f0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/rpc/rpcreflect/type.go:326 +0x1a0 fp=0xc2083ffd60 sp=0xc2083ffc60
github.com/juju/juju/apiserver.(*srvCaller).Call(0xc208581500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/root.go:131 +0xf0 fp=0xc2083ffde8 sp=0xc2083ffd60
github.com/juju/juju/rpc.(*Conn).runRequest(0xc208472be0, 0x3fff7fc0ee38, 0xc208581500, 0x1286728, 0x3, 0xc2080a8460, 0x5, 0x1, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/rpc/server.go:552 +0x114 fp=0xc2083fff28 sp=0xc2083ffde8
runtime.goexit()
/home/ubuntu/go/src/runtime/asm_ppc64x.s:1132 +0x4 fp=0xc2083fff28 sp=0xc2083fff28
created by github.com/juju/juju/rpc.(*Conn).handleRequest
/home/ubuntu/src/github.com/juju/juju/rpc/server.go:481 +0x5f4"><pre class="notranslate"><code class="notranslate">unexpected fault address 0xf8010260f8010260
fatal error: fault
[signal 0xb code=0x1 addr=0xf8010260f8010260 pc=0x1e56c]
goroutine 229 [running]:
runtime.throw(0xf45d00, 0x5)
/home/ubuntu/go/src/runtime/panic.go:543 +0x8c fp=0xc2083ff688 sp=0xc2083ff670
runtime.sigpanic()
/home/ubuntu/go/src/runtime/sigpanic_unix.go:27 +0x2f0 fp=0xc2083ff6d8 sp=0xc2083ff688
runtime.convI2E(0xf8010260f8010258, 0x7c030378e8410070, 0x0, 0x0)
/home/ubuntu/go/src/runtime/iface.go:256 +0x74 fp=0xc2083ff708 sp=0xc2083ff6e0
github.com/juju/juju/apiserver/agent.(*AgentAPIV0).StateServingInfo(0x31f5c8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/agent/agent_v0.go:93 +0xa0 fp=0xc2083ff830 sp=0xc2083ff708
github.com/juju/juju/apiserver/agent.(*AgentAPIV1).StateServingInfo(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
<autogenerated>:22 +0x40 fp=0xc2083ff838 sp=0xc2083ff830
runtime.call128(0xc208205bd0, 0xe85098, 0xc208398380)
/home/ubuntu/go/src/runtime/asm_ppc64x.s:413 +0x88 fp=0xc2083ff8c0 sp=0xc2083ff838
reflect.Value.call(0xe84f40, 0xc20802c5f0, 0x913, 0xf30060, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/go/src/reflect/value.go:432 +0xe30 fp=0xc2083ffc00 sp=0xc2083ff8c0
reflect.Value.Call(0xe84f40, 0xc20802c5f0, 0x913, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ubuntu/go/src/reflect/value.go:300 +0x94 fp=0xc2083ffc60 sp=0xc2083ffc00
github.com/juju/juju/rpc/rpcreflect.newMethod.func6(0xe84f40, 0xc20802c5f0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/rpc/rpcreflect/type.go:326 +0x1a0 fp=0xc2083ffd60 sp=0xc2083ffc60
github.com/juju/juju/apiserver.(*srvCaller).Call(0xc208581500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/root.go:131 +0xf0 fp=0xc2083ffde8 sp=0xc2083ffd60
github.com/juju/juju/rpc.(*Conn).runRequest(0xc208472be0, 0x3fff7fc0ee38, 0xc208581500, 0x1286728, 0x3, 0xc2080a8460, 0x5, 0x1, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/rpc/server.go:552 +0x114 fp=0xc2083fff28 sp=0xc2083ffde8
runtime.goexit()
/home/ubuntu/go/src/runtime/asm_ppc64x.s:1132 +0x4 fp=0xc2083fff28 sp=0xc2083fff28
created by github.com/juju/juju/rpc.(*Conn).handleRequest
/home/ubuntu/src/github.com/juju/juju/rpc/server.go:481 +0x5f4
</code></pre></div>
<p dir="auto">however <code class="notranslate">AgentAPIV1</code> is defined as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// AgentAPIV1 implements the version 1 of the API provided to an agent.
type AgentAPIV1 struct {
*AgentAPIV0
}"><pre class="notranslate"><code class="notranslate">// AgentAPIV1 implements the version 1 of the API provided to an agent.
type AgentAPIV1 struct {
*AgentAPIV0
}
</code></pre></div>
<p dir="auto">So the compiler has autogenerated <code class="notranslate">AgentAPIV1.StateServingInfo</code> and forwarded it to <code class="notranslate">AgentAPIV0.StateServingInfo</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="github.com/juju/juju/apiserver/agent.(*AgentAPIV0).StateServingInfo(0x31f5c8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/agent/agent_v0.go:93 +0xa0 fp=0xc2083ff830 sp=0xc2083ff708
github.com/juju/juju/apiserver/agent.(*AgentAPIV1).StateServingInfo(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
<autogenerated>:22 +0x40 fp=0xc2083ff838 sp=0xc2083ff830"><pre class="notranslate"><code class="notranslate">github.com/juju/juju/apiserver/agent.(*AgentAPIV0).StateServingInfo(0x31f5c8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/ubuntu/src/github.com/juju/juju/apiserver/agent/agent_v0.go:93 +0xa0 fp=0xc2083ff830 sp=0xc2083ff708
github.com/juju/juju/apiserver/agent.(*AgentAPIV1).StateServingInfo(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
<autogenerated>:22 +0x40 fp=0xc2083ff838 sp=0xc2083ff830
</code></pre></div>
<p dir="auto">However, looking at the receiver value for <code class="notranslate">agent.(*AgentAPIV1).StateServingInfo</code> it is <code class="notranslate">0x00</code>, but in the next frame the receiver is <code class="notranslate">0x31f5c8</code>, this may be related to the problem.</p>
<p dir="auto">The faulting line, /home/ubuntu/src/github.com/juju/juju/apiserver/agent/agent_v0.go:93, is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func (api *AgentAPIV0) StateServingInfo() (result state.StateServingInfo, err error) {
auth := api.auth
fmt.Printf("%#v\n", auth) // line 93"><pre class="notranslate"><code class="notranslate">func (api *AgentAPIV0) StateServingInfo() (result state.StateServingInfo, err error) {
auth := api.auth
fmt.Printf("%#v\n", auth) // line 93
</code></pre></div>
<p dir="auto">and at this point the value of <code class="notranslate">auth</code> is garbage, its interface type and value are random junk, <code class="notranslate">runtime.convI2E(0xf8010260f8010258, 0x7c030378e8410070, 0x0, 0x0)</code></p>
<p dir="auto">So far I have been able to determine that manually adding the forwarding method</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func (api *AgentAPIV1) StateServingInfo() (result state.StateServingInfo, err error) {
return api.AgentAPIV0.StateServingInfo()
}"><pre class="notranslate"><code class="notranslate">func (api *AgentAPIV1) StateServingInfo() (result state.StateServingInfo, err error) {
return api.AgentAPIV0.StateServingInfo()
}
</code></pre></div>
<p dir="auto">Stops the panic, but I have not yet been able to construct a stand alone reproduction.</p>
<p dir="auto">Sadly this only happens on our ppc64le system, which is not accessible to others.</p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/randall77/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/randall77">@randall77</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/minux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/minux">@minux</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aclements/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aclements">@aclements</a></p> | <pre class="notranslate">What steps will reproduce the problem?
I'm starting a gotest of some code that uses lots of goroutines, but the process very
early (before even running any useful code).
I find this issue reproduces more readily on a specific machine x86_64, 8 cores, Fedora
14, 2.6.35.11-83.fc14.x86_64 and if I set GOMAXPROCS=500 and ulimit -u 256 although
neither of these should have any impact on anything.
What do you see instead?
Process hangs until I terminate it with SIGQUIT.
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
linux
Which revision are you using? (hg identify)
tip
Please provide any additional information below.
I've attached the full stacktrace and strace output from a run that hangs.
SIGQUIT: quit
PC=0x414b15
runtime.futex+0x23 /home/alberts/go.hg/src/pkg/runtime/linux/amd64/sys.s:147
runtime.futex()
futexsleep+0x50 /home/alberts/go.hg/src/pkg/runtime/linux/thread.c:52
futexsleep(0x6698fc, 0x300000003, 0x414e85, 0x40ed9f)
futexlock+0x85 /home/alberts/go.hg/src/pkg/runtime/linux/thread.c:120
futexlock(0x6698fc, 0x0)
runtime.notesleep+0x25 /home/alberts/go.hg/src/pkg/runtime/linux/thread.c:205
runtime.notesleep(0x6698fc, 0x4da724fd)
runtime.stoptheworld+0x68 /home/alberts/go.hg/src/pkg/runtime/proc.c:426
runtime.stoptheworld()
runtime.gc+0x15c /home/alberts/go.hg/src/pkg/runtime/mgc0.c:561
runtime.gc(0xf800000000, 0x8)
runtime.mallocgc+0x1c3 /home/alberts/go.hg/src/pkg/runtime/malloc.c:90
runtime.mallocgc(0x8, 0x100000000, 0x1, 0x267f900, 0x409a20, ...)</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/1701/0/strace.txt" rel="nofollow">strace.txt</a> (28310 bytes)</li>
<li><a href="https://storage.googleapis.com/go-attachment/1701/0/stacktrace.txt" rel="nofollow">stacktrace.txt</a> (2804 bytes)</li>
</ol> | 0 |
<p dir="auto">ESModules without dynamic import is incomplete.<br>
We cannot do this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if( whenWeNeed() )
import 'some_thing';"><pre class="notranslate"><span class="pl-k">if</span><span class="pl-kos">(</span> <span class="pl-en">whenWeNeed</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">)</span>
<span class="pl-k">import</span> <span class="pl-s">'some_thing'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">nor this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const need= whatWeNeed();
import need;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">need</span><span class="pl-c1">=</span> <span class="pl-en">whatWeNeed</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s1">need</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Only dynamic import can make ESM as strong as CommonJS or AMD.</p>
<p dir="auto">Maybe there are some security reasons. But local dynamic import should be retain.</p> | <p dir="auto">I know this is already on the radar, but wanted to create a distinct issue.</p>
<p dir="auto">(This is required for a <a href="https://github.com/denoland/deno_std/issues/193" data-hovercard-type="issue" data-hovercard-url="/denoland/deno_std/issues/193/hovercard">test runner</a>.)</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">Tooltip placement In version 2.3.0 only place in top of elements By all of placement (top-right-bottom-left) !!!<br>
<a href="http://twitter.github.com/bootstrap/javascript.html#tooltips">http://twitter.github.com/bootstrap/javascript.html#tooltips</a></p> | <p dir="auto">congrats on releasing 2.3.0!<br>
I was checking out some of the docs and saw that <a href="http://twitter.github.com/bootstrap/javascript.html#tooltips">tooltips data-placement</a> is not working correctly. I think its because of the one pull request that makes options set in javascript override the options that were set in the html but I'm not sure..</p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
After upgrade to Webpack@5, in development mode with HMR, module resolution fails for indirect dependencies via webpack-bundled libraries.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
Here is the repo with minimal reproduction of the issue: <a href="https://github.com/birdofpreyru/webpack5-bug1">https://github.com/birdofpreyru/webpack5-bug1</a></p>
<ol dir="auto">
<li>
<p dir="auto">Clone it, and build the mock library</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/birdofpreyru/webpack5-bug1.git
$ cd webpack5-bug1/lib
$ npm install
$ npm run build
$ npm pack"><pre class="notranslate"><code class="notranslate">$ git clone https://github.com/birdofpreyru/webpack5-bug1.git
$ cd webpack5-bug1/lib
$ npm install
$ npm run build
$ npm pack
</code></pre></div>
<p dir="auto">The mock library just imports <code class="notranslate">lodash</code> library and prints its version (can be any other import and use of NPM module - that's does not matter).</p>
</li>
<li>
<p dir="auto">Go to the host code, and run it (the bundle is served using <code class="notranslate">HtmlWebpackPlugin</code> and <code class="notranslate">webpack-dev-server</code>), using the mock library from (1):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cd ../host
$ npm install
$ npm install ../lib/lib-1.0.0.tgz
$ npm start"><pre class="notranslate"><code class="notranslate">$ cd ../host
$ npm install
$ npm install ../lib/lib-1.0.0.tgz
$ npm start
</code></pre></div>
</li>
<li>
<p dir="auto">In browser go to <code class="notranslate">localhost:8080</code>, and look into the console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:2)
at eval (index.js:1)
at Object../index.js (main.js:2)
at __nested_webpack_require_562843__ (main.js:2)
at main.js:2
at factory (main.js:2)
at Object.823 (main.js:2)
at __webpack_require__ (main.js:2)
at main.js:2
at main.js:2"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:2)
at eval (index.js:1)
at Object../index.js (main.js:2)
at __nested_webpack_require_562843__ (main.js:2)
at main.js:2
at factory (main.js:2)
at Object.823 (main.js:2)
at __webpack_require__ (main.js:2)
at main.js:2
at main.js:2
</code></pre></div>
<p dir="auto">it fails inside the webpack require function during request for <code class="notranslate">lodash</code> at the line</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);"><pre class="notranslate"><code class="notranslate">__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
</code></pre></div>
<p dir="auto">It looks like that <code class="notranslate">__webpack_modules__</code> is the map of modules which are direct dependencies of <code class="notranslate">host</code> code, while <code class="notranslate">lodash</code> module lives inside <code class="notranslate">__webpack_modules__</code> map bundled into the mock library. The same error happens if <code class="notranslate">lodash</code> is declared as external dependency of the mock library.</p>
<p dir="auto">At the same time it all works fine if everything is bundled for production and served without dev server.</p>
</li>
</ol>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Module resolution must not fail. In this specific example <code class="notranslate">lodash</code> should be resolved, and you should see in the console debug messages printed by the library and by the host code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="LODASH: 4.17.20
Hello World!"><pre class="notranslate"><code class="notranslate">LODASH: 4.17.20
Hello World!
</code></pre></div>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.1.3<br>
Node.js version: 12.19.0<br>
Operating System: Ubuntu 20.04.1<br>
Additional tools: none</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto"><code class="notranslate">__webpack_require__</code> goes bang attempting to import a library local to our project (i.e. a sibling package in the same lerna monorepo).</p>
<p dir="auto">We did not experience this problem in webpack 4.25.1, but we do experience the problem in webpack 5.0.0-beta.23.</p>
<p dir="auto">Depending on how modern your browser is, you will encounter one of the following error messages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: __webpack_modules__[moduleId] is undefined
__webpack_require__ http://localhost:8080/main.js:455"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: __webpack_modules__[moduleId] is undefined
__webpack_require__ http://localhost:8080/main.js:455
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:455)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:455)
</code></pre></div>
<p dir="auto">You'll recognise the latter from existing issues such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="280373463" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/6094" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/6094/hovercard" href="https://github.com/webpack/webpack/issues/6094">#6094</a>. I think what I've found is just one of many ways to encounter this problem. I tried a lot of existing suggestions, but to no avail. Fortunately we have a repro this time. <g-emoji class="g-emoji" alias="slightly_smiling_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f642.png">🙂</g-emoji></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Minimal repro repository here:<br>
<a href="https://github.com/Birch-san/webpack-repro">https://github.com/Birch-san/webpack-repro</a></p>
<p dir="auto">Repository layout (<code class="notranslate">*</code> indicates a file output by build/installation):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" webpack-repro
* ├── node_modules
├── README.md
├── package-lock.json
├── package.json
└── packages
├── lib
* │ ├── dist
* │ │ └── main.js
│ ├── package.json
│ ├── src
│ │ ├── index.js
│ │ └── utils.js
│ └── webpack.config.js
└── web
├── dist
│ ├── index.html
* │ └── main.js
├── node_modules
│ └── @my-cool-project
│ └── lib -> ../../../lib
├── src
│ └── index.js
└── webpack.config.js"><pre class="notranslate"><code class="notranslate"> webpack-repro
* ├── node_modules
├── README.md
├── package-lock.json
├── package.json
└── packages
├── lib
* │ ├── dist
* │ │ └── main.js
│ ├── package.json
│ ├── src
│ │ ├── index.js
│ │ └── utils.js
│ └── webpack.config.js
└── web
├── dist
│ ├── index.html
* │ └── main.js
├── node_modules
│ └── @my-cool-project
│ └── lib -> ../../../lib
├── src
│ └── index.js
└── webpack.config.js
</code></pre></div>
<p dir="auto">Full file contents available in the linked repository, but for convenience I'll show some excerpts here.</p>
<p dir="auto">There are two packages in this monorepo: <code class="notranslate">web</code> and <code class="notranslate">lib</code>.</p>
<ul dir="auto">
<li><code class="notranslate">lib</code> is a library that exports one function, leftPad.</li>
<li><code class="notranslate">web</code> is a webpage that <code class="notranslate">console.log()</code> a left-padded hello world.</li>
</ul>
<p dir="auto"><code class="notranslate">packages/lib/webpack.config.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path')
module.exports = {
entry: path.resolve(__dirname, 'src/index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
library: 'lib',
libraryTarget: 'umd'
},
mode: 'development'
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'src/index.js'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'dist'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</span><span class="pl-kos">,</span>
<span class="pl-c1">library</span>: <span class="pl-s">'lib'</span><span class="pl-kos">,</span>
<span class="pl-c1">libraryTarget</span>: <span class="pl-s">'umd'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">mode</span>: <span class="pl-s">'development'</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">packages/web/webpack.config.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path')
module.exports = {
entry: path.resolve(__dirname, 'src/index.js'),
output: {
filename: '[name].js',
publicPath: '/'
},
devServer: {
contentBase: './dist'
},
mode: 'development',
watch: true
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'src/index.js'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</span><span class="pl-kos">,</span>
<span class="pl-c1">publicPath</span>: <span class="pl-s">'/'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">devServer</span>: <span class="pl-kos">{</span>
<span class="pl-c1">contentBase</span>: <span class="pl-s">'./dist'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">mode</span>: <span class="pl-s">'development'</span><span class="pl-kos">,</span>
<span class="pl-c1">watch</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">packages/web/src/index.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { leftPad } from '@my-cool-project/lib'
console.log(leftPad('hello world', 20));"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">leftPad</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@my-cool-project/lib'</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">leftPad</span><span class="pl-kos">(</span><span class="pl-s">'hello world'</span><span class="pl-kos">,</span> <span class="pl-c1">20</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I've tried to replicate the important behaviours of a lerna monorepo in a minimalist way.</p>
<ul dir="auto">
<li>every package has its own directory inside <code class="notranslate">packages</code></li>
<li><code class="notranslate">lib</code> gets imported, so I've given it a <code class="notranslate">package.json</code></li>
<li>all dependencies are hoisted to root-level
<ul dir="auto">
<li>the only dependency is webpack so this doesn't really matter</li>
</ul>
</li>
<li><code class="notranslate">web</code> depends on <code class="notranslate">lib</code> via <code class="notranslate">@my-cool-project/lib</code>
<ul dir="auto">
<li><code class="notranslate">web</code> has a package-local node_modules with a symlink <code class="notranslate">@my-cool-project/lib</code> that leads to the <code class="notranslate">lib</code> folder</li>
<li><em>it'd be more realistic if I'd hoisted this symlink to root-level, but making it package-local was an easy way to prevent its being clobbered by the npm install</em></li>
</ul>
</li>
</ul>
<p dir="auto">Setup instructions:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# root-level npm install. our only dependencies are the webpack toolchain
npm i
# build lib
cd packages/lib
node ../../node_modules/.bin/webpack
# run the website
cd ../web
node ../../node_modules/.bin/webpack-dev-server"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> root-level npm install. our only dependencies are the webpack toolchain</span>
npm i
<span class="pl-c"><span class="pl-c">#</span> build lib</span>
<span class="pl-c1">cd</span> packages/lib
node ../../node_modules/.bin/webpack
<span class="pl-c"><span class="pl-c">#</span> run the website</span>
<span class="pl-c1">cd</span> ../web
node ../../node_modules/.bin/webpack-dev-server</pre></div>
<p dir="auto">Navigate to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></p>
<p dir="auto">In Firefox 80.0b3, you should expect to see the following error when <code class="notranslate">web</code> attempts to import <code class="notranslate">lib</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: __webpack_modules__[moduleId] is undefined
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> webpack://lib/./src/index.js?:5
js webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:28
__nested_webpack_require_3026__ webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:65
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:104
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:105
webpackUniversalModuleDefinition webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:11
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:13
node_modules my-cool-project/lib/dist/main.js@http://localhost:8080/main.js:418
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> webpack:///./src/index.js?:2
js http://localhost:8080/main.js:432
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> http://localhost:8080/main.js:529
<anonymous> http://localhost:8080/main.js:532"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: __webpack_modules__[moduleId] is undefined
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> webpack://lib/./src/index.js?:5
js webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:28
__nested_webpack_require_3026__ webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:65
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:104
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:105
webpackUniversalModuleDefinition webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:11
<anonymous> webpack:///./node_modules/@my-cool-project/lib/dist/main.js?:13
node_modules my-cool-project/lib/dist/main.js@http://localhost:8080/main.js:418
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> webpack:///./src/index.js?:2
js http://localhost:8080/main.js:432
__webpack_require__ http://localhost:8080/main.js:455
<anonymous> http://localhost:8080/main.js:529
<anonymous> http://localhost:8080/main.js:532
</code></pre></div>
<p dir="auto">In Chrome 84, you'll get a slightly vaguer message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:455)
at eval (index.js:5)
at Object../src/index.js (main.js:28)
at __nested_webpack_require_3026__ (main.js:65)
at eval (main.js:104)
at eval (main.js:105)
at webpackUniversalModuleDefinition (main.js:11)
at eval (main.js:13)
at Object../node_modules/@my-cool-project/lib/dist/main.js (main.js:418)
at __webpack_require__ (main.js:455)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'call' of undefined
at __webpack_require__ (main.js:455)
at eval (index.js:5)
at Object../src/index.js (main.js:28)
at __nested_webpack_require_3026__ (main.js:65)
at eval (main.js:104)
at eval (main.js:105)
at webpackUniversalModuleDefinition (main.js:11)
at eval (main.js:13)
at Object../node_modules/@my-cool-project/lib/dist/main.js (main.js:418)
at __webpack_require__ (main.js:455)
</code></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Navigating to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a> should output the following message to the console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" hello world"><pre class="notranslate"><code class="notranslate"> hello world
</code></pre></div>
<p dir="auto">I think this may be to do with module federation? <code class="notranslate">lib</code> fails to find its own module, <code class="notranslate">./src/utils.js</code>. I think it's looking in the wrong place; it needs to look among <em>its own modules</em>, but it's looking for them in the top-level <code class="notranslate">__webpack_modules__</code>.</p>
<p dir="auto">Thanks for any assistance you can provide! <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.0.0-beta.23<br>
Node.js version: v12.12.0<br>
Operating System: macOS Mojave 10.14.6</p> | 1 |
<p dir="auto">System Information:</p>
<ul dir="auto">
<li>OpenCV => 4.2</li>
<li>Operating System / Platform => Windows 7/ 32 Bit</li>
<li>Compiler => Visual Studio 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am currently editing cap_ffmpeg_impl.hpp in modules/videoio/src and compiling the binaries. As FFMPEG is a 3rd party library it doesn't register changes in the cap_ffmpeg_impl.hpp and downloads the external binary(opencv_videoio_ffmpeg420.dll ) instead of compiling with the local files.</p>
<p dir="auto">What is the procedure for compiling with the source files?</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.1.0</li>
<li>Operating System / Platform => Windows 7 64 Bit</li>
<li>Compiler => Visual Studio 2013</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto">Steps to reproduce</h5> | 1 |
<p dir="auto">The comments imply, to me, that specifying --cert-dir will cause the apiserver to look in --cert-dir for some appopriately named certs and will use those. This is in lieu of the user specifying --tls-cert-file and --tls-private-key manually.</p>
<p dir="auto">Two problems: one, the flag descriptions don't tell the user what the cert/key need to be named for them to be auto-picked up. Two, the code doesn't actually look for those files in the --cert-dir. It just clobbers them with Kubernetes's own self-signed certificates.</p>
<p dir="auto">Of course, it's also possible that I'm just misunderstanding the description of --cert-dir. In that case, I think it would be clearer if --cert-dir said "The directory where self-signed TLS certs are placed".</p>
<p dir="auto">Relevant code: <a href="https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-apiserver/app/server.go#L621-L622">https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-apiserver/app/server.go#L621-L622</a></p>
<p dir="auto">(note, util.GenerateSelfSignedCert says in a comment that it will replace any existing certs)</p> | <p dir="auto">It seems to actually overwrite existing ones</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.2</li>
<li>Operating System version:Windows10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>同一个微服务多个类引用同样的dubbo服务</li>
<li>每个类的reference除了version和group一样之外,其它属性均有不一样的配置</li>
<li>项目运行起来后有些类的此dubbo服务reference注解属性不起作用</li>
</ol>
<p dir="auto">我看了源码,是这里的问题:<br>
/**<br>
* Generate a cache key of {<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/link/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/link">@link</a> ReferenceBean}<br>
*<br>
* <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/param/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/param">@param</a> reference {<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/link/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/link">@link</a> Reference}<br>
* <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/param/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/param">@param</a> beanClass {<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/link/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/link">@link</a> Class}<br>
* <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/return/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/return">@return</a><br>
*/<br>
private String generateReferenceBeanCacheKey(Reference reference, Class<?> beanClass) {</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" String interfaceName = resolveInterfaceName(reference, beanClass);
String key = reference.url() + "/" + interfaceName +
"/" + reference.version() +
"/" + reference.group();
Environment environment = applicationContext.getEnvironment();
key = environment.resolvePlaceholders(key);
return key;
}"><pre class="notranslate"><code class="notranslate"> String interfaceName = resolveInterfaceName(reference, beanClass);
String key = reference.url() + "/" + interfaceName +
"/" + reference.version() +
"/" + reference.group();
Environment environment = applicationContext.getEnvironment();
key = environment.resolvePlaceholders(key);
return key;
}
</code></pre></div>
<p dir="auto">这里会缓存dubbo service,但是key应该由所有reference属性组成才对</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6-SNAPSHOT</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Looks like there are some potential code issues in two files: a collection or map whose contents are never queried or accessed is useless.</p>
<p dir="auto"><a href="https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java#L111">https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java#L111</a><br>
<a href="https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/compiler/support/JdkCompiler.java#L211">https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/compiler/support/JdkCompiler.java#L211</a></p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Remove them if it can be confirmed as unless</p> | 0 |
<h3 dir="auto">Description</h3>
<p dir="auto">I got following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-11-09, 08:25:30 UTC] {base.py:70} INFO - Using connection to: id: rdb_conn_id. Host: rdb, Port: 5432, Schema: configuration, Login: user, Password: ***, extra: {'sslmode': 'allow', 'client_encoding': 'utf8'}
[2021-11-09, 08:25:30 UTC] {taskinstance.py:1703} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1332, in _run_raw_task
self._execute_task_with_callbacks(context)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1458, in _execute_task_with_callbacks
result = self._execute_task(context, self.task)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1514, in _execute_task
result = execute_callable(context=context)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 151, in execute
return_value = self.execute_callable()
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 162, in execute_callable
return self.python_callable(*self.op_args, **self.op_kwargs)
File "/opt/airflow/dags/repo/dags/run_configuration.py", line 34, in run_job
dagsUtils.run_step_insert_to_temp_table(tenant, job_name, table_name, job_type)
File "/opt/airflow/dags/rev-e3db01f68e7979d71d12ae24008a97065db2144f/dags/utils/dag_util.py", line 106, in run_step_insert_to_temp_table
for df in df_result:
File "/home/airflow/.local/lib/python3.9/site-packages/pandas/io/sql.py", line 1499, in _query_iterator
data = result.fetchmany(chunksize)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1316, in fetchmany
self.connection._handle_dbapi_exception(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1514, in _handle_dbapi_exception
util.raise_(exc_info[1], with_traceback=exc_info[2])
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
raise exception
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1311, in fetchmany
l = self.process_rows(self._fetchmany_impl(size))
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1224, in _fetchmany_impl
return self.cursor.fetchmany(size)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 12: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">[2021-11-09, 08:25:30 UTC] {base.py:70} INFO - Using connection to: id: rdb_conn_id. Host: rdb, Port: 5432, Schema: configuration, Login: user, Password: ***, extra: {'sslmode': 'allow', 'client_encoding': 'utf8'}
[2021-11-09, 08:25:30 UTC] {taskinstance.py:1703} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1332, in _run_raw_task
self._execute_task_with_callbacks(context)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1458, in _execute_task_with_callbacks
result = self._execute_task(context, self.task)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1514, in _execute_task
result = execute_callable(context=context)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 151, in execute
return_value = self.execute_callable()
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 162, in execute_callable
return self.python_callable(*self.op_args, **self.op_kwargs)
File "/opt/airflow/dags/repo/dags/run_configuration.py", line 34, in run_job
dagsUtils.run_step_insert_to_temp_table(tenant, job_name, table_name, job_type)
File "/opt/airflow/dags/rev-e3db01f68e7979d71d12ae24008a97065db2144f/dags/utils/dag_util.py", line 106, in run_step_insert_to_temp_table
for df in df_result:
File "/home/airflow/.local/lib/python3.9/site-packages/pandas/io/sql.py", line 1499, in _query_iterator
data = result.fetchmany(chunksize)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1316, in fetchmany
self.connection._handle_dbapi_exception(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1514, in _handle_dbapi_exception
util.raise_(exc_info[1], with_traceback=exc_info[2])
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
raise exception
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1311, in fetchmany
l = self.process_rows(self._fetchmany_impl(size))
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/result.py", line 1224, in _fetchmany_impl
return self.cursor.fetchmany(size)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 12: ordinal not in range(128)
</code></pre></div>
<p dir="auto">Try to set <code class="notranslate">extra</code> in airflow connection but it does not work<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37215642/140909372-20805f0c-aa98-44a7-94c2-419aea176f70.png"><img src="https://user-images.githubusercontent.com/37215642/140909372-20805f0c-aa98-44a7-94c2-419aea176f70.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">See that <code class="notranslate">airflow/providers/mysql/hooks</code> support getting <code class="notranslate">extra</code> configs from airflow connection <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="537772483" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/6816" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/6816/hovercard" href="https://github.com/apache/airflow/pull/6816">#6816</a> but not yet for postgresql hook</p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Apache Airflow Provider(s)</h3>
<p dir="auto">cncf-kubernetes</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-cncf-kubernetes==4.4.0, but it appears in the most recent code I have seen.</p>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">apache-airflow==2.4.3</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Official Apache Airflow Helm Chart</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">What happened</h3>
<p dir="auto">The following function which gets logs from K8 pods occasionally, produces duplicated logs. I believe the reason for this is <code class="notranslate">math.ceil()</code> rounds up the number of seconds and occasionally logs are duplicated due to rounding errors. We see this stream cut out while producing logs then return logs from just before it cut out. An example of that is provided bellow.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
timestamp, message = self.parse_log_line(line)
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time
# note: `read_pod_logs` follows the logs, so we shouldn't necessarily *need* to
# loop as we do here. But in a long-running process we might temporarily lose connectivity.
# So the looping logic is there to let us resume following the logs.
last_log_time = since_time
while True:
last_log_time = consume_logs(since_time=last_log_time, follow=follow)
if not self.container_is_running(pod, container_name=container_name):
return PodLoggingStatus(running=False, last_log_time=last_log_time)
if not follow:
return PodLoggingStatus(running=True, last_log_time=last_log_time)
else:
self.log.warning(
'Pod %s log read interrupted but container %s still running',
pod.metadata.name,
container_name,
)
time.sleep(1)"><pre class="notranslate"><code class="notranslate"> def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
timestamp, message = self.parse_log_line(line)
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time
# note: `read_pod_logs` follows the logs, so we shouldn't necessarily *need* to
# loop as we do here. But in a long-running process we might temporarily lose connectivity.
# So the looping logic is there to let us resume following the logs.
last_log_time = since_time
while True:
last_log_time = consume_logs(since_time=last_log_time, follow=follow)
if not self.container_is_running(pod, container_name=container_name):
return PodLoggingStatus(running=False, last_log_time=last_log_time)
if not follow:
return PodLoggingStatus(running=True, last_log_time=last_log_time)
else:
self.log.warning(
'Pod %s log read interrupted but container %s still running',
pod.metadata.name,
container_name,
)
time.sleep(1)
</code></pre></div>
<p dir="auto">Example log illustrating this issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-10-16, 14:45:32 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:32 UTC level=INFO|message= |fileName=aws.py|funcName=send_sqs_message|lineno=349|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=send_notification|notification_type=sqs|notification_url=https://sqs.us-gov-east-1.amazonaws.com/252649730194/scheduler-pass-status.fifo|notification_message=e5b06226-b7a2-4174-9301-b243b54e0df0:delivered-3ball|notification_dedup_id_id=nfaZZWF-vTRsEa5j4jDyRDxA7Z0=|notification_message_id=f9880a14-1dfe-4bb4-bd36-f05cc322dcff|notification_status_code=200|status=success
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/e5b06226-b7a2-4174-9301-b243b54e0df0
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=121|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=collection_end_to_download|collection_end_time=1665887200|downloaded_time=1665904990|latency_minutes=296.5|collection_end_fallback=False|downloaded_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=133|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=download_to_stored|downloaded_time=1665904990|stored_time=1665924817|latency_minutes=330.45|downloaded_fallback=False|stored_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=145|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=stored_to_inspected|stored_time=1665924817|inspected_time=1665924984|latency_minutes=2.783333333333333|stored_fallback=False|inspected_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=155|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=inspected_to_promoted|inspected_time=1665924984|promotion_time=1665931533|latency_minutes=109.15|inspected_fallback=False|status=delivered-3ball
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=common.py|funcName=stop|lineno=47|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=ending_heartbeat
[2022-10-16, 14:45:35 UTC] {pod_manager.py:251} WARNING - Pod geoloc-promote-processing-run-bdf89b8515e84aefa0fbb2cbe90b29a6 log read interrupted but container base still running
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/e5b06226-b7a2-4174-9301-b243b54e0df0
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=inspected"><pre class="notranslate"><code class="notranslate">[2022-10-16, 14:45:32 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:32 UTC level=INFO|message= |fileName=aws.py|funcName=send_sqs_message|lineno=349|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=send_notification|notification_type=sqs|notification_url=https://sqs.us-gov-east-1.amazonaws.com/252649730194/scheduler-pass-status.fifo|notification_message=e5b06226-b7a2-4174-9301-b243b54e0df0:delivered-3ball|notification_dedup_id_id=nfaZZWF-vTRsEa5j4jDyRDxA7Z0=|notification_message_id=f9880a14-1dfe-4bb4-bd36-f05cc322dcff|notification_status_code=200|status=success
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/e5b06226-b7a2-4174-9301-b243b54e0df0
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=downloaded
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=Stored
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=inspected
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=121|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=collection_end_to_download|collection_end_time=1665887200|downloaded_time=1665904990|latency_minutes=296.5|collection_end_fallback=False|downloaded_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=133|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=download_to_stored|downloaded_time=1665904990|stored_time=1665924817|latency_minutes=330.45|downloaded_fallback=False|stored_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=145|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=stored_to_inspected|stored_time=1665924817|inspected_time=1665924984|latency_minutes=2.783333333333333|stored_fallback=False|inspected_fallback=False
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=promote_processing_run.py|funcName=log_status_time_intervals|lineno=155|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=inspected_to_promoted|inspected_time=1665924984|promotion_time=1665931533|latency_minutes=109.15|inspected_fallback=False|status=delivered-3ball
[2022-10-16, 14:45:33 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=common.py|funcName=stop|lineno=47|run_name=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|run_id=e5b06226_geoloc_pipeline_radar_caf_1665924984.629687|platform_count=3|group_id=e5b06226-b7a2-4174-9301-b243b54e0df0|schedule_id=e5b06226-b7a2-4174-9301-b243b54e0df0|task_type=xband_collect|event=ending_heartbeat
[2022-10-16, 14:45:35 UTC] {pod_manager.py:251} WARNING - Pod geoloc-promote-processing-run-bdf89b8515e84aefa0fbb2cbe90b29a6 log read interrupted but container base still running
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/e5b06226-b7a2-4174-9301-b243b54e0df0
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=2a3e94a4-0a5c-42aa-ba53-9bbf39fa30c9|pass_status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/63ef6f27-97b7-4c16-88e6-26c1a6e2581e/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=63ef6f27-97b7-4c16-88e6-26c1a6e2581e|pass_status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=downloaded
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=Stored
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message={} |fileName=api_utils.py|funcName=_check_request_response|lineno=54|event=get_retry_request|status=success|url=https://scheduler.space.prod.gov.he2pi.com/api/schedule/passes/beb79165-3d77-4615-b86d-37bb5b81ae64/status?status=inspected
[2022-10-16, 14:45:36 UTC] {pod_manager.py:226} INFO - 2022-10-16, 14:45:33 UTC level=INFO|message= |fileName=scheduler_api.py|funcName=get_pass_id_status_timestamp|lineno=31|event=pass_id_status_retrieval|status=success|pass_id=beb79165-3d77-4615-b86d-37bb5b81ae64|pass_status=inspected
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">I believe the following code should fix this issue.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
tmp_timestamp, message = self.parse_log_line(line)
if tmp_timestamp > timestamp:
timestamp = tmp_timestamp
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time
``` def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
tmp_timestamp, message = self.parse_log_line(line)
if tmp_timestamp > timestamp:
timestamp = tmp_timestamp
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time"><pre class="notranslate"><code class="notranslate"> def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
tmp_timestamp, message = self.parse_log_line(line)
if tmp_timestamp > timestamp:
timestamp = tmp_timestamp
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time
``` def fetch_container_logs(
self, pod: V1Pod, container_name: str, *, follow=False, since_time: DateTime | None = None
) -> PodLoggingStatus:
"""
Follows the logs of container and streams to airflow logging.
Returns when container exits.
"""
def consume_logs(*, since_time: DateTime | None = None, follow: bool = True) -> DateTime | None:
"""
Tries to follow container logs until container completes.
For a long-running container, sometimes the log read may be interrupted
Such errors of this kind are suppressed.
Returns the last timestamp observed in logs.
"""
timestamp = None
try:
logs = self.read_pod_logs(
pod=pod,
container_name=container_name,
timestamps=True,
since_seconds=(
math.ceil((pendulum.now() - since_time).total_seconds()) if since_time else None
),
follow=follow,
)
for raw_line in logs:
line = raw_line.decode('utf-8', errors="backslashreplace")
tmp_timestamp, message = self.parse_log_line(line)
if tmp_timestamp > timestamp:
timestamp = tmp_timestamp
self.log.info(message)
except BaseHTTPError as e:
self.log.warning(
"Reading of logs interrupted with error %r; will retry. "
"Set log level to DEBUG for traceback.",
e,
)
self.log.debug(
"Traceback for interrupted logs read for pod %r",
pod.metadata.name,
exc_info=True,
)
return timestamp or since_time
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Please don't close my issue. I don't know how to provide reproducible code for this. I hope that my example, pointing to exactly where the problem is, and my proposed solution is sufficient to get this bug fixed.</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">This bug appears fairly frequently in our set up which has lots of long running processes on K8 pods. It impacts some of our reporting and metrics and we would like to be able to correct it. Please let me know if there is anyway I can be of assistance as you work to correct the issue.</p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto">Hi there,<br>
Challenge <a href="http://freecodecamp.com/challenges/waypoint-target-html-elements-with-selectors-using-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-target-html-elements-with-selectors-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">During "Run code" my browser (Mozilla 39.0) hung and asked to wait or stop running scenario. Meanwhile my page began continuously refreshing, after refresh challenge was marked as "Successfully passed" and moved to next challenge, and so on!!!</p>
<p dir="auto">Then I quickly closed browser tab. Sorry I haven't screenshot but seems, for every challenge some script generating POST request with new URI and code "successfully passed".</p>
<p dir="auto">Thanks for your good job and cool material. Wish you money richness ))))))</p>
<p dir="auto">Wbr,<br>
Nik</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/c90da90b9d5a16c77e11b06a3d0f66d9d0b99260fa20349ac632cdc3d651a1e6/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41725f63317a466f55685650584a41352d49754b766d764e5a376c65322d744b565030422f696d6167652e706e67"><img src="https://camo.githubusercontent.com/c90da90b9d5a16c77e11b06a3d0f66d9d0b99260fa20349ac632cdc3d651a1e6/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41725f63317a466f55685650584a41352d49754b766d764e5a376c65322d744b565030422f696d6167652e706e67" alt="" data-canonical-src="https://www.evernote.com/l/Ar_c1zFoUhVPXJA5-IuKvmvNZ7le2-tKVP0B/image.png" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">This feature was requested before <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51282947" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/4988" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/4988/hovercard" href="https://github.com/golang/go/issues/4988">#4988</a> but the bug was closed as WAI. I believe having popcnt part of standard library would benefit greatly many libraries.</p>
<p dir="auto">For example there are two popcnt implementation in the golang tools:<br>
<a href="https://github.com/golang/go/blob/dev.ssa/src/cmd/internal/ssa/regalloc.go#L39">https://github.com/golang/go/blob/dev.ssa/src/cmd/internal/ssa/regalloc.go#L39</a><br>
<a href="https://github.com/golang/tools/blob/master/container/intsets/util.go#L22">https://github.com/golang/tools/blob/master/container/intsets/util.go#L22</a></p>
<p dir="auto">It is also provided by several third party libraries<br>
<a href="http://go-search.org/search?q=popcnt" rel="nofollow">http://go-search.org/search?q=popcnt</a><br>
<a href="http://go-search.org/search?q=popcount" rel="nofollow">http://go-search.org/search?q=popcount</a></p>
<p dir="auto">These implementation are incomplete: the libraries provide assembly for one platform (amd64 in the best case), may not be not inlined (function call will dominate the benchmarks <a href="http://stackoverflow.com/questions/25471369/performance-discrepancy-in-compiled-vs-hand-written-assembly" rel="nofollow">http://stackoverflow.com/questions/25471369/performance-discrepancy-in-compiled-vs-hand-written-assembly</a>), are not well test, or are under a restrictive licence.</p>
<p dir="auto">There is also a long standing bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51282683" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/4816" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/4816/hovercard" href="https://github.com/golang/go/issues/4816">#4816</a> which requests the POPCNT instruction on amd64. With POPCNT instruction population counting can be turned into a single instruction similarly to math.Sqrt (<a href="https://go-review.googlesource.com/#/c/8465/" rel="nofollow">https://go-review.googlesource.com/#/c/8465/</a>).</p>
<p dir="auto">popcnt is very often used by chess, go (the game), checkers engines, all of them would benefit from a fast popcnt. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51286587" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/7357" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/7357/hovercard" href="https://github.com/golang/go/issues/7357">#7357</a> provides another real word usage. Also a Go developer expressed his wish for popcnt (and other similar operations) to be provided by the standard library (<a href="https://go-review.googlesource.com/#/c/9761/1/src/cmd/internal/ssa/regalloc.go@41" rel="nofollow">https://go-review.googlesource.com/#/c/9761/1/src/cmd/internal/ssa/regalloc.go@41</a>).</p> | <p dir="auto">by <strong>fuzxxl</strong>:</p>
<pre class="notranslate">The Popcount (or hammington weight) is a function that determines the number of one-bits
in an integer. This function is useful for cryptographic applications and certain data
structures. As it is possible to implement this function efficiently with special
instructions (VCNT on ARM7 and POPCOUNT on amd64 since SSE 4.2), it would be nice to
have this function in the standard library.</pre> | 1 |
<p dir="auto">Type the entire first line, move to the second line, the text bar starts in front of the first word on the second line and caret is placed at the beginning of the first word.</p>
<ul dir="auto">
<li>[ x] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Caret is placed after the last symbol.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Caret is placed at the beginning of the last word.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">It is reproducible in some specific environment: cordova + crosswalk project. So I'm sure that it is specific to chromium engine. And I'm going to create a PR to resolve this issue. So hopefully it will be enough.</p>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20.0</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I use a Select Field, it should "feel" responsive and fast. Currently, before the menu with all select options pops up, we wait until the mouseclick is over. Instead, at least on non-touch devices we should consider starting the opening animation as soon as the click starts (for instance the mousedown event).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">As described in "Expected Behavior", currently we wait until the click event is over before the Select field opens the menu with all options. This makes it feel much less responsive and slow compared with say the native select field in Chrome, which opens instantly.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Check the Select page in the current documentation to try it out: <a href="https://material-ui.com/demos/selects/" rel="nofollow">https://material-ui.com/demos/selects/</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">We use the select field in various places of our app, and we feel like the current behavior of the Select field makes our application feel sluggish and slow.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>Beta 20</td>
</tr>
<tr>
<td>React</td>
<td>15.6.2</td>
</tr>
<tr>
<td>browser</td>
<td>Google Chrome 61.0.3163.100</td>
</tr>
</tbody>
</table> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Just keep typing.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Keep the history.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Lost the history. See the GIF file:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1520283/66694992-812b1780-eced-11e9-891b-da2042021203.gif"><img src="https://user-images.githubusercontent.com/1520283/66694992-812b1780-eced-11e9-891b-da2042021203.gif" alt="terminal" data-animated-image="" style="max-width: 100%;"></a></p> | <h2 dir="auto">Environment data</h2>
<div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="PS version: 5.1.17712.1000
PSReadline version: 2.0.0-beta2
os: 10.0.17712.1000 (WinBuild.160101.0800)
PS file version: 10.0.17712.1000 (WinBuild.160101.0800)"><pre class="notranslate">PS version: <span class="pl-c1">5.1</span>.<span class="pl-c1">17712.1000</span>
PSReadline version: <span class="pl-c1">2.0</span>.<span class="pl-c1">0</span><span class="pl-k">-</span>beta2
os: <span class="pl-c1">10.0</span>.<span class="pl-c1">17712.1000</span> (WinBuild.<span class="pl-c1">160101.0800</span>)
PS file version: <span class="pl-c1">10.0</span>.<span class="pl-c1">17712.1000</span> (WinBuild.<span class="pl-c1">160101.0800</span>)</pre></div>
<h2 dir="auto">Steps to reproduce or exception report</h2>
<p dir="auto">Make sure that the prompt is at the bottom of the screen, then press enter any number of times. One should do.<br>
PSReadline will emit <code class="notranslate">^[[1S</code> (from <a href="https://github.com/lzybkr/PSReadLine/blob/master/PSReadLine/ConsoleLib.cs#L114">ConsoleLib.cs</a>, perhaps via <a href="https://github.com/lzybkr/PSReadLine/blob/46960b1fe442024923381eedd1c9100ded30d123/PSReadLine/ReadLine.cs#L926">ReadLine.cs</a>).</p>
<p dir="auto">Scrolling the viewport in this manner can:</p>
<ul dir="auto">
<li>destroy the user's scrollback buffer</li>
<li>force an expensive full-buffer repaint over a VT link (like ssh or pty)</li>
</ul>
<p dir="auto"><em>cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zadjii-msft/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zadjii-msft">@zadjii-msft</a></em></p> | 1 |
<p dir="auto">This test is failing often on the gci-serial suite both on master and release-1.4.</p>
<p dir="auto"><a href="https://k8s-testgrid.appspot.com/google-gci#gci-serial&sort-by-failures=" rel="nofollow">Test Grid link</a></p>
<p dir="auto">GCI is the default in v1.4 and so it is imperative to at-least triage the flakes soon.</p>
<p dir="auto">cc @kubernetes/autoscaling</p> | <p dir="auto">Forked from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159700661" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27194" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27194/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27194">#27194</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ichekrygin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ichekrygin">@ichekrygin</a> reported a weird cpu/usage_rate issue from heapster</p>
<p dir="auto">I am running on v1.3.5 and this still seems to be an issue</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/production/pods/rain-377063289-tz0tq/metrics/cpu/usage_rate
{
"metrics": [
{
"timestamp": "2016-08-18T03:04:00Z",
"value": 18446744073709551449
},
{
"timestamp": "2016-08-18T03:05:00Z",
"value": 705
},
{
"timestamp": "2016-08-18T03:06:00Z",
"value": 18446744073709551028
},
{
"timestamp": "2016-08-18T03:07:00Z",
"value": 696
},
{
"timestamp": "2016-08-18T03:08:00Z",
"value": 18446744073709550587
},
{
"timestamp": "2016-08-18T03:09:00Z",
"value": 0
},"><pre class="notranslate"><code class="notranslate">curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/production/pods/rain-377063289-tz0tq/metrics/cpu/usage_rate
{
"metrics": [
{
"timestamp": "2016-08-18T03:04:00Z",
"value": 18446744073709551449
},
{
"timestamp": "2016-08-18T03:05:00Z",
"value": 705
},
{
"timestamp": "2016-08-18T03:06:00Z",
"value": 18446744073709551028
},
{
"timestamp": "2016-08-18T03:07:00Z",
"value": 696
},
{
"timestamp": "2016-08-18T03:08:00Z",
"value": 18446744073709550587
},
{
"timestamp": "2016-08-18T03:09:00Z",
"value": 0
},
</code></pre></div>
<p dir="auto">Node version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubelet --version
Kubernetes v1.3.5"><pre class="notranslate"><code class="notranslate">kubelet --version
Kubernetes v1.3.5
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timstclair/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timstclair">@timstclair</a> and I checked his node stats by collecting <code class="notranslate">curl -s http://localhost:10255/stats/summary | jq '.node.cpu.usageCoreNanoSeconds'</code>. usageCoreNanoSeconds is the accumulative cpu usage, and it is only stats used by heapster and HPA. This stat is mapping to heapster's cpu usage, and it is used to calculate cpu/usage_rate together with some timestamps. We noticed that the usageCoreNanoSeconds are sane, but corresponding heapster's cpu/usage_rate is insane as the above. I believe heapster ran into some overflow issue cAdvisor encountered before. Filed this one as a record to make sure the problem is addressed at the proper layer.</p>
<p dir="auto">cc/ <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mwielgus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mwielgus">@mwielgus</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fgrzadkowski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fgrzadkowski">@fgrzadkowski</a></p> | 1 |
<h2 dir="auto">"type id is VariableTensorId" runtime error for some mobile models</h2>
<p dir="auto">guard torch::jit::load() with AutoGradMode & AutoNonVariableTypeMode</p>
<p dir="auto">Summary:<br>
Since PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="488760465" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/25597" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/25597/hovercard" href="https://github.com/pytorch/pytorch/pull/25597">#25597</a> landed some models started failing to run with mobile<br>
build with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type id is VariableTensorId
terminate called after throwing an instance of 'std::runtime_error'
what(): false CHECK FAILED at ../c10/core/Backend.h"><pre class="notranslate"><code class="notranslate">type id is VariableTensorId
terminate called after throwing an instance of 'std::runtime_error'
what(): false CHECK FAILED at ../c10/core/Backend.h
</code></pre></div>
<p dir="auto">Seems we need AutoGradMode guard and AutoNonVariableTypeMode guard while<br>
torch::jit::load().</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">In pytorch 1.3, when doing inference with resnet34 on CPU with variable input shapes, much more memory is used compared to pytorch 1.1 (both CPU-only builds on one core): 6 GB for pytorch 1.3 vs. ~0.5 GB for pytorch 1.1</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">Run the following script <a href="https://gist.github.com/lopuhin/0d100ef7df01fdfc91d9685f6e01ff64">https://gist.github.com/lopuhin/0d100ef7df01fdfc91d9685f6e01ff64</a> - it performs inference with resnet34 on images with fixed width and variable height, and reports speed and memory growth over the course of the benchmark.</p>
<p dir="auto">Running under pytorch 1.1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python3 pytorch_high_mem.py --n 500
torch 1.1.0
heights: mean=1004, p50=278 p95=5100 max=7680
n=100 memory growth (kb): 477,952
n=200 memory growth (kb): 503,948
n=300 memory growth (kb): 503,948
n=400 memory growth (kb): 518,652
time: mean=0.924 s, p50=0.271 s, p95=4.626 s
memory (kb): 174,552 initial, 518,652 growth"><pre class="notranslate"><code class="notranslate">$ python3 pytorch_high_mem.py --n 500
torch 1.1.0
heights: mean=1004, p50=278 p95=5100 max=7680
n=100 memory growth (kb): 477,952
n=200 memory growth (kb): 503,948
n=300 memory growth (kb): 503,948
n=400 memory growth (kb): 518,652
time: mean=0.924 s, p50=0.271 s, p95=4.626 s
memory (kb): 174,552 initial, 518,652 growth
</code></pre></div>
<p dir="auto">Running under pytorch 1.3:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python3 pytorch_high_mem.py --n 500
torch 1.3.0+cpu
heights: mean=1004, p50=278 p95=5100 max=7680
n=100 memory growth (kb): 2,624,296
n=200 memory growth (kb): 4,480,012
n=300 memory growth (kb): 5,579,568
n=400 memory growth (kb): 5,600,888
time: mean=0.676 s, p50=0.196 s, p95=3.825 s
memory (kb): 187,840 initial, 6,200,664 growth"><pre class="notranslate"><code class="notranslate">$ python3 pytorch_high_mem.py --n 500
torch 1.3.0+cpu
heights: mean=1004, p50=278 p95=5100 max=7680
n=100 memory growth (kb): 2,624,296
n=200 memory growth (kb): 4,480,012
n=300 memory growth (kb): 5,579,568
n=400 memory growth (kb): 5,600,888
time: mean=0.676 s, p50=0.196 s, p95=3.825 s
memory (kb): 187,840 initial, 6,200,664 growth
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Expected behavior is low memory usage as in pytorch 1.1. Alternatively, a way to control caching (e.g. something which disables caching or something like <code class="notranslate">torch.cuda.clear_caches()</code> but for CPU) - as I understand, high memory usage happens because allocations are cached, which makes sense for fixed shapes, but does not work well for variable shapes. Binning shapes is possible as a work-around but has a noticeable performance penalty and memory usage is still higher.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Environment under pytorch 1.1 (via <code class="notranslate">collect_env.py</code> script):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information...
PyTorch version: 1.1.0
Is debug build: No
CUDA used to build PyTorch: None
OS: Debian GNU/Linux 9 (stretch)
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.1.0
[pip3] torchvision==0.3.0
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">Collecting environment information...
PyTorch version: 1.1.0
Is debug build: No
CUDA used to build PyTorch: None
OS: Debian GNU/Linux 9 (stretch)
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.1.0
[pip3] torchvision==0.3.0
[conda] Could not collect
</code></pre></div>
<p dir="auto">pytorch installed with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install -U --no-cache-dir cython wheel pip http://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl http://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl"><pre class="notranslate"><code class="notranslate">pip install -U --no-cache-dir cython wheel pip http://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl http://download.pytorch.org/whl/cpu/torchvision-0.3.0-cp36-cp36m-linux_x86_64.whl
</code></pre></div>
<p dir="auto">Environment under pytorch 1.3:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.3.0+cpu
Is debug build: No
CUDA used to build PyTorch: None
OS: Debian GNU/Linux 9 (stretch)
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.3.0+cpu
[pip3] torchvision==0.4.1+cpu
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.3.0+cpu
Is debug build: No
CUDA used to build PyTorch: None
OS: Debian GNU/Linux 9 (stretch)
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.3.0+cpu
[pip3] torchvision==0.4.1+cpu
[conda] Could not collect
</code></pre></div>
<p dir="auto">pytorch installed with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install torch==1.3.0+cpu torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html"><pre class="notranslate"><code class="notranslate">pip install torch==1.3.0+cpu torchvision==0.4.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">This may be similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="453596809" data-permission-text="Title is private" data-url="https://github.com/oneapi-src/oneDNN/issues/489" data-hovercard-type="issue" data-hovercard-url="/oneapi-src/oneDNN/issues/489/hovercard" href="https://github.com/oneapi-src/oneDNN/issues/489">oneapi-src/oneDNN#489</a> but here mkldnn is not used explicitly.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VitalyFedyunin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VitalyFedyunin">@VitalyFedyunin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gujinghui/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gujinghui">@gujinghui</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/PenghuiCheng/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/PenghuiCheng">@PenghuiCheng</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/XiaobingSuper/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/XiaobingSuper">@XiaobingSuper</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuh">@jianyuh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p> | 0 |
<p dir="auto">The close button in the feedback dialog is wrongly positioned (try highlighting the dialog by clicking, then hovering the button).</p> | <ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Create a new JavaScript snippet, for example:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"console.log": {
"prefix": "cl",
"body": [
"console.log('${1:arg}', ${1:arg});"
]
}
}"><pre class="notranslate">{
<span class="pl-ent">"console.log"</span>: {
<span class="pl-ent">"prefix"</span>: <span class="pl-s"><span class="pl-pds">"</span>cl<span class="pl-pds">"</span></span>,
<span class="pl-ent">"body"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>console.log('${1:arg}', ${1:arg});<span class="pl-pds">"</span></span>
]
}
}</pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">If you create a new file with the language set to <code class="notranslate">JavaScript</code>, enter <code class="notranslate">cl</code> and press tab, the snippet will expand.</p>
</li>
<li>
<p dir="auto">If you create a new file with the language set to <code class="notranslate">TypeScript</code>, the<code class="notranslate">cl</code> snippet is not available.</p>
</li>
</ol>
<p dir="auto">The current solution is to re-implement the snippet in all of the JavaScript based languages but that means duplicating the snippet for JavaScript, JavaScript React, TypeScript and TypeScript React. This makes it difficult to build up a large body of JavaScript snippets.</p>
<p dir="auto">Should JavaScript snippets automatically be made available to other JavaScript based languages?</p> | 0 |
<p dir="auto">I had some error related to <code class="notranslate">libexpat-1</code> so as mentioned in the <a href="https://github.com/JuliaLang/julia/blob/master/README.windows.md">https://github.com/JuliaLang/julia/blob/master/README.windows.md</a> file I ran <code class="notranslate">make win-extras</code> and copied the files into <code class="notranslate">usr/bin</code> (overwriting existing files).</p>
<p dir="auto">After that Julia crashes at startup, without error message beside the default windows popup.</p>
<p dir="auto">Copying the dll's one by one, it seems <code class="notranslate">libstdc++-6.dll</code> is causing the problem.</p>
<blockquote>
<p dir="auto">Version 0.4.0-dev+4843 (2015-05-15 10:33 UTC)<br>
Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/888b6b4f55fba4354164b3672138880581173ad1/hovercard" href="https://github.com/JuliaLang/julia/commit/888b6b4f55fba4354164b3672138880581173ad1"><tt>888b6b4</tt></a> (0 days old master)<br>
x86_64-w64-mingw32</p>
</blockquote> | <p dir="auto">It happened twice. After running Pkg.update() when I launch julia it crashes immediately.<br>
On the second time I removed .julia/v0.4, rebuilt julia with make cleanall and reinstalled Pkg with Pkg.add("ImageView") and again the same thing. Launching a new julia session crashes right away.</p> | 1 |
<p dir="auto">Challenge Waypoint: Add Borders Around your Elements <a href="http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements</a> has an issue. User Agent is: code>Mozilla/5.0 Windows NT 6.3; WOW64; rv:41.0 Gecko/20100101 Firefox/41.0 /code>. Please describe how to reproduce this issue, and include links to screenshots if possible. My code: html link href <a href="http://fonts.googleapis.com/css?family" rel="nofollow">http://fonts.googleapis.com/css?family</a> Lobster rel stylesheet type text/css > style> .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .smaller-image { width: 100px; } .thick-green-border { border-style: solid; border-color: green; border-width: 10px; } /style> h2 class red-text >CatPhotoApp /h2> img class thick-green-border smaller-image src <a href="https://bit.ly/fcc-relaxing-cat" rel="nofollow">https://bit.ly/fcc-relaxing-cat</a> > p class red-text >Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. /p> p class red-text >Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. /p></p> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-add-borders-around-your-elements" rel="nofollow">http://freecodecamp.com/challenges/waypoint-add-borders-around-your-elements</a> has an issue. "Give your image a border width of 10px doesn't work.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/589755355db80b2b5bf6cdc491c5d610e532d09c7608d3af7affbc40aee974ca/687474703a2f2f692e696d6775722e636f6d2f54635a366776372e706e67"><img src="https://camo.githubusercontent.com/589755355db80b2b5bf6cdc491c5d610e532d09c7608d3af7affbc40aee974ca/687474703a2f2f692e696d6775722e636f6d2f54635a366776372e706e67" data-canonical-src="http://i.imgur.com/TcZ6gv7.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mlakmal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mlakmal">@mlakmal</a> on March 8, 2016 0:47</em></p>
<p dir="auto">We are extensively using javascript auto format code feature in vs code to reduce js lint errors.<br>
Ex: spaces after function and function name etc ...</p>
<p dir="auto">after updating to v0.10.10 above formatting is not working any more and it reset all the formatted functions without spaces.</p>
<p dir="auto">Can someone help or give information how to override this rule ?</p>
<p dir="auto">var test = function() { }; //this is what new version format js code to.</p>
<p dir="auto">but we are expecting and previously worked before like below.<br>
var test = function () { };</p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139139930" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3796" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3796/hovercard" href="https://github.com/microsoft/vscode/issues/3796">microsoft/vscode#3796</a></em></p> | <p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isidorn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isidorn">@isidorn</a> on January 26, 2016 15:50</em></p>
<ol dir="auto">
<li>js workspace, have salsa enabled</li>
<li>"editor.formatOnType": true</li>
<li>The format on type is too aggrressive and does not respect current indentiation. This is especially noticable when trying to create object literals</li>
<li>if salse is disabled this works nicely</li>
</ol>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128860721" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2377" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2377/hovercard" href="https://github.com/microsoft/vscode/issues/2377">microsoft/vscode#2377</a></em></p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.2</li>
<li>OS Version: win 7</li>
</ul>
<p dir="auto">Following is the link-<br>
<a href="https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync</a></p>
<p dir="auto">When i try to install extension via VS Code Quick Open (Ctrl+P) and paste <code class="notranslate">ext install code-settings-sync</code> and hit enter.<br>
My extension doesnt come at first and selected</p>
<p dir="auto">But when i write <code class="notranslate">ext install visualcode-settings-sync</code> it works.</p>
<p dir="auto">Please correct the ext install name in the page there is some diflict</p> | <p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Tyriar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Tyriar">@Tyriar</a>, related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157979773" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/7105" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/7105/hovercard" href="https://github.com/microsoft/vscode/issues/7105">#7105</a></p>
<blockquote>
<p dir="auto">I think this should be dealt with sooner rather than later, right now the installation advice given on the marketplace is wrong because of this. Consider <a href="https://marketplace.visualstudio.com/items?itemName=AdamCaviness.theme-monokai-dark-soda" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=AdamCaviness.theme-monokai-dark-soda</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2193314/15854362/41815188-2c5e-11e6-9a60-8406e0822ac7.png"><img src="https://cloud.githubusercontent.com/assets/2193314/15854362/41815188-2c5e-11e6-9a60-8406e0822ac7.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2193314/15854373/54d8a0b0-2c5e-11e6-8826-e148b0f19a6e.png"><img src="https://cloud.githubusercontent.com/assets/2193314/15854373/54d8a0b0-2c5e-11e6-8826-e148b0f19a6e.png" alt="image" style="max-width: 100%;"></a></p>
</blockquote> | 1 |
<p dir="auto">by <strong>smith.malcolm.james</strong>:</p>
<pre class="notranslate">Calling syscall with float32 arguments passes the values correctly to the dll. But the
float32 return value is incorrect
What steps will reproduce the problem?
visual C++ 6.0 program:
#include "stdafx.h"
#include <stdio.h>
extern "C" __declspec(dllexport) float addfloat( float a, float b) ;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
float addfloat ( float a, float b)
{
printf("In dll: %f %f\n", a,b);
return a+b;
}
Go program:
package main
import (
"fmt"
"math"
"syscall"
)
var mylib = syscall.NewLazyDLL("mylib.dll")
var addfloat = mylib.NewProc("addfloat")
func main() {
r1, r2, _ := addfloat.Call(uintptr(math.Float32bits(1.1)) , uintptr(math.Float32bits(2.2)))
fmt.Println("r1 and r2 as uintptr", r1, r2)
fmt.Println("3.3 as uintptr", uintptr(math.Float32bits(3.3)))
r1, r2, _ = addfloat.Call(uintptr(math.Float32bits(3.3)) , uintptr(math.Float32bits(4.4)))
fmt.Println("r1 and r2 as uintptr", r1, r2)
fmt.Println("7.7 as uintptr", uintptr(math.Float32bits(7.7)))
}
What is the expected output?
Expect r1 to hold IEEE 754 binary representation of 3.3 after 1st call and 7.7 after 2nd
call
What do you see instead?
r1 holds 26 after both 1st and 2nd calls
Sample output:
In dll: 1.100000 2.200000
r1 and r2 as uintptr 26 821312832
3.3 as uintptr 1079194419
In dll: 3.300000 4.400000
r1 and r2 as uintptr 26 821312832
7.7 as uintptr 1089889894
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Windows XP
Which version are you using? (run 'go version')
go1
Please provide any additional information below.
Integer values are returned with no problem. The code in
src\pkg\runtime\sys_windows_386.s looks as if it is expecting return values to be in the
AX and DX registers, but float values are returned in the ST0 register.</pre> | <p dir="auto">by <strong>arnaud.lb</strong>:</p>
<pre class="notranslate">What does 'go version' print?
go version go1.3 darwin/amd64
What steps reproduce the problem?
1. go build -gcflags "-N -l" x.go # x.go attached
2. ./x
3. gdb -p <pid>
4. info goroutines
What happened?
(gdb) info goroutines
Python Exception <class 'gdb.error'> Attempt to extract a component of a value
that is not a (null).:
Error occurred in Python command: Attempt to extract a component of a value that is not
a (null).
(gdb)
Happens with the goroutines command too:
(gdb) goroutine 123 bt
Python Exception <class 'gdb.error'> Attempt to extract a component of a value
that is not a (null).:
Error occurred in Python command: Attempt to extract a component of a value that is not
a (null).
(gdb)
Please provide any additional information below.
gdb version 7.7.1</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/8251/0/x.go" rel="nofollow">x.go</a> (124 bytes)</li>
</ol> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.