text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Working with negative exponents has some very odd behaviors, to say the least. Running the internals of the <code class="notranslate">^</code> function gives different results than <code class="notranslate">^</code> itself, evaluation success changes based on whether a variable is replaced with its value, and <code class="notranslate">@code_*</code> forms are convinced that the result should always be of type <code class="notranslate">Int64</code>. Tested on v1.0.0 and v1.1.0-DEV.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; 2 ^ -5 0.03125 julia&gt; Base.power_by_squaring(2, -5) ERROR: DomainError with -5: Cannot raise an integer x to a negative power -5. Make x a float by adding a zero decimal (e.g., 2.0^-5 instead of 2^-5), or write 1/x^5, float(x)^-5, or (x//1)^-5 Stacktrace: [1] throw_domerr_powbysq(::Int64, ::Int64) at ./intfuncs.jl:176 [2] power_by_squaring(::Int64, ::Int64) at ./intfuncs.jl:196 [3] top-level scope at none:0 julia&gt; @edit 2 ^ -5 # ^(x::T, p::T) where {T&lt;:Integer} = power_by_squaring(x,p)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">2</span> <span class="pl-k">^</span> <span class="pl-k">-</span><span class="pl-c1">5</span> <span class="pl-c1">0.03125</span> julia<span class="pl-k">&gt;</span> Base<span class="pl-k">.</span><span class="pl-c1">power_by_squaring</span>(<span class="pl-c1">2</span>, <span class="pl-k">-</span><span class="pl-c1">5</span>) ERROR<span class="pl-k">:</span> DomainError with <span class="pl-k">-</span><span class="pl-c1">5</span><span class="pl-k">:</span> Cannot raise an integer x to a negative power <span class="pl-k">-</span><span class="pl-c1">5.</span> Make x a float by adding a zero decimal (e<span class="pl-k">.</span>g., <span class="pl-c1">2.0</span><span class="pl-k">^-</span><span class="pl-c1">5</span> instead of <span class="pl-c1">2</span><span class="pl-k">^-</span><span class="pl-c1">5</span>), or write <span class="pl-c1">1</span><span class="pl-k">/</span>x<span class="pl-k">^</span><span class="pl-c1">5</span>, <span class="pl-c1">float</span>(x)<span class="pl-k">^-</span><span class="pl-c1">5</span>, or (x<span class="pl-k">//</span><span class="pl-c1">1</span>)<span class="pl-k">^-</span><span class="pl-c1">5</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">throw_domerr_powbysq</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">176</span> [<span class="pl-c1">2</span>] <span class="pl-c1">power_by_squaring</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">196</span> [<span class="pl-c1">3</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">0</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@edit</span> <span class="pl-c1">2</span> <span class="pl-k">^</span> <span class="pl-k">-</span><span class="pl-c1">5</span> <span class="pl-c"><span class="pl-c">#</span> ^(x::T, p::T) where {T&lt;:Integer} = power_by_squaring(x,p)</span></pre></div> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; x = -2; julia&gt; x ^ x ERROR: DomainError with -2: Cannot raise an integer x to a negative power -2. Make x a float by adding a zero decimal (e.g., 2.0^-2 instead of 2^-2), or write 1/x^2, float(x)^-2, or (x//1)^-2 Stacktrace: [1] throw_domerr_powbysq(::Int64, ::Int64) at ./intfuncs.jl:176 [2] power_by_squaring(::Int64, ::Int64) at ./intfuncs.jl:196 [3] ^(::Int64, ::Int64) at ./intfuncs.jl:220 [4] top-level scope at none:0 julia&gt; x ^ (-2) 0.25 julia&gt; (-2) ^ x ERROR: DomainError with -2: Cannot raise an integer x to a negative power -2. Make x a float by adding a zero decimal (e.g., 2.0^-2 instead of 2^-2), or write 1/x^2, float(x)^-2, or (x//1)^-2 Stacktrace: [1] throw_domerr_powbysq(::Int64, ::Int64) at ./intfuncs.jl:176 [2] power_by_squaring(::Int64, ::Int64) at ./intfuncs.jl:196 [3] ^(::Int64, ::Int64) at ./intfuncs.jl:220 [4] top-level scope at none:0 julia&gt; (-2) ^ (-2) 0.25 julia&gt; @code_warntype x ^ x Body::Int64 220 1 ─ %1 = invoke Base.power_by_squaring(_2::Int64, _3::Int64)::Int64 │ └── return %1 │"><pre class="notranslate">julia<span class="pl-k">&gt;</span> x <span class="pl-k">=</span> <span class="pl-k">-</span><span class="pl-c1">2</span>; julia<span class="pl-k">&gt;</span> x <span class="pl-k">^</span> x ERROR<span class="pl-k">:</span> DomainError with <span class="pl-k">-</span><span class="pl-c1">2</span><span class="pl-k">:</span> Cannot raise an integer x to a negative power <span class="pl-k">-</span><span class="pl-c1">2.</span> Make x a float by adding a zero decimal (e<span class="pl-k">.</span>g., <span class="pl-c1">2.0</span><span class="pl-k">^-</span><span class="pl-c1">2</span> instead of <span class="pl-c1">2</span><span class="pl-k">^-</span><span class="pl-c1">2</span>), or write <span class="pl-c1">1</span><span class="pl-k">/</span>x<span class="pl-k">^</span><span class="pl-c1">2</span>, <span class="pl-c1">float</span>(x)<span class="pl-k">^-</span><span class="pl-c1">2</span>, or (x<span class="pl-k">//</span><span class="pl-c1">1</span>)<span class="pl-k">^-</span><span class="pl-c1">2</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">throw_domerr_powbysq</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">176</span> [<span class="pl-c1">2</span>] <span class="pl-c1">power_by_squaring</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">196</span> [<span class="pl-c1">3</span>] <span class="pl-k">^</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">220</span> [<span class="pl-c1">4</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">0</span> julia<span class="pl-k">&gt;</span> x <span class="pl-k">^</span> (<span class="pl-k">-</span><span class="pl-c1">2</span>) <span class="pl-c1">0.25</span> julia<span class="pl-k">&gt;</span> (<span class="pl-k">-</span><span class="pl-c1">2</span>) <span class="pl-k">^</span> x ERROR<span class="pl-k">:</span> DomainError with <span class="pl-k">-</span><span class="pl-c1">2</span><span class="pl-k">:</span> Cannot raise an integer x to a negative power <span class="pl-k">-</span><span class="pl-c1">2.</span> Make x a float by adding a zero decimal (e<span class="pl-k">.</span>g., <span class="pl-c1">2.0</span><span class="pl-k">^-</span><span class="pl-c1">2</span> instead of <span class="pl-c1">2</span><span class="pl-k">^-</span><span class="pl-c1">2</span>), or write <span class="pl-c1">1</span><span class="pl-k">/</span>x<span class="pl-k">^</span><span class="pl-c1">2</span>, <span class="pl-c1">float</span>(x)<span class="pl-k">^-</span><span class="pl-c1">2</span>, or (x<span class="pl-k">//</span><span class="pl-c1">1</span>)<span class="pl-k">^-</span><span class="pl-c1">2</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">throw_domerr_powbysq</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">176</span> [<span class="pl-c1">2</span>] <span class="pl-c1">power_by_squaring</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">196</span> [<span class="pl-c1">3</span>] <span class="pl-k">^</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>intfuncs<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">220</span> [<span class="pl-c1">4</span>] top<span class="pl-k">-</span>level scope at none<span class="pl-k">:</span><span class="pl-c1">0</span> julia<span class="pl-k">&gt;</span> (<span class="pl-k">-</span><span class="pl-c1">2</span>) <span class="pl-k">^</span> (<span class="pl-k">-</span><span class="pl-c1">2</span>) <span class="pl-c1">0.25</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@code_warntype</span> x <span class="pl-k">^</span> x Body<span class="pl-k">::</span><span class="pl-c1">Int64</span> <span class="pl-c1">220</span> <span class="pl-c1">1</span> ─ <span class="pl-k">%</span><span class="pl-c1">1</span> <span class="pl-k">=</span> invoke Base<span class="pl-k">.</span><span class="pl-c1">power_by_squaring</span>(_2<span class="pl-k">::</span><span class="pl-c1">Int64</span>, _3<span class="pl-k">::</span><span class="pl-c1">Int64</span>)<span class="pl-k">::</span><span class="pl-c1">Int64</span> │ └── <span class="pl-k">return</span> <span class="pl-k">%</span><span class="pl-c1">1</span> │</pre></div>
<p dir="auto">As discussed in <a href="https://discourse.julialang.org/t/confusing-difference-literal-vs-variable/13515/5" rel="nofollow">https://discourse.julialang.org/t/confusing-difference-literal-vs-variable/13515/5</a> it would be good if this is documented somewhere. The explanation of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/StefanKarpinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/StefanKarpinski">@StefanKarpinski</a> in this thread will be helpful:</p> <blockquote> <p dir="auto">This was a controversial change and there are still many people who are not entirely comfortable with it. The starting point is that people do not really often expect or want x^2 and x^-1 to be pow(x, 2) and pow(x, -1), respectively. Rather, people want x^2 to be syntax for x<em>x. The latter can generally be implemented much more efficiently than calling a general power function. With sufficiently clever optimizations (constant propagation + power reduction), one can potentailly optimize pow(x, 2) into x</em>x but it would be even better if we didn’t have to do such a clever optimization in the first place. It’s been a fairly common and successful strategy in the design of Julia to arrange things so that you can get great performance in a straightforward way without need for clever optimizations instead of trying to make the optimizers smarter. So what this design does is it causes x^n where n is a literal integer value to call Base.literal_pow(x, Val(n)), which allows us to specialize the syntax on individual literal values like 2 or -1. This allow us to make x^2 actually mean x*x instead of needing to try to optimize it to that. It also allows us to make negative literal exponents work without introducing a type instability in the general ^ function. And indeed, we used to get regular complaints from new users that 2^-1 doesn’t return 0.5 as they would expect, instead giving them a domain error because of the negative exponent. There are good reasons for it but users don’t care about involved language design reasons, they just want it to work. A way to think about this is that ^2 is its own operator, as is ^3 and ^-1, and so on. Hopefully that helps.</p> </blockquote> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="267279366" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/24240" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/24240/hovercard" href="https://github.com/JuliaLang/julia/pull/24240">#24240</a></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Marcin Jabrzyk (<a href="https://github.com/bzyx">@bzyx</a>)</strong></p> <p dir="auto">Just tried to create URI connection string where user have password with '+' character, SQLAlchemy gives no clue in error and connecting to database using psql works fine.<br> Example URI:<br> SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://user:<a href="mailto:[email protected]">[email protected]</a>:5432/some_db"</p> <p dir="auto">Output:<br> sqlalchemy.exc.OperationalError: (OperationalError) FATAL: password authentication failed for user "user"<br> FATAL: password authentication failed for user "user"<br> None None</p> <p dir="auto">Changing password to not having '+' works fine.</p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">AFAIK, '+' symbol only needs to be unquoted to separate form values from URL. But why function _parse_rfc1738_args in sqlalchemy/lib/sqlalchemy/engine/url.py uses unquote_plus on password!? This is wrong, I think.</p> <p dir="auto">Following lines of code are replacing '+' symbol in password with space causing database connection to eventually fail.</p> <p dir="auto">if components<a href="'password'">'password'</a> is not None:<br> components<a href="'password'">'password'</a> = <br> util.unquote_plus(components<a href="'password'">'password'</a>)</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mark.fisher" rel="nofollow">Mark Fisher</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8017?redirect=false" rel="nofollow">SPR-8017</a></strong> and commented</p> <p dir="auto">This appears to be a schema issue since the 'beans' element is enabled within a sequence where it would always be the last type.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154129" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14525" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14525/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14525">#14525</a> XML configuration: 'beans' element should be allowed between 'bean' elemebts (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 1 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=thomas.risberg" rel="nofollow">Thomas Risberg</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8095?redirect=false" rel="nofollow">SPR-8095</a></strong> and commented</p> <p dir="auto">This has been a problem in applications using <code class="notranslate">@Provider</code> combined with <code class="notranslate">@Autowired</code> where the bean look ups exhibit performance problems.</p> <p dir="auto">These are quotes from a user:</p> <p dir="auto">"Under heavy load we are experiencing heavy lock contention in DefaultListableBeanFactory.findAutowireCandidates()."</p> <p dir="auto">"Under heavy load this is severely limiting our throughput".</p> <hr> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103107" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11536" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11536/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11536">#11536</a> Cache by-type lookups in DefaultListableBeanFactory (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 2 watchers</p>
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.19041.264 PowerToys version: PowerToysSetup-0.18.2-x64.msi"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.19041.264 PowerToys version: PowerToysSetup-0.18.2-x64.msi </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Run any of the apps listed below and try to install Power Toys</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys should install as usual.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">PowerToys says that some applications that have nothing to do with PowerToys needs to be exited:</p> <ul dir="auto"> <li>Windows Terminal</li> <li>Slack</li> <li>Toggl Desktop</li> <li>Yubico Authenticator</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29142128/83802867-d0262280-a6ab-11ea-85bd-7b57ae282173.png"><img src="https://user-images.githubusercontent.com/29142128/83802867-d0262280-a6ab-11ea-85bd-7b57ae282173.png" alt="image" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.19041.264 PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug: auto update"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.19041.264 PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug: auto update </code></pre></div> <p dir="auto">The update program requires to disable the Microsoft Store, Microsoft Text Input Application, Mail which are run at background. I can manually kill the process for Microsoft Store and Mail but Microsoft Text Input Application. However, I can just ignore this to continue. Just unsure does this effect anything.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10762296/82691374-aa603e80-9c12-11ea-8461-a1dbe9a3f539.png"><img src="https://user-images.githubusercontent.com/10762296/82691374-aa603e80-9c12-11ea-8461-a1dbe9a3f539.png" alt="image" style="max-width: 100%;"></a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() { static FOO: float = 10.0; match 0.0 { 0.0 .. FOO =&gt; (), _ =&gt; () } }"><pre class="notranslate"><code class="notranslate">fn main() { static FOO: float = 10.0; match 0.0 { 0.0 .. FOO =&gt; (), _ =&gt; () } } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/brian/dev/rust/src/test/run-pass/test.rs:5:15: 5:18 error: unexpected token: `FOO` /home/brian/dev/rust/src/test/run-pass/test.rs:5 0.0 .. FOO =&gt; (),"><pre class="notranslate"><code class="notranslate">/home/brian/dev/rust/src/test/run-pass/test.rs:5:15: 5:18 error: unexpected token: `FOO` /home/brian/dev/rust/src/test/run-pass/test.rs:5 0.0 .. FOO =&gt; (), </code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="static foo: int = 16; fn main() { match 15 { 3 .. foo =&gt; io::println(~&quot;success&quot;), _ =&gt; fail!() } }"><pre class="notranslate"><span class="pl-k">static</span> foo<span class="pl-kos">:</span> <span class="pl-smi">int</span> = <span class="pl-c1">16</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">match</span> <span class="pl-c1">15</span> <span class="pl-kos">{</span> <span class="pl-c1">3</span> .. foo =&gt; io<span class="pl-kos">::</span><span class="pl-en">println</span><span class="pl-kos">(</span>~"success"<span class="pl-kos">)</span><span class="pl-kos">,</span> _ =&gt; <span class="pl-en">fail</span><span class="pl-en">!</span><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="/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo` /tmp/rusttest.rs:5 3 .. foo =&gt; io::println(~&quot;success&quot;), ^~~"><pre class="notranslate"><code class="notranslate">/tmp/rusttest.rs:5:13: 5:16 error: unexpected token: `foo` /tmp/rusttest.rs:5 3 .. foo =&gt; io::println(~"success"), ^~~ </code></pre></div>
1
<p dir="auto">The REPL's pathname tab completion inserts backslashes before spaces in paths, which results in an invalid string because <code class="notranslate">\ </code> is not a valid escape. For example, if you create a file named <code class="notranslate">"foo bar"</code></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; touch(&quot;foo bar&quot;) &quot;foo bar&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">touch</span>(<span class="pl-s"><span class="pl-pds">"</span>foo bar<span class="pl-pds">"</span></span>) <span class="pl-s"><span class="pl-pds">"</span>foo bar<span class="pl-pds">"</span></span></pre></div> <p dir="auto">and then type <code class="notranslate">"foo&lt;TAB&gt;</code> in the REPL, you get:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; &quot;foo\ bar&quot; ERROR: syntax: invalid escape sequence Stacktrace: [1] top-level scope at REPL[1]:0"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-cce">\ </span>bar<span class="pl-pds">"</span></span> ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> invalid escape sequence Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope at REPL[<span class="pl-c1">1</span>]<span class="pl-k">:</span><span class="pl-c1">0</span></pre></div> <p dir="auto">These backslashes seem very shell-like — what are they doing in Julia filenames?</p>
<p dir="auto">Autocomplete in the REPL add <code class="notranslate">\</code> when needed to file names but julia1.0 functions do not like them</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a\ a.txt&quot;) ERROR: syntax: invalid escape sequence"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a\ a.txt") ERROR: syntax: invalid escape sequence </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a a.txt&quot;)"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a a.txt") </code></pre></div> <p dir="auto">works</p>
1
<p dir="auto">I'm not exactly sure what it's supposed to do, but it seems wrong:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#![feature(macro_rules)] macro_rules! some_stmts( ({ $($s:stmt)* }) =&gt; ($($s)*) ) fn main() { some_stmts!({ //let a = 5; type a = int; }) }"><pre class="notranslate"><code class="notranslate">#![feature(macro_rules)] macro_rules! some_stmts( ({ $($s:stmt)* }) =&gt; ($($s)*) ) fn main() { some_stmts!({ //let a = 5; type a = int; }) } </code></pre></div> <p dir="auto">As is, we get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stmts.rs:10:5: 10:6 error: local ambiguity: multiple parsing options: built-in NTs stmt ('s') or 1 other options. stmts.rs:10 })"><pre class="notranslate"><code class="notranslate">stmts.rs:10:5: 10:6 error: local ambiguity: multiple parsing options: built-in NTs stmt ('s') or 1 other options. stmts.rs:10 }) </code></pre></div> <p dir="auto">even though there is no way <code class="notranslate">}</code> could start a statement. With the <code class="notranslate">let</code> instead, it's</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stmts.rs:8:18: 8:19 error: unexpected token: `;` stmts.rs:8 let a = 5;"><pre class="notranslate"><code class="notranslate">stmts.rs:8:18: 8:19 error: unexpected token: `;` stmts.rs:8 let a = 5; </code></pre></div> <p dir="auto">which doesn't seem to make sense either.</p> <p dir="auto">rustc 0.11-pre-nightly (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/d35804ea5e69c9a3a8957626533a856f976fe4e3/hovercard" href="https://github.com/rust-lang/rust/commit/d35804ea5e69c9a3a8957626533a856f976fe4e3"><tt>d35804e</tt></a> 2014-04-18 00:01:22 -0700)</p>
<p dir="auto">Currently, the following macro argument grammar will not successfully parse anything, complaining of a "local ambiguity":</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $( $t:ty )* #"><pre class="notranslate"><code class="notranslate"> $( $t:ty )* # </code></pre></div> <p dir="auto">The problem is that if it were to use the Rust parser to try to parse a type and fail, the whole task would be killed. This is easy to fix after that problem is resolved. There are two options:</p> <ol dir="auto"> <li>Break parsing into a separate task, and see whether it survives. However, parse.rs requires a <code class="notranslate">parse_sess</code>, which is mutable state, and can't be shared. So the second option is probably more doable:</li> <li>Allow the parser to safely return instead of killing the task. This works much like the Error monad. Ordinarily, this would require a lot of tedious wrapping and unwrapping, but we have a macro system! It should be relatively easy to make a notation like Haskell's <code class="notranslate">do</code>, and the parser would be able to stay in the standard imperative style.</li> </ol>
1
<p dir="auto">After moving to numpy 1.10.0 b2 in Fedora rawhide, we're seeing bad gfortran flags when building scipy:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2"><pre class="notranslate"><code class="notranslate">Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 </code></pre></div> <p dir="auto">It appears to be tacking on the "-march=x86-64 -DMS_WIN64 -mtune=generic -msse2" options from the mingw settings to the fortran compiler flags.</p>
<p dir="auto">numpy.distutils adds a <code class="notranslate">-ffpe-summary</code> command line option to gfortran, but it's apparently not supported by all versions of the compiler.</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111954493" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/5380" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/5380/hovercard" href="https://github.com/scipy/scipy/issues/5380">scipy/scipy#5380</a></p> <p dir="auto">Apparently this was added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/numpy/numpy/commit/b354c005ccfe961e793ec4567e9cf6bbdca1b5f2/hovercard" href="https://github.com/numpy/numpy/commit/b354c005ccfe961e793ec4567e9cf6bbdca1b5f2"><tt>b354c00</tt></a> --- seems to affect also non-windows platforms.</p>
1
<p dir="auto"><strong>Description</strong><br> Currently when a service is inlined in anoter service you get a log message like</p> <blockquote> <p dir="auto">Inlined service "abc" to "xyz".</p> </blockquote> <p dir="auto">And at the same time you also get a log message that the service got removed</p> <blockquote> <p dir="auto">Removed service "abc"; reason: unused.</p> </blockquote> <p dir="auto">IMO when it a service is inlined, it should not also log that it got removed.<br> This way you can actually find services that are unused. Currently you get alot of duplicate messages for inlined services. And the reason "unused" is even more irritating as it is not really unused, it was just inlined because it's only used once.</p> <p dir="auto">Another improvement can be made for the autowire pass. When an object argument has a default value that cannot be wired, it does not error but logs a message like</p> <blockquote> <p dir="auto">Symfony\Component\DependencyInjection\Compiler\AutowirePass<br> Cannot autowire service "Ekino\NewRelicBundle\Listener\ResponseListener": argument "$newRelicTwigExtension" of method "__construct()" references class "Ekino\NewRelicBundle\Twig\NewRelicExtension" but no such service exists.</p> </blockquote> <p dir="auto">This is good. But for consistency and debugging purposes, it would be good if a scalar argument that has a default value that wasn't wired explicitly, also triggers a log. You might have just forgotten to wire it with a parameter for example and that is hard to spot.</p>
<p dir="auto">Hi,<br> I am running Symfony 2.0.5 on Windows 7 with PHP version 5.3.8.<br> When I am calling cache:clear on the console tool, I get this error sometimes (I do not know why):</p> <blockquote> <p dir="auto">C:\projects\cnc_agency\trunk&gt;php app\console cache:clear<br> Clearing the cache for the dev environment with debug true</p> <p dir="auto">[ErrorException]<br> Warning: rmdir(C:\projects\cnc_agency\trunk\app/cache/dev_old\twig\f8): Directory not empty in C:\projects\cnc_agency\trunk\vendor\symfony\src\Symfony\Component\HttpKernel\Util\Filesystem.php line 98</p> <p dir="auto">cache:clear [--no-warmup]</p> </blockquote> <p dir="auto">When I remove the cache dir, it works again. But this is annoying a little bit.</p>
0
<p dir="auto">CSG is a very important feature… other 3D frameworks have support for CSG built-in ( Babylon.js ), the only CSG I can find is the 7 years outdated plugin ( <a href="https://github.com/chandlerprall/ThreeCSG">https://github.com/chandlerprall/ThreeCSG</a> )</p> <p dir="auto">I propose that this plug-in gets updated for bufferGeometry and added to the three.js code base as an official plug-in for CSG support.</p> <p dir="auto">I am willing to contribute funds to see this happen.</p>
<p dir="auto">Hello,</p> <p dir="auto">It would be really convenient to have native support of separate repeat values for different types of maps (e.g. diffuse and bump). It is possible to use this setting through API, but it's a way more complex approach. StackOverflow discussion:<br> <a href="https://stackoverflow.com/questions/14371385/can-a-three-js-material-have-separate-repeat-values-for-a-bump-map-and-a-texture" rel="nofollow">https://stackoverflow.com/questions/14371385/can-a-three-js-material-have-separate-repeat-values-for-a-bump-map-and-a-texture</a></p>
0
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: 3.0.5</li> <li>Operating System (Platform and Version): travis ubuntu 14</li> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): the 2 series does not seem to have this issue</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> window.setTitle, when issued on did-finish-load, should always succeed</p> <p dir="auto"><strong>Actual behavior</strong><br> With electron 3.0, we are seeing spurious failures.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" unknown error: Cannot call function 'setTitle' on missing remote object 1 Error: Cannot call function 'setTitle' on missing remote object 1 at throwRPCError (/home/travis/build/.../electron.asar/browser/rpc-server.js:145:17) at EventEmitter.&lt;anonymous&gt; (/home/travis/build/.../electron.asar/browser/rpc-server.js:357:7) at EventEmitter.emit (events.js:182:13) at WebContents.&lt;anonymous&gt; (/home/travis/build/.../electron.asar/browser/api/web-contents.js:293:13) at WebContents.emit (events.js:182:13) Error: An unknown server-side error occurred while processing the command. at execute(&lt;Function&gt;, &quot;setTitle&quot;, Create an action with limits, using let, &quot;require&quot;) - api.js:300:19"><pre class="notranslate"> unknown <span class="pl-s1">error</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">call</span> <span class="pl-k">function</span> <span class="pl-s">'setTitle'</span> <span class="pl-s1">on</span> <span class="pl-s1">missing</span> <span class="pl-s1">remote</span> <span class="pl-s1">object</span> <span class="pl-c1">1</span> Error: <span class="pl-v">Cannot</span> <span class="pl-s1">call</span> <span class="pl-k">function</span> <span class="pl-s">'setTitle'</span> <span class="pl-s1">on</span> <span class="pl-s1">missing</span> <span class="pl-s1">remote</span> <span class="pl-s1">object</span> <span class="pl-c1">1</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-en">throwRPCError</span> <span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>home<span class="pl-c1">/</span>travis</span><span class="pl-c1">/</span><span class="pl-s1">build</span><span class="pl-c1">/</span>...<span class="pl-c1">/</span><span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">asar</span><span class="pl-c1">/</span><span class="pl-s1">browser</span><span class="pl-c1">/</span><span class="pl-s1">rpc</span><span class="pl-c1">-</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">145</span>:<span class="pl-c1">17</span><span class="pl-kos">)</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">EventEmitter</span><span class="pl-kos">.</span><span class="pl-c1">&lt;</span><span class="pl-s1">anonymous</span><span class="pl-c1">&gt;</span> <span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>home<span class="pl-c1">/</span>travis</span><span class="pl-c1">/</span><span class="pl-s1">build</span><span class="pl-c1">/</span>...<span class="pl-c1">/</span><span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">asar</span><span class="pl-c1">/</span><span class="pl-s1">browser</span><span class="pl-c1">/</span><span class="pl-s1">rpc</span><span class="pl-c1">-</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">357</span>:<span class="pl-c1">7</span><span class="pl-kos">)</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">EventEmitter</span><span class="pl-kos">.</span><span class="pl-en">emit</span> <span class="pl-kos">(</span><span class="pl-s1">events</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">182</span>:<span class="pl-c1">13</span><span class="pl-kos">)</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">WebContents</span><span class="pl-kos">.</span><span class="pl-c1">&lt;</span><span class="pl-s1">anonymous</span><span class="pl-c1">&gt;</span> <span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>home<span class="pl-c1">/</span>travis</span><span class="pl-c1">/</span><span class="pl-s1">build</span><span class="pl-c1">/</span>...<span class="pl-c1">/</span><span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">asar</span><span class="pl-c1">/</span><span class="pl-s1">browser</span><span class="pl-c1">/</span><span class="pl-s1">api</span><span class="pl-c1">/</span><span class="pl-s1">web</span><span class="pl-c1">-</span><span class="pl-s1">contents</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">293</span>:<span class="pl-c1">13</span><span class="pl-kos">)</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-v">WebContents</span><span class="pl-kos">.</span><span class="pl-en">emit</span> <span class="pl-kos">(</span><span class="pl-s1">events</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">182</span>:<span class="pl-c1">13</span><span class="pl-kos">)</span> <span class="pl-v">Error</span>: <span class="pl-v">An</span> <span class="pl-s1">unknown</span> <span class="pl-s1">server</span><span class="pl-c1">-</span><span class="pl-s1">side</span> <span class="pl-s1">error</span> <span class="pl-s1">occurred</span> <span class="pl-s1">while</span> <span class="pl-s1">processing</span> <span class="pl-s1">the</span> <span class="pl-s1">command</span><span class="pl-kos">.</span> <span class="pl-c1">at</span> <span class="pl-s1">execute</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">Function</span><span class="pl-c1">&gt;</span>, "setTitle", Create an action with limits, using let, "require") - api.js:300:19</pre></div> <p dir="auto"><strong>To Reproduce</strong><br> We will see if we can bottle up this issue</p> <p dir="auto"><strong>Screenshots</strong></p> <p dir="auto"><strong>Additional Information</strong></p>
<ul dir="auto"> <li>Electron version: 1.8.2</li> <li>Operating system: Deepin Linux 15.5 x86_64</li> </ul> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>register 'CommandOrControl+C' to gloablShortcuts in main.js</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app.on('ready', function () { createWindow() // Then I register an shortcut const ret = globalShortcut.register('CommandOrControl+C', () =&gt; { console.log('CommandOrControl+C is pressed, do something special') // As 'CommandOrControl+C' is the common behavior to update clipboard in OS // Expect that my special action registered here could be triggered, and also the OS default behavior }) if (!ret) { console.log('registration on CommandOrControl+C failed') } console.log(`CommandOrControl+C register ${globalShortcut.isRegistered('CommandOrControl+C')}`) })"><pre class="notranslate"><span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">createWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// Then I register an shortcut</span> <span class="pl-k">const</span> <span class="pl-s1">ret</span> <span class="pl-c1">=</span> <span class="pl-s1">globalShortcut</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-s">'CommandOrControl+C'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</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">'CommandOrControl+C is pressed, do something special'</span><span class="pl-kos">)</span> <span class="pl-c">// As 'CommandOrControl+C' is the common behavior to update clipboard in OS</span> <span class="pl-c">// Expect that my special action registered here could be triggered, and also the OS default behavior</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">ret</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">'registration on CommandOrControl+C failed'</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">`CommandOrControl+C register <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">globalShortcut</span><span class="pl-kos">.</span><span class="pl-en">isRegistered</span><span class="pl-kos">(</span><span class="pl-s">'CommandOrControl+C'</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <ul dir="auto"> <li>do something special when 'CommandOrControl+C' triggered</li> <li>As 'CommandOrControl+C' is OS common behavior, would update things in clipboard, but current would not</li> </ul> <h3 dir="auto">Actual behavior</h3> <ul dir="auto"> <li>'CommandOrControl+C' event is swallowed by globalShortcuts, and the OS could not update things in clipboard</li> </ul> <h3 dir="auto">Expected behavior</h3> <ul dir="auto"> <li>keys registered in globalShortcuts could keep popup to system, not to swallow or interrupt</li> </ul> <p dir="auto">this is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="276264334" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/11226" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/11226/hovercard" href="https://github.com/electron/electron/issues/11226">#11226</a></p>
0
<p dir="auto">Hi, I used vec! the wrong way, and the compiler panicked.<br> rustc -V -&gt; rustc 1.0.0-dev (built 2015-05-17)</p> <p dir="auto">Sorry, if this is a dup, I looked but did not see a report of this.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { vec!([]); println!(&quot;Hello, world!&quot;); }"><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">vec</span><span class="pl-en">!</span><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-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Hello, world!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">produces</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/code/rust/panic/ § RUST_BACKTRACE=1 rustc src/main.rs (master*) [18:07:43] &lt;std macros&gt;:3:1: 3:76 error: internal compiler error: cat_expr Errd &lt;std macros&gt;:3 &lt; [ _ ] &gt; :: into_vec ( $ crate:: boxed:: Box:: new ( [ $ ( $ x ) , * ] ) ) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;std macros&gt;:1:1: 4:58 note: in expansion of vec! src/main.rs:2:5: 2:14 note: expansion site note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /build/rust/src/rustc-1.0.0/src/libsyntax/diagnostic.rs:149 stack backtrace: 1: 0x7ff56b5d5189 - sys::backtrace::write::h85e36588f6ec519ed4r 2: 0x7ff56b5dce96 - panicking::on_panic::h6e154bbd20295560jrw 3: 0x7ff56b5a01a2 - rt::unwind::begin_unwind_inner::h58d8677c31c147e6t6v 4: 0x7ff568b94a0d - rt::unwind::begin_unwind::h17109019831519213513 5: 0x7ff568b949a2 - diagnostic::SpanHandler::span_bug::he871130351e8da9fEqB 6: 0x7ff56942f163 - session::Session::span_bug::hf5507d592e7c6099PDq 7: 0x7ff56a3d1a5d - check::regionck::visit_expr::h55b582b9adf67231Yhd 8: 0x7ff56a3ce9d0 - check::regionck::Rcx&lt;'a, 'tcx&gt;::visit_fn_body::h894f2218ba6ba28epUc 9: 0x7ff56a448546 - check::check_bare_fn::h16e5c54944c58ce3twn 10: 0x7ff56a4463a2 - check::CheckItemBodiesVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'tcx&gt;::visit_item::h960d90c3a6588469wtn 11: 0x7ff56a50a34a - check_crate::closure.38028 12: 0x7ff56a5056e0 - check_crate::h16da0c29bfd97789XcC 13: 0x7ff56bb0fa08 - driver::phase_3_run_analysis_passes::h7268293564f4d974nGa 14: 0x7ff56baf0b05 - driver::compile_input::hf89ed7761a9a5930Qba 15: 0x7ff56bbb1fd1 - run_compiler::h61cd16b138828888z4b 16: 0x7ff56bbafc22 - boxed::F.FnBox&lt;A&gt;::call_box::h3676213088059194772 17: 0x7ff56bbaf159 - rt::unwind::try::try_fn::h2238843044414567073 18: 0x7ff56b646b28 - rust_try_inner 19: 0x7ff56b646b15 - rust_try 20: 0x7ff56bbaf408 - boxed::F.FnBox&lt;A&gt;::call_box::h6492341214887270608 21: 0x7ff56b5dbd81 - sys::thread::create::thread_start::ha66925ca4f47d19baqv 22: 0x7ff566067353 - start_thread 23: 0x7ff56b235bfc - __clone 24: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><span class="pl-k">~</span>/code/rust/panic/ § RUST_BACKTRACE=1 rustc src/main.rs (master<span class="pl-k">*</span>) [18:07:43] <span class="pl-k">&lt;</span>std macros<span class="pl-k">&gt;</span>:3:1: 3:76 error: internal compiler error: cat_expr Errd <span class="pl-k">&lt;</span>std macros<span class="pl-k">&gt;</span>:3 <span class="pl-k">&lt;</span> [ _ ] <span class="pl-k">&gt;</span> :: into_vec ( $ crate:: boxed:: Box:: new ( [ $ ( $ x ) , <span class="pl-k">*</span> ] ) ) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <span class="pl-k">&lt;</span>std macros<span class="pl-k">&gt;</span>:1:1: 4:58 note: <span class="pl-k">in</span> expansion of vec<span class="pl-k">!</span> src/main.rs:2:5: 2:14 note: expansion site note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> <span class="pl-k">for</span> a backtrace thread <span class="pl-s"><span class="pl-pds">'</span>rustc<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>Box&lt;Any&gt;<span class="pl-pds">'</span></span>, /build/rust/src/rustc-1.0.0/src/libsyntax/diagnostic.rs:149 stack backtrace: 1: 0x7ff56b5d5189 - sys::backtrace::write::h85e36588f6ec519ed4r 2: 0x7ff56b5dce96 - panicking::on_panic::h6e154bbd20295560jrw 3: 0x7ff56b5a01a2 - rt::unwind::begin_unwind_inner::h58d8677c31c147e6t6v 4: 0x7ff568b94a0d - rt::unwind::begin_unwind::h17109019831519213513 5: 0x7ff568b949a2 - diagnostic::SpanHandler::span_bug::he871130351e8da9fEqB 6: 0x7ff56942f163 - session::Session::span_bug::hf5507d592e7c6099PDq 7: 0x7ff56a3d1a5d - check::regionck::visit_expr::h55b582b9adf67231Yhd 8: 0x7ff56a3ce9d0 - check::regionck::Rcx<span class="pl-k">&lt;</span><span class="pl-s"><span class="pl-pds">'</span>a, <span class="pl-pds">'</span></span>tcx<span class="pl-k">&gt;</span>::visit_fn_body::h894f2218ba6ba28epUc 9: 0x7ff56a448546 - check::check_bare_fn::h16e5c54944c58ce3twn 10: 0x7ff56a4463a2 - check::CheckItemBodiesVisitor<span class="pl-k">&lt;</span><span class="pl-s"><span class="pl-pds">'</span>a, <span class="pl-pds">'</span></span>tcx<span class="pl-k">&gt;</span>.Visitor<span class="pl-k">&lt;</span><span class="pl-s"><span class="pl-pds">'</span>tcx&gt;::visit_item::h960d90c3a6588469wtn</span> <span class="pl-s"> 11: 0x7ff56a50a34a - check_crate::closure.38028</span> <span class="pl-s"> 12: 0x7ff56a5056e0 - check_crate::h16da0c29bfd97789XcC</span> <span class="pl-s"> 13: 0x7ff56bb0fa08 - driver::phase_3_run_analysis_passes::h7268293564f4d974nGa</span> <span class="pl-s"> 14: 0x7ff56baf0b05 - driver::compile_input::hf89ed7761a9a5930Qba</span> <span class="pl-s"> 15: 0x7ff56bbb1fd1 - run_compiler::h61cd16b138828888z4b</span> <span class="pl-s"> 16: 0x7ff56bbafc22 - boxed::F.FnBox&lt;A&gt;::call_box::h3676213088059194772</span> <span class="pl-s"> 17: 0x7ff56bbaf159 - rt::unwind::try::try_fn::h2238843044414567073</span> <span class="pl-s"> 18: 0x7ff56b646b28 - rust_try_inner</span> <span class="pl-s"> 19: 0x7ff56b646b15 - rust_try</span> <span class="pl-s"> 20: 0x7ff56bbaf408 - boxed::F.FnBox&lt;A&gt;::call_box::h6492341214887270608</span> <span class="pl-s"> 21: 0x7ff56b5dbd81 - sys::thread::create::thread_start::ha66925ca4f47d19baqv</span> <span class="pl-s"> 22: 0x7ff566067353 - start_thread</span> <span class="pl-s"> 23: 0x7ff56b235bfc - __clone</span> <span class="pl-s"> 24: 0x0 - &lt;unknown&gt;</span></pre></div>
<p dir="auto">Test case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() { []; }"><pre class="notranslate"><code class="notranslate">fn main() { []; } </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc test.rs test.rs:1:13: 1:15 error: internal compiler error: cat_expr Errd test.rs:1 fn main() { []; } ^~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0xcc029720 - sys::backtrace::write::h66f3f2784d0f6c5ddgA 2: 0xcc051b80 - panicking::on_panic::h6fdde9e4e9166fe6jaJ 3: 0xcbf91c30 - rt::unwind::begin_unwind_inner::hba10c536ef2aae75MQI 4: 0xc92a10c0 - rt::unwind::begin_unwind::h11287547919384241778 5: 0xc92a1050 - diagnostic::SpanHandler::span_bug::h551f703868554ecfUBD 6: 0xc9e32fe0 - session::Session::span_bug::h10f6b5fdbea6485fbjp 7: 0xcb6c5920 - check::regionck::visit_expr::hc78138689559ecf8Yrd 8: 0xcb6c35c0 - check::regionck::Rcx&lt;'a, 'tcx&gt;::visit_fn_body::h75e2fac33dc50b43a4c 9: 0xcb75ee50 - check::check_bare_fn::hf42e5aabaa5cb880Oan 10: 0xcb756f40 - check::check_item::hdbe569c101f96905stn 11: 0xcb822f10 - check_crate::closure.36015 12: 0xcb81d9c0 - check_crate::h9d44bf3fde687089EXB 13: 0xcc6a38c0 - driver::phase_3_run_analysis_passes::h36c633d41f11ca74wFa 14: 0xcc689ec0 - driver::compile_input::h0de317319ab5c701Hba 15: 0xcc754e20 - run_compiler::hffa0c0711e361de8E5b 16: 0xcc753720 - thunk::F.Invoke&lt;A, R&gt;::invoke::h12673221910893163557 17: 0xcc752610 - rt::unwind::try::try_fn::h15130568597725528481 18: 0xcc0bd740 - rust_try_inner 19: 0xcc0bd730 - rust_try 20: 0xcc752910 - thunk::F.Invoke&lt;A, R&gt;::invoke::h3924406537784056782 21: 0xcc03d990 - sys::thread::thread_start::h3734be2229bd3edegEE 22: 0xc5f650c0 - start_thread 23: 0xcbc0a449 - __clone 24: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc test.rs test.rs:1:13: 1:15 error: internal compiler error: cat_expr Errd test.rs:1 fn main() { []; } ^~ note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129 stack backtrace: 1: 0xcc029720 - sys::backtrace::write::h66f3f2784d0f6c5ddgA 2: 0xcc051b80 - panicking::on_panic::h6fdde9e4e9166fe6jaJ 3: 0xcbf91c30 - rt::unwind::begin_unwind_inner::hba10c536ef2aae75MQI 4: 0xc92a10c0 - rt::unwind::begin_unwind::h11287547919384241778 5: 0xc92a1050 - diagnostic::SpanHandler::span_bug::h551f703868554ecfUBD 6: 0xc9e32fe0 - session::Session::span_bug::h10f6b5fdbea6485fbjp 7: 0xcb6c5920 - check::regionck::visit_expr::hc78138689559ecf8Yrd 8: 0xcb6c35c0 - check::regionck::Rcx&lt;'a, 'tcx&gt;::visit_fn_body::h75e2fac33dc50b43a4c 9: 0xcb75ee50 - check::check_bare_fn::hf42e5aabaa5cb880Oan 10: 0xcb756f40 - check::check_item::hdbe569c101f96905stn 11: 0xcb822f10 - check_crate::closure.36015 12: 0xcb81d9c0 - check_crate::h9d44bf3fde687089EXB 13: 0xcc6a38c0 - driver::phase_3_run_analysis_passes::h36c633d41f11ca74wFa 14: 0xcc689ec0 - driver::compile_input::h0de317319ab5c701Hba 15: 0xcc754e20 - run_compiler::hffa0c0711e361de8E5b 16: 0xcc753720 - thunk::F.Invoke&lt;A, R&gt;::invoke::h12673221910893163557 17: 0xcc752610 - rt::unwind::try::try_fn::h15130568597725528481 18: 0xcc0bd740 - rust_try_inner 19: 0xcc0bd730 - rust_try 20: 0xcc752910 - thunk::F.Invoke&lt;A, R&gt;::invoke::h3924406537784056782 21: 0xcc03d990 - sys::thread::thread_start::h3734be2229bd3edegEE 22: 0xc5f650c0 - start_thread 23: 0xcbc0a449 - __clone 24: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">Compiler version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-nightly (b47aebe3f 2015-02-26) (built 2015-02-27) binary: rustc commit-hash: b47aebe3fc2da06c760fd8ea19f84cbc41d34831 commit-date: 2015-02-26 build-date: 2015-02-27 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-nightly (b47aebe3f 2015-02-26) (built 2015-02-27) binary: rustc commit-hash: b47aebe3fc2da06c760fd8ea19f84cbc41d34831 commit-date: 2015-02-26 build-date: 2015-02-27 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly </code></pre></div> <p dir="auto">I modified the test case in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="59341575" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22894" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22894/hovercard" href="https://github.com/rust-lang/rust/issues/22894">#22894</a> by moving the <code class="notranslate">&amp;*""</code> into <code class="notranslate">fn main()</code>, and I saw the same ICE. I then changed the <code class="notranslate">""</code> to the similar <code class="notranslate">&amp;[]</code>, and I saw an ICE with a different error message and a different stack trace (e.g. phase 3 instead of phase 4). The <code class="notranslate">&amp;</code> and <code class="notranslate">*</code> are unnecessary.</p> <p dir="auto">I also see the <code class="notranslate">cat_expr Errd</code> message in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56894364" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22037" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22037/hovercard" href="https://github.com/rust-lang/rust/issues/22037">#22037</a>, but there are differences -- this issue happens in phase 3 rather than 4, and there is no "fictitious type" message.</p>
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.8+</p> <p dir="auto"><strong>Description</strong></p> <p dir="auto">Symfony now redirects routes with trailing slashes to routes without trailing slashes on its own, which seems unexpected and like a bad practice, as two URLs are treated equally which are not automatically equal by any official standards.</p> <p dir="auto">URLs in my application never have a trailing slash, and if a link points towards an URL with a trailing slash this should always be treated as a 404, which can then be captured and logged by my application to find out why there was an incorrect link. Symfony now decides on its own that an URL followed by a slash is equal to the same URL without the trailing slash and does an additional redirect, which seems like an arbitrary convention and is a BC break.</p> <p dir="auto">I also feel Symfony doing redirects bypassing the application is unexpected in its own way - I expect routes to be matched, but not Symfony to decide how to redirect URLs and changing my URLs. In my case this broke part of my application, because suddenly there was an additional unexpected redirect which was not issued by my application but by Symfony itself.</p> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto">As far as I can tell there is no way for me to bypass this functionality - no option to switch it off, nothing to do (I went through all Symfony documentation, and this now seems to be required behavior). Generally, I want to turn off ANY automatic redirection of Symfony, as this is the responsibility of my application.</p> <p dir="auto">So if this change really needs to happen, then there should be a possibility to turn it off. There might also be possibilities to make the router more succinct if the whole trailing slash or not part does not need to be in there, because matching something 1:1 must be a lot easier and less error-prone than also checking about trailing slashes or not.</p>
<p dir="auto"><strong>Description</strong></p> <blockquote> <p dir="auto">The automatic 301 redirection from /foo/ to /foo was introduced in Symfony 4.1. In previous Symfony versions this results in a 404 response.</p> </blockquote> <p dir="auto">This is a "magic" behaviour which can be unwanted in certain cases. For example it can <a href="https://stackoverflow.com/questions/13556772/jquery-ajax-wont-make-https-requests" rel="nofollow">break AJAX calls via HTTPS</a>.</p> <p dir="auto">There should be an option to disable this behaviour and enforcing strict URL matching on the route, without any magic redirects behind.</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-using-typeof" rel="nofollow">Waypoint: Using typeof</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">This is not a challenge-specific error. It shows up for each and every exercise which uses the FCC IDE (waypoints, bonfires, etc) I cleared browser cache, and even restarted my computer</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13121330/12294691/52753ac6-ba22-11e5-84ee-ad6a504281f4.JPG"><img src="https://cloud.githubusercontent.com/assets/13121330/12294691/52753ac6-ba22-11e5-84ee-ad6a504281f4.JPG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-say-hello-to-html-elements#?solution=%3Ch1%3EHello%20%3C%2Fh1%3E%0A" rel="nofollow">Waypoint: Say Hello to HTML Elements</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;h1&gt;Hello World&lt;/h1&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Hello World<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">After I click run test. The output is not displayed on the right screen. I refreshed it multiple times, tried in different browser. Didn't help.<br> Please help me out of this. I am new to FCC.</p>
1
<p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Open a file in atom with the package <code class="notranslate">vim-mode</code> enabled.</li> <li>Change the file permissions.</li> <li><kbd>Esc</kbd> <kbd>i</kbd> (switch to insert mode).</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: EACCES, open '/Users/Yvan/Downloads/test.css'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126 Error: EACCES, open '/Users/Yvan/Downloads/test.css' at Error (native) "><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126 Error: EACCES, open '/Users/Yvan/Downloads/test.css' at Error (native) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:00.0 vim-mode:activate-insert-mode (input.hidden-input)"><pre class="notranslate"><code class="notranslate"> -0:00.0 vim-mode:activate-insert-mode (input.hidden-input) </code></pre></div> <h3 dir="auto">Config</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;editor&quot;: { &quot;fontSize&quot;: 12, &quot;tabLength&quot;: 4, &quot;showInvisibles&quot;: true, &quot;softWrap&quot;: true, &quot;autoIndentOnPaste&quot;: false } }"><pre class="notranslate"><code class="notranslate">{ "editor": { "fontSize": 12, "tabLength": 4, "showInvisibles": true, "softWrap": true, "autoIndentOnPaste": 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 ascii-codes, v0.3.3 autocomplete-plus, v1.0.0 color-picker, v1.2.6 editor-stats, v0.16.0 file-icons, v1.4.3 html-entities, v0.2.0 language-haskell, v1.0.0 language-latex, v0.4.1 language-rust, v0.3.2 language-viml, v0.2.0 linter, v0.9.0 linter-coffeelint, v0.1.7 linter-javac, v0.1.3 linter-jshint, v0.1.0 linter-php, v0.0.11 linter-pylint, v0.2.0 linter-rubocop, v0.2.1 linter-scalac, v0.3.3 linter-scss-lint, v0.0.11 linter-shellcheck, v0.0.6 linter-xmllint, v0.0.5 minimap, v3.4.9 project-manager, v1.14.1 tabs-to-spaces, v0.8.0 travis-ci-status, v0.11.1 vim-mode, v0.22.0 visual-bell, v0.9.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> ascii<span class="pl-k">-</span>codes, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span> editor<span class="pl-k">-</span>stats, v0.<span class="pl-ii">16</span>.<span class="pl-ii">0</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">4</span>.<span class="pl-ii">3</span> html<span class="pl-k">-</span>entities, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>haskell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>latex, v0.<span class="pl-ii">4</span>.<span class="pl-ii">1</span> language<span class="pl-k">-</span>rust, v0.<span class="pl-ii">3</span>.<span class="pl-ii">2</span> language<span class="pl-k">-</span>viml, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>coffeelint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">7</span> linter<span class="pl-k">-</span>javac, v0.<span class="pl-ii">1</span>.<span class="pl-ii">3</span> linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>php, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>pylint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>rubocop, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span> linter<span class="pl-k">-</span>scalac, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> linter<span class="pl-k">-</span>scss<span class="pl-k">-</span>lint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span> linter<span class="pl-k">-</span>shellcheck, v0.<span class="pl-ii">0</span>.<span class="pl-ii">6</span> linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span> minimap, v3.<span class="pl-ii">4</span>.<span class="pl-ii">9</span> project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">14</span>.<span class="pl-ii">1</span> tabs<span class="pl-k">-</span>to<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">8</span>.<span class="pl-ii">0</span> travis<span class="pl-k">-</span>ci<span class="pl-k">-</span>status, v0.<span class="pl-ii">11</span>.<span class="pl-ii">1</span> vim<span class="pl-k">-</span>mode, v0.<span class="pl-ii">22</span>.<span class="pl-ii">0</span> visual<span class="pl-k">-</span>bell, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> <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">Perhaps put a message in the status bar or somewhere else, but catch it either way.</p>
1
<p dir="auto">From the discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140352653" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/18115" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/18115/hovercard" href="https://github.com/symfony/symfony/issues/18115">#18115</a> :<br> we should add the Double Submit Cookies CSRF prevention strategy as described by<br> <a href="https://www.owasp.org/index.php/CSRF_Prevention_Cheat_Sheet#Double_Submit_Cookies" rel="nofollow">https://www.owasp.org/index.php/CSRF_Prevention_Cheat_Sheet#Double_Submit_Cookies</a></p> <p dir="auto">If doable, this should be the default CSRF prevention strategy used in symfony SE</p>
<p dir="auto">It would be nice add cookies csrf token storage. Use case: we are having form which available for anonymous users (and bots like googlebot). Session starts on each time when this page open. And too much files was generated with session data.</p>
1
<p dir="auto">Hello there.</p> <p dir="auto">Doing a right click on a flash object opens up a context menu as expected, but the positioning in 2.0.0-beta.1 is wrong. This happens on both 32-bit and 64-bit builds for Windows and also on Ubuntu 64-bit.</p> <p dir="auto">The positioning is correct in v1.8.2.</p> <p dir="auto">Additional info:<br> Windows 7 x64<br> Flash Player: 28.0.0.161</p> <p dir="auto">Minimal app for reproducing (win-64bit and linux-64bit):<br> <a href="https://github.com/electron/electron/files/1767276/wrong-context-menu-position.zip">wrong-context-menu-position.zip</a></p>
<ul dir="auto"> <li>Electron version: 2.0.0-beta.1</li> <li>Operating system: Windows 10 and Ubuntu 16 (I cannot reproduce on macOS)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">We use <code class="notranslate">event.pageX</code> and <code class="notranslate">event.pageY</code> to position the context menu under the mouse and this used to work fine in Electron 1.7.x.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The coordinates can easily end up outside of the window.</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>electron quick start example</li> <li>open the renderer and add below code</li> <li>right click</li> </ul> <p dir="auto">=&gt; the menu opens outside the window</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var electron = require(&quot;electron&quot;); var menu = new electron.remote.Menu() menu.append(new electron.remote.MenuItem({ label: 'MenuItem1', click: function () { console.log('item 1 clicked') } })) menu.append(new electron.remote.MenuItem({ type: 'separator' })) menu.append(new electron.remote.MenuItem({ label: 'MenuItem2', click: function () { console.log('item 2 clicked') }, type: 'checkbox', checked: true })) window.addEventListener('contextmenu', function (e) { e.preventDefault() menu.popup({ window: electron.remote.getCurrentWindow(), x: e.pageX, y: e.pageY }) }, false)"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"electron"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">menu</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-c1">Menu</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">menu</span><span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-c1">MenuItem</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'MenuItem1'</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-k">function</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">'item 1 clicked'</span><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-s1">menu</span><span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-c1">MenuItem</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">'separator'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">menu</span><span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-c1">MenuItem</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'MenuItem2'</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-k">function</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">'item 2 clicked'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'checkbox'</span><span class="pl-kos">,</span> <span class="pl-c1">checked</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-smi">window</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'contextmenu'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">menu</span><span class="pl-kos">.</span><span class="pl-en">popup</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">window</span>: <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">remote</span><span class="pl-kos">.</span><span class="pl-en">getCurrentWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">x</span>: <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">pageX</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">pageY</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">false</span><span class="pl-kos">)</span></pre></div>
1
<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>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:No</li> <li><strong>TensorFlow installed from (source or binary)</strong>:Binary with gpu supported</li> <li><strong>TensorFlow version (use command below)</strong>:1.11.0</li> <li><strong>Python version</strong>:python 27</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:9.0</li> <li><strong>GPU model and memory</strong>: ec2 p2.16xlarge 16 NVIDIA K80 GPUs</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Hi all, I already opened this issue in tensorflow-serving but I think this might be a better place to open this issue. Please let know if I need to close the previous one.<br> I used the code below to test whether tensor-serving works with tensorflow. Here are some combinations and results:<br> TF 1.10.0 TF-Serving 1.10.0 Success<br> TF 1.11.0 TF-Serving 1.10.0 Failed<br> TF 1.11.0 TF-Serving 1.11.0rc1 Failed</p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python tensorflow_serving/example/mnist_saved_model.py /tmp/mnist_model || exit 1 tensorflow_model_server --port=9000 --model_name=mnist --model_base_path=/tmp/mnist_model/ &amp; SERVER_PID=$! python mnist_client.py --num_tests=1000 --server=localhost:9000 || exit 1 kill -9 $SERVER_PID"><pre class="notranslate"><code class="notranslate">python tensorflow_serving/example/mnist_saved_model.py /tmp/mnist_model || exit 1 tensorflow_model_server --port=9000 --model_name=mnist --model_base_path=/tmp/mnist_model/ &amp; SERVER_PID=$! python mnist_client.py --num_tests=1000 --server=localhost:9000 || exit 1 kill -9 $SERVER_PID </code></pre></div> <p dir="auto">Log</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Training model... Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes. Extracting /tmp/train-images-idx3-ubyte.gz Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes. Extracting /tmp/train-labels-idx1-ubyte.gz Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes. Extracting /tmp/t10k-images-idx3-ubyte.gz Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes. Extracting /tmp/t10k-labels-idx1-ubyte.gz training accuracy 0.9092 Done training! Exporting trained model to /tmp/mnist_model/1 WARNING:tensorflow:From mnist_saved_model.py:139: calling add_meta_graph_and_variables (from tensorflow.python.saved_model.builder_impl) with legacy_init_op is deprecated and will be removed in a future version. Instructions for updating: Pass your op to the equivalent parameter main_op instead. Done exporting! Extracting /tmp/train-images-idx3-ubyte.gz Extracting /tmp/train-labels-idx1-ubyte.gz Extracting /tmp/t10k-images-idx3-ubyte.gz Extracting /tmp/t10k-labels-idx1-ubyte.gz &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; 2018-10-02 21:18:32.604303: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] 2018-10-02 21:18:32.604833: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] 2018-10-02 21:18:32.604980: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: mnist version: 1} failed: Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt;"><pre class="notranslate"><code class="notranslate">Training model... Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes. Extracting /tmp/train-images-idx3-ubyte.gz Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes. Extracting /tmp/train-labels-idx1-ubyte.gz Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes. Extracting /tmp/t10k-images-idx3-ubyte.gz Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes. Extracting /tmp/t10k-labels-idx1-ubyte.gz training accuracy 0.9092 Done training! Exporting trained model to /tmp/mnist_model/1 WARNING:tensorflow:From mnist_saved_model.py:139: calling add_meta_graph_and_variables (from tensorflow.python.saved_model.builder_impl) with legacy_init_op is deprecated and will be removed in a future version. Instructions for updating: Pass your op to the equivalent parameter main_op instead. Done exporting! Extracting /tmp/train-images-idx3-ubyte.gz Extracting /tmp/train-labels-idx1-ubyte.gz Extracting /tmp/t10k-images-idx3-ubyte.gz Extracting /tmp/t10k-labels-idx1-ubyte.gz &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; 2018-10-02 21:18:32.604303: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] 2018-10-02 21:18:32.604833: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] 2018-10-02 21:18:32.604980: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: mnist version: 1} failed: Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; </code></pre></div>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Hardware</strong>: AWS EC2 p2.16xlarge</li> <li><strong>OS Platform and Distribution</strong>: Linux Ubuntu 16.04</li> <li><strong>TensorFlow Serving installed from (source or binary)</strong>:<br> pip install tensorflow-serving-api<br> pip install tensorflow-serving-api==1.11.0rc1</li> <li><strong>TensorFlow Serving version</strong>:<br> both 1.10.0 and 1.11.0rc1</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I used the code below to test whether tensor-serving works with tensorflow. Here are some combinations and results:<br> TF 1.10.0 TF-Serving 1.10.0 Success<br> TF 1.11.0 TF-Serving 1.10.0 Failed<br> TF 1.11.0 TF-Serving 1.11.0rc1 Failed</p> <h3 dir="auto">Exact Steps to Reproduce</h3> <p dir="auto">Here is the example code that I run to reproduce the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python mnist_saved_model.py /tmp/mnist_model || exit 1 tensorflow_model_server --port=9000 --model_name=mnist --model_base_path=/tmp/mnist_model/ &amp; SERVER_PID=$! python mnist_client.py --num_tests=1000 --server=localhost:9000 || exit 1 kill -9 $SERVER_PID"><pre class="notranslate"><code class="notranslate">python mnist_saved_model.py /tmp/mnist_model || exit 1 tensorflow_model_server --port=9000 --model_name=mnist --model_base_path=/tmp/mnist_model/ &amp; SERVER_PID=$! python mnist_client.py --num_tests=1000 --server=localhost:9000 || exit 1 kill -9 $SERVER_PID </code></pre></div> <h3 dir="auto">Source code / logs</h3> <p dir="auto">For minimum code please see above reproduce section. Logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Training model... Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes. Extracting /tmp/train-images-idx3-ubyte.gz Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes. Extracting /tmp/train-labels-idx1-ubyte.gz Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes. Extracting /tmp/t10k-images-idx3-ubyte.gz Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes. Extracting /tmp/t10k-labels-idx1-ubyte.gz training accuracy 0.9092 Done training! Exporting trained model to /tmp/mnist_model/1 WARNING:tensorflow:From mnist_saved_model.py:139: calling add_meta_graph_and_variables (from tensorflow.python.saved_model.builder_impl) with legacy_init_op is deprecated and will be removed in a future version. Instructions for updating: Pass your op to the equivalent parameter main_op instead. Done exporting! Extracting /tmp/train-images-idx3-ubyte.gz Extracting /tmp/train-labels-idx1-ubyte.gz Extracting /tmp/t10k-images-idx3-ubyte.gz Extracting /tmp/t10k-labels-idx1-ubyte.gz &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; 2018-10-02 21:18:32.604303: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] 2018-10-02 21:18:32.604833: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] 2018-10-02 21:18:32.604980: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: mnist version: 1} failed: Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device=&quot;/job:localhost/replica:0/task:0/device:CPU:0&quot;](index_to_string/range)]] &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; "><pre class="notranslate"><code class="notranslate">Training model... Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes. Extracting /tmp/train-images-idx3-ubyte.gz Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes. Extracting /tmp/train-labels-idx1-ubyte.gz Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes. Extracting /tmp/t10k-images-idx3-ubyte.gz Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes. Extracting /tmp/t10k-labels-idx1-ubyte.gz training accuracy 0.9092 Done training! Exporting trained model to /tmp/mnist_model/1 WARNING:tensorflow:From mnist_saved_model.py:139: calling add_meta_graph_and_variables (from tensorflow.python.saved_model.builder_impl) with legacy_init_op is deprecated and will be removed in a future version. Instructions for updating: Pass your op to the equivalent parameter main_op instead. Done exporting! Extracting /tmp/train-images-idx3-ubyte.gz Extracting /tmp/train-labels-idx1-ubyte.gz Extracting /tmp/t10k-images-idx3-ubyte.gz Extracting /tmp/t10k-labels-idx1-ubyte.gz &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; 2018-10-02 21:18:32.604303: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] 2018-10-02 21:18:32.604833: E external/org_tensorflow/tensorflow/core/common_runtime/executor.cc:697] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] 2018-10-02 21:18:32.604980: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: mnist version: 1} failed: Invalid argument: NodeDef mentions attr 'Truncate' not in Op&lt;name=Cast; signature=x:SrcT -&gt; y:DstT; attr=SrcT:type; attr=DstT:type&gt;; NodeDef: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: index_to_string/ToInt64 = Cast[DstT=DT_INT64, SrcT=DT_INT32, Truncate=false, _output_shapes=[[10]], _device="/job:localhost/replica:0/task:0/device:CPU:0"](index_to_string/range)]] &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)&gt; &lt;_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)&gt; </code></pre></div>
1
<p dir="auto"><a href="https://github.com/symfony/symfony/pull/19681" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/19681/hovercard">The pull request</a> to allow injecting ENV parameters introduced an issue when building the container.</p> <p dir="auto">When a container is merged, the <code class="notranslate">mergeEnvPlaceholders</code> will duplicate existing placeholders. In a local project, where I had 9 <code class="notranslate">env()</code> parameters, this meant that the first 3 were duplicated 32768 times. Later when the compiler calls <code class="notranslate">resolveEnvPlaceholders</code> it will loop through all of these impacting performance pretty badly.</p> <p dir="auto">I think the problem is that using <code class="notranslate">array_merge_recursive</code> will <a href="http://php.net/manual/en/function.array-merge-recursive.php" rel="nofollow">append duplicate values of nested arrays if the keys are numeric</a>. I've never contributed to Symfony before so I'm not sure on this one, but I don't know if it needs to be fully recursive given that the environment placeholders should be scalar values.</p> <p dir="auto">If it really does need to be recursive then something like <a href="http://php.net/manual/en/function.array-merge-recursive.php#92195" rel="nofollow">the function mentioned</a> in the comments for the <code class="notranslate">array_merge_recursive</code> docs page could be used. I did a simple performance check (microtime) for one of the compiler passes that was slowing down (ContainerBuilderDebugDumpPass)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0.023882150650024 # with the function from the comments in the php docs 16.744822025299 # as it is now 0.023157119750977 # with only one level merge"><pre class="notranslate"><code class="notranslate">0.023882150650024 # with the function from the comments in the php docs 16.744822025299 # as it is now 0.023157119750977 # with only one level merge </code></pre></div> <p dir="auto">I'll create a pull request using the simple merge and see what you think.</p> <p dir="auto">I guess this won't affect anything before v3.2</p>
<p dir="auto">The FileType currently prints the full qualified file system path to a file into the value attribute of the input field. This should be prevented at all costs inside the FileType (not in the template).</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tmattsson" rel="nofollow">Tobias Mattsson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8728?redirect=false" rel="nofollow">SPR-8728</a></strong> and commented</p> <p dir="auto">It would be really helpful if the profile attribute could take names of profiles that all has to be active.</p> <p dir="auto">For instance:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;beans profile=&quot;production,datacenter_us&quot;&gt; ... &lt;/beans&gt; &lt;beans profile=&quot;production,datacenter_eu&quot;&gt; ... &lt;/beans&gt;"><pre class="notranslate"><code class="notranslate">&lt;beans profile="production,datacenter_us"&gt; ... &lt;/beans&gt; &lt;beans profile="production,datacenter_eu"&gt; ... &lt;/beans&gt; </code></pre></div> <p dir="auto">As for syntax there would need to be a notation that can express both OR and AND, possibly using | and ,</p> <p dir="auto">Like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;beans profile=&quot;staging|production&quot;&gt; ... &lt;/beans&gt;"><pre class="notranslate"><code class="notranslate">&lt;beans profile="staging|production"&gt; ... &lt;/beans&gt; </code></pre></div> <p dir="auto">Even better would be if the syntax was in line with other expressions such as SpEL.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 M2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117665" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13818" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13818/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13818">#13818</a> Provide boolean logic on bean profiles, i.e. NOT profile. (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398222390" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/21010" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/21010/hovercard" href="https://github.com/spring-projects/spring-framework/issues/21010">#21010</a> Profile activation: not operator does not work consistently</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110303" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12637" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12637/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12637">#12637</a> Support profile exclusivity and/or bean definition finality</li> </ul> <p dir="auto">7 votes, 12 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mark.fisher" rel="nofollow">Mark Fisher</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9654?redirect=false" rel="nofollow">SPR-9654</a></strong> and commented</p> <p dir="auto">This can lead to an implicit "escaping" of the yet-to-be-initialized instance. It's more subtle than an explicit escape of a "this" reference, but it still allows the instance to be used before it is fully initialized (e.g. any explicit or implicit "this" references within the overridden method).</p> <p dir="auto">This is a decent explanation of the potential consequences:<br> <a href="https://www.securecoding.cert.org/confluence/display/java/MET05-J.+Ensure+that+constructors+do+not+call+overridable+methods" rel="nofollow">https://www.securecoding.cert.org/confluence/display/java/MET05-J.+Ensure+that+constructors+do+not+call+overridable+methods</a></p> <p dir="auto">I discovered this while trying to create a custom Environment subclass that initializes a couple of its own final instance varirables within its constructor and then attempts to use those in its overriding implementation of customizePropertySources(..).</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398116580" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13652" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13652/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13652">#13652</a> AbstractEnvironment should not call overridable method from constructor (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto"><code class="notranslate">Three.js</code> Github repository is more than <strong>700mb</strong> big. It sounds like this issue already came up and may be related to the Github history but I think that is getting <strong>REALLY</strong> big and that'd be great if there are some Git pros out there knowing how to deal with that!</p> <p dir="auto">Note <code class="notranslate">git shallow-clone</code> could be a work around it.</p> <h5 dir="auto">Repoduce:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gitroot git clone https://github.com/mrdoob/three.js Cloning into 'three.js'... remote: Enumerating objects: 45, done. remote: Counting objects: 100% (45/45), done. remote: Compressing objects: 100% (42/42), done. remote: Total 221599 (delta 23), reused 9 (delta 3), pack-reused 221554 Receiving objects: 100% (221599/221599), 727.72 MiB | 10.24 MiB/s, done."><pre class="notranslate"><code class="notranslate">gitroot git clone https://github.com/mrdoob/three.js Cloning into 'three.js'... remote: Enumerating objects: 45, done. remote: Counting objects: 100% (45/45), done. remote: Compressing objects: 100% (42/42), done. remote: Total 221599 (delta 23), reused 9 (delta 3), pack-reused 221554 Receiving objects: 100% (221599/221599), 727.72 MiB | 10.24 MiB/s, done. </code></pre></div> <p dir="auto">More information</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ three.js git:(dev) du -sh * 4.0K LICENSE 4.0K README.md 2.8M build 3.4M docs 1.9M editor 362M examples 268K files 32K icon.png 92K package-lock.json 4.0K package.json 3.2M src 1.8M test 72K utils ➜ three.js git:(dev) du -sh .* 4.0K .editorconfig 743M .git 4.0K .gitattributes 8.0K .github 4.0K .gitignore 4.0K .npmignore 4.0K .travis.yml"><pre class="notranslate"><code class="notranslate">➜ three.js git:(dev) du -sh * 4.0K LICENSE 4.0K README.md 2.8M build 3.4M docs 1.9M editor 362M examples 268K files 32K icon.png 92K package-lock.json 4.0K package.json 3.2M src 1.8M test 72K utils ➜ three.js git:(dev) du -sh .* 4.0K .editorconfig 743M .git 4.0K .gitattributes 8.0K .github 4.0K .gitignore 4.0K .npmignore 4.0K .travis.yml </code></pre></div> <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> </ul>
<p dir="auto">#####Git folder is too big, cloning repository last like 1 hour<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25888114/55201005-f0488080-518e-11e9-89d8-126324fc772f.png"><img src="https://user-images.githubusercontent.com/25888114/55201005-f0488080-518e-11e9-89d8-126324fc772f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Is there a way this library "restart" git not to have that big git file</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" checked=""> r103</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"> 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>
1
<pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. run `go test -coverprofile=coverage.out ./...` What is the expected output? coverage.out contains coverage all of the specified packages What do you see instead? `cannot use test profile flag with multiple packages` Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? OS X 10.9 Which version are you using? (run 'go version') go version go1.2 darwin/amd64 Please provide any additional information below. If I manually construct a coverage.out file from multiple packages, it seems to work fine: 1. go test -coverprofile a.part ./a 2. go test -coverprofile b.part ./b 3. echo "mode: set" &gt;coverage.out 4. grep -h -v "mode: set" *.part &gt;&gt;coverage.out 5. go tool cover -html=coverage.out Why can't `go test -coverprofile` do this automatically?</pre>
<pre class="notranslate">Duplicate strings can waste memory and cause lots of allocations, but may be cheaper at allocation time. Interning strings has a lookup cost, but can save memory and even CPU by reduced number of GCs. I'd like to have this choice, for when I know my strings are large and likely duplicates. Manual interning in user code, var internedStrings struct{ sync.RWMutex m map[string]string } ... leads to lock contention and a map that grows forever. The runtime could have a less contentious map and could integrate with the garbage collector, such that strings that are only referenced from the intern table to themselves are still collected and removed from the internal map.</pre>
0
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.2.1</li> <li>Operating System: Mac</li> <li>Node version: 12.14.1</li> <li>Browser: Firefox, Webkit</li> </ul> <p dir="auto"><strong>Code Snippet</strong><br> <a href="https://github.com/benoitjchevalier/playwright-focus">https://github.com/benoitjchevalier/playwright-focus</a></p> <p dir="auto">npm install<br> node run.js</p> <p dir="auto">Observe lack of focus ring on some FF screenshots</p> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">Hello there <g-emoji class="g-emoji" alias="wave" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png">👋</g-emoji> . We're building an in-house visual regression tool using playwright which has been a huge help for us. I've recently come across an edge case on Firefox and sometimes Webkit.</p> <p dir="auto">When running multiple pages (each with a unique context) of the same browser in parallel and taking screenshots of a focused element then on FF the screenshot will miss the focus ring.</p> <p dir="auto">Chrome always behaves and I've seen rare occurrences where webkit would also suffer from the focusringlessness.<br> The element itself is correctly identified as active by the browser when testing through <code class="notranslate">element === (document|shadowRoot).activeElement</code>, before and after the screenshot.</p> <p dir="auto">I've created a small repro in the above repo. Please note that this repo does everything from the node context where our tool runs the tests in the browser context and the notifies the node context when a screenshot should be taken. So the difference is that we focus from the browser context where the reproduction focuses from the playwright elementHandle. That said the results are similar.</p> <p dir="auto">I'm hoping this can be fixed at the playwright level and isn't a limitation at the browser level :)</p>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.3.0</li> <li>Operating System: Linux/Docker</li> <li>Node.js version: 14</li> <li>Browser: Firefox</li> <li>Extra: <a href="https://try.playwright.tech/?s=nsosu" rel="nofollow">https://try.playwright.tech/?s=nsosu</a></li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @ts-check const playwright = require(&quot;playwright&quot;); (async () =&gt; { for (const browserType of ['chromium', 'webkit', 'firefox']) { /** @type {import('playwright').Browser} */ const browser = await playwright[browserType].launch(); const page1 = await (await browser.newContext()).newPage(); const page2 = await (await browser.newContext()).newPage(); await page1.setContent(`&lt;button id=&quot;foo&quot; onfocus=&quot;window.gotFocus=true&quot;&gt;foo&lt;/button&gt;`) await page2.setContent(`&lt;button id=&quot;foo&quot; onfocus=&quot;window.gotFocus=true&quot;&gt;foo&lt;/button&gt;`) await page1.focus(&quot;#foo&quot;) await page2.focus(&quot;#foo&quot;) console.log(browserType, &quot;page1&quot;, await page1.evaluate(() =&gt; !!window[&quot;gotFocus&quot;])) console.log(browserType, &quot;page2&quot;, await page2.evaluate(() =&gt; !!window[&quot;gotFocus&quot;])) await browser.close(); } })();"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@ts</span>-check</span> <span class="pl-k">const</span> <span class="pl-s1">playwright</span> <span class="pl-c1">=</span> <span class="pl-en">require</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-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">browserType</span> <span class="pl-k">of</span> <span class="pl-kos">[</span><span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-s">'webkit'</span><span class="pl-kos">,</span> <span class="pl-s">'firefox'</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/** <span class="pl-k">@type</span> {import('playwright').Browser} */</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">[</span><span class="pl-s1">browserType</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page1</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">page2</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page1</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;button id="foo" onfocus="window.gotFocus=true"&gt;foo&lt;/button&gt;`</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">page2</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;button id="foo" onfocus="window.gotFocus=true"&gt;foo&lt;/button&gt;`</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">page1</span><span class="pl-kos">.</span><span class="pl-en">focus</span><span class="pl-kos">(</span><span class="pl-s">"#foo"</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">page2</span><span class="pl-kos">.</span><span class="pl-en">focus</span><span class="pl-kos">(</span><span class="pl-s">"#foo"</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-s1">browserType</span><span class="pl-kos">,</span> <span class="pl-s">"page1"</span><span class="pl-kos">,</span> <span class="pl-k">await</span> <span class="pl-s1">page1</span><span class="pl-kos">.</span><span class="pl-en">evaluate</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">"gotFocus"</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-s1">browserType</span><span class="pl-kos">,</span> <span class="pl-s">"page2"</span><span class="pl-kos">,</span> <span class="pl-k">await</span> <span class="pl-s1">page2</span><span class="pl-kos">.</span><span class="pl-en">evaluate</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">"gotFocus"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><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-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">Actual: <code class="notranslate">firefox page1 false</code><br> Expected: <code class="notranslate">firefox page1 true</code></p> <p dir="auto">Reported via Slack: <a href="https://playwright.slack.com/archives/CSUHZPVLM/p1597434617186900" rel="nofollow">https://playwright.slack.com/archives/CSUHZPVLM/p1597434617186900</a></p>
1
<p dir="auto">Autocomplete in the REPL add <code class="notranslate">\</code> when needed to file names but julia1.0 functions do not like them</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a\ a.txt&quot;) ERROR: syntax: invalid escape sequence"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a\ a.txt") ERROR: syntax: invalid escape sequence </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; DelimitedFiles.readdlm(&quot;a a.txt&quot;)"><pre class="notranslate"><code class="notranslate">julia&gt; DelimitedFiles.readdlm("a a.txt") </code></pre></div> <p dir="auto">works</p>
<p dir="auto">Autocompleted paths which include whitespaces lead to an error as the whitespaces are automatically masked with a leading single backslash</p> <p dir="auto">see also<br> <a href="https://discourse.julialang.org/t/invalid-escape-sequence/12154/2" rel="nofollow">https://discourse.julialang.org/t/invalid-escape-sequence/12154/2</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; isfile(&quot;c:\\temp\\some folder with whitespace\\x.jl&quot;) true julia&gt; include(&quot;C:\\temp\\some\ folder\ with\ whitespace\\x.jl&quot;) ERROR: syntax: invalid escape sequence julia&gt; include(&quot;c:\\temp\\some folder with whitespace\\x.jl&quot;) julia&gt; versioninfo() Julia Version 0.7.0-beta.0 Commit f41b1ecaec (2018-06-24 01:32 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, skylake) Environment: JULIA_BINDIR = C:\Julia-0.7.X\bin\ JULIA_EDITOR = &quot;C:\Program Files (x86)\Notepad++\notepad++.exe&quot; JULIA_HOME = C:\Julia-0.6.X\bin\ julia&gt;"><pre class="notranslate"><code class="notranslate">julia&gt; isfile("c:\\temp\\some folder with whitespace\\x.jl") true julia&gt; include("C:\\temp\\some\ folder\ with\ whitespace\\x.jl") ERROR: syntax: invalid escape sequence julia&gt; include("c:\\temp\\some folder with whitespace\\x.jl") julia&gt; versioninfo() Julia Version 0.7.0-beta.0 Commit f41b1ecaec (2018-06-24 01:32 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, skylake) Environment: JULIA_BINDIR = C:\Julia-0.7.X\bin\ JULIA_EDITOR = "C:\Program Files (x86)\Notepad++\notepad++.exe" JULIA_HOME = C:\Julia-0.6.X\bin\ julia&gt; </code></pre></div>
1
<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.18363.836] PowerToys version: v 0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run (ish)"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.836] PowerToys version: v 0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run (ish) </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">It used to be "Press CTRL+WIN"...</p> <p dir="auto">An alternative:</p> <ul dir="auto"> <li>Open chrome (or any similar browser)</li> <li>Hide the browser window</li> <li>Press alt+space and type "Chrome"</li> <li>Select the first option</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The main reason I starting using PowerToys was for the amazing Launcher. I understood it was replaced by the Run tool that has an integrated Window Walker.</p> <p dir="auto">I expect to be able to run the "alt-tab" alternative tool and just that. Not a mix that makes using an alternative to alt tab worse than alt-tabbing.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">CTRL+WIN doesn't do anything anymore. Function is disabled<br> ALT+Space runs the new Run, however the alt+tab feature is gone. Selecting, for example, the browser will just open a new instance of chrome, instead of "alt-tabbing" to the open app.</p> <p dir="auto">I'd just like to use the "Window walker" integration. Separated from the Wox and alike features.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">Here's a quick GIF.</p> <ul dir="auto"> <li>I have an open Chrome browser.</li> <li>I switch focus to windows terminal</li> <li>Alt+space to open the search bar and type "chrome"</li> <li>Select first option</li> <li>As a result, it just opens a new chrome browser instance instead of switching to the existing one in the background.</li> </ul> <p dir="auto"><a href="https://imgur.com/CEZY0Py" rel="nofollow">https://imgur.com/CEZY0Py</a></p>
<p dir="auto">Like the header says, need to be able to centralize the taskbar items as I have a 49" ultrawide and the clock and background apps are far too far to the right and too small. Likewise, the start menu is too far to the right to make it comfortable to use all the time.</p> <p dir="auto">I know there's a way to enlarge the icons, but it's either too small or too big.</p>
0
<p dir="auto">This url</p> <p dir="auto"><a href="http://doc.rust-lang.org/core/?search=Option%3A%3Aunwrap_or_else" rel="nofollow">http://doc.rust-lang.org/core/?search=Option%3A%3Aunwrap_or_else</a></p> <p dir="auto">currently returns two identical results</p> <p dir="auto">A search for, "Option::unwrap_or_else" yields a direct hit.</p> <p dir="auto">A search for, "Option unwrap_or_else" yields no results</p> <p dir="auto">found during an investigation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47445452" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18498" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18498/hovercard" href="https://github.com/rust-lang/rust/issues/18498">#18498</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ brew install llvm --HEAD $ ./configure --llvm-root=$(brew --prefix llvm) --disable-docs --disable-valgrind --enable-debug --enable-optimize --enable-optimize-tests ... configure: using custom LLVM at /usr/local/opt/llvm configure: configure: found ok version of LLVM: 3.7.0svn ... $ /usr/bin/make check-stage1 compile: x86_64-apple-darwin/rt/rust_try.o /usr/local/opt/llvm/bin/llc: /Users/tamird/src/rust/src/rt/rust_try.ll:27:29: error: expected instruction opcode landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @rust_eh_personality_catch to i8*) ^ make: *** [x86_64-apple-darwin/rt/rust_try.o] Error 1"><pre class="notranslate"><code class="notranslate">$ brew install llvm --HEAD $ ./configure --llvm-root=$(brew --prefix llvm) --disable-docs --disable-valgrind --enable-debug --enable-optimize --enable-optimize-tests ... configure: using custom LLVM at /usr/local/opt/llvm configure: configure: found ok version of LLVM: 3.7.0svn ... $ /usr/bin/make check-stage1 compile: x86_64-apple-darwin/rt/rust_try.o /usr/local/opt/llvm/bin/llc: /Users/tamird/src/rust/src/rt/rust_try.ll:27:29: error: expected instruction opcode landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @rust_eh_personality_catch to i8*) ^ make: *** [x86_64-apple-darwin/rt/rust_try.o] Error 1 </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexcrichton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexcrichton">@alexcrichton</a></p>
0
<p dir="auto">I'm trying the <code class="notranslate">generate package</code> command described in the <a href="https://atom.io/docs/latest/your-first-package" rel="nofollow">Create your first package docs</a>, but it's not in there (version 0.137.0)/doesn't show up in the Command Palette.</p> <p dir="auto">It is, however, available from the top menu under Packages &gt; Package Generator.</p>
<p dir="auto">It looks like packages using activation commands don't have those commands appear in the command palette until the package is activated.</p> <p dir="auto">Command palette at startup with untitled editor window:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/4655799/746ca7aa-54c9-11e4-86ce-f0fd5f28fd66.png"><img src="https://cloud.githubusercontent.com/assets/671378/4655799/746ca7aa-54c9-11e4-86ce-f0fd5f28fd66.png" alt="screen shot 2014-10-15 at 5 13 45 pm" style="max-width: 100%;"></a></p> <p dir="auto">Command palette after pressing <code class="notranslate">cmd-f</code>:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/4655800/75db6338-54c9-11e4-88d5-ef7e9d8b2b3d.png"><img src="https://cloud.githubusercontent.com/assets/671378/4655800/75db6338-54c9-11e4-88d5-ef7e9d8b2b3d.png" alt="screen shot 2014-10-15 at 5 14 06 pm" style="max-width: 100%;"></a></p>
1
<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="from pandas.io.json import json_normalize json_normalize({'A': {'B': [{'X': 1, 'Y': 2}, {'X': 3, 'Y': 4}]}}, ['A', 'B'])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">io</span>.<span class="pl-s1">json</span> <span class="pl-k">import</span> <span class="pl-s1">json_normalize</span> <span class="pl-en">json_normalize</span>({<span class="pl-s">'A'</span>: {<span class="pl-s">'B'</span>: [{<span class="pl-s">'X'</span>: <span class="pl-c1">1</span>, <span class="pl-s">'Y'</span>: <span class="pl-c1">2</span>}, {<span class="pl-s">'X'</span>: <span class="pl-c1">3</span>, <span class="pl-s">'Y'</span>: <span class="pl-c1">4</span>}]}}, [<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>])</pre></div> <p dir="auto">Note: change from <code class="notranslate">json_normalize({'A': {'B': [1, 2]}}, ['A', 'B'])</code> to distinguish from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="335086132" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/21608" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/21608/hovercard" href="https://github.com/pandas-dev/pandas/issues/21608">#21608</a></p> <h4 dir="auto">Problem description</h4> <p dir="auto">The above code throws a <code class="notranslate">TypeError</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;C:\Python36\lib\site-packages\pandas\io\json\normalize.py&quot;, line 257, in json_normalize _recursive_extract(data, record_path, {}, level=0) File &quot;C:\Python36\lib\site-packages\pandas\io\json\normalize.py&quot;, line 230, in _recursive_extract seen_meta, level=level + 1) File &quot;C:\Python36\lib\site-packages\pandas\io\json\normalize.py&quot;, line 233, in _recursive_extract recs = _pull_field(obj, path[0]) File &quot;C:\Python36\lib\site-packages\pandas\io\json\normalize.py&quot;, line 180, in _pull_field result = result[spec] TypeError: string indices must be integers"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "C:\Python36\lib\site-packages\pandas\io\json\normalize.py", line 257, in json_normalize _recursive_extract(data, record_path, {}, level=0) File "C:\Python36\lib\site-packages\pandas\io\json\normalize.py", line 230, in _recursive_extract seen_meta, level=level + 1) File "C:\Python36\lib\site-packages\pandas\io\json\normalize.py", line 233, in _recursive_extract recs = _pull_field(obj, path[0]) File "C:\Python36\lib\site-packages\pandas\io\json\normalize.py", line 180, in _pull_field result = result[spec] TypeError: string indices must be integers </code></pre></div> <h4 dir="auto">Expected Output</h4> <table role="table"> <thead> <tr> <th></th> <th>X</th> <th>Y</th> </tr> </thead> <tbody> <tr> <td>0</td> <td>1</td> <td>2</td> </tr> <tr> <td>1</td> <td>3</td> <td>4</td> </tr> </tbody> </table> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.4.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None <p dir="auto">pandas: 0.23.1<br> pytest: 3.6.1<br> pip: 10.0.1<br> setuptools: 28.8.0<br> Cython: None<br> numpy: 1.14.2<br> scipy: None<br> pyarrow: None<br> xarray: None<br> IPython: 6.3.1<br> sphinx: None<br> patsy: None<br> dateutil: 2.7.2<br> pytz: 2018.4<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.6.0<br> html5lib: 1.0.1<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">Current conversion of R objects into Python usng <code class="notranslate">pandas2ri.ri2py</code> does not work for the <code class="notranslate">&lt;class 'rpy2.robjects.vectors.ListVector'&gt;</code> object. As noted <a href="http://pandas.pydata.org/pandas-docs/stable/r_interface.html" rel="nofollow">here</a>, <code class="notranslate">pandas2ri.py2ri()</code> and <code class="notranslate">pandas2ri.ri2py()</code> are current methods to handle conversion. However, previous deprecated <code class="notranslate">com.convert_robj()</code> correctly converts the R object to Python dictionary:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import rpy2 from rpy2.robjects.numpy2ri import numpy2ri from rpy2.robjects.packages import importr import numpy as np # FISHER EXACT TEST EXAMPLE cont = np.reshape(np.arange(0,4), (2,2)) statspackage = importr('stats', robject_translations={'format_perc': '_format_perc'}) result = statspackage.fisher_test(numpy2ri(cont), simulate_p_value = True, B = 100) # DEPRECATED CONVERSION import pandas.rpy.common as com pyresultdict = com.convert_robj(result) print(type(pyresultdict)) # PYTHON DICTIONARY TYPE # CURRENT CONVERSION from rpy2.robjects import pandas2ri pandas2ri.activate() pyresultdict = pandas2ri.ri2py(result) print(type(pyresultdict)) # REMAINS R LISTVECTOR TYPE"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">rpy2</span> <span class="pl-k">from</span> <span class="pl-s1">rpy2</span>.<span class="pl-s1">robjects</span>.<span class="pl-s1">numpy2ri</span> <span class="pl-k">import</span> <span class="pl-s1">numpy2ri</span> <span class="pl-k">from</span> <span class="pl-s1">rpy2</span>.<span class="pl-s1">robjects</span>.<span class="pl-s1">packages</span> <span class="pl-k">import</span> <span class="pl-s1">importr</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-c"># FISHER EXACT TEST EXAMPLE</span> <span class="pl-s1">cont</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">reshape</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">4</span>), (<span class="pl-c1">2</span>,<span class="pl-c1">2</span>)) <span class="pl-s1">statspackage</span> <span class="pl-c1">=</span> <span class="pl-en">importr</span>(<span class="pl-s">'stats'</span>, <span class="pl-s1">robject_translations</span><span class="pl-c1">=</span>{<span class="pl-s">'format_perc'</span>: <span class="pl-s">'_format_perc'</span>}) <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">statspackage</span>.<span class="pl-en">fisher_test</span>(<span class="pl-en">numpy2ri</span>(<span class="pl-s1">cont</span>), <span class="pl-s1">simulate_p_value</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>, <span class="pl-v">B</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span>) <span class="pl-c"># DEPRECATED CONVERSION</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">rpy</span>.<span class="pl-s1">common</span> <span class="pl-k">as</span> <span class="pl-s1">com</span> <span class="pl-s1">pyresultdict</span> <span class="pl-c1">=</span> <span class="pl-s1">com</span>.<span class="pl-en">convert_robj</span>(<span class="pl-s1">result</span>) <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">pyresultdict</span>)) <span class="pl-c"># PYTHON DICTIONARY TYPE</span> <span class="pl-c"># CURRENT CONVERSION</span> <span class="pl-k">from</span> <span class="pl-s1">rpy2</span>.<span class="pl-s1">robjects</span> <span class="pl-k">import</span> <span class="pl-s1">pandas2ri</span> <span class="pl-s1">pandas2ri</span>.<span class="pl-en">activate</span>() <span class="pl-s1">pyresultdict</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas2ri</span>.<span class="pl-en">ri2py</span>(<span class="pl-s1">result</span>) <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">pyresultdict</span>)) <span class="pl-c"># REMAINS R LISTVECTOR TYPE</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Expected Output &lt;class 'dict'&gt; &lt;class 'dict'&gt;"><pre class="notranslate"><span class="pl-c"># Expected Output</span> <span class="pl-c1">&lt;</span><span class="pl-k">class</span> <span class="pl-s">'dict'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-k">class</span> <span class="pl-s">'dict'</span><span class="pl-c1">&gt;</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# output of rpy2.__version__ 2.5.4 # output of pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 8 machine: AMD64 processor: Intel64 Family 6 Model 37 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.0 nose: None pip: 8.1.0 setuptools: 2.1 Cython: None numpy: 1.10.4 scipy: 0.17.0 ... "><pre class="notranslate"><code class="notranslate"># output of rpy2.__version__ 2.5.4 # output of pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 8 machine: AMD64 processor: Intel64 Family 6 Model 37 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.0 nose: None pip: 8.1.0 setuptools: 2.1 Cython: None numpy: 1.10.4 scipy: 0.17.0 ... </code></pre></div>
0
<p dir="auto">There is a problem when i use validation_groups when i render the form, lets say:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Profile { /** * @var string $phone * * @ORM\Column(name=&quot;phone&quot;, type=&quot;string&quot;, length=255, nullable=true) * @Assert\NotBlank(groups={&quot;signup&quot;}) */ private $phone; /** * @var string $phone_mobile * * @ORM\Column(name=&quot;phone_mobile&quot;, type=&quot;string&quot;, length=255, nullable=true) * @Assert\NotBlank(groups={&quot;admin&quot;}) */ private $phone_mobile; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Profile</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @var string $phone</span> <span class="pl-c"> *</span> <span class="pl-c"> * @ORM\Column(name="phone", type="string", length=255, nullable=true)</span> <span class="pl-c"> * @Assert\NotBlank(groups={"signup"})</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>phone</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @var string $phone_mobile</span> <span class="pl-c"> *</span> <span class="pl-c"> * @ORM\Column(name="phone_mobile", type="string", length=255, nullable=true)</span> <span class="pl-c"> * @Assert\NotBlank(groups={"admin"})</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>phone_mobile</span>; }</pre></div> <p dir="auto">when i will build the form with the admin validation group, then form still render:</p> <p dir="auto">required="required" for the phone field, which is only a part of signup validation group.</p>
<p dir="auto">The <code class="notranslate">ValidatorTypeGuesser</code> does not consider the current form's <code class="notranslate">validation_groups</code> option when guessing type. This could be fixed by passing the options array to the guesser methods. The signature of the <code class="notranslate">FormTypeGuesserInterface</code> methods would look like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function guessType($class, $property, array $options = array());"><pre class="notranslate"><code class="notranslate">function guessType($class, $property, array $options = array()); </code></pre></div> <p dir="auto">The default argument is provided for BC.</p>
1
<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.18912.1001] Windows Terminal version (if applicable): commit 2da5b0b"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18912.1001] Windows Terminal version (if applicable): commit 2da5b0b </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Build a terminal, open WSL profile.</p> <ol dir="auto"> <li> <p dir="auto">If setting(profiles.json) has startingDirectory, erase it.<br> <strong>At commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/terminal/commit/2da5b0b14682f5522b84116b3e6a6688de3c7423/hovercard" href="https://github.com/microsoft/terminal/commit/2da5b0b14682f5522b84116b3e6a6688de3c7423"><tt>2da5b0b</tt></a>, there is no startingDirectory for WSL</strong></p> </li> <li> <p dir="auto">Set "startingDirectory" : "%USERPROFILE%"</p> </li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Both WSL starts at home directory as user. (/home/username/)</p> <h1 dir="auto">Actual behavior</h1> <ol dir="auto"> <li>if there is no startingDirectory, WSL starts at <strong>/mnt/c/WINDOWS/System32</strong></li> <li>if startingDirectory is %USERPROFILE%, WSL starts at <strong>/mnt/c/Users/Windows-Username</strong></li> </ol>
<ul dir="auto"> <li> <p dir="auto">Your Windows build number: <code class="notranslate">Microsoft Windows [Version 10.0.18362.86]</code></p> </li> <li> <p dir="auto">What you're doing and what's happening:<br> Setting the starting directory for wsl in <code class="notranslate">profiles.json</code> doesn't make it point to the right directory.</p> </li> </ul> <ol dir="auto"> <li>Take the config below :-</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;startingDirectory&quot;: &quot;C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn&quot;, &quot;guid&quot;: &quot;{a2785f8e-72c9-4550-b406-697388644902}&quot;, &quot;name&quot;: &quot;Ubuntu&quot;, &quot;colorscheme&quot;: &quot;MonokaiVivid&quot;, &quot;historySize&quot;: 9001, &quot;snapOnInput&quot;: true, &quot;cursorColor&quot;: &quot;#FFFFFF&quot;, &quot;cursorHeight&quot;: 25, &quot;cursorShape&quot;: &quot;vintage&quot;, &quot;commandline&quot;: &quot;wsl.exe&quot;, &quot;fontFace&quot;: &quot;Inconsolata for Powerline&quot;, &quot;fontSize&quot;: 10, &quot;acrylicOpacity&quot;: 1, &quot;useAcrylic&quot;: true, &quot;closeOnExit&quot;: true, &quot;padding&quot;: &quot;10, 10, 10, 10&quot;, &quot;icon&quot;: &quot;ms-appdata:///roaming/ubuntu.png&quot; }"><pre class="notranslate">{ <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:/Users/joshj/AppData/Local/Packages/CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc/LocalState/rootfs/home/tackyunicorn<span class="pl-pds">"</span></span>, <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{a2785f8e-72c9-4550-b406-697388644902}<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Ubuntu<span class="pl-pds">"</span></span>, <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>MonokaiVivid<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">"cursorHeight"</span>: <span class="pl-c1">25</span>, <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>vintage<span class="pl-pds">"</span></span>, <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>wsl.exe<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Inconsolata for Powerline<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">10</span>, <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">1</span>, <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>10, 10, 10, 10<span class="pl-pds">"</span></span>, <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/ubuntu.png<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">This results in wsl starting up in the root folder<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26558907/57397677-d9179c80-71ea-11e9-9f35-a1176a5368d8.png"><img src="https://user-images.githubusercontent.com/26558907/57397677-d9179c80-71ea-11e9-9f35-a1176a5368d8.png" alt="issue1" style="max-width: 100%;"></a></p> <ol start="2" dir="auto"> <li>In this config :-</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;startingDirectory&quot;: &quot;/home/tackyunicorn&quot;, &quot;guid&quot;: &quot;{a2785f8e-72c9-4550-b406-697388644902}&quot;, &quot;name&quot;: &quot;Ubuntu&quot;, &quot;colorscheme&quot;: &quot;MonokaiVivid&quot;, &quot;historySize&quot;: 9001, &quot;snapOnInput&quot;: true, &quot;cursorColor&quot;: &quot;#FFFFFF&quot;, &quot;cursorHeight&quot;: 25, &quot;cursorShape&quot;: &quot;vintage&quot;, &quot;commandline&quot;: &quot;wsl.exe&quot;, &quot;fontFace&quot;: &quot;Inconsolata for Powerline&quot;, &quot;fontSize&quot;: 10, &quot;acrylicOpacity&quot;: 1, &quot;useAcrylic&quot;: true, &quot;closeOnExit&quot;: true, &quot;padding&quot;: &quot;10, 10, 10, 10&quot;, &quot;icon&quot;: &quot;ms-appdata:///roaming/ubuntu.png&quot; }"><pre class="notranslate">{ <span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>/home/tackyunicorn<span class="pl-pds">"</span></span>, <span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{a2785f8e-72c9-4550-b406-697388644902}<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Ubuntu<span class="pl-pds">"</span></span>, <span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>MonokaiVivid<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">"cursorHeight"</span>: <span class="pl-c1">25</span>, <span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>vintage<span class="pl-pds">"</span></span>, <span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span>wsl.exe<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Inconsolata for Powerline<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">10</span>, <span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">1</span>, <span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>10, 10, 10, 10<span class="pl-pds">"</span></span>, <span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/ubuntu.png<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">This results in wsl starting up in the Windows user folder<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26558907/57398045-ba65d580-71eb-11e9-9109-79a9ad601e12.png"><img src="https://user-images.githubusercontent.com/26558907/57398045-ba65d580-71eb-11e9-9109-79a9ad601e12.png" alt="issue2" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>What's wrong / what should be happening instead:<br> The <code class="notranslate">startingDirectory</code> profile setting is not being applied correctly on a wsl profile</li> </ul>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Duplicate request handling in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="266674390" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/12434" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/12434/hovercard" href="https://github.com/mrdoob/three.js/pull/12434">#12434</a></p> <p dir="auto">In case of an error on the request, we should notify the rest of the duplicate <code class="notranslate">.load()</code> callbacks (<code class="notranslate">onError</code>). Similarly, we can call <code class="notranslate">onProgress</code> to every duplicate <code class="notranslate">.load()</code> call callback.</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"> r87</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"> 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"><strong>Describe the bug</strong></p> <p dir="auto">This glb file <a href="https://github.com/mrdoob/three.js/files/6301192/sofa.zip">sofa.zip</a> which made and exported from Blender, has diffuseMap and aoMap.</p> <p dir="auto">When loaded to threejs scene using GLTFLoader, the aoMap display incorret.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496195-ffa1a600-9c51-11eb-91fc-e6340ecfcc63.png"><img src="https://user-images.githubusercontent.com/10785634/114496195-ffa1a600-9c51-11eb-91fc-e6340ecfcc63.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I guess they has different uvs and tried to add this line <code class="notranslate">sofa.geometry.attributes.uv2.copy(sofa.geometry.attributes.uv)</code> then display correct.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496293-37a8e900-9c52-11eb-92b1-4b3490088877.png"><img src="https://user-images.githubusercontent.com/10785634/114496293-37a8e900-9c52-11eb-92b1-4b3490088877.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I also tried <a href="https://threejs.org/editor/" rel="nofollow">https://threejs.org/editor/</a> and <a href="https://modelviewer.dev/editor/" rel="nofollow">https://modelviewer.dev/editor/</a> ( which I heard also based on threejs ), all has the same problem.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496645-febd4400-9c52-11eb-8109-f771fb6f410c.png"><img src="https://user-images.githubusercontent.com/10785634/114496645-febd4400-9c52-11eb-8109-f771fb6f410c.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496653-05e45200-9c53-11eb-9075-c6b8eef8a3aa.png"><img src="https://user-images.githubusercontent.com/10785634/114496653-05e45200-9c53-11eb-9075-c6b8eef8a3aa.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">But with <a href="https://sandbox.babylonjs.com/" rel="nofollow">https://sandbox.babylonjs.com/</a> , <a href="https://playcanvas.com/viewer" rel="nofollow">https://playcanvas.com/viewer</a> and Win10 3D Viewer, display all ok.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496775-40e68580-9c53-11eb-9411-8d081b3e655a.png"><img src="https://user-images.githubusercontent.com/10785634/114496775-40e68580-9c53-11eb-9411-8d081b3e655a.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496785-45ab3980-9c53-11eb-936b-1853bdd8f1eb.png"><img src="https://user-images.githubusercontent.com/10785634/114496785-45ab3980-9c53-11eb-936b-1853bdd8f1eb.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10785634/114496795-4ba11a80-9c53-11eb-9674-843ec1605fe9.png"><img src="https://user-images.githubusercontent.com/10785634/114496795-4ba11a80-9c53-11eb-9674-843ec1605fe9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Is the problem of threejs's GLTFLoader?</p> <p dir="auto"><strong>To Reproduce</strong></p> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Go to <a href="https://threejs.org/editor/" rel="nofollow">https://threejs.org/editor/</a></li> <li>Click on File -&gt; Import, chose the glb file, and add a AmbientLight</li> <li>See error</li> </ol> <p dir="auto"><em><strong>Code</strong></em></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let loader=new GLTFLoader() loader.load('./sofa.glb',gltf=&gt;{ scene.add(gltf.scene) let sofa=gltf.scene.children[0] // sofa.geometry.attributes.uv2.copy(sofa.geometry.attributes.uv) })"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">loader</span><span class="pl-c1">=</span><span class="pl-k">new</span> <span class="pl-v">GLTFLoader</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">loader</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span><span class="pl-s">'./sofa.glb'</span><span class="pl-kos">,</span><span class="pl-s1">gltf</span><span class="pl-c1">=&gt;</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">gltf</span><span class="pl-kos">.</span><span class="pl-c1">scene</span><span class="pl-kos">)</span> <span class="pl-k">let</span> <span class="pl-s1">sofa</span><span class="pl-c1">=</span><span class="pl-s1">gltf</span><span class="pl-kos">.</span><span class="pl-c1">scene</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c">// sofa.geometry.attributes.uv2.copy(sofa.geometry.attributes.uv)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><em><strong>Live example</strong></em></p> <p dir="auto">See above metioned gltf viewer and load the glb model.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Display correct aoMap with this glb model like in <a href="https://sandbox.babylonjs.com/" rel="nofollow">https://sandbox.babylonjs.com/</a> , <a href="https://playcanvas.com/viewer" rel="nofollow">https://playcanvas.com/viewer</a> and Win10 3D Viewer.</p> <p dir="auto"><strong>Screenshots</strong></p> <p dir="auto">See above.</p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: [Desktop]</li> <li>OS: [Windows]</li> <li>Browser: [Chrome]</li> <li>Three.js version: [r127]</li> </ul>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> When trying to run production build of app errors out on</p> <p dir="auto"><code class="notranslate">node dist/main.js</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError [ERR_INVALID_ARG_TYPE]: The &quot;path&quot; argument must be of type string. Received type number (3320)"><pre class="notranslate"><code class="notranslate">TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type number (3320) </code></pre></div> <p dir="auto"><code class="notranslate">main.js</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const uiBasePath = path_1.default.dirname(/*require.resolve*/(3320));"><pre class="notranslate"><code class="notranslate">const uiBasePath = path_1.default.dirname(/*require.resolve*/(3320)); </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> Use <a href="https://github.com/lukepolo/webpack-resolve-bug/tree/main/dist">https://github.com/lukepolo/webpack-resolve-bug/tree/main/dist</a>, run <code class="notranslate">node dist/main.js</code> , and you should see the error.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> To properly resolve the path as a string</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.48.0<br> Node.js version: v12.16.3<br> Operating System: osx<br> Additional tools:</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> Page no rendering<br> <code class="notranslate">main.js</code> return error : <code class="notranslate">Uncaught SyntaxError: Unexpected token '!=='</code></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> I have 2 apps :</p> <ul dir="auto"> <li>shell : manager, head of app</li> <li>fragment: one of the multiple apps. Will be duplicated to have n apps in MFE.</li> </ul> <p dir="auto"><strong>SHELL</strong><br> index.html</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;script src=&quot;http://localhost:3001/remoteEntry.js&quot;&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&quot;app&quot;&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;script src="http://localhost:3001/remoteEntry.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="app"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div> <p dir="auto">App.vue</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;div id=&quot;app&quot;&gt; SHELL &lt;compo&gt;COME FROM FRAGMENT&lt;/compo&gt; &lt;/div&gt; &lt;/template&gt; &lt;script&gt; export default { name: &quot;ShellApp&quot;, components: { Compo: () =&gt; import('fragment1/Compo').catch((err) =&gt; ({ render: h =&gt; h('div', [ h('pre', err.name), h('pre', err.stack) ]) })) }, } &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;template&gt; &lt;div id="app"&gt; SHELL &lt;compo&gt;COME FROM FRAGMENT&lt;/compo&gt; &lt;/div&gt; &lt;/template&gt; &lt;script&gt; export default { name: "ShellApp", components: { Compo: () =&gt; import('fragment1/Compo').catch((err) =&gt; ({ render: h =&gt; h('div', [ h('pre', err.name), h('pre', err.stack) ]) })) }, } &lt;/script&gt; </code></pre></div> <p dir="auto">webpack.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const paths = require('./paths') const HtmlWebpackPlugin = require('html-webpack-plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin') const { ModuleFederationPlugin } = require(&quot;webpack&quot;).container module.exports = { entry: [paths.src + '/main.js'], plugins: [ new HtmlWebpackPlugin({ title: 'Constellation', favicon: paths.public + '/favicon.png', template: paths.public + '/index.html', filename: 'index.html', }), new VueLoaderPlugin(), new ModuleFederationPlugin({ name: &quot;shell&quot;, filename: &quot;remoteEntry.js&quot;, remotes: { // fragment1: &quot;fragment1@http://localhost:3001/remoteEntry.js&quot;, // WORK fragment1: &quot;fragment1&quot;, // DOESN'T WORK }, }), ] }"><pre class="notranslate"><code class="notranslate">const paths = require('./paths') const HtmlWebpackPlugin = require('html-webpack-plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin') const { ModuleFederationPlugin } = require("webpack").container module.exports = { entry: [paths.src + '/main.js'], plugins: [ new HtmlWebpackPlugin({ title: 'Constellation', favicon: paths.public + '/favicon.png', template: paths.public + '/index.html', filename: 'index.html', }), new VueLoaderPlugin(), new ModuleFederationPlugin({ name: "shell", filename: "remoteEntry.js", remotes: { // fragment1: "fragment1@http://localhost:3001/remoteEntry.js", // WORK fragment1: "fragment1", // DOESN'T WORK }, }), ] } </code></pre></div> <p dir="auto"><strong>FRAGMENT</strong></p> <p dir="auto">webpack.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const paths = require('./paths') const HtmlWebpackPlugin = require('html-webpack-plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin') const { ModuleFederationPlugin } = require(&quot;webpack&quot;).container; module.exports = { entry: [paths.src + '/main.js'], plugins: [ new HtmlWebpackPlugin({ title: 'Constellation-Fragment', favicon: paths.public + '/favicon.png', template: paths.public + '/index.html', filename: 'index.html', }), new VueLoaderPlugin(), new ModuleFederationPlugin({ name: &quot;fragment1&quot;, filename: &quot;remoteEntry.js&quot;, remotes: {}, exposes: { &quot;./Compo&quot;: &quot;@c/Compo&quot; }, }) ] }"><pre class="notranslate"><code class="notranslate">const paths = require('./paths') const HtmlWebpackPlugin = require('html-webpack-plugin') const VueLoaderPlugin = require('vue-loader/lib/plugin') const { ModuleFederationPlugin } = require("webpack").container; module.exports = { entry: [paths.src + '/main.js'], plugins: [ new HtmlWebpackPlugin({ title: 'Constellation-Fragment', favicon: paths.public + '/favicon.png', template: paths.public + '/index.html', filename: 'index.html', }), new VueLoaderPlugin(), new ModuleFederationPlugin({ name: "fragment1", filename: "remoteEntry.js", remotes: {}, exposes: { "./Compo": "@c/Compo" }, }) ] } </code></pre></div> <p dir="auto">Compo.vue</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;div class=&quot;compo&quot;&gt;&lt;slot&gt;&lt;/slot&gt;&lt;/div&gt; &lt;/template&gt; &lt;script&gt; export default { name:&quot;Content&quot; } &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;template&gt; &lt;div class="compo"&gt;&lt;slot&gt;&lt;/slot&gt;&lt;/div&gt; &lt;/template&gt; &lt;script&gt; export default { name:"Content" } &lt;/script&gt; </code></pre></div> <p dir="auto"><strong>Explanation</strong><br> When i use this line in <code class="notranslate">shell</code> (webpack config) and nothing import in index.html, all work fine :<br> <code class="notranslate">fragment1: "fragment1@http://localhost:3001/remoteEntry.js"</code></p> <p dir="auto">I do not know in advance the url of the fragments / apps. I need to make a configuration file or write the urls directly in the <code class="notranslate">index.html</code>. So I change shell with</p> <ul dir="auto"> <li>add script in <code class="notranslate">index.html</code> : <code class="notranslate">&lt;script src="http://localhost:3001/remoteEntry.js"&gt;&lt;/script&gt;</code></li> <li>change <code class="notranslate">webpack </code> config remote : <code class="notranslate">fragment1: "fragment1"</code></li> </ul> <p dir="auto">When I run everything I get the following error in the browser (<code class="notranslate">main.js</code>) : <code class="notranslate">Uncaught SyntaxError: Unexpected token '!=='</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/*!****************************!*\ !*** external &quot;fragment1&quot; ***! \****************************/ /*! dynamic exports */ /*! exports [maybe provided (runtime-defined)] [no usage info] */ /*! runtime requirements: module, __webpack_require__.l, __webpack_require__.* */ /***/ ((module, __unused_webpack_exports, __webpack_require__) =&gt; { &quot;use strict&quot;; var error = new Error(); module.exports = new Promise((resolve, reject) =&gt; { if(typeof !== &quot;undefined&quot;) return resolve(); // THIS LINE __webpack_require__.l(&quot;fragment1&quot;, (event) =&gt; { if(typeof !== &quot;undefined&quot;) return resolve(); var errorType = event &amp;&amp; (event.type === 'load' ? 'missing' : event.type); var realSrc = event &amp;&amp; event.target &amp;&amp; event.target.src; error.message = 'Loading script failed.\n(' + errorType + ': ' + realSrc + ')'; error.name = 'ScriptExternalLoadError'; error.type = errorType; error.request = realSrc; reject(error); }, &quot;&quot;); }).then(() =&gt; );"><pre class="notranslate"><code class="notranslate">/*!****************************!*\ !*** external "fragment1" ***! \****************************/ /*! dynamic exports */ /*! exports [maybe provided (runtime-defined)] [no usage info] */ /*! runtime requirements: module, __webpack_require__.l, __webpack_require__.* */ /***/ ((module, __unused_webpack_exports, __webpack_require__) =&gt; { "use strict"; var error = new Error(); module.exports = new Promise((resolve, reject) =&gt; { if(typeof !== "undefined") return resolve(); // THIS LINE __webpack_require__.l("fragment1", (event) =&gt; { if(typeof !== "undefined") return resolve(); var errorType = event &amp;&amp; (event.type === 'load' ? 'missing' : event.type); var realSrc = event &amp;&amp; event.target &amp;&amp; event.target.src; error.message = 'Loading script failed.\n(' + errorType + ': ' + realSrc + ')'; error.name = 'ScriptExternalLoadError'; error.type = errorType; error.request = realSrc; reject(error); }, ""); }).then(() =&gt; ); </code></pre></div> <p dir="auto">I looked in all the examples and found nothing. Even when adapting to Vue.<br> <a href="https://github.com/module-federation/module-federation-examples">https://github.com/module-federation/module-federation-examples</a><br> <a href="https://github.com/module-federation/module-federation-examples/tree/master/dynamic-system-host">https://github.com/module-federation/module-federation-examples/tree/master/dynamic-system-host</a><br> <a href="https://indepth.dev/webpack-5-module-federation-a-game-changer-in-javascript-architecture/" rel="nofollow">https://indepth.dev/webpack-5-module-federation-a-game-changer-in-javascript-architecture/</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> No error and page rendering</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.1.3<br> Node.js version: 12.19.0<br> Operating System: Windows<br> Additional tools: Vue.js 2.6.12</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ludovic.praud" rel="nofollow">Ludovic Praud</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8375?redirect=false" rel="nofollow">SPR-8375</a></strong> and commented</p> <p dir="auto"><strong>How to reproduce the problem</strong></p> <p dir="auto">With a ModelAttribute such as :</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Model { List&lt;String&gt; getItems(); }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Model</span> { <span class="pl-smi">List</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-en">getItems</span>(); }</pre></div> <p dir="auto">With a JSP such as :</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form:input path=&quot;items[0]&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">form</span><span class="pl-ent">:</span><span class="pl-ent">input</span> <span class="pl-e">path</span>=<span class="pl-s"><span class="pl-pds">"</span>items[0]<span class="pl-pds">"</span></span> /&gt;</pre></div> <p dir="auto">within an HTML form.</p> <p dir="auto">POST the form with modified items attribute :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="items[100000000]=foo"><pre class="notranslate"><code class="notranslate">items[100000000]=foo </code></pre></div> <p dir="auto">and wait, wait, wait until the OutOfMemoryException.</p> <p dir="auto"><strong>Incriminated code</strong></p> <p dir="auto"><code class="notranslate">org.springframework.validation.DataBinder.autoGrowNestedPaths</code> is default true, it should be false instead.</p> <p dir="auto"><strong>Workarounds</strong></p> <p dir="auto">In a controller :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@InitBinder public void initBinder(WebDataBinder binder) { binder.setAutoGrowNestedPaths(false); }"><pre class="notranslate"><code class="notranslate">@InitBinder public void initBinder(WebDataBinder binder) { binder.setAutoGrowNestedPaths(false); } </code></pre></div> <p dir="auto">or using an implementation of WebBindingInitializer :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public void initBinder(WebDataBinder binder, WebRequest request) { binder.setAutoGrowNestedPaths(false); }"><pre class="notranslate"><code class="notranslate">public void initBinder(WebDataBinder binder, WebRequest request) { binder.setAutoGrowNestedPaths(false); } </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109365" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12498" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12498/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12498">#12498</a> DataBinder should be able to define a different strategy for BeanWrapperImpl how autogrowing should handle gaps in collection properties (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dmills" rel="nofollow">Darren Mills</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8282?redirect=false" rel="nofollow">SPR-8282</a></strong> and commented</p> <p dir="auto">We have a WebSphere cluster configured with session replication between each node. In order to accomplish this, all objects that end up in the session must be Serializable. We are using the Joda Date/Time Converters in our domain objects which could be contained within a Web Form. Although all of OUR objects are Serializable, our production logs are complaining about the FormattingConversionService not being Serializable. Another poster confirmed they are seeing the same exception and provided screenshots of their session attributes which included the FormattingConversionService.</p> <p dir="auto">Possible solutions may be either making all ConversionService implementations serializable, or changing the Spring behavior of storing the service bean in session, for example, in ServletContext.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?p=359434" rel="nofollow">http://forum.springsource.org/showthread.php?p=359434</a></p> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/74b6a5b6d7892200b2d4ab8418421507ff4f0ba0/hovercard" href="https://github.com/spring-projects/spring-framework/commit/74b6a5b6d7892200b2d4ab8418421507ff4f0ba0"><tt>74b6a5b</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9472025da708c78e22e00c246d893d90897f240e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9472025da708c78e22e00c246d893d90897f240e"><tt>9472025</tt></a></p> <p dir="auto">7 votes, 14 watchers</p>
0
<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"> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+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"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+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"> 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"> I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <h1 dir="auto">Suggestions</h1>
<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" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</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> <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" 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"> 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" checked=""> 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" checked=""> 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 &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.4.6 (cliffs) kombu:4.6.11 py:3.8.2 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.4.0-18362-Microsoft imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost:6379/0 BROKER_URL: 'redis://localhost:6379/0' CELERY_RESULT_BACKEND: 'redis://localhost:6379/0' CELERY_RESULT_EXPIRES: 15 BROKER_POOL_LIMIT: 0"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.4.6 (cliffs) kombu:4.6.11 py:3.8.2 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.4.0-18362-Microsoft imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost:6379/0 BROKER_URL: 'redis://localhost:6379/0' CELERY_RESULT_BACKEND: 'redis://localhost:6379/0' CELERY_RESULT_EXPIRES: 15 BROKER_POOL_LIMIT: 0 </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.8.2</li> <li><strong>Minimal Celery Version</strong>: 4.4.6 (cliffs)</li> <li><strong>Minimal Kombu Version</strong>: 4.6.11</li> <li><strong>Minimal Broker Version</strong>: Redis server v=5.0.7</li> <li><strong>Minimal Result Backend Version</strong>: Redis server v=5.0.7</li> <li><strong>Minimal OS and/or Kernel Version</strong>: WSL on Windows 10</li> <li><strong>Minimal Broker Client Version</strong>: redis:3.5.3</li> <li><strong>Minimal Result Backend Client Version</strong>: redis:3.5.3</li> </ul> <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"> </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery CONFIG = { 'BROKER_URL': 'redis://localhost:6379/0', 'CELERY_RESULT_BACKEND': 'redis://localhost:6379/0', 'CELERY_RESULT_EXPIRES': 15, # 15 secs 'BROKER_POOL_LIMIT': 0, # redis connection get closed once task is done.. } celery = Celery('tasks', config_source=CONFIG) @celery.task(name='tasks.say_hello') def say_hello(): return &quot;Helloooooo i just came out from the background!&quot; if __name__ == '__main__': say_hello.delay().get()"><pre class="notranslate"><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-v">CONFIG</span> <span class="pl-c1">=</span> { <span class="pl-s">'BROKER_URL'</span>: <span class="pl-s">'redis://localhost:6379/0'</span>, <span class="pl-s">'CELERY_RESULT_BACKEND'</span>: <span class="pl-s">'redis://localhost:6379/0'</span>, <span class="pl-s">'CELERY_RESULT_EXPIRES'</span>: <span class="pl-c1">15</span>, <span class="pl-c"># 15 secs</span> <span class="pl-s">'BROKER_POOL_LIMIT'</span>: <span class="pl-c1">0</span>, <span class="pl-c"># redis connection get closed once task is done..</span> } <span class="pl-s1">celery</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">config_source</span><span class="pl-c1">=</span><span class="pl-v">CONFIG</span>) <span class="pl-en">@<span class="pl-s1">celery</span>.<span class="pl-en">task</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'tasks.say_hello'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">say_hello</span>(): <span class="pl-k">return</span> <span class="pl-s">"Helloooooo i just came out from the background!"</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-s1">say_hello</span>.<span class="pl-en">delay</span>().<span class="pl-en">get</span>()</pre></div> <p dir="auto"></p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Should remove the completed tasks, incase of that. in Redis I would have this output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1:6379&gt; KEYS * 1) &quot;_kombu.binding.celery&quot; 2) &quot;_kombu.binding.celery.pidbox&quot; 3) &quot;_kombu.binding.celeryev&quot;"><pre class="notranslate"><code class="notranslate">127.0.0.1:6379&gt; KEYS * 1) "_kombu.binding.celery" 2) "_kombu.binding.celery.pidbox" 3) "_kombu.binding.celeryev" </code></pre></div> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">When connecting to redis-cli after 10 minutes when tasks completed and do:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1:6379&gt; KEYS * 1) &quot;_kombu.binding.celery&quot; 2) &quot;_kombu.binding.celery.pidbox&quot; 3) &quot;_kombu.binding.celeryev&quot; 4) &quot;celery-task-meta-854543d8-14ad-4bf8-9725-edcf64131bb2&quot; 5) &quot;celery-task-meta-fa3e267e-46d0-4488-a766-d3276b6abdeb&quot; 6) &quot;celery-task-meta-86c2d83c-cadd-41b9-b4ff-426607786299&quot;"><pre class="notranslate"><code class="notranslate">127.0.0.1:6379&gt; KEYS * 1) "_kombu.binding.celery" 2) "_kombu.binding.celery.pidbox" 3) "_kombu.binding.celeryev" 4) "celery-task-meta-854543d8-14ad-4bf8-9725-edcf64131bb2" 5) "celery-task-meta-fa3e267e-46d0-4488-a766-d3276b6abdeb" 6) "celery-task-meta-86c2d83c-cadd-41b9-b4ff-426607786299" </code></pre></div> <p dir="auto">As you can see, tasks numbered from 4 to 6 which was completed are still there.</p> <h3 dir="auto">Celery was run as following:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery worker -A tasks-l info celery beat -A tasks -l info"><pre class="notranslate"><code class="notranslate">celery worker -A tasks-l info celery beat -A tasks -l info </code></pre></div>
0
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Example name</h2> <p dir="auto">with-ant-design</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Antd v4 (alpha) builds should include only actually used icons. But in <code class="notranslate">with-ant-design</code> example all 1Mb of icons are bundled.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Download and unpack two attached archives. Both contain same example but one with nextjs and one with create-react-app</li> <li>Run <code class="notranslate">npm i</code> in both examples</li> <li>Run <code class="notranslate">npm run stats</code> in both examples</li> <li>See at <code class="notranslate">icons-svg</code> size inside <code class="notranslate">@and-design</code>. With <code class="notranslate">create react app</code> it will be about 9Kb. With nextjs it will be about 800Kb.</li> </ol> <p dir="auto"><a href="https://github.com/zeit/next.js/files/3747031/cra-antico4.zip">cra-antico4.zip</a><br> <a href="https://github.com/zeit/next.js/files/3747032/next-antico4.zip">next-antico4.zip</a></p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Same <code class="notranslate">antd</code> snippets should have approximately same budle size with nextjs and create-react-app</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">With next<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1289725/67149460-80315180-f2bc-11e9-9929-50c0bda9b319.png"><img src="https://user-images.githubusercontent.com/1289725/67149460-80315180-f2bc-11e9-9929-50c0bda9b319.png" alt="next" style="max-width: 100%;"></a></p> <p dir="auto">With cra<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1289725/67149468-8cb5aa00-f2bc-11e9-8793-c8740ef81edc.png"><img src="https://user-images.githubusercontent.com/1289725/67149468-8cb5aa00-f2bc-11e9-8793-c8740ef81edc.png" alt="cra" style="max-width: 100%;"></a></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: MacOS</li> <li>Version of Next.js: 9.1.1</li> </ul> <h2 dir="auto">Code to reproduce</h2>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Importing react-dom in a page or in one of its dependent component will cause react-dom.production.min.js to be included in the page bundle, adding about 32K gzipped size to a page.</p> <p dir="auto">This is pretty common, examples:</p> <ul dir="auto"> <li>ReactDOM.createPortal</li> <li><code class="notranslate">react-transition-group</code> also imports <code class="notranslate">react-dom</code></li> </ul> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Go to 'pages/any-page.js'</li> <li>Add <code class="notranslate">import ReactDOM from 'react-dom';</code></li> <li>In the render function, do <code class="notranslate">console.log(ReactDOM)</code>. Just to use that dependency.</li> <li>Production build the project and inspect the bundle size</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">react-dom should just be in the common bundle, not included again here.<br> This does not happen with Next 8.</p> <h2 dir="auto">Screenshots</h2> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Version of Next.js: 9.0.1</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Add any other context about the problem here.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18363.836] PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18363.836] PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Start PowerToys run with Austrian/German localization and try to use <code class="notranslate">,</code> as dot for calculation.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Excepted that PowerToys Run gets the delimiter from the OS settings and allows to use <code class="notranslate">,</code> for austrian or german Windows and <code class="notranslate">.</code> (dot) for US.<br> I'm using Windows in English but have set my Regional Format to <code class="notranslate">German (Austria)</code>.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Nothing.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1399474/83160561-a6975500-a107-11ea-95a4-8d8958e3662e.png"><img src="https://user-images.githubusercontent.com/1399474/83160561-a6975500-a107-11ea-95a4-8d8958e3662e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When you use dot, then everything works as expected:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1399474/83160770-e65e3c80-a107-11ea-866f-dc61368ef5d2.png"><img src="https://user-images.githubusercontent.com/1399474/83160770-e65e3c80-a107-11ea-866f-dc61368ef5d2.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I'm using version 0.18 of PowerToys and I'm talking about the integrated calculator in PowerToys Run here:</p> <p dir="auto">In the german area, we use the comma and not the period as a decimal-delimiter. The current version of the calculator in PowerToys Run only accepts periods as decimal-delimiter. Please add support for the comma and auto-detect Windows settings for regional format, as the Windows regional format has a setting for this.</p> <p dir="auto">Thank you!</p>
1
<p dir="auto">Today I discovered a strange behavior: When I am writing a DataFrame with <code class="notranslate">.to_excel()</code>, it cuts columns. Compared with the same DataFrame with <code class="notranslate">.to_csv()</code> or <code class="notranslate">.head()</code>, you can see the difference, that the last 8 columns are missing.</p> <p dir="auto">You can reproduce this by downloading <code class="notranslate">Features.pkl</code> from <a href="https://dl.dropboxusercontent.com/u/16985007/Features.pkl" rel="nofollow">here</a> and then:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.read_pickle('Features.pkl') df.head() # see the last 8 columns! df.to_excel('Features.xlsx', index=False, header=False) # see the Excel, you do not have these last 8 columns # in a .to_csv() you have them"><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-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_pickle</span>(<span class="pl-s">'Features.pkl'</span>) <span class="pl-s1">df</span>.<span class="pl-en">head</span>() <span class="pl-c"># see the last 8 columns!</span> <span class="pl-s1">df</span>.<span class="pl-en">to_excel</span>(<span class="pl-s">'Features.xlsx'</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-c"># see the Excel, you do not have these last 8 columns</span> <span class="pl-c"># in a .to_csv() you have them</span></pre></div> <p dir="auto">Funny part: If you <code class="notranslate">df.ix[:,-71:].to_excel('Features.xlsx', index=False, header=False)</code> you have one of the missing columns. If you do <code class="notranslate">df.ix[:,-70:].to_excel('Features.xlsx', index=False, header=False)</code> you have two and so on...</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 14.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: de_DE.UTF-8 pandas: 0.16.2 nose: 1.3.7 Cython: 0.22.1 numpy: 1.9.2 scipy: 0.16.0 statsmodels: 0.6.1 IPython: 3.2.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.4 bottleneck: 1.0.0 tables: 3.2.0 numexpr: 2.4.3 matplotlib: 1.4.3 openpyxl: 1.8.6 xlrd: 0.9.3 xlwt: 1.0.0 xlsxwriter: 0.7.3 lxml: 3.4.4 bs4: 4.3.2 html5lib: None httplib2: 0.9 apiclient: None sqlalchemy: 1.0.5 pymysql: None psycopg2: None"><pre class="notranslate"><span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">commit</span>: <span class="pl-c1">None</span> <span class="pl-s1">python</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">10.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span> <span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span> <span class="pl-v">OS</span>: <span class="pl-v">Darwin</span> <span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">14.5</span><span class="pl-c1">.0</span> <span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span> <span class="pl-s1">processor</span>: <span class="pl-s1">i386</span> <span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span> <span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span> <span class="pl-v">LANG</span>: <span class="pl-s1">de_DE</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.16</span>.<span class="pl-c1">2</span> <span class="pl-s1">nose</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">7</span> <span class="pl-v">Cython</span>: <span class="pl-c1">0.22</span>.<span class="pl-c1">1</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.9</span>.<span class="pl-c1">2</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">0.16</span>.<span class="pl-c1">0</span> <span class="pl-s1">statsmodels</span>: <span class="pl-c1">0.6</span>.<span class="pl-c1">1</span> <span class="pl-v">IPython</span>: <span class="pl-c1">3.2</span>.<span class="pl-c1">0</span> <span class="pl-s1">sphinx</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span> <span class="pl-s1">patsy</span>: <span class="pl-c1">0.3</span>.<span class="pl-c1">0</span> <span class="pl-s1">dateutil</span>: <span class="pl-c1">2.4</span>.<span class="pl-c1">2</span> <span class="pl-s1">pytz</span>: <span class="pl-c1">2015.4</span> <span class="pl-s1">bottleneck</span>: <span class="pl-c1">1.0</span>.<span class="pl-c1">0</span> <span class="pl-s1">tables</span>: <span class="pl-c1">3.2</span>.<span class="pl-c1">0</span> <span class="pl-s1">numexpr</span>: <span class="pl-c1">2.4</span>.<span class="pl-c1">3</span> <span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.4</span>.<span class="pl-c1">3</span> <span class="pl-s1">openpyxl</span>: <span class="pl-c1">1.8</span>.<span class="pl-c1">6</span> <span class="pl-s1">xlrd</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">3</span> <span class="pl-s1">xlwt</span>: <span class="pl-c1">1.0</span>.<span class="pl-c1">0</span> <span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">0.7</span>.<span class="pl-c1">3</span> <span class="pl-s1">lxml</span>: <span class="pl-c1">3.4</span>.<span class="pl-c1">4</span> <span class="pl-s1">bs4</span>: <span class="pl-c1">4.3</span>.<span class="pl-c1">2</span> <span class="pl-s1">html5lib</span>: <span class="pl-c1">None</span> <span class="pl-s1">httplib2</span>: <span class="pl-c1">0.9</span> <span class="pl-s1">apiclient</span>: <span class="pl-c1">None</span> <span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">1.0</span>.<span class="pl-c1">5</span> <span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span> <span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span></pre></div>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">I often find my self doing</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [2]: df = pd.Series(index=pd.MultiIndex.from_product([['A', 'B'], ['a', 'b']])) In [3]: df.index.get_level_values(0).unique() Out[3]: Index(['A', 'B'], dtype='object')"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([[<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>], [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>]])) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">index</span>.<span class="pl-en">get_level_values</span>(<span class="pl-c1">0</span>).<span class="pl-en">unique</span>() <span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-v">Index</span>([<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The above is very inefficient, because first a <code class="notranslate">Series</code> is built which includes a copy of the entire level (possibly using way more memory than the index itself), and only then duplicates are stripped. <a href="https://stackoverflow.com/questions/24495695/pandas-get-unique-multiindex-level-values-by-label#comment44836216_24496435" rel="nofollow">Other people on SO</a> have faced the same problem, and this is also blocking a fix I wrote for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="264495108" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/17845" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/17845/hovercard" href="https://github.com/pandas-dev/pandas/issues/17845">#17845</a>.</p> <p dir="auto">I'm pushing a simple PR in seconds.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Same as above, but in an efficient way.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.5.3.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.9.0-3-amd64<br> machine: x86_64<br> processor:<br> byteorder: little<br> LC_ALL: None<br> LANG: it_IT.UTF-8<br> LOCALE: it_IT.UTF-8</p> <p dir="auto">pandas: 0.21.0rc1+19.gb15d92d14<br> pytest: 3.0.6<br> pip: 9.0.1<br> setuptools: None<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> pyarrow: None<br> xarray: None<br> IPython: 5.1.0.dev<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.3.0<br> numexpr: 2.6.1<br> feather: 0.3.1<br> matplotlib: 2.0.0<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.6<br> lxml: None<br> bs4: 4.5.3<br> html5lib: 0.999999999<br> sqlalchemy: 1.0.15<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: 0.2.1</p> </details>
0
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Media queries are a regular concern for anyone building a complex responsive web application in Vue. Today, this means each component has a style section with base css as well as media queries. Though this functionality is not broken, it is error prone and can cause subtle consistency issues unless development teams actively work to set up strong foundations. So the current state of media queries in Vue is more of a hill of failure than a pit of success.</p> <p dir="auto">The existence of packages like <code class="notranslate">vue-mq</code> demonstrate that there is demand for improving this situation, and while those kinds of packages can already help, it would be cleaner and more consistent to build this into Vue itself. Vue is presentation layer software, and this is a reasonably global presentation layer concern.</p> <p dir="auto">The proposed feature would make working with media queries easier, less error-prone, and more consistent.</p> <h3 dir="auto">What does the proposed API look like?</h3> <h2 dir="auto">Usage</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style size=&quot;base&quot;&gt; /** * `base` is an optional label for readability - anything that lacks a size * descriptor would automatically be base */ ... &lt;/style&gt; &lt;style size=&quot;xs&quot;&gt; ... &lt;/style&gt; &lt;style size=&quot;sm&quot;&gt; ... &lt;/style&gt; &lt;style size=&quot;md&quot;&gt; ... &lt;/style&gt; &lt;style size=&quot;lg&quot;&gt; ... &lt;/style&gt; &lt;style size=&quot;xl&quot;&gt; ... &lt;/style&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">base</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">/**</span> <span class="pl-c"> * `base` is an optional label for readability - anything that lacks a size</span> <span class="pl-c"> * descriptor would automatically be base</span> <span class="pl-c"> */</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">xs</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">sm</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">md</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">lg</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">size</span>="<span class="pl-s">xl</span>"<span class="pl-kos">&gt;</span> ... <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">This allows developers to separate code by size without media queries, in a<br> clean and consistent fashion.</p> <h2 dir="auto">Configuration</h2> <p dir="auto">There should be reasonable defaults, with the ability to override via config.<br> For example, the default configuration could be based on bootstrap's well-known<br> labelled screen sizes.</p> <p dir="auto">Overriding the configuration via <code class="notranslate">vue.config.js</code> might look like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { ... styleSizes: [ { name: 'base', type: 'base' }, { name: 'xs', maxWidth: 575 }, { name: 'sm', minWidth: 576, maxWidth: 767 }, { name: 'md', minWidth: 768, maxWidth: 991 }, { name: 'lg', minWidth: 992, maxWidth: 1199 }, { name: 'xl', minWidth: 1200 }, }, ... }"><pre class="notranslate"><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-s1">styleSizes</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'base'</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'base'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'xs'</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">575</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'sm'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">576</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">767</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'md'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">768</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">991</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'lg'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">992</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">1199</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'xl'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">1200</span> <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">Although it would be completely configurable to use whatever labels and size<br> cutoffs desired:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { ... styleSizes: [ { name: 'extra-small', type: 'base' }, { name: 'small', minWidth: 576, maxWidth: 767 }, { name: 'large', minWidth: 992, maxWidth: 1199 }, { name: 'extra-large', minWidth: 1200, maxWidth: 3839 }, { name: 'ginormous', minWidth: 3840 }, }, ... }"><pre class="notranslate"><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-s1">styleSizes</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'extra-small'</span><span class="pl-kos">,</span> <span class="pl-c1">type</span>: <span class="pl-s">'base'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'small'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">576</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">767</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'large'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">992</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">1199</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'extra-large'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">1200</span><span class="pl-kos">,</span> <span class="pl-c1">maxWidth</span>: <span class="pl-c1">3839</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'ginormous'</span><span class="pl-kos">,</span> <span class="pl-c1">minWidth</span>: <span class="pl-c1">3840</span> <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> <h2 dir="auto">Functionality</h2> <p dir="auto">When size attributes are assigned to a style, it should be transformed into a media query within a style tag with the same attributes as the original tag, except without the size attribute.</p> <h3 dir="auto">Example</h3> <p dir="auto">So this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style scoped size=&quot;md&quot;&gt; .generic-item { ... } &lt;/style&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">scoped</span> <span class="pl-c1">size</span>="<span class="pl-s">md</span>"<span class="pl-kos">&gt;</span> .<span class="pl-c1">generic-item</span> { ... } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Might be transformed into this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style scoped&gt; @media only screen and (max-width: 768px) and (max-width: 991px) { .generic-item { ... } } &lt;/style&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">scoped</span><span class="pl-kos">&gt;</span> <span class="pl-k">@media</span> <span class="pl-c1">only</span> screen <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">768<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">991<span class="pl-smi">px</span></span>) { .<span class="pl-c1">generic-item</span> { ... } } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <h3 dir="auto">Combining styles of same type</h3> <p dir="auto">I'm not sure how the internals work, but it might be preferable to combine different style sizes into a single style of the same type (so <code class="notranslate">scoped</code> or no <code class="notranslate">scoped</code>).</p> <p dir="auto">So this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style scoped&gt; .generic-item { ... } &lt;/style&gt; &lt;style scoped size=&quot;md&quot;&gt; .generic-item { ... } &lt;/style&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">scoped</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">generic-item</span> { ... } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">scoped</span> <span class="pl-c1">size</span>="<span class="pl-s">md</span>"<span class="pl-kos">&gt;</span> .<span class="pl-c1">generic-item</span> { ... } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Might be transformed into this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style scoped&gt; .generic-item { ... } @media only screen and (max-width: 768px) and (max-width: 991px) { .generic-item { ... } } &lt;/style&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span> <span class="pl-c1">scoped</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">generic-item</span> { ... } <span class="pl-k">@media</span> <span class="pl-c1">only</span> screen <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">768<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">991<span class="pl-smi">px</span></span>) { .<span class="pl-c1">generic-item</span> { ... } } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Hi. I would like to insert the template of a component in a different element but maintain the components tree structure. To be more precise, I have a component (bootstrap modal) which is rendered in the middle of the html content. Now the problem is that the styles of the modal inherits from parent, so what I want to archive is to have my component right there but the template to be inserted just before body end tag</p> <p dir="auto">I have tried to put a basic example here and I can't get it working: <a href="https://jsfiddle.net/fkm1qtb1/2/" rel="nofollow">https://jsfiddle.net/fkm1qtb1/2/</a> . As you can see, the text is red because the parent element has that color which applies on children too. So I want the template to be inserted on a custom element that is not affected by the color (on this example)</p> <p dir="auto">Is this possible, I'm doing something wrong ?</p> <p dir="auto">Thanks.</p>
0
<p dir="auto">Implement change detection on properties only. (This is needed to allow work on the HTML compiler to proceed.)</p>
<p dir="auto">We would like to implement bare bones change detection so that we can unblock ourselves for other parts of the system and work on them in parallel.</p> <p dir="auto"><a href="https://github.com/mhevery/angular/blob/master/modules/change_detection/src/watch_group.js">https://github.com/mhevery/angular/blob/master/modules/change_detection/src/watch_group.js</a><br> <a href="https://github.com/mhevery/angular/blob/master/modules/change_detection/src/record.js">https://github.com/mhevery/angular/blob/master/modules/change_detection/src/record.js</a></p> <p dir="auto">I would love to get a very simple change detection going which can only watch simple properties such as <code class="notranslate">foo</code> or <code class="notranslate">bar</code> ie no (<code class="notranslate">foo.bar</code> or <code class="notranslate">foo().bar</code> or anything of that sort)</p> <p dir="auto">We should be able to implement this without the need for parser.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Person { var age; } var person = new Person(); var pwg = new ProtoWatchGroup(); pwg.watch('age'); var wg = pwg.instantiate(); wg.setContext(person); var cd = new ChangeDetection(wg); cd.detectChanges();"><pre class="notranslate"><code class="notranslate">class Person { var age; } var person = new Person(); var pwg = new ProtoWatchGroup(); pwg.watch('age'); var wg = pwg.instantiate(); wg.setContext(person); var cd = new ChangeDetection(wg); cd.detectChanges(); </code></pre></div> <p dir="auto">Make this test pass: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/angular/angular/blob/69210e4fde38433b4aa6c66e7c4e0e0093171df3/modules/change_detection/test/change_detection_spec.js#L9">angular/modules/change_detection/test/change_detection_spec.js</a> </p> <p class="mb-0 color-fg-muted"> Line 9 in <a data-pjax="true" class="commit-tease-sha" href="/angular/angular/commit/69210e4fde38433b4aa6c66e7c4e0e0093171df3">69210e4</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="L9" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="9"></td> <td id="LC9" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should do simple watching'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p>
1
<p dir="auto"><strong>Is this a request for help?</strong> (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>.): NO</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): various combinations of EBS/volume/deleted/wiped/1.3</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): 1.3.5</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CoreOS 899.1.0</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): <code class="notranslate">Linux ip-10-20-8-136.ec2.internal 4.3.3-coreos #2 SMP Thu Dec 17 23:57:55 UTC 2015 x86_64 Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz GenuineIntel GNU/Linux</code></li> <li><strong>Install tools</strong>: CloudFormation + Ansible</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">After the upgrade to 1.3.5, EBS volumes no longer get detached after their parent pods move to different nodes. Worse still, the volumes get wiped clean.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">EBS volumes should get detached/attached as pods move and their content should never be wiped.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Starting from a cluster running 1.2.4</p> <ol dir="auto"> <li>Create a deployment of size 1 with an EBS volume, and write some data to the volume</li> <li>Upgrade the cluster to 1.3.5. Following the instructions at <a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md/#v130-beta1">https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md/#v130-beta1</a>, under the bullet point "In order to safely upgrade an existing Kubernetes cluster without interruption of volume attach/detach logic:" <ol dir="auto"> <li>Upgrade master to 1.3.5</li> <li>Upgrade nodes to 1.3.5</li> </ol> </li> <li>Trigger a move for the pod created in step 1, for example by specifying a different node in spec.nodeName</li> </ol> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">First, I think volume attach/detach stopped working after the upgrade because kubelet can't add the <code class="notranslate">volumes.kubernetes.io/controller-managed-attach-detach</code> annotation to <em>existing</em> nodes. New nodes do come up with this annotation.</p> <p dir="auto">Second, the volumes get wiped because kubelet tries to recursively delete the pod directory <em>before</em> the volumes are unmounted, which, because of the first problem, never happens.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thomaso-mirodin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thomaso-mirodin">@thomaso-mirodin</a></p>
<p dir="auto"><strong>Is this a request for help?</strong> (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>.):</p> <p dir="auto">No.</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <h2 dir="auto">skydns, dns, docs</h2> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">BUG REPORT -- Documentation</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">master branch</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> </ul> <p dir="auto">None, local setup via vagrant</p> <ul dir="auto"> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> </ul> <p dir="auto">CoreOS 1122.0.233</p> <ul dir="auto"> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> </ul> <p dir="auto">Linux c40 4.7.0-coreos-r1</p> <ul dir="auto"> <li><strong>Install tools</strong>:</li> </ul> <p dir="auto">Vagrant + Ansible running on a container that provisions each host to a given state (master or minion)</p> <p dir="auto">Kubernetes running using hyperkube in a container</p> <ul dir="auto"> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">There is no way to run SkyDNS that I can find in the docs to specify an IP address or host of the API server that would work if the API server goes away and it started up on another host.</p> <p dir="auto">The documentation has a couple issues.</p> <p dir="auto">The broken link in <a href="https://github.com/kubernetes/kubernetes/tree/master/build/kube-dns">https://github.com/kubernetes/kubernetes/tree/master/build/kube-dns</a>:</p> <p dir="auto">"See the example files (ReplicationController and Service),"</p> <p dir="auto">The hyperlink to "ReplicationController" is broken and goes to <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/addns/dns/skydns-rc.yaml.in">https://github.com/kubernetes/kubernetes/blob/master/cluster/addns/dns/skydns-rc.yaml.in</a></p> <p dir="auto">And should go to ("addons" instead of "addns").</p> <p dir="auto"><a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/skydns-rc.yaml.in">https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/skydns-rc.yaml.in</a></p> <p dir="auto">I tried to fix this in the source but can't find where "addns" is coming from in the markdown conversion.</p> <p dir="auto">Secondly, in the section "How Does it work", starting with "SkyDNS depends on etcd for what to serv", the paragraph is lined out.</p> <p dir="auto">I now understand after looking at the 1.4 branch that DNS has been completely reworked to not use kube2sky, however, this is confusing if someone is just using the master branch.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">view <a href="https://github.com/kubernetes/kubernetes/tree/master/build/kube-dns">https://github.com/kubernetes/kubernetes/tree/master/build/kube-dns</a></p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">master branch.</p>
0
<pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. <a href="http://play.golang.org/p/QSuUU42ggi" rel="nofollow">http://play.golang.org/p/QSuUU42ggi</a> (It's a minimalish repro based on termbox-go) 2. go run on darwin amd64 What is the expected output? Do nothing and it should time out after 5 seconds. Spam the keyboard and it should print out the keys. Hit ctrl+q to quit. This is what it does if I a) Use go version 1.0.3 or b) Don't call any variant of Py_Initialize or c) Run on another OS d) Use Python 2.7 rather than Python 3.3. The 3.3 version is a universal version compiled from source in case that matters, but IIRC I saw the same thing with "brew install python3". What do you see instead? Sometimes it gets stuck at the very first "Waiting on signal" log message and does not time out nor do keyboard input do anything at all. I can usually spam the keyboard for a second and if it hasn't hung, hit ctrl+q and try again. CPU usage on one core appears to be at 100%. Which compiler are you using (5g, 6g, 8g, gccgo)? gc Which operating system are you using? OSX 10.8.3 amd64 Which version are you using? (run 'go version') 21:18 ~/code/3rdparty/termbox/build $ go version go version devel +b27b1ff18f39 Wed Apr 10 07:15:49 2013 +0200 darwin/amd64 Please provide any additional information below. 21:19 ~/code/3rdparty/termbox/build $ cc --version Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.3.0 Thread model: posix 21:19 ~/code/3rdparty/termbox/build $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If I attach to the hung process with gdb: (gdb) t a a bt Thread 5 (Thread 0x1b03 of process 92745): #0 0x000000000402230b in runtime.mach_semaphore_wait () #1 0x0000000004012d2e in runtime.mach_semacquire () #2 0x0000000000001d03 in ?? () #3 0x0000000000010000 in ?? () #4 0x000000000400aff9 in runtime.unlock () #5 0x000000c20003c000 in ?? () #6 0x0000000000000001 in ?? () #7 0x0000000004012618 in runtime.semasleep () #8 0x0000000000001d03 in ?? () #9 0xffffffffffffffff in ?? () #10 0x00000000041174a0 in empty_value () #11 0x000000000400b19a in runtime.notesleep () #12 0xffffffffffffffff in ?? () #13 0x0000000000000000 in ?? () Thread 4 (Thread 0x1a03 of process 92745): #0 0x000000000402230b in runtime.mach_semaphore_wait () #1 0x0000000004012d2e in runtime.mach_semacquire () #2 0x1301010100001b03 in ?? () #3 0x000000000400aff9 in runtime.unlock () #4 0x000000c20003c000 in ?? () #5 0x0000000000000001 in ?? () #6 0x0000000000000000 in ?? () Thread 3 (Thread 0x1903 of process 92745): #0 0x000000000402230b in runtime.mach_semaphore_wait () #1 0x0000000004012d2e in runtime.mach_semacquire () #2 0x1301010100001803 in ?? () #3 0x0000000000001000 in ?? () #4 0x0000001fb0103e20 in ?? () #5 0x00007fff0000000a in ?? () #6 0x0000000000000000 in ?? () Thread 2 (Thread 0x1803 of process 92745): #0 0x000000000402230b in runtime.mach_semaphore_wait () #1 0x0000000004012d2e in runtime.mach_semacquire () #2 0x0000000000001403 in ?? () #3 0x0000000000000000 in ?? () Thread 1 (Thread 0x1703 of process 92745): #0 0x000000000401b7d4 in runtime.newstack () #1 0x000000000400b19a in runtime.notesleep () #2 0xffffffffffffffff in ?? () #3 0x0000000000000000 in ?? ()</pre>
<p dir="auto">by <strong>rpzrpzrpz</strong>:</p> <pre class="notranslate">[root@rpzcentos rpzcache]# go version go version go1.3.1 linux/amd64 net.ListenUDP("udp4",@gsrvaddr) glen,grxadd, gerr := gconn.ReadFromUDP(gbuf[0:]) go funcprocessbytes(grxadd,gbuf[0:glen]) There is no way to call a go routine after calling ReadFromUDP since those bytes are not safe in the go routine. The go routine will pass along the proper values in grxadd, but the bytes in gbuf are sometimes duplicated on successive calls to the funcprocessbytes( ). Changing the code and removing the "go" directive, the bytes are processed OK because the bytes are left in the network stack and each call to funcprocessbytes() is called serially instead of in parallel. I will try to work on a sample code program for this.</pre>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> If i have component that is displayed by router and i want to use animations for this component i can do it by:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@HostBinding(&quot;@flyInOut&quot;) private get _pageAnimation(): boolean { return true; }"><pre class="notranslate">@<span class="pl-smi">HostBinding</span><span class="pl-kos">(</span><span class="pl-s">"@flyInOut"</span><span class="pl-kos">)</span> <span class="pl-k">private</span> <span class="pl-k">get</span> <span class="pl-en">_pageAnimation</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-s1">boolean</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">If i move this code to "base" class which is extended by my component it stops working. Im not sure if this is only problem of router animations, or <code class="notranslate">HostBinding</code>.</p> <p dir="auto">Also if use <code class="notranslate">HostListener</code> for listening to animation start event no event parameter is passed to this callback.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@HostListener(&quot;@flyInOut.start&quot;) private _startAnimation(event: AnimationTransitionEvent) { //event is undefined }"><pre class="notranslate">@<span class="pl-smi">HostListener</span><span class="pl-kos">(</span><span class="pl-s">"@flyInOut.start"</span><span class="pl-kos">)</span> <span class="pl-k">private</span> <span class="pl-en">_startAnimation</span><span class="pl-kos">(</span><span class="pl-s1">event</span>: <span class="pl-smi">AnimationTransitionEvent</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">//event is undefined</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> Both scenarios should work.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Win 10, VSCode, NPM, SystemJS, Asp.Net.Core</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.0.3]</p> </li> </ul>
<p dir="auto">If I create a new angular 2 project using alpha 44 from NPM and attempt to load the webworker bundle in my TypeScript project I get the following errors during compilation. It looks like the facade types are not loading for some reason.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'. node_modules/angular2/src/core/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'. node_modules/angular2/src/core/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(94,41): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/collection.d.ts(95,22): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/collection.d.ts(96,25): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/lang.d.ts(1,22): error TS2304: Cannot find name 'BrowserNodeGlobal'. node_modules/angular2/src/core/facade/lang.d.ts(33,59): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/promise.d.ts(1,10): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(3,14): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(8,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(9,38): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(10,35): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(10,93): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(11,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(12,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(12,149): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(13,43): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/element_injector.d.ts(72,32): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(74,17): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(78,184): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(83,182): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(107,37): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/proto_view_factory.d.ts(27,146): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(52,144): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(76,79): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(77,73): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(94,31): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(97,18): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(100,24): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(103,142): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(104,160): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/render/api.d.ts(281,74): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/zone/ng_zone.d.ts(1,37): error TS2304: Cannot find name 'Zone'. node_modules/angular2/src/web_workers/shared/serializer.d.ts(11,22): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/web_workers/shared/serializer.d.ts(14,34): error TS2304: Cannot find name 'Map'."><pre class="notranslate"><code class="notranslate">node_modules/angular2/src/core/change_detection/parser/locals.d.ts(3,14): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/change_detection/parser/locals.d.ts(4,42): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'. node_modules/angular2/src/core/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'. node_modules/angular2/src/core/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/collection.d.ts(94,41): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/collection.d.ts(95,22): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/collection.d.ts(96,25): error TS2304: Cannot find name 'Set'. node_modules/angular2/src/core/facade/lang.d.ts(1,22): error TS2304: Cannot find name 'BrowserNodeGlobal'. node_modules/angular2/src/core/facade/lang.d.ts(33,59): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/facade/promise.d.ts(1,10): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(3,14): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(8,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(9,38): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(10,35): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(10,93): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(11,34): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(12,32): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(12,149): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/facade/promise.d.ts(13,43): error TS2304: Cannot find name 'Promise'. node_modules/angular2/src/core/linker/element_injector.d.ts(72,32): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(74,17): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(78,184): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(83,182): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/element_injector.d.ts(107,37): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/proto_view_factory.d.ts(27,146): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(52,144): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(76,79): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(77,73): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(94,31): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(97,18): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(100,24): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(103,142): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/linker/view.d.ts(104,160): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/render/api.d.ts(281,74): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/core/zone/ng_zone.d.ts(1,37): error TS2304: Cannot find name 'Zone'. node_modules/angular2/src/web_workers/shared/serializer.d.ts(11,22): error TS2304: Cannot find name 'Map'. node_modules/angular2/src/web_workers/shared/serializer.d.ts(14,34): error TS2304: Cannot find name 'Map'. </code></pre></div>
0
<p dir="auto">Hi, I am new to SVM and get a little confused when using SVC:</p> <p dir="auto">In the <a href="http://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html" rel="nofollow">document</a>, its description says</p> <blockquote> <p dir="auto">The multiclass support is handled according to a one-vs-one scheme.</p> </blockquote> <p dir="auto">while in input argument fields, it says</p> <blockquote> <p dir="auto">decision_function_shape : ‘ovo’, ‘ovr’, default=’ovr’</p> </blockquote> <p dir="auto">I personally tried both ovo and ovr with linear kernel, expected to get a large difference in training time, but got similar result. My data consists of 1694 classes with 512 features, and N instances per class (N=1~10). Theoretically, I expect the difference between O(n) and O(n^2) is significant.</p> <p dir="auto">Is SVC by default uses ovr, but is fixed to use ovo when applying multi-class scenario? Changing decision_function_shape seems not working.</p>
<p dir="auto">The docs should probably state more cleary that decision_function_shape in SVC doesn't influence the multi-class strategy used in SVC but is only a hack to satisfy the sklearn API - and it should probably explain there or in the dev docs how it is done.</p>
1
<p dir="auto">I'm requesting we reconsider the unconditional use of "urllib3.contrib.pyopenssl.inject_into_urllib3()".</p> <p dir="auto">Added 7 years ago, the goal was to "add SNI support for Python 2" <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5979220" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/749" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/749/hovercard" href="https://github.com/psf/requests/issues/749">#749</a></p> <p dir="auto">"urllib3.contrib.pyopenssl.inject_into_urllib3()" is described to "Monkey-patch urllib3 with PyOpenSSL-backed SSL-support.": (<a href="https://github.com/urllib3/urllib3/blob/master/src/urllib3/contrib/pyopenssl.py">https://github.com/urllib3/urllib3/blob/master/src/urllib3/contrib/pyopenssl.py</a>)</p> <p dir="auto">Request justification:<br> 1: Security/stability: Monkey patching to swap out standard library use for a 3rd party library should arguably be more surgical, especially for ssl. If the patch is for support in Python2, then at least check for a major version. Or even better, check if SNI support is already present ssl.HAS_SNI.</p> <p dir="auto">2: Unnecessary: As of Dec. 10, 2014, the entirety of Python 3.4's ssl module has been backported for Python 2.7.9. See PEP 466 for justification. <a href="https://www.python.org/downloads/release/python-279/" rel="nofollow">https://www.python.org/downloads/release/python-279/</a>. This enables SNI support in the standard library for &gt; v2.7.9</p> <p dir="auto">3: Inflexible: As implemented, there is no way to disable this behavior. The only option to prevent requests use of pyopenssl context is to uninstall pyopenssl for my entire python environment.<br> Summary.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/WhyNotHugo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/WhyNotHugo">@WhyNotHugo</a></p>
<p dir="auto">Requests added the <code class="notranslate">requests[security]</code> dependency many, many years ago because the ssl module in Python's stdlib was lacking some features. Since PEP 466 has been implemented in Python 2.7.9, the ssl module supports hostname verification and SNI. 2.7.9 was released in 2014. Python 3.7.0 improved the situation even further by delegating hostname verification to OpenSSL. The PyOpenSSL compatibility layer in urllib3 uses the deprecated <code class="notranslate">ssl.match_hostname</code> function or a backport.</p> <p dir="auto">Unconditional monkey-patching of urllib3 with <code class="notranslate">urllib3.contrib.pyopenssl.inject_into_urllib3</code> is causing issues, too.</p> <p dir="auto">PyOpenSSL uses dynamic libffi callbacks (also known as cffi old-style callbacks). The callbacks are implemented with trampolines and dynamic creation of native machine code. This either uses executable and writeable memory pages or some hacks with shared mmap() regions. Dynamic callbacks are a security risk and blocked by security frameworks like SELinux for good reasons (deny_execmem). Armin Rigo and I explored various ways to work around these problems, but there is simply solution. Eventually Armin implemented a new callback system for cffi. Some of the issues with old callbacks are documented at <a href="https://cffi.readthedocs.io/en/latest/using.html#callbacks-old-style" rel="nofollow">https://cffi.readthedocs.io/en/latest/using.html#callbacks-old-style</a> .</p> <p dir="auto">PyOpenSSL currently pulls in a versions of cryptography, which itself depends on asn1crypto. A problem with asn1crypto and ctypes causes Python to segfault on recent macOS, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="524066080" data-permission-text="Title is private" data-url="https://github.com/pyca/pyopenssl/issues/874" data-hovercard-type="issue" data-hovercard-url="/pyca/pyopenssl/issues/874/hovercard" href="https://github.com/pyca/pyopenssl/issues/874">pyca/pyopenssl#874</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="509309071" data-permission-text="Title is private" data-url="https://github.com/wbond/asn1crypto/issues/158" data-hovercard-type="issue" data-hovercard-url="/wbond/asn1crypto/issues/158/hovercard" href="https://github.com/wbond/asn1crypto/issues/158">wbond/asn1crypto#158</a> .</p> <p dir="auto">Due to bugs like <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1535689" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=1535689</a> I convinced the Fedora and RHEL maintainers to patch requests and drop <code class="notranslate">inject_into_urllib3</code> a while ago. The distros have been running with patch <a href="https://src.fedoraproject.org/rpms/python-requests/blob/master/f/Don-t-inject-pyopenssl-into-urllib3.patch" rel="nofollow">https://src.fedoraproject.org/rpms/python-requests/blob/master/f/Don-t-inject-pyopenssl-into-urllib3.patch</a> for over a year without any reported issues.</p> <p dir="auto">I propose to:</p> <ol dir="auto"> <li>Remove <code class="notranslate">requests[security]</code> extra requires.</li> <li>Remove unconditionally monkey-patch of urllib3 from requests.</li> </ol>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=szczepan.kuzniarz" rel="nofollow">Szczepan Kuzniarz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6268?redirect=false" rel="nofollow">SPR-6268</a></strong> and commented</p> <p dir="auto">In the following example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package test @Controller class TestController { @RequestMapping(value = &quot;/testGroovy.do&quot;, method = RequestMethod.GET) public String handler(HttpServletRequest request) { return &quot;success&quot; } }"><pre class="notranslate"><code class="notranslate">package test @Controller class TestController { @RequestMapping(value = "/testGroovy.do", method = RequestMethod.GET) public String handler(HttpServletRequest request) { return "success" } } </code></pre></div> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;context:annotation-config/&gt; &lt;context:component-scan base-package=&quot;test&quot;/&gt; &lt;lang:groovy script-source=&quot;classpath:test/TestController.groovy&quot; refresh-check-delay=&quot;1000&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">context</span><span class="pl-ent">:</span><span class="pl-ent">annotation-config</span>/&gt; &lt;<span class="pl-ent">context</span><span class="pl-ent">:</span><span class="pl-ent">component-scan</span> <span class="pl-e">base-package</span>=<span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">lang</span><span class="pl-ent">:</span><span class="pl-ent">groovy</span> <span class="pl-e">script-source</span>=<span class="pl-s"><span class="pl-pds">"</span>classpath:test/TestController.groovy<span class="pl-pds">"</span></span> <span class="pl-e">refresh-check-delay</span>=<span class="pl-s"><span class="pl-pds">"</span>1000<span class="pl-pds">"</span></span>/&gt;</pre></div> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;servlet&gt; &lt;servlet-name&gt;test&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;test&lt;/servlet-name&gt; &lt;url-pattern&gt;*.do&lt;/url-pattern&gt; &lt;/servlet-mapping&gt;"><pre class="notranslate">&lt;<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;test&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">servlet-class</span>&gt;org.springframework.web.servlet.DispatcherServlet&lt;/<span class="pl-ent">servlet-class</span>&gt; &lt;/<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-mapping</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;test&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">url-pattern</span>&gt;*.do&lt;/<span class="pl-ent">url-pattern</span>&gt; &lt;/<span class="pl-ent">servlet-mapping</span>&gt;</pre></div> <p dir="auto">DefaultAnnotationHandlerMapping class discovers the Groovy controller and registers a handler as it logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Mapped URL path [/testGroovy.do] onto handler [test.TestController@134237]"><pre class="notranslate"><code class="notranslate">INFO: Mapped URL path [/testGroovy.do] onto handler [test.TestController@134237] </code></pre></div> <p dir="auto">but accessing such a controller causes ServletException:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="javax.servlet.ServletException: No adapter for handler [test.TestController@134237]: Does your handler implement a supported interface like Controller? org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:992) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:780) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:726) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)"><pre class="notranslate"><code class="notranslate">javax.servlet.ServletException: No adapter for handler [test.TestController@134237]: Does your handler implement a supported interface like Controller? org.springframework.web.servlet.DispatcherServlet.getHandlerAdapter(DispatcherServlet.java:992) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:780) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:726) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:636) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:545) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) </code></pre></div> <p dir="auto">I'm not 100% sure, but it seems AnnotationMethodHandlerAdapter.getMethodResolver is unable to determine proper type of the handler. It uses ClassUtils.getUserClass (which returns proxy as a type) but for Groovy script the right type is it's MetaClass (getMethodResolver should use something like ((groovy.lang.GroovyObject) handler).getMetaClass().getTheClass()).</p> <p dir="auto">Maybe the problem with Groovy scripts is more general, and not limited to a MVC controller case?</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159880" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15317" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15317/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15317">#15317</a> lang:groovy tag in version 2.5 and higher doesn't work for refreshable Spring MVC endpoints</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094989" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10419" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10419/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10419">#10419</a> AspectJ pointcut advisors are not working with Groovy script beans</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/64fd0b081d9367a764b88f1894f3f92198e85b07/hovercard" href="https://github.com/spring-projects/spring-framework/commit/64fd0b081d9367a764b88f1894f3f92198e85b07"><tt>64fd0b0</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/8e357348562774952a75e414a66377c4898a28dd/hovercard" href="https://github.com/spring-projects/spring-framework/commit/8e357348562774952a75e414a66377c4898a28dd"><tt>8e35734</tt></a></p> <p dir="auto">1 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nvnaresh" rel="nofollow">Naresh Narayana</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5749?redirect=false" rel="nofollow">SPR-5749</a></strong>* and commented</p> <p dir="auto">It seems that AOP is not working for Groovy beans.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.6</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=71389" rel="nofollow">http://forum.springsource.org/showthread.php?t=71389</a></p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15381/testProject.zip" rel="nofollow">testProject.zip</a> (<em>10.75 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398098642" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10935" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10935/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10935">#10935</a> Annotated Groovy controllers don't work properly</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/bd0f68d095ba881621b8499925334de38a6b1051/hovercard" href="https://github.com/spring-projects/spring-framework/commit/bd0f68d095ba881621b8499925334de38a6b1051"><tt>bd0f68d</tt></a></p> <p dir="auto">1 votes, 3 watchers</p>
1
<p dir="auto">I've pulled together a list of questionable licenses that license scanners will pick up for Airflow. Ideally we should look to remove the dependencies from the project.</p> <table role="table"> <thead> <tr> <th>Project</th> <th>License</th> <th>PR</th> </tr> </thead> <tbody> <tr> <td><a href="https://pypi.org/project/astroid/" rel="nofollow">astroid</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/certifi/" rel="nofollow">certifi</a></td> <td>MPL-2.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/chardet/" rel="nofollow">chardet</a></td> <td>LGPL-2.1</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/JayDeBeApi/" rel="nofollow">JayDeBeApi</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/ldap3/" rel="nofollow">ldap3</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/mysql-connector-python/" rel="nofollow">mysql-connector-python</a></td> <td>GPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/paramiko/" rel="nofollow">paramiko</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/pathspec/" rel="nofollow">pathspec</a></td> <td>MPL-2.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/psycopg2binary/" rel="nofollow">psycopg2-binary</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/pycountry/" rel="nofollow">pycountry</a></td> <td>LGPL-2.1</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/PyGithub/" rel="nofollow">PyGithub</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/pymssql/" rel="nofollow">pymssql</a></td> <td>LGPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/PySmbClient/" rel="nofollow">PySmbClient</a></td> <td>GPL-3.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/pytest-rerunfailures/" rel="nofollow">pytest-rerunfailures</a></td> <td>MPL-2.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/text-unidecode/" rel="nofollow">text-unidecode</a></td> <td>Artistic-2.0</td> <td></td> </tr> <tr> <td><a href="https://pypi.org/project/Unidecode/" rel="nofollow">Unidecode</a></td> <td>GPL-3.0</td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="689438090" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/10665" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/10665/hovercard" href="https://github.com/apache/airflow/pull/10665">#10665</a></td> </tr> <tr> <td><a href="https://pypi.org/project/yamllint/" rel="nofollow">yamllint</a></td> <td>GPL-3.0</td> <td></td> </tr> </tbody> </table>
<p dir="auto">We need to <a href="https://www.apache.org/licenses/GPL-compatibility.html" rel="nofollow">avoid GPL</a>.</p> <blockquote> <p dir="auto">Apache 2 software can therefore be included in GPLv3 projects, because the GPLv3 license accepts our software into GPLv3 works. <strong>However, GPLv3 software cannot be included in Apache projects. The licenses are incompatible in one direction only, and it is a result of ASF’s licensing philosophy and the GPLv3 authors’ interpretation of copyright law.</strong></p> </blockquote> <p dir="auto">Snyk is reporting the following dependencies in our requirements.txt for python 3.6, 3.7, 3.8 are GPL v3:</p> <ul dir="auto"> <li>jaydebeapi v1.2.3</li> <li>mysql-connector-python v8.0.18</li> <li>pysmbclient v0.1.5</li> <li>unidecode v1.1.1</li> <li>yamllint v1.23.0</li> </ul> <p dir="auto">I see some previous discussion + mitigation for <code class="notranslate">unidecode</code> but not all of these.</p>
1
<h4 dir="auto">System information (version)</h4> <ul dir="auto"> <li>OpenCV =&gt; 3.1</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>IDE =&gt; Android Studio</li> </ul> <h4 dir="auto">Description</h4> <p dir="auto"><code class="notranslate">StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); int bestWidth = 0, bestHeight = 0; float aspect = (float) width / height; android.util.Size[] sizes = map.getOutputSizes(ImageReader.class);</code></p> <p dir="auto">The problem is cause by the getOutputSizes return null. But I can't debug the StreamConfigurationMap Class. Is there anyone know how to solve it? Thanks in advance!</p> <h4 dir="auto">Error Info</h4> <p dir="auto">05-11 10:13:54.132 29590-29590/com.example.administrator.myapplication E/AndroidRuntime: FATAL EXCEPTION: main<br> Process: com.example.administrator.myapplication, PID: 29590<br> java.lang.RuntimeException: Interrupted while setCameraPreviewSize.<br> at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:320)<br> at org.opencv.android.CameraBridgeViewBase.onEnterStartedState(CameraBridgeViewBase.java:360)<br> at org.opencv.android.CameraBridgeViewBase.processEnterState(CameraBridgeViewBase.java:321)<br> at org.opencv.android.CameraBridgeViewBase.checkCurrentState(CameraBridgeViewBase.java:313)<br> at org.opencv.android.CameraBridgeViewBase.surfaceChanged(CameraBridgeViewBase.java:198)<br> at android.view.SurfaceView.updateWindow(SurfaceView.java:688)<br> at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:202)<br> at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)<br> at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2391)<br> at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1318)<br> at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6728)<br> at android.view.Choreographer$CallbackRecord.run(Choreographer.java:802)<br> at android.view.Choreographer.doCallbacks(Choreographer.java:605)<br> at android.view.Choreographer.doFrame(Choreographer.java:574)<br> at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:788)<br> at android.os.Handler.handleCallback(Handler.java:815)<br> at android.os.Handler.dispatchMessage(Handler.java:104)<br> at android.os.Looper.loop(Looper.java:194)<br> at android.app.ActivityThread.main(ActivityThread.java:5898)<br> at java.lang.reflect.Method.invoke(Native Method)<br> at java.lang.reflect.Method.invoke(Method.java:372)<br> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1019)<br> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:814)<br> Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0<br> at org.opencv.android.JavaCamera2View.calcPreviewSize(JavaCamera2View.java:265)<br> at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:300)</p> <h4 dir="auto">Steps to reproduce</h4> <h5 dir="auto">Activity</h5> <p dir="auto">package com.example.administrator.myapplication;</p> <p dir="auto">import android.content.Context;<br> import android.support.v7.app.AppCompatActivity;<br> import android.os.Bundle;<br> import android.widget.TextView;<br> import android.widget.Toast;</p> <p dir="auto">import org.opencv.android.BaseLoaderCallback;<br> import org.opencv.android.CameraBridgeViewBase;<br> import org.opencv.android.InstallCallbackInterface;<br> import org.opencv.android.JavaCamera2View;<br> import org.opencv.android.LoaderCallbackInterface;<br> import org.opencv.android.OpenCVLoader;<br> import org.opencv.core.Core;<br> import org.opencv.core.CvType;<br> import org.opencv.core.Mat;<br> import org.opencv.imgproc.Imgproc;</p> <p dir="auto">public class MainActivity extends AppCompatActivity implements CameraBridgeViewBase.CvCameraViewListener2 {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Mat mat1, mat2, mat3; CameraBridgeViewBase base; BaseLoaderCallback callback; // Used to load the 'native-lib' library on application startup. static { System.loadLibrary(&quot;native-lib&quot;); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); base = findViewById(R.id.camera); base.setCvCameraViewListener(this); callback = new BaseLoaderCallback(this) { @Override public void onManagerConnected(int status) { super.onManagerConnected(status); switch (status) { case BaseLoaderCallback.SUCCESS: base.enableView(); toast(&quot;BaseLoaderCallback.SUCCESS&quot;); break; } } @Override public void onPackageInstall(int operation, InstallCallbackInterface callback) { super.onPackageInstall(operation, callback); } }; } private void toast(final String msg) { runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show(); } }); } /** * A native method that is implemented by the 'native-lib' native library, * which is packaged with this application. */ public native String stringFromJNI(); @Override public void onCameraViewStarted(int width, int height) { Toast.makeText(this, &quot;onCameraViewStarted&quot;, Toast.LENGTH_LONG).show(); mat1 = new Mat(width, height, CvType.CV_8UC4); mat2 = new Mat(width, height, CvType.CV_8UC4); mat3 = new Mat(width, height, CvType.CV_8UC4); } @Override public void onCameraViewStopped() { Toast.makeText(this, &quot;onCameraViewStopped&quot;, Toast.LENGTH_LONG).show(); mat1.release(); mat2.release(); mat3.release(); } @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { toast(&quot;onCameraFrame&quot;); mat1 = inputFrame.rgba(); //Core.transpose(mat1, mat2); //Imgproc.resize(mat2, mat2, mat3.size(),0, 0,0 ); //Core.flip(mat3, mat1, 1); return mat1; } @Override protected void onPause() { super.onPause(); if (base != null) { base.disableView(); } } @Override protected void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Toast.makeText(this, &quot;Load Failed&quot;, Toast.LENGTH_LONG).show(); } else { callback.onManagerConnected(LoaderCallbackInterface.SUCCESS); Toast.makeText(this, &quot;Load Success&quot;, Toast.LENGTH_LONG).show(); } }"><pre class="notranslate"><code class="notranslate">Mat mat1, mat2, mat3; CameraBridgeViewBase base; BaseLoaderCallback callback; // Used to load the 'native-lib' library on application startup. static { System.loadLibrary("native-lib"); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); base = findViewById(R.id.camera); base.setCvCameraViewListener(this); callback = new BaseLoaderCallback(this) { @Override public void onManagerConnected(int status) { super.onManagerConnected(status); switch (status) { case BaseLoaderCallback.SUCCESS: base.enableView(); toast("BaseLoaderCallback.SUCCESS"); break; } } @Override public void onPackageInstall(int operation, InstallCallbackInterface callback) { super.onPackageInstall(operation, callback); } }; } private void toast(final String msg) { runOnUiThread(new Runnable() { @Override public void run() { Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show(); } }); } /** * A native method that is implemented by the 'native-lib' native library, * which is packaged with this application. */ public native String stringFromJNI(); @Override public void onCameraViewStarted(int width, int height) { Toast.makeText(this, "onCameraViewStarted", Toast.LENGTH_LONG).show(); mat1 = new Mat(width, height, CvType.CV_8UC4); mat2 = new Mat(width, height, CvType.CV_8UC4); mat3 = new Mat(width, height, CvType.CV_8UC4); } @Override public void onCameraViewStopped() { Toast.makeText(this, "onCameraViewStopped", Toast.LENGTH_LONG).show(); mat1.release(); mat2.release(); mat3.release(); } @Override public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { toast("onCameraFrame"); mat1 = inputFrame.rgba(); //Core.transpose(mat1, mat2); //Imgproc.resize(mat2, mat2, mat3.size(),0, 0,0 ); //Core.flip(mat3, mat1, 1); return mat1; } @Override protected void onPause() { super.onPause(); if (base != null) { base.disableView(); } } @Override protected void onResume() { super.onResume(); if (!OpenCVLoader.initDebug()) { Toast.makeText(this, "Load Failed", Toast.LENGTH_LONG).show(); } else { callback.onManagerConnected(LoaderCallbackInterface.SUCCESS); Toast.makeText(this, "Load Success", Toast.LENGTH_LONG).show(); } } </code></pre></div> <p dir="auto">}</p> <h5 dir="auto">XML</h5> <p dir="auto">&lt;android.support.constraint.ConstraintLayout xmlns:android="<a href="http://schemas.android.com/apk/res/android" rel="nofollow">http://schemas.android.com/apk/res/android</a>"<br> xmlns:app="<a href="http://schemas.android.com/apk/res-auto" rel="nofollow">http://schemas.android.com/apk/res-auto</a>"<br> xmlns:tools="<a href="http://schemas.android.com/tools" rel="nofollow">http://schemas.android.com/tools</a>"<br> android:layout_width="match_parent"<br> android:layout_height="match_parent"<br> tools:context="com.example.administrator.myapplication.MainActivity"&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;org.opencv.android.JavaCamera2View android:id=&quot;@+id/camera&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;org.opencv.android.JavaCamera2View android:id="@+id/camera" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; </code></pre></div> <p dir="auto">&lt;/android.support.constraint.ConstraintLayout&gt;</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.1</li> <li>Operating System / Platform =&gt; Android 5.0.1</li> <li>Compiler =&gt; -/-</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The Camera2 API Classes Camera2Renderer and JavaCamera2View are not functioning correctly. At least on my phone (Huawei P8, Android 5.0.1). JavaCamera2View crashes in Line 265 while accessing sizes[0] of the possible camera sizes with an IndexOutOfBoundsException 0 &gt;= 0, and Camera2Renderer, used through CameraGLSurfaceView results in a preview with a distorted aspect ratio. The Android Samples are using obsolete and outdated code that doesn't even compile with this version of openCV.</p> <h5 dir="auto">Steps to reproduce</h5> <h2 dir="auto">CameraGLSurfaceView</h2> <h3 dir="auto">Minimal example</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import org.opencv.android.CameraGLSurfaceView; public class MainActivity extends Activity { static { System.loadLibrary(&quot;opencv_java3&quot;); } private CameraGLSurfaceView mView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mView = new CameraGLSurfaceView(this, null); setContentView(mView); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); View decorView = getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); } @Override protected void onPause() { mView.onPause(); super.onPause(); } @Override protected void onResume() { super.onResume(); mView.onResume(); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">app</span>.<span class="pl-s1">Activity</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">os</span>.<span class="pl-s1">Bundle</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">view</span>.<span class="pl-s1">View</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">view</span>.<span class="pl-s1">WindowManager</span>; <span class="pl-k">import</span> <span class="pl-s1">org</span>.<span class="pl-s1">opencv</span>.<span class="pl-s1">android</span>.<span class="pl-s1">CameraGLSurfaceView</span>; <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">MainActivity</span> <span class="pl-k">extends</span> <span class="pl-smi">Activity</span> { <span class="pl-k">static</span> { <span class="pl-smi">System</span>.<span class="pl-en">loadLibrary</span>(<span class="pl-s">"opencv_java3"</span>); } <span class="pl-k">private</span> <span class="pl-smi">CameraGLSurfaceView</span> <span class="pl-s1">mView</span>; <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onCreate</span>(<span class="pl-smi">Bundle</span> <span class="pl-s1">savedInstanceState</span>) { <span class="pl-en">super</span>.<span class="pl-en">onCreate</span>(<span class="pl-s1">savedInstanceState</span>); <span class="pl-s1">mView</span> = <span class="pl-k">new</span> <span class="pl-smi">CameraGLSurfaceView</span>(<span class="pl-smi">this</span>, <span class="pl-c1">null</span>); <span class="pl-en">setContentView</span>(<span class="pl-s1">mView</span>); <span class="pl-en">getWindow</span>().<span class="pl-en">setFlags</span>(<span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_FULLSCREEN</span>, <span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_FULLSCREEN</span>); <span class="pl-en">getWindow</span>().<span class="pl-en">addFlags</span>(<span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_KEEP_SCREEN_ON</span>); <span class="pl-smi">View</span> <span class="pl-s1">decorView</span> = <span class="pl-en">getWindow</span>().<span class="pl-en">getDecorView</span>(); <span class="pl-smi">int</span> <span class="pl-s1">uiOptions</span> = <span class="pl-smi">View</span>.<span class="pl-c1">SYSTEM_UI_FLAG_HIDE_NAVIGATION</span> | <span class="pl-smi">View</span>.<span class="pl-c1">SYSTEM_UI_FLAG_FULLSCREEN</span>; <span class="pl-s1">decorView</span>.<span class="pl-en">setSystemUiVisibility</span>(<span class="pl-s1">uiOptions</span>); } <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">onPause</span>() { <span class="pl-s1">mView</span>.<span class="pl-en">onPause</span>(); <span class="pl-en">super</span>.<span class="pl-en">onPause</span>(); } <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-en">onResume</span>() { <span class="pl-en">super</span>.<span class="pl-en">onResume</span>(); <span class="pl-s1">mView</span>.<span class="pl-en">onResume</span>(); } }</pre></div> <h3 dir="auto">Results</h3> <p dir="auto">holding phone in landscape<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2452821/38830923-144b0c50-41be-11e8-94e5-f4404837107a.png"><img src="https://user-images.githubusercontent.com/2452821/38830923-144b0c50-41be-11e8-94e5-f4404837107a.png" alt="screenshot_2018-04-16-21-32-49" style="max-width: 100%;"></a></p> <p dir="auto">in portrait<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2452821/38830927-16489d9c-41be-11e8-9235-11b7597c0ea3.png"><img src="https://user-images.githubusercontent.com/2452821/38830927-16489d9c-41be-11e8-9235-11b7597c0ea3.png" alt="screenshot_2018-04-16-21-32-37" style="max-width: 100%;"></a></p> <h2 dir="auto">JavaCamera2View</h2> <h3 dir="auto">Minimal example</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import org.opencv.android.JavaCamera2View; public class MainActivity extends Activity { static { System.loadLibrary(&quot;opencv_java3&quot;); } private JavaCamera2View mView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mView = findViewById(R.id.camera); mView.enableView(); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); View decorView = getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">app</span>.<span class="pl-s1">Activity</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">os</span>.<span class="pl-s1">Bundle</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">view</span>.<span class="pl-s1">View</span>; <span class="pl-k">import</span> <span class="pl-s1">android</span>.<span class="pl-s1">view</span>.<span class="pl-s1">WindowManager</span>; <span class="pl-k">import</span> <span class="pl-s1">org</span>.<span class="pl-s1">opencv</span>.<span class="pl-s1">android</span>.<span class="pl-s1">JavaCamera2View</span>; <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">MainActivity</span> <span class="pl-k">extends</span> <span class="pl-smi">Activity</span> { <span class="pl-k">static</span> { <span class="pl-smi">System</span>.<span class="pl-en">loadLibrary</span>(<span class="pl-s">"opencv_java3"</span>); } <span class="pl-k">private</span> <span class="pl-smi">JavaCamera2View</span> <span class="pl-s1">mView</span>; <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onCreate</span>(<span class="pl-smi">Bundle</span> <span class="pl-s1">savedInstanceState</span>) { <span class="pl-en">super</span>.<span class="pl-en">onCreate</span>(<span class="pl-s1">savedInstanceState</span>); <span class="pl-en">setContentView</span>(<span class="pl-smi">R</span>.<span class="pl-s1">layout</span>.<span class="pl-s1">activity_main</span>); <span class="pl-s1">mView</span> = <span class="pl-en">findViewById</span>(<span class="pl-smi">R</span>.<span class="pl-s1">id</span>.<span class="pl-s1">camera</span>); <span class="pl-s1">mView</span>.<span class="pl-en">enableView</span>(); <span class="pl-en">getWindow</span>().<span class="pl-en">setFlags</span>(<span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_FULLSCREEN</span>, <span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_FULLSCREEN</span>); <span class="pl-en">getWindow</span>().<span class="pl-en">addFlags</span>(<span class="pl-smi">WindowManager</span>.<span class="pl-s1">LayoutParams</span>.<span class="pl-c1">FLAG_KEEP_SCREEN_ON</span>); <span class="pl-smi">View</span> <span class="pl-s1">decorView</span> = <span class="pl-en">getWindow</span>().<span class="pl-en">getDecorView</span>(); <span class="pl-smi">int</span> <span class="pl-s1">uiOptions</span> = <span class="pl-smi">View</span>.<span class="pl-c1">SYSTEM_UI_FLAG_HIDE_NAVIGATION</span> | <span class="pl-smi">View</span>.<span class="pl-c1">SYSTEM_UI_FLAG_FULLSCREEN</span>; <span class="pl-s1">decorView</span>.<span class="pl-en">setSystemUiVisibility</span>(<span class="pl-s1">uiOptions</span>); } }</pre></div> <p dir="auto">layout/activity_main.xml</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot; xmlns:opencv=&quot;http://schemas.android.com/apk/res-auto&quot; xmlns:tools=&quot;http://schemas.android.com/tools&quot; android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;match_parent&quot; tools:context=&quot;.MainActivity&quot;&gt; &lt;org.opencv.android.JavaCamera2View android:layout_width=&quot;match_parent&quot; android:id=&quot;@+id/camera&quot; android:layout_height=&quot;match_parent&quot;/&gt; &lt;/LinearLayout&gt;"><pre class="notranslate">&lt;?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>utf-8<span class="pl-pds">"</span></span>?&gt; &lt;<span class="pl-ent">LinearLayout</span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">android</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res/android<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">app</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res-auto<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">opencv</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res-auto<span class="pl-pds">"</span></span> <span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">tools</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/tools<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">context</span>=<span class="pl-s"><span class="pl-pds">"</span>.MainActivity<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">org</span>.opencv.android.JavaCamera2View <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/camera<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>/&gt; &lt;/<span class="pl-ent">LinearLayout</span>&gt;</pre></div> <h3 dir="auto">Stacktrace</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" java.lang.RuntimeException: Interrupted while setCameraPreviewSize. at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:320) at org.opencv.android.CameraBridgeViewBase.onEnterStartedState(CameraBridgeViewBase.java:360) at org.opencv.android.CameraBridgeViewBase.processEnterState(CameraBridgeViewBase.java:321) at org.opencv.android.CameraBridgeViewBase.checkCurrentState(CameraBridgeViewBase.java:313) at org.opencv.android.CameraBridgeViewBase.surfaceChanged(CameraBridgeViewBase.java:198) at android.view.SurfaceView.updateWindow(SurfaceView.java:614) at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:187) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2018) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1094) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793) at android.view.Choreographer.doCallbacks(Choreographer.java:606) at android.view.Choreographer.doFrame(Choreographer.java:575) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:779) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5538) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:958) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:753) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at org.opencv.android.JavaCamera2View.calcPreviewSize(JavaCamera2View.java:265) at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:300) at org.opencv.android.CameraBridgeViewBase.onEnterStartedState(CameraBridgeViewBase.java:360)  at org.opencv.android.CameraBridgeViewBase.processEnterState(CameraBridgeViewBase.java:321)  at org.opencv.android.CameraBridgeViewBase.checkCurrentState(CameraBridgeViewBase.java:313)  at org.opencv.android.CameraBridgeViewBase.surfaceChanged(CameraBridgeViewBase.java:198)  at android.view.SurfaceView.updateWindow(SurfaceView.java:614)  at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:187)  at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2018)  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1094)  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054)  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793)  at android.view.Choreographer.doCallbacks(Choreographer.java:606)  at android.view.Choreographer.doFrame(Choreographer.java:575)  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:779)  at android.os.Handler.handleCallback(Handler.java:739)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5538)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:958)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:753)"><pre class="notranslate"><code class="notranslate"> java.lang.RuntimeException: Interrupted while setCameraPreviewSize. at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:320) at org.opencv.android.CameraBridgeViewBase.onEnterStartedState(CameraBridgeViewBase.java:360) at org.opencv.android.CameraBridgeViewBase.processEnterState(CameraBridgeViewBase.java:321) at org.opencv.android.CameraBridgeViewBase.checkCurrentState(CameraBridgeViewBase.java:313) at org.opencv.android.CameraBridgeViewBase.surfaceChanged(CameraBridgeViewBase.java:198) at android.view.SurfaceView.updateWindow(SurfaceView.java:614) at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:187) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2018) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1094) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793) at android.view.Choreographer.doCallbacks(Choreographer.java:606) at android.view.Choreographer.doFrame(Choreographer.java:575) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:779) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5538) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:958) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:753) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at org.opencv.android.JavaCamera2View.calcPreviewSize(JavaCamera2View.java:265) at org.opencv.android.JavaCamera2View.connectCamera(JavaCamera2View.java:300) at org.opencv.android.CameraBridgeViewBase.onEnterStartedState(CameraBridgeViewBase.java:360)  at org.opencv.android.CameraBridgeViewBase.processEnterState(CameraBridgeViewBase.java:321)  at org.opencv.android.CameraBridgeViewBase.checkCurrentState(CameraBridgeViewBase.java:313)  at org.opencv.android.CameraBridgeViewBase.surfaceChanged(CameraBridgeViewBase.java:198)  at android.view.SurfaceView.updateWindow(SurfaceView.java:614)  at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:187)  at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2018)  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1094)  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6054)  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:793)  at android.view.Choreographer.doCallbacks(Choreographer.java:606)  at android.view.Choreographer.doFrame(Choreographer.java:575)  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:779)  at android.os.Handler.handleCallback(Handler.java:739)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5538)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:958)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:753) </code></pre></div> <hr> <p dir="auto">The only thing i got to work on my phone, is JavaCameraView, but only at low 15 FPS.</p>
1
<p dir="auto">when added into the vertices PointCloud new vertices,<br> adding occurs,<br> because: in function setParticleBuffers<br> When copying in vertexArray of vertices,<br> not all vertices are copied,<br> because:<br> vertexArray declared as Float32Array and Float32Array does not resize<br> so I suggest:<br> in function setParticleBuffers when length of vertices not equal number of vertices in PointCloud<br> re-create all the necessary Float32Array<br> , and to make such changes</p> <p dir="auto">function setParticleBuffers(geometry, hint, object) {<br> "+" if (geometry.__webglParticleCount !== geometry.vertices.length)<br> "+" initParticleBuffers(geometry, object);<br> var v, c, vertex, offset, color,</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">This form is for three.js bug reports and feature requests only.</p> <p dir="auto">This is NOT a help site. Do not ask help questions here.<br> If you need help, please use the <a href="https://discourse.threejs.org/" rel="nofollow">forum</a> or <a href="http://stackoverflow.com/questions/tagged/three.js" rel="nofollow">stackoverflow</a>.</p> <p dir="auto">Describe the bug or feature request in detail.</p> <p dir="auto"><strong>Are there any plans to port the three.js library to WebGL 2.0?</strong></p> <p dir="auto">Always include a code snippet, screenshots, and any relevant models or textures to help us understand your issue.</p> <p dir="auto">Please also include a live example if possible. You can start from these templates:</p> <ul dir="auto"> <li><a href="https://jsfiddle.net/3foLr7sn/" rel="nofollow">jsfiddle</a> (latest release branch)</li> <li><a href="https://jsfiddle.net/qgu17w5o/" rel="nofollow">jsfiddle</a> (dev branch)</li> <li><a href="https://codepen.io/anon/pen/aEBKxR" rel="nofollow">codepen</a> (latest release branch)</li> <li><a href="https://codepen.io/anon/pen/BJWzaN" rel="nofollow">codepen</a> (dev branch)</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"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r97</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"> 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"><strong>Are there any plans to port the three.js library to WebGL 2.0?</strong></p>
0
<p dir="auto">It would be nice if <a href="http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/" rel="nofollow">http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/</a> and hence <code class="notranslate">flask/docs/deploying/mod_wsgi.rst</code> sported some information on Python 3's venv virtual environment:</p> <p dir="auto">The information needed to deploy with <code class="notranslate">venv</code>is available here:</p> <p dir="auto"><a href="https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html" rel="nofollow">https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html</a></p> <p dir="auto">Basically no <code class="notranslate">activate_this</code>-code is needed in the .wsgi file, just <code class="notranslate">WSGIDaemonProcess myapp python-home=/usr/local/venvs/myapp</code> in your httpd/apache config.</p> <p dir="auto">I'll draft something to merge if you think it is a good idea, otherwise this will have to serve as reference.</p>
<p dir="auto">It says <a href="http://flask.pocoo.org/docs/0.11/deploying/mod_wsgi/" rel="nofollow">in the documentation</a> (the last section - "Working with Virtual Environments"):</p> <blockquote> <p dir="auto">For Python 3 add the following lines to the top of your .wsgi file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="activate_this = '/path/to/env/bin/activate_this.py' with open(activate_this) as file_: exec(file_.read(), dict(__file__=activate_this))"><pre class="notranslate"><code class="notranslate">activate_this = '/path/to/env/bin/activate_this.py' with open(activate_this) as file_: exec(file_.read(), dict(__file__=activate_this)) </code></pre></div> </blockquote> <p dir="auto">However <code class="notranslate">activate_this.py</code> is no longer present in pyvenv (see <a href="http://bugs.python.org/issue21496" rel="nofollow">http://bugs.python.org/issue21496</a>), thus the above code doesn't work. I found a stackoverflow answer where it said that just copying <code class="notranslate">activate_this.py</code> from a 2.7 virtualenv might work, however I didn't go down that route.</p> <p dir="auto">How I managed to get it working:</p> <p dir="auto">I added <code class="notranslate">WSGIPythonHome /path/to/env</code> to the top level of my apache config (ie. outside of VirtualEnv). However that might be a little to big of a hammer if people want to run multiple applications in the same Apache instance. In that case setting <code class="notranslate">python-path</code> on <code class="notranslate">WSGIDaemonProcess</code> might work (however I didn't try it out).</p>
1
<p dir="auto">It seems that whitespace in a character array is treated as if it is zero. An example of this is shown below with details about the environment. This seems to match up with how character arrays work. Still this seems a bit surprising from a Python perspective. Am trying to understand if this is intentional and also if there is an builtin element-wise operator that we can use to reproduce this behavior.</p> <p dir="auto">Code snippet:</p> <details> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np In [2]: s = np.array(list(&quot;hello world&quot;)) In [3]: s Out[3]: array(['h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'], dtype='|S1') In [4]: s.nonzero() Out[4]: (array([ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10]),)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-en">list</span>(<span class="pl-s">"hello world"</span>)) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">s</span> <span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-en">array</span>([<span class="pl-s">'h'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'l'</span>, <span class="pl-s">'l'</span>, <span class="pl-s">'o'</span>, <span class="pl-s">' '</span>, <span class="pl-s">'w'</span>, <span class="pl-s">'o'</span>, <span class="pl-s">'r'</span>, <span class="pl-s">'l'</span>, <span class="pl-s">'d'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'|S1'</span>) <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">s</span>.<span class="pl-en">nonzero</span>() <span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: (<span class="pl-en">array</span>([ <span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>, <span class="pl-c1">10</span>]),)</pre></div> </details> <br> Environment: <br> <br> <details> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="name: np2 channels: - conda-forge - defaults dependencies: - appnope=0.1.0=py27_0 - backports.shutil_get_terminal_size=1.0.0=py27_1 - blas=1.1=openblas - ca-certificates=2017.4.17=0 - certifi=2017.4.17=py27_0 - decorator=4.1.1=py27_0 - enum34=1.1.6=py27_1 - ipython=5.4.1=py27_0 - ipython_genutils=0.2.0=py27_0 - libgfortran=3.0.0=0 - ncurses=5.9=10 - numpy=1.13.1=py27_blas_openblas_200 - openblas=0.2.19=2 - openssl=1.0.2l=0 - pathlib2=2.3.0=py27_0 - pexpect=4.2.1=py27_0 - pickleshare=0.7.3=py27_0 - pip=9.0.1=py27_0 - prompt_toolkit=1.0.14=py27_0 - ptyprocess=0.5.2=py27_0 - pygments=2.2.0=py27_0 - python=2.7.13=1 - readline=6.2=0 - scandir=1.5=py27_1 - setuptools=36.2.2=py27_0 - simplegeneric=0.8.1=py27_0 - six=1.10.0=py27_1 - sqlite=3.13.0=1 - tk=8.5.19=1 - traitlets=4.3.2=py27_0 - wcwidth=0.1.7=py27_0 - wheel=0.29.0=py27_0 - zlib=1.2.11=0 - pip: - backports.shutil-get-terminal-size==1.0.0 - ipython-genutils==0.2.0 - prompt-toolkit==1.0.14"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">np2</span> <span class="pl-ent">channels</span>: - <span class="pl-s">conda-forge</span> - <span class="pl-s">defaults</span> <span class="pl-ent">dependencies</span>: - <span class="pl-s">appnope=0.1.0=py27_0</span> - <span class="pl-s">backports.shutil_get_terminal_size=1.0.0=py27_1</span> - <span class="pl-s">blas=1.1=openblas</span> - <span class="pl-s">ca-certificates=2017.4.17=0</span> - <span class="pl-s">certifi=2017.4.17=py27_0</span> - <span class="pl-s">decorator=4.1.1=py27_0</span> - <span class="pl-s">enum34=1.1.6=py27_1</span> - <span class="pl-s">ipython=5.4.1=py27_0</span> - <span class="pl-s">ipython_genutils=0.2.0=py27_0</span> - <span class="pl-s">libgfortran=3.0.0=0</span> - <span class="pl-s">ncurses=5.9=10</span> - <span class="pl-s">numpy=1.13.1=py27_blas_openblas_200</span> - <span class="pl-s">openblas=0.2.19=2</span> - <span class="pl-s">openssl=1.0.2l=0</span> - <span class="pl-s">pathlib2=2.3.0=py27_0</span> - <span class="pl-s">pexpect=4.2.1=py27_0</span> - <span class="pl-s">pickleshare=0.7.3=py27_0</span> - <span class="pl-s">pip=9.0.1=py27_0</span> - <span class="pl-s">prompt_toolkit=1.0.14=py27_0</span> - <span class="pl-s">ptyprocess=0.5.2=py27_0</span> - <span class="pl-s">pygments=2.2.0=py27_0</span> - <span class="pl-s">python=2.7.13=1</span> - <span class="pl-s">readline=6.2=0</span> - <span class="pl-s">scandir=1.5=py27_1</span> - <span class="pl-s">setuptools=36.2.2=py27_0</span> - <span class="pl-s">simplegeneric=0.8.1=py27_0</span> - <span class="pl-s">six=1.10.0=py27_1</span> - <span class="pl-s">sqlite=3.13.0=1</span> - <span class="pl-s">tk=8.5.19=1</span> - <span class="pl-s">traitlets=4.3.2=py27_0</span> - <span class="pl-s">wcwidth=0.1.7=py27_0</span> - <span class="pl-s">wheel=0.29.0=py27_0</span> - <span class="pl-s">zlib=1.2.11=0</span> - <span class="pl-ent">pip</span>: - <span class="pl-s">backports.shutil-get-terminal-size==1.0.0</span> - <span class="pl-s">ipython-genutils==0.2.0</span> - <span class="pl-s">prompt-toolkit==1.0.14</span></pre></div></details>
<p dir="auto">The following table shows the extents of the problem</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x : str sc = np.str_(x) arr = np.array(x, np.str_)"><pre class="notranslate"><span class="pl-s1">x</span> : <span class="pl-s1">str</span> <span class="pl-s1">sc</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">str_</span>(<span class="pl-s1">x</span>) <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">x</span>, <span class="pl-s1">np</span>.<span class="pl-s1">str_</span>)</pre></div> <table role="table"> <thead> <tr> <th><code class="notranslate">x</code></th> <th><code class="notranslate">bool(x)</code></th> <th><code class="notranslate">bool(sc)</code></th> <th><code class="notranslate">bool(arr[()])</code></th> <th><code class="notranslate">bool(arr)</code></th> <th><code class="notranslate">sc.astype(bool)</code></th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">''</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">ValueError</code></td> </tr> <tr> <td><code class="notranslate">'\0'</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">ValueError</code></td> </tr> <tr> <td><code class="notranslate">' '</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">ValueError</code></td> </tr> <tr> <td><code class="notranslate">' \0'</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">False</code></td> <td><code class="notranslate">ValueError</code></td> </tr> <tr> <td><code class="notranslate">'0'</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">False</code></td> </tr> <tr> <td><code class="notranslate">'1'</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> </tr> <tr> <td><code class="notranslate">'\0 '</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">ValueError</code></td> </tr> <tr> <td><code class="notranslate">' \0 '</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">True</code></td> <td><code class="notranslate">ValueError</code></td> </tr> </tbody> </table> <details> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def call_or_exc(f): try: return f() except Exception as e: return e def truthiness(x): x_arr = np.array(x) x_sc = np.unicode_(x) x_sc2 = x_arr[()] return bool(x), bool(x_sc), bool(x_sc2), bool(x_arr), call_or_exc(lambda: x_sc.astype(bool)) def fmt(x): if isinstance(x, str): return repr(x).replace(r'\x00', r'\0') if isinstance(x, Exception): return type(x).__name__ return repr(x) print(' | '.join(&quot;`{}`&quot;.format(x) for x in ['x', 'bool(x)', 'bool(sc)', 'bool(arr[()])', 'bool(arr)', 'sc.astype(bool)'])) print(' | '.join(['--'] * 6)) for val in ['', '\0', ' ', ' \0', '0', '1', '\0 ', ' \0 ']: print(' | '.join(&quot;`{}`&quot;.format(fmt(x)) for x in (val,)+truthiness(val)))"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">call_or_exc</span>(<span class="pl-s1">f</span>): <span class="pl-k">try</span>: <span class="pl-k">return</span> <span class="pl-en">f</span>() <span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">e</span>: <span class="pl-k">return</span> <span class="pl-s1">e</span> <span class="pl-k">def</span> <span class="pl-en">truthiness</span>(<span class="pl-s1">x</span>): <span class="pl-s1">x_arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">x</span>) <span class="pl-s1">x_sc</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">unicode_</span>(<span class="pl-s1">x</span>) <span class="pl-s1">x_sc2</span> <span class="pl-c1">=</span> <span class="pl-s1">x_arr</span>[()] <span class="pl-k">return</span> <span class="pl-en">bool</span>(<span class="pl-s1">x</span>), <span class="pl-en">bool</span>(<span class="pl-s1">x_sc</span>), <span class="pl-en">bool</span>(<span class="pl-s1">x_sc2</span>), <span class="pl-en">bool</span>(<span class="pl-s1">x_arr</span>), <span class="pl-en">call_or_exc</span>(<span class="pl-k">lambda</span>: <span class="pl-s1">x_sc</span>.<span class="pl-en">astype</span>(<span class="pl-s1">bool</span>)) <span class="pl-k">def</span> <span class="pl-en">fmt</span>(<span class="pl-s1">x</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">x</span>, <span class="pl-s1">str</span>): <span class="pl-k">return</span> <span class="pl-en">repr</span>(<span class="pl-s1">x</span>).<span class="pl-en">replace</span>(<span class="pl-s">r'\x00'</span>, <span class="pl-s">r'\0'</span>) <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">x</span>, <span class="pl-v">Exception</span>): <span class="pl-k">return</span> <span class="pl-en">type</span>(<span class="pl-s1">x</span>).<span class="pl-s1">__name__</span> <span class="pl-k">return</span> <span class="pl-en">repr</span>(<span class="pl-s1">x</span>) <span class="pl-en">print</span>(<span class="pl-s">' | '</span>.<span class="pl-en">join</span>(<span class="pl-s">"`{}`"</span>.<span class="pl-en">format</span>(<span class="pl-s1">x</span>) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> [<span class="pl-s">'x'</span>, <span class="pl-s">'bool(x)'</span>, <span class="pl-s">'bool(sc)'</span>, <span class="pl-s">'bool(arr[()])'</span>, <span class="pl-s">'bool(arr)'</span>, <span class="pl-s">'sc.astype(bool)'</span>])) <span class="pl-en">print</span>(<span class="pl-s">' | '</span>.<span class="pl-en">join</span>([<span class="pl-s">'--'</span>] <span class="pl-c1">*</span> <span class="pl-c1">6</span>)) <span class="pl-k">for</span> <span class="pl-s1">val</span> <span class="pl-c1">in</span> [<span class="pl-s">''</span>, <span class="pl-s">'\0'</span>, <span class="pl-s">' '</span>, <span class="pl-s">' \0'</span>, <span class="pl-s">'0'</span>, <span class="pl-s">'1'</span>, <span class="pl-s">'\0 '</span>, <span class="pl-s">' \0 '</span>]: <span class="pl-en">print</span>(<span class="pl-s">' | '</span>.<span class="pl-en">join</span>(<span class="pl-s">"`{}`"</span>.<span class="pl-en">format</span>(<span class="pl-en">fmt</span>(<span class="pl-s1">x</span>)) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> (<span class="pl-s1">val</span>,)<span class="pl-c1">+</span><span class="pl-en">truthiness</span>(<span class="pl-s1">val</span>)))</pre></div> <summary>Generated with...</summary> </details> <p dir="auto">The differences come down to:</p> <ul dir="auto"> <li><code class="notranslate">bool(arr[()])</code> - indexing string arrays causes trailing nulls to be truncated. This is unavoidable.</li> <li><code class="notranslate">bool(arr)</code> - has special handling to treat spaces as falsy. This seems unpythonic, since that's not how <code class="notranslate">str.__bool__</code> behaves - are we stuck with it</li> <li><code class="notranslate">arr.astype(bool)</code> - treated as <code class="notranslate">arr.astype(int).astype(bool)</code>, which seems bizarre</li> </ul>
1
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Zanthras/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Zanthras">@Zanthras</a> on 2016-08-09T18:06:24Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">networking/ios_config</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Fully default</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ansible is running off a RHEL6.8 system</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">IOS_config "replace: block" does not replace the block when there are no parents defined.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Existing config:<br> access-list 1 remark #### This line will be sent ####<br> access-list 1 remark ### This line wont be sent ###</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tasks: - name: Block replace failure ios_config: provider: &quot;{{ provider }}&quot; authorize: yes replace: block match: line lines: - &quot;access-list 1 remark ### This line will be sent ###&quot; - &quot;access-list 1 remark ### This line wont be sent ###&quot; before: - &quot;no access-list 1&quot;"><pre class="notranslate"><code class="notranslate"> tasks: - name: Block replace failure ios_config: provider: "{{ provider }}" authorize: yes replace: block match: line lines: - "access-list 1 remark ### This line will be sent ###" - "access-list 1 remark ### This line wont be sent ###" before: - "no access-list 1" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">access-list 1 remark ### This line will be sent ###<br> access-list 1 remark ### This line wont be sent ###</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">access-list 1 remark ### This line will be sent ###</p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170232444" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/4368" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/4368/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/4368">ansible/ansible-modules-core#4368</a></p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">apt_repository_module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 14.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I tried to add ppa on ubuntu 14.04 server but getting "invalid repository" error. But when I try to add it from the server cli, it works fine.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Add PHP repo apt_repository: repo: 'ppa:ondrej/php'"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Add PHP repo</span> <span class="pl-ent">apt_repository</span>: <span class="pl-ent">repo</span>: <span class="pl-s"><span class="pl-pds">'</span>ppa:ondrej/php<span class="pl-pds">'</span></span></pre></div> <p dir="auto">Error output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [ip]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Invalid repository string: ppa:ondrej/php&quot;}"><pre class="notranslate"><code class="notranslate">fatal: [ip]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Invalid repository string: ppa:ondrej/php"} </code></pre></div>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Can't describe. Just found devtools Components tab w/ this error 🤷🏻‍♂️</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.1-f160547f47</p> <p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21226:35)<br> at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21242:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28678:63<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22934:18)<br> at vi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13515:76)<br> at ui (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13506:10)<br> at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16077:86)<br> at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br> at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22629:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3003:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28429:47)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28921:3)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27558:3)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33383:52)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Open React Devtool</li> <li>Select the Component tab</li> <li>Got below error</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19359:35)<br> at Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19376:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26594:18<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21229:18)<br> at li (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11802:76)<br> at ki (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11793:10)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14433:86)<br> at bk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13779:11)<br> at ak (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13768:5)<br> at Sj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13750:7)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20924:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:2786:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26368:45)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26848:23)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25520:23)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30926:50)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
1
<p dir="auto">Hey!</p> <p dir="auto">Is there a way to pass in a sourcemap to <code class="notranslate">createBundleRenderer()</code>? There's an options argument, but it isn't documented (happy to write these docs if you point me towards the correct bit of source: I couldn't find it).</p> <p dir="auto">Currently, I'm getting this error, which isn't too understandable:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: window is not defined at e.__esModule.default (__vue_ssr_bundle__:1:478) at __vue_ssr_bundle__:1:1052 at r.(anonymous function).exports (__vue_ssr_bundle__:1:146) at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:1:285) at /Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6152:21 at runInVm (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6144:10) at Object.renderToStream (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6175:9) at server.get (/Users/callumacrae/Sites/samknows/website-vue/server/index.js:29:35) at Layer.handle [as handle_request] (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/layer.js:95:5) at next (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/route.js:131:13)"><pre class="notranslate"><code class="notranslate">ReferenceError: window is not defined at e.__esModule.default (__vue_ssr_bundle__:1:478) at __vue_ssr_bundle__:1:1052 at r.(anonymous function).exports (__vue_ssr_bundle__:1:146) at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:1:285) at /Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6152:21 at runInVm (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6144:10) at Object.renderToStream (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6175:9) at server.get (/Users/callumacrae/Sites/samknows/website-vue/server/index.js:29:35) at Layer.handle [as handle_request] (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/layer.js:95:5) at next (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/route.js:131:13) </code></pre></div>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.x.x</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto">Because it is a ssr issue and hard to provide a running demo online, please see <strong>Steps to reproduce</strong></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>clone the <a href="https://github.com/vuejs/vue-hackernews-2.0.git">https://github.com/vuejs/vue-hackernews-2.0.git</a> repostory</li> <li>edit file <code class="notranslate">src/\components/ItemList.vue</code> to cause an error. For example:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// ... import Spinner from './Spinner.vue' import Item from './Item.vue' import { watchList } from '../store/api' // abc is a undeclared variable that can cause a ReferenceError console.log(abc) // ... "><pre class="notranslate"><code class="notranslate">// ... import Spinner from './Spinner.vue' import Item from './Item.vue' import { watchList } from '../store/api' // abc is a undeclared variable that can cause a ReferenceError console.log(abc) // ... </code></pre></div> <ul dir="auto"> <li>then run <code class="notranslate">npm run build</code>, <code class="notranslate">npm run start</code> in command line</li> <li>open browser and navigate to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></li> <li>the command line will report some error info as below:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error during render : / ReferenceError: abc is not defined at Object.module.exports.exports.default.props (__vue_ssr_bundle__:388:13) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.__vue_styles__ (__vue_ssr_bundle__:994:19) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.module.exports (__vue_ssr_bundle__:866:83) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:650:80) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.exports.default.name (__vue_ssr_bundle__:224:66) at __webpack_require__ (__vue_ssr_bundle__:21:30)"><pre class="notranslate"><code class="notranslate">error during render : / ReferenceError: abc is not defined at Object.module.exports.exports.default.props (__vue_ssr_bundle__:388:13) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.__vue_styles__ (__vue_ssr_bundle__:994:19) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.module.exports (__vue_ssr_bundle__:866:83) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:650:80) at __webpack_require__ (__vue_ssr_bundle__:21:30) at Object.module.exports.exports.default.name (__vue_ssr_bundle__:224:66) at __webpack_require__ (__vue_ssr_bundle__:21:30) </code></pre></div> <h3 dir="auto">What is Expected?</h3> <p dir="auto">The error info in the command line should include the specific file path and line number, for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: abc is not defined at src/components/ItemList.vue (26:13) ..."><pre class="notranslate"><code class="notranslate">ReferenceError: abc is not defined at src/components/ItemList.vue (26:13) ... </code></pre></div> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Error info dose not include the file path and line number that cause the error to produce..</p> <p dir="auto">I know it is the bundle render that cause the error hard to locate. And is there any solution, like soucemap, that can solve this debug issuse with bundle render?</p>
1
<p dir="auto">Gentlemen! I want to filter multidimensional signal with 1D convolutional filter using <code class="notranslate">scipy.signal.fftconvolve</code> (along specified axis). Cannot you such an option to specify axes to filter to <code class="notranslate">scipy.signal.fftconvolve</code>?</p>
<p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7553658" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/337" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/337/hovercard?comment_id=11382961&amp;comment_type=issue_comment" href="https://github.com/scipy/scipy/pull/337#issuecomment-11382961">#337 (comment)</a>, fftconvolve/convolve/correlate/etc could use an axis= parameter. An example application is computing the CWT in one step. <a href="https://github.com/nipy/nitime/blob/master/nitime/utils.py#L973">nitime's version of fftconvolve</a> has this.</p>
1
<p dir="auto">Would love it if Launcher could fully replace WIN + S... thoughts?</p>
<p dir="auto">Currently, in Windows 10 (1903), when clicking Win+R, it opens the "Run" window command.</p> <p dir="auto">This functionality is very limited - the user must remember the exact command, or the exact file. No auto-correct, and if the user is wrong, it only brings an error message that says the file or command was not found.</p> <p dir="auto">Can you please add a tool which improves this window, at least with auto-correct?</p> <p dir="auto">crutkas edits:</p> <ul dir="auto"> <li><a href="https://github.com/microsoft/PowerToys/wiki/Launcher">https://github.com/microsoft/PowerToys/wiki/Launcher</a> is the spec</li> <li>remember to xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442208482" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/51" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/51/hovercard" href="https://github.com/microsoft/PowerToys/issues/51">#51</a> as it was listed as a dup</li> </ul>
1
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">package.json :</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;xxx&quot;, &quot;files&quot;: [&quot;./dist/&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"name"</span>: <span class="pl-s">"xxx"</span><span class="pl-kos">,</span> <span class="pl-s">"files"</span>: <span class="pl-kos">[</span><span class="pl-s">"./dist/"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">running <code class="notranslate">npm publish</code>, the dist will not be packed.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">the dist should be packed.</p> <p dir="auto">I just found a workaround: <code class="notranslate">"files": ["dist/"]</code></p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>In this environment...</li> <li>With this config...</li> <li>Run '...'</li> <li>See error...</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.5.5</li> <li>Node.js: v16.15.0</li> <li>OS Name: macos</li> <li>System Model Name:</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; copy and paste output from `npm config ls` here"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> copy and paste output from `npm config ls` here</span></pre></div>
<h3 dir="auto">Is there an existing issue for this?</h3> <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 existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When using leading periods in paths within the <code class="notranslate">files</code> section, the path is not included in publishing. This feels very inconsistent from paths in <code class="notranslate">exports</code> maps and other places.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">All relative paths defined in <code class="notranslate">package.json</code> content should consistently allow leading periods.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Create a project to publish with files in a <code class="notranslate">lib</code> folder.</li> <li>Create a <code class="notranslate">package.json</code> which includes the <code class="notranslate">lib</code> folder in the <code class="notranslate">files</code> section:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;files&quot;: [ &quot;./lib&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"files"</span>: <span class="pl-kos">[</span> <span class="pl-s">"./lib"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <ol start="3" dir="auto"> <li>Run <code class="notranslate">npm publish --dry</code> to see what gets published.</li> <li>Remove the leading period in the <code class="notranslate">./lib</code> path and re-run the publish dryrun. Notice more files.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.8.0</li> <li>Node.js: 14.17.6</li> <li>OS Name: MacOS</li> <li>System Model Name: Macbook Pro M1</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; node bin location = /usr/local/bin/node ; node version = v14.17.6 ; npm local prefix = /Users/dzearing/git/ori ; npm version = 8.8.0 ; cwd = /Users/dzearing/git/ori/js/packages/api ; HOME = /Users/dzearing"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/local/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> node version = v14.17.6</span> <span class="pl-c"><span class="pl-c">;</span> npm local prefix = /Users/dzearing/git/ori</span> <span class="pl-c"><span class="pl-c">;</span> npm version = 8.8.0</span> <span class="pl-c"><span class="pl-c">;</span> cwd = /Users/dzearing/git/ori/js/packages/api</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /Users/dzearing</span></pre></div>
1
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">** operator raises a sparse matrix to a power, but it is element-wise power when we use it on .A of the same sparse matrix.<br> I am not sure this is a bug in numpy or scipy, or if it is intentional.<br> It at least looks like an inconsistency between numpy arrays and scipy.sparse</p> <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 scipy.sparse as sp someMatrix = sp.csc_matrix(([1, -1], ([0, 1], [1, 0])), shape=(2, 2)) # print the matrix print(someMatrix.A) # raises the matrix to a power print((someMatrix**2).A) # element-wise power print((someMatrix.A)**2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">as</span> <span class="pl-s1">sp</span> <span class="pl-s1">someMatrix</span> <span class="pl-c1">=</span> <span class="pl-s1">sp</span>.<span class="pl-en">csc_matrix</span>(([<span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>], ([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">0</span>])), <span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>)) <span class="pl-c"># print the matrix</span> <span class="pl-en">print</span>(<span class="pl-s1">someMatrix</span>.<span class="pl-v">A</span>) <span class="pl-c"># raises the matrix to a power</span> <span class="pl-en">print</span>((<span class="pl-s1">someMatrix</span><span class="pl-c1">**</span><span class="pl-c1">2</span>).<span class="pl-v">A</span>) <span class="pl-c"># element-wise power</span> <span class="pl-en">print</span>((<span class="pl-s1">someMatrix</span>.<span class="pl-v">A</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>)</pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="No error messages."><pre class="notranslate">No error messages.</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.8.0/1.22.1/3.10.1</p>
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">Currently, applying the <code class="notranslate">**</code> operator to a sparse array implements the <code class="notranslate">numpy.linalg.matrix_power</code> function. This is not compatible with the <code class="notranslate">np.array</code> implementation of <code class="notranslate">**</code>, which does element-wise power. This should be fixed as part of the migration from sparse "matrices" to sparse "arrays". Additionally, the <code class="notranslate">matrix_power</code> function should then also be included in the <code class="notranslate">sparse.linalg</code> package.</p> <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="from scipy.sparse import csr_array, random A = csr_array(random(5,5,0.1)) print(A.A) print((A**2).A) #This does matrix_power, eventhough it is initialised as a sparse array (not a matrix) print((A.A)**2) #This does element-wise power, since it is a numpy array"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">import</span> <span class="pl-s1">csr_array</span>, <span class="pl-s1">random</span> <span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-en">csr_array</span>(<span class="pl-en">random</span>(<span class="pl-c1">5</span>,<span class="pl-c1">5</span>,<span class="pl-c1">0.1</span>)) <span class="pl-en">print</span>(<span class="pl-v">A</span>.<span class="pl-v">A</span>) <span class="pl-en">print</span>((<span class="pl-v">A</span><span class="pl-c1">**</span><span class="pl-c1">2</span>).<span class="pl-v">A</span>) <span class="pl-c">#This does matrix_power, eventhough it is initialised as a sparse array (not a matrix)</span> <span class="pl-en">print</span>((<span class="pl-v">A</span>.<span class="pl-v">A</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-c">#This does element-wise power, since it is a numpy array</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate">N/A</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.8.0 1.20.3 sys.version_info(major=3, minor=9, micro=7, releaselevel='final', serial=0)</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> I am upgrading to babel v7.0.0. I am using mocha for my unit tests, v6.1.4.</p> <p dir="auto">In <code class="notranslate">mocha.opts</code> I have specified <code class="notranslate">@babel/register</code> as the compiler and <code class="notranslate">@babel/polyfill</code> for the necessary polyfills.</p> <p dir="auto">My tests run fine except when spreading objects. Everywhere that an object is being spread in the tests I encounter this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Invalid attempt to spread non-iterable instance"><pre class="notranslate"><code class="notranslate">TypeError: Invalid attempt to spread non-iterable instance </code></pre></div> <p dir="auto">This is also impacting my test reporter, mocha-multi. The stack trace for that error takes me to an object-spread.</p> <p dir="auto">I have tried adding the <code class="notranslate">@babel/plugin-proposal-object-rest-spread</code> as a plugin in <code class="notranslate">.babelrc</code> for my test env with no success.</p> <p dir="auto"><strong>Expected behavior/code</strong><br> I expect to be able to execute my unit tests, and have babel compile all the latest js features, like object-spread.</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;@babel/preset-react&quot;, &quot;@babel/preset-env&quot;, &quot;react-app&quot;], &quot;env&quot;: { &quot;development&quot;: { &quot;plugins&quot;: [&quot;react-hot-loader/babel&quot;] }, &quot;test&quot;: { &quot;plugins&quot;: [ [&quot;babel-plugin-webpack-alias-7&quot;, { &quot;config&quot;: &quot;./build_config/webpack.common.js&quot; }], &quot;istanbul&quot;, &quot;dynamic-import-node&quot;, &quot;@babel/plugin-proposal-object-rest-spread&quot; ] }, &quot;production&quot;: { &quot;plugins&quot;: [&quot;transform-react-remove-prop-types&quot;, [&quot;recharts&quot;]] } } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-s">"react-app"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"env"</span>: <span class="pl-kos">{</span> <span class="pl-s">"development"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"react-hot-loader/babel"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"test"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"babel-plugin-webpack-alias-7"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"config"</span>: <span class="pl-s">"./build_config/webpack.common.js"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"istanbul"</span><span class="pl-kos">,</span> <span class="pl-s">"dynamic-import-node"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-object-rest-spread"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"production"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"transform-react-remove-prop-types"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"recharts"</span><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">mocha.opts</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--require @babel/register --require ./test/compilers/index.js --require @babel/polyfill --require test/enzymeSetup.js --recursive --reporter mocha-multi --reporter-options spec=-,mocha-sonar-generic-test-coverage=coverage/sonar-unit.xml,mocha-jenkins-reporter=-,mocha-duplicate-reporter=- --colors --inline-diffs test/**/*Test.{js,jsx}"><pre class="notranslate"><code class="notranslate">--require @babel/register --require ./test/compilers/index.js --require @babel/polyfill --require test/enzymeSetup.js --recursive --reporter mocha-multi --reporter-options spec=-,mocha-sonar-generic-test-coverage=coverage/sonar-unit.xml,mocha-jenkins-reporter=-,mocha-duplicate-reporter=- --colors --inline-diffs test/**/*Test.{js,jsx} </code></pre></div> <p dir="auto">scripts</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;test&quot;: &quot;cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary --reporter=text mocha&quot;, &quot;test:nc&quot;: &quot;cross-env NODE_ENV=test --reporter=text-summary --reporter=text --reporter=html mocha&quot;,"><pre class="notranslate"><code class="notranslate"> "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text-summary --reporter=text mocha", "test:nc": "cross-env NODE_ENV=test --reporter=text-summary --reporter=text --reporter=html mocha", </code></pre></div> <p dir="auto">package.json</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;@babel/core&quot;: &quot;7.4.4&quot;, &quot;@babel/polyfill&quot;: &quot;^7.4.4&quot;, &quot;@babel/preset-env&quot;: &quot;^7.4.4&quot;, &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;, &quot;@babel/register&quot;: &quot;^7.4.4&quot;, &quot;autoprefixer&quot;: &quot;^7.1.2&quot;, &quot;babel-eslint&quot;: &quot;^9.0.0&quot;, &quot;babel-loader&quot;: &quot;^8.0.5&quot;, &quot;babel-plugin-dynamic-import-node&quot;: &quot;^2.2.0&quot;, &quot;babel-plugin-istanbul&quot;: &quot;^5.0.1&quot;, &quot;babel-plugin-recharts&quot;: &quot;^1.1.0&quot;, &quot;babel-plugin-transform-react-remove-prop-types&quot;: &quot;^0.4.6&quot;, &quot;babel-plugin-webpack-alias-7&quot;: &quot;^0.1.1&quot;, &quot;babel-preset-react-app&quot;: &quot;^8.0.0&quot;, &quot;chai&quot;: &quot;^4.2.0&quot;, &quot;chai-as-promised&quot;: &quot;^7.1.1&quot;, &quot;copy-webpack-plugin&quot;: &quot;^5.0.3&quot;, &quot;copyfiles&quot;: &quot;^2.1.0&quot;, &quot;cross-env&quot;: &quot;^5.0.1&quot;, &quot;css-loader&quot;: &quot;^2.1.1&quot;, &quot;dotenv&quot;: &quot;^8.0.0&quot;, &quot;enzyme&quot;: &quot;^3.8.0&quot;, &quot;enzyme-adapter-react-16&quot;: &quot;^1.6.0&quot;, &quot;eslint&quot;: &quot;^5.15.3&quot;, &quot;eslint-config-airbnb&quot;: &quot;^17.1.0&quot;, &quot;eslint-config-prettier&quot;: &quot;^3.1.0&quot;, &quot;eslint-import-resolver-webpack&quot;: &quot;^0.10.1&quot;, &quot;eslint-loader&quot;: &quot;^2.1.1&quot;, &quot;eslint-plugin-import&quot;: &quot;^2.14.0&quot;, &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.1.1&quot;, &quot;eslint-plugin-prettier&quot;: &quot;^2.6.2&quot;, &quot;eslint-plugin-react&quot;: &quot;^7.11.0&quot;, &quot;eslint-plugin-react-hooks&quot;: &quot;^1.0.1&quot;, &quot;eslint-plugin-testcafe&quot;: &quot;^0.2.1&quot;, &quot;extract-text-webpack-plugin&quot;: &quot;^4.0.0-alpha.0&quot;, &quot;file-loader&quot;: &quot;^3.0.1&quot;, &quot;html-webpack-plugin&quot;: &quot;^3.2.0&quot;, &quot;jsdom&quot;: &quot;9.0.0&quot;, &quot;mocha&quot;: &quot;^6.1.4&quot;, &quot;mocha-duplicate-reporter&quot;: &quot;^0.2.1&quot;, &quot;mocha-jenkins-reporter&quot;: &quot;^0.4.1&quot;, &quot;mocha-multi&quot;: &quot;^1.1.0&quot;, &quot;mocha-sonar-generic-test-coverage&quot;: &quot;^0.0.6&quot;, &quot;node-sass&quot;: &quot;^4.9.3&quot;, &quot;null-loader&quot;: &quot;^1.0.0&quot;, &quot;nyc&quot;: &quot;^13.0.1&quot;, &quot;postcss-loader&quot;: &quot;^2.0.6&quot;, &quot;preload-webpack-plugin&quot;: &quot;^2.3.0&quot;, &quot;process-finder&quot;: &quot;1.0.0&quot;, &quot;react-hot-loader&quot;: &quot;^4.8.4&quot;, &quot;redux-mock-store&quot;: &quot;^1.2.2&quot;, &quot;retire&quot;: &quot;^2.0.2&quot;, &quot;rimraf&quot;: &quot;^2.5.4&quot;, &quot;sass-loader&quot;: &quot;^6.0.6&quot;, &quot;script-ext-html-webpack-plugin&quot;: &quot;^2.1.3&quot;, &quot;semver&quot;: &quot;^5.3.0&quot;, &quot;simple-mock&quot;: &quot;^0.7.3&quot;, &quot;sinon&quot;: &quot;^7.2.2&quot;, &quot;style-loader&quot;: &quot;^0.20.2&quot;, &quot;stylelint&quot;: &quot;^9.10.1&quot;, &quot;stylelint-config-standard&quot;: &quot;^18.0.0&quot;, &quot;testcafe&quot;: &quot;^1.0.0&quot;, &quot;tree-kill&quot;: &quot;1.2.0&quot;, &quot;url-join&quot;: &quot;^4.0.0&quot;, &quot;url-loader&quot;: &quot;^1.1.2&quot;, &quot;webpack&quot;: &quot;^4.30.0&quot;, &quot;webpack-bundle-analyzer&quot;: &quot;^3.3.2&quot;, &quot;webpack-cli&quot;: &quot;^3.3.1&quot;, &quot;webpack-dev-middleware&quot;: &quot;^3.6.2&quot;, &quot;webpack-dev-server&quot;: &quot;^3.3.1&quot;, &quot;webpack-merge&quot;: &quot;^4.2.1&quot;"><pre class="notranslate"><code class="notranslate"> "@babel/core": "7.4.4", "@babel/polyfill": "^7.4.4", "@babel/preset-env": "^7.4.4", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.4.4", "autoprefixer": "^7.1.2", "babel-eslint": "^9.0.0", "babel-loader": "^8.0.5", "babel-plugin-dynamic-import-node": "^2.2.0", "babel-plugin-istanbul": "^5.0.1", "babel-plugin-recharts": "^1.1.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.6", "babel-plugin-webpack-alias-7": "^0.1.1", "babel-preset-react-app": "^8.0.0", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "copy-webpack-plugin": "^5.0.3", "copyfiles": "^2.1.0", "cross-env": "^5.0.1", "css-loader": "^2.1.1", "dotenv": "^8.0.0", "enzyme": "^3.8.0", "enzyme-adapter-react-16": "^1.6.0", "eslint": "^5.15.3", "eslint-config-airbnb": "^17.1.0", "eslint-config-prettier": "^3.1.0", "eslint-import-resolver-webpack": "^0.10.1", "eslint-loader": "^2.1.1", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jsx-a11y": "^6.1.1", "eslint-plugin-prettier": "^2.6.2", "eslint-plugin-react": "^7.11.0", "eslint-plugin-react-hooks": "^1.0.1", "eslint-plugin-testcafe": "^0.2.1", "extract-text-webpack-plugin": "^4.0.0-alpha.0", "file-loader": "^3.0.1", "html-webpack-plugin": "^3.2.0", "jsdom": "9.0.0", "mocha": "^6.1.4", "mocha-duplicate-reporter": "^0.2.1", "mocha-jenkins-reporter": "^0.4.1", "mocha-multi": "^1.1.0", "mocha-sonar-generic-test-coverage": "^0.0.6", "node-sass": "^4.9.3", "null-loader": "^1.0.0", "nyc": "^13.0.1", "postcss-loader": "^2.0.6", "preload-webpack-plugin": "^2.3.0", "process-finder": "1.0.0", "react-hot-loader": "^4.8.4", "redux-mock-store": "^1.2.2", "retire": "^2.0.2", "rimraf": "^2.5.4", "sass-loader": "^6.0.6", "script-ext-html-webpack-plugin": "^2.1.3", "semver": "^5.3.0", "simple-mock": "^0.7.3", "sinon": "^7.2.2", "style-loader": "^0.20.2", "stylelint": "^9.10.1", "stylelint-config-standard": "^18.0.0", "testcafe": "^1.0.0", "tree-kill": "1.2.0", "url-join": "^4.0.0", "url-loader": "^1.1.2", "webpack": "^4.30.0", "webpack-bundle-analyzer": "^3.3.2", "webpack-cli": "^3.3.1", "webpack-dev-middleware": "^3.6.2", "webpack-dev-server": "^3.3.1", "webpack-merge": "^4.2.1" </code></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v7.0.0</li> <li>Node/npm version: Node v10.15.0 - npm v6.7.0</li> <li>OS: OSX 10.14.3</li> <li>Monorepo: no</li> <li>How you are using Babel: @babel/register</li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24981281/57184532-85ffbb80-6e71-11e9-8ed3-bed7e7b585c3.png"><img width="1082" alt="Screen Shot 2019-05-04 at 1 34 38 PM" src="https://user-images.githubusercontent.com/24981281/57184532-85ffbb80-6e71-11e9-8ed3-bed7e7b585c3.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Is this a bug report or feature request?</h3> <p dir="auto">More a discussion which may leads to a feature request in <code class="notranslate">@babel/preset-env</code>.</p> <h3 dir="auto">Summary</h3> <p dir="auto">The <code class="notranslate">useBuiltIns</code> features is great but its usage may not be appropriate for libraries because they affect the global scope.</p> <p dir="auto"><code class="notranslate">@babel/plugin-transform-runtime</code> approach is nice but it does not currently supports targets like <code class="notranslate">@babel/preset-env</code>.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var a = new Promise();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ presets: [ [&quot;env&quot;, { targets: { node: '6' } }] ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"env"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">targets</span>: <span class="pl-kos">{</span> <span class="pl-c1">node</span>: <span class="pl-s">'6'</span> <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> <h3 dir="auto">Current Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import &quot;core-js/modules/es6.promise&quot;; var a = new Promise();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"core-js/modules/es6.promise"</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import _promise from &quot;core-js/es6.promise&quot;; var a = new _promise();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">_promise</span> <span class="pl-k">from</span> <span class="pl-s">"core-js/es6.promise"</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">_promise</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Possible Solution</h3> <p dir="auto">Maybe a new setting in <code class="notranslate">@babel/preset-env</code> which would act similarly to <code class="notranslate">useBuiltIns</code> but without polluting the global scope, like <code class="notranslate">@babel/plugin-transform-runtime</code> does.</p> <h3 dir="auto">Context</h3> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>7.0.0-beta.38</td> </tr> <tr> <td>Babylon</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>npm</td> <td></td> </tr> <tr> <td>Operating System</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">Should this program work?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main type T interface { m() interface {T} } type foo struct { } func (f *foo) m() interface {T} { return &amp;foo{} } func main() { var t T t = &amp;foo{} t.m() }"><pre class="notranslate"><code class="notranslate">package main type T interface { m() interface {T} } type foo struct { } func (f *foo) m() interface {T} { return &amp;foo{} } func main() { var t T t = &amp;foo{} t.m() } </code></pre></div> <p dir="auto">It seems to compile but panics when run:<br> <a href="http://play.golang.org/p/swxTnFlwQI" rel="nofollow">http://play.golang.org/p/swxTnFlwQI</a></p> <p dir="auto">By contrast this program works fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main type T interface { m() T } type foo struct { } func (f *foo) m() T { return &amp;foo{} } func main() { var t T t = &amp;foo{} t.m() }"><pre class="notranslate"><code class="notranslate">package main type T interface { m() T } type foo struct { } func (f *foo) m() T { return &amp;foo{} } func main() { var t T t = &amp;foo{} t.m() } </code></pre></div> <p dir="auto"><a href="http://play.golang.org/p/Bxnf72xPsn" rel="nofollow">http://play.golang.org/p/Bxnf72xPsn</a></p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?</li> </ol> <p dir="auto"><code class="notranslate">go1.6.2</code></p> <ol dir="auto"> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;linux&quot; GOOS=&quot;linux&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" </code></pre></div> <ol dir="auto"> <li>What did you do?</li> </ol> <p dir="auto">I tried to define an interface that expects itself as the argument of one of its methods:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type Nestable interface { AddChild(interface{Nestable}) }"><pre class="notranslate"><code class="notranslate">type Nestable interface { AddChild(interface{Nestable}) } </code></pre></div> <p dir="auto"><a href="https://play.golang.org/p/oB091DHIS2" rel="nofollow">https://play.golang.org/p/oB091DHIS2</a></p> <ol dir="auto"> <li>What did you expect to see?</li> </ol> <p dir="auto">I would expect it to simply look for the desired signature of the argument passed in and accept it as valid</p> <ol dir="auto"> <li>What did you see instead?</li> </ol> <p dir="auto">It seems it recursively walk the full interface definition so it enters som kind of loop</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="panic: interface conversion: *main.TreeNode is not interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild&lt;...&gt; }) }) }) }) }) }: missing method AddChild"><pre class="notranslate"><code class="notranslate">panic: interface conversion: *main.TreeNode is not interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild(interface { AddChild&lt;...&gt; }) }) }) }) }) }: missing method AddChild </code></pre></div>
1
<p dir="auto">Errors for use of non stable APIs are non-obvious. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run --allow-read --allow-write main.ts Compile file:///dev/deno/main.ts Download https://deno.land/[email protected]/fs/copy.ts Download https://deno.land/[email protected]/fs/ensure_dir.ts Download https://deno.land/[email protected]/fs/_util.ts error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/[email protected]/fs/copy.ts:90:16"><pre class="notranslate"><code class="notranslate">$ deno run --allow-read --allow-write main.ts Compile file:///dev/deno/main.ts Download https://deno.land/[email protected]/fs/copy.ts Download https://deno.land/[email protected]/fs/ensure_dir.ts Download https://deno.land/[email protected]/fs/_util.ts error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/[email protected]/fs/copy.ts:90:16 </code></pre></div> <p dir="auto">Is there a way that we could include the unstable types at runtime where they could be checked (but not used) when errors of type <code class="notranslate">Property xyz does not exist...</code> occur to provide a more helpful error message?</p> <p dir="auto">That would allow us to output something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ deno run --allow-read --allow-write main.ts Compile file:///dev/deno/main.ts Download https://deno.land/[email protected]/fs/copy.ts Download https://deno.land/[email protected]/fs/ensure_dir.ts Download https://deno.land/[email protected]/fs/_util.ts error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'utime' is an unstable property of Deno. Add the --unstable flag to enable use. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/[email protected]/fs/copy.ts:90:16"><pre class="notranslate"><code class="notranslate">$ deno run --allow-read --allow-write main.ts Compile file:///dev/deno/main.ts Download https://deno.land/[email protected]/fs/copy.ts Download https://deno.land/[email protected]/fs/ensure_dir.ts Download https://deno.land/[email protected]/fs/_util.ts error: TS2339 [ERROR]: Property 'utime' does not exist on type 'typeof Deno'. 'utime' is an unstable property of Deno. Add the --unstable flag to enable use. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/[email protected]/fs/copy.ts:90:16 </code></pre></div>
<p dir="auto">I'm trying the following script and I get a few errors.</p> <p dir="auto">index.ts</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { exists } from &quot;https://deno.land/std/fs/mod.ts&quot;; const found = await exists('/folder'); console.log('Found:', found);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">exists</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/fs/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">exists</span><span class="pl-kos">(</span><span class="pl-s">'/folder'</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">'Found:'</span><span class="pl-kos">,</span> <span class="pl-s1">found</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error TS2339: Property 'utime' does not exist on type 'typeof Deno'. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/std/fs/copy.ts:90:16 error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'. Deno.utimeSync(dest, statInfo.atime, statInfo.mtime); ~~~~~~~~~ at https://deno.land/std/fs/copy.ts:101:10 error TS2339: Property 'symlink' does not exist on type 'typeof Deno'. await Deno.symlink(originSrcFilePath, dest, type); ~~~~~~~ at https://deno.land/std/fs/copy.ts:114:14 error TS2339: Property 'utime' does not exist on type 'typeof Deno'. await Deno.utime(dest, statInfo.atime, statInfo.mtime); ~~~~~ at https://deno.land/std/fs/copy.ts:119:16 error TS2339: Property 'symlinkSync' does not exist on type 'typeof Deno'. Deno.symlinkSync(originSrcFilePath, dest, type); ~~~~~~~~~~~ at https://deno.land/std/fs/copy.ts:132:8 error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'. Deno.utimeSync(dest, statInfo.atime, statInfo.mtime); ~~~~~~~~~ at https://deno.land/std/fs/copy.ts:137:10 error TS2339: Property 'utime' does not exist on type 'typeof Deno'. await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime); ~~~~~ at https://deno.land/std/fs/copy.ts:157:16 error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'. Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime); ~~~~~~~~~ at https://deno.land/std/fs/copy.ts:185:10 error TS2339: Property 'link' does not exist on type 'typeof Deno'. await Deno.link(src, dest); ~~~~ at https://deno.land/std/fs/ensure_link.ts:28:14 error TS2339: Property 'linkSync' does not exist on type 'typeof Deno'. Deno.linkSync(src, dest); ~~~~~~~~ at https://deno.land/std/fs/ensure_link.ts:52:8 error TS2339: Property 'symlink' does not exist on type 'typeof Deno'. await Deno.symlink(src, dest, srcFilePathType); ~~~~~~~ at https://deno.land/std/fs/ensure_symlink.ts:31:14 error TS2339: Property 'symlinkSync' does not exist on type 'typeof Deno'. Deno.symlinkSync(src, dest, srcFilePathType); ~~~~~~~~~~~ at https://deno.land/std/fs/ensure_symlink.ts:58:8 Found 12 errors."><pre class="notranslate">error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.utime(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~ at https://deno.land/std/fs/copy.ts:90:16 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.utimeSync(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~~ at https://deno.land/std/fs/copy.ts:101:10 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlink<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.symlink(originSrcFilePath, dest, type)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~ at https://deno.land/std/fs/copy.ts:114:14 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.utime(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~ at https://deno.land/std/fs/copy.ts:119:16 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlinkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.symlinkSync(originSrcFilePath, dest, type)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~~~~ at https://deno.land/std/fs/copy.ts:132:8 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.utimeSync(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~~ at https://deno.land/std/fs/copy.ts:137:10 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~ at https://deno.land/std/fs/copy.ts:157:16 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~~ at https://deno.land/std/fs/copy.ts:185:10 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>link<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.link(src, dest)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~ at https://deno.land/std/fs/ensure_link.ts:28:14 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>linkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.linkSync(src, dest)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~ at https://deno.land/std/fs/ensure_link.ts:52:8 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlink<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. await Deno.symlink(src, dest, srcFilePathType)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~ at https://deno.land/std/fs/ensure_symlink.ts:31:14 error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlinkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>. Deno.symlinkSync(src, dest, srcFilePathType)<span class="pl-k">;</span> <span class="pl-k">~</span>~~~~~~~~~~ at https://deno.land/std/fs/ensure_symlink.ts:58:8 Found 12 errors.</pre></div> <p dir="auto">deno 1.0.0-rc1<br> v8 8.2.308<br> typescript 3.8.3</p>
1
<p dir="auto">MRE:</p> <blockquote> <p dir="auto">[email protected]</p> </blockquote> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; methods(show); julia&gt; length(methods(show)) 304 julia&gt; @time methods(show); 0.000278 seconds (966 allocations: 46.531 KiB)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">methods</span>(show); julia<span class="pl-k">&gt;</span> <span class="pl-c1">length</span>(<span class="pl-c1">methods</span>(show)) <span class="pl-c1">304</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@time</span> <span class="pl-c1">methods</span>(show); <span class="pl-c1">0.000278</span> seconds (<span class="pl-c1">966</span> allocations<span class="pl-k">:</span> <span class="pl-c1">46.531</span> KiB)</pre></div> <blockquote> <p dir="auto">julia@master</p> </blockquote> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; methods(show); julia&gt; length(methods(show)) 314 julia&gt; @time methods(show); 0.022454 seconds (14.80 k allocations: 812.578 KiB)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">methods</span>(show); julia<span class="pl-k">&gt;</span> <span class="pl-c1">length</span>(<span class="pl-c1">methods</span>(show)) <span class="pl-c1">314</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">@time</span> <span class="pl-c1">methods</span>(show); <span class="pl-c1">0.022454</span> seconds (<span class="pl-c1">14.80</span> k allocations<span class="pl-k">:</span> <span class="pl-c1">812.578</span> KiB)</pre></div> <p dir="auto">The profiling shows most of the time is spent in <a href="https://github.com/JuliaLang/julia/blob/9d6da9c4d664b832379bd2d0fa97cefecabb0e7e/base/reflection.jl#L808-L817"><code class="notranslate">_methods_by_ftype</code></a>, and I guess <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622906850" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/35983" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/35983/hovercard" href="https://github.com/JuliaLang/julia/pull/35983">#35983</a> might be the source of this.</p> <hr> <p dir="auto">Well, I'm not sure the performance for <code class="notranslate">methods</code> is critical; I found this problem just because Juno's completions are much slower than before when using Julia built from master, and profiling shows that this line calling <code class="notranslate">methods</code> is the source of the performance regression:<br> <a href="https://github.com/JunoLab/Atom.jl/blob/c751731bd488db815110ed7771b7f313d8b92116/src/utils.jl#L268">https://github.com/JunoLab/Atom.jl/blob/c751731bd488db815110ed7771b7f313d8b92116/src/utils.jl#L268</a></p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ismacro(f::Function) = startswith(string(methods(f).mt.name), &quot;@&quot;)"><pre class="notranslate"><span class="pl-en">ismacro</span>(f<span class="pl-k">::</span><span class="pl-c1">Function</span>) <span class="pl-k">=</span> <span class="pl-c1">startswith</span>(<span class="pl-c1">string</span>(<span class="pl-c1">methods</span>(f)<span class="pl-k">.</span>mt<span class="pl-k">.</span>name), <span class="pl-s"><span class="pl-pds">"</span>@<span class="pl-pds">"</span></span>)</pre></div> <p dir="auto">Now I found changing this line into</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function ismacro(@nospecialize(f::FT)) where {FT&lt;:Function} isdefined(FT, :name) || return false tn = FT.name::Core.TypeName return occursin('@', string(tn.name)) end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">ismacro</span>(<span class="pl-c1">@nospecialize</span>(f<span class="pl-k">::</span><span class="pl-c1">FT</span>)) <span class="pl-k">where</span> {FT<span class="pl-k">&lt;:</span><span class="pl-c1">Function</span>} <span class="pl-c1">isdefined</span>(FT, <span class="pl-c1">:name</span>) <span class="pl-k">||</span> <span class="pl-k">return</span> <span class="pl-c1">false</span> tn <span class="pl-k">=</span> FT<span class="pl-k">.</span>name<span class="pl-k">::</span><span class="pl-c1">Core.TypeName</span> <span class="pl-k">return</span> <span class="pl-c1">occursin</span>(<span class="pl-s"><span class="pl-pds">'</span>@<span class="pl-pds">'</span></span>, <span class="pl-c1">string</span>(tn<span class="pl-k">.</span>name)) <span class="pl-k">end</span></pre></div> <p dir="auto">gets rid of the performance regression anyway, so I'm okay with it if the slowness of <code class="notranslate">methods</code> can't be helped in order to circumvent the latency issues.</p>
<p dir="auto">In version 1.4.2, the following is evaluated pretty much instantly:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; using LinearAlgebra julia&gt; mul! mul! (generic function with 154 methods)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">using</span> LinearAlgebra julia<span class="pl-k">&gt;</span> mul! mul! (generic <span class="pl-k">function</span> with <span class="pl-c1">154</span> methods)</pre></div> <p dir="auto">However, in the latest nightly build from commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/f130d9baa88e353601672c2627b275d02c1f308c/hovercard" href="https://github.com/JuliaLang/julia/commit/f130d9baa88e353601672c2627b275d02c1f308c"><tt>f130d9b</tt></a>, the <code class="notranslate">mul!</code> takes multiple seconds to evaluate.</p>
1
<ul dir="auto"> <li>VSCode Version: 1.2.0</li> <li>OS Version: Linux 4.4.0-22-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117521813" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/40" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/40/hovercard" href="https://github.com/microsoft/vscode/issues/40">#40</a>-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux</li> </ul> <p dir="auto">Escape is bound to close the new terminal window feature, this is frustrating since some terminal applications use escape as a key to do certain things ( such as escape the application ).</p> <p dir="auto">I am now stranded in vim, with no way of getting out within my embedded terminal.</p> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Open a terminal.</li> <li>Press ESC.</li> </ol>
<p dir="auto">Integrated terminal master issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117735786" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/143" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/143/hovercard" href="https://github.com/microsoft/vscode/issues/143">#143</a></p> <p dir="auto">Open question: Currently pressing <kbd>esc</kbd> will hide the terminal, this can be a problem for some terminal programs, for example <code class="notranslate">vim</code>. Perhaps this should be configurable?</p>
1
<ul dir="auto"> <li>[ <g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji>] 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>[<g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji> ] 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: 2.6.x, tag2.7.1</li> <li>Operating System version: mac</li> <li>Java version: jdk1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>run unit test in the source code, ReferenceAnnotationBeanPostProcessorTest#test</li> <li>then an exception occur</li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> proxy object needs connect to Service, but at this time Service is not ready.</li> </ol> <p dir="auto">this issue is like this one: [https://github.com/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="316678524" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1654" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/1654/hovercard" href="https://github.com/apache/dubbo/issues/1654">/issues/1654</a>]</p> <p dir="auto">I run this test on branch 3.x-dev and it is ok. i compare the code between 3.x-dev and 2.6.x</p> <p dir="auto">there are some differences on this method</p> <p dir="auto">branch 2.6.x</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private String buildReferencedBeanName(Reference reference, Class&lt;?&gt; injectedType) { AnnotationBeanNameBuilder builder = AnnotationBeanNameBuilder.create(reference, injectedType); builder.environment(getEnvironment()); return getEnvironment().resolvePlaceholders(builder.build()); }"><pre class="notranslate"><code class="notranslate">private String buildReferencedBeanName(Reference reference, Class&lt;?&gt; injectedType) { AnnotationBeanNameBuilder builder = AnnotationBeanNameBuilder.create(reference, injectedType); builder.environment(getEnvironment()); return getEnvironment().resolvePlaceholders(builder.build()); } </code></pre></div> <p dir="auto">branch 3.x-dev</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private String buildReferencedBeanName(Reference reference, Class&lt;?&gt; injectedType) { ServiceBeanNameBuilder builder = ServiceBeanNameBuilder.create(reference, injectedType, getEnvironment()); return getEnvironment().resolvePlaceholders(builder.build()); }"><pre class="notranslate"><code class="notranslate">private String buildReferencedBeanName(Reference reference, Class&lt;?&gt; injectedType) { ServiceBeanNameBuilder builder = ServiceBeanNameBuilder.create(reference, injectedType, getEnvironment()); return getEnvironment().resolvePlaceholders(builder.build()); } </code></pre></div> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">unit test run ok.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testBean': Injection of @com.alibaba.dubbo.config.annotation.Reference dependencies is failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7): client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:106) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:249) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) ... 24 more Caused by: com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7): client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:420) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getSharedClient(DubboProtocol.java:384) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getClients(DubboProtocol.java:355) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.refer(DubboProtocol.java:337) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:67) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:108) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:396) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:335) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:164) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.init(ReferenceAnnotationBeanPostProcessor.java:174) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.access$100(ReferenceAnnotationBeanPostProcessor.java:147) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInvocationHandler(ReferenceAnnotationBeanPostProcessor.java:141) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildProxy(ReferenceAnnotationBeanPostProcessor.java:123) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:117) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:50) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:340) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:520) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:128) ... 40 more Caused by: com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:127) at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:275) at com.alibaba.dubbo.remoting.transport.AbstractClient.&lt;init&gt;(AbstractClient.java:89) at com.alibaba.dubbo.remoting.transport.netty4.NettyClient.&lt;init&gt;(NettyClient.java:55) at com.alibaba.dubbo.remoting.transport.netty4.NettyTransporter.connect(NettyTransporter.java:37) at com.alibaba.dubbo.remoting.Transporter$Adaptive.connect(Transporter$Adaptive.java) at com.alibaba.dubbo.remoting.Transporters.connect(Transporters.java:75) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.connect(HeaderExchanger.java:39) at com.alibaba.dubbo.remoting.exchange.Exchangers.connect(Exchangers.java:109) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:417) ... 59 more Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /10.99.60.252:12345 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:325) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:635) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.ConnectException: Connection refused ... 11 more"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testBean': Injection of @com.alibaba.dubbo.config.annotation.Reference dependencies is failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7): client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1268) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:106) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:249) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) ... 24 more Caused by: com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7): client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:420) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getSharedClient(DubboProtocol.java:384) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getClients(DubboProtocol.java:355) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.refer(DubboProtocol.java:337) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:67) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:108) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:396) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:335) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:164) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.init(ReferenceAnnotationBeanPostProcessor.java:174) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.access$100(ReferenceAnnotationBeanPostProcessor.java:147) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInvocationHandler(ReferenceAnnotationBeanPostProcessor.java:141) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildProxy(ReferenceAnnotationBeanPostProcessor.java:123) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:117) at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.doGetInjectedBean(ReferenceAnnotationBeanPostProcessor.java:50) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.getInjectedObject(AnnotationInjectedBeanPostProcessor.java:340) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor$AnnotatedFieldElement.inject(AnnotationInjectedBeanPostProcessor.java:520) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at com.alibaba.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor.postProcessPropertyValues(AnnotationInjectedBeanPostProcessor.java:128) ... 40 more Caused by: com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://127.0.0.1:12345/com.alibaba.dubbo.config.spring.api.DemoService?application=dubbo-annotation-provider&amp;codec=dubbo&amp;default.timeout=2000&amp;dubbo=2.0.2&amp;heartbeat=60000&amp;interface=com.alibaba.dubbo.config.spring.api.DemoService&amp;methods=sayName,getBox&amp;owner=world&amp;pid=919&amp;register.ip=10.99.60.252&amp;revision=2.5.7&amp;side=consumer&amp;timestamp=1555913871891&amp;version=2.5.7) failed to connect to server /127.0.0.1:12345, error message is:Connection refused: /10.99.60.252:12345 at com.alibaba.dubbo.remoting.transport.netty4.NettyClient.doConnect(NettyClient.java:127) at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:275) at com.alibaba.dubbo.remoting.transport.AbstractClient.&lt;init&gt;(AbstractClient.java:89) at com.alibaba.dubbo.remoting.transport.netty4.NettyClient.&lt;init&gt;(NettyClient.java:55) at com.alibaba.dubbo.remoting.transport.netty4.NettyTransporter.connect(NettyTransporter.java:37) at com.alibaba.dubbo.remoting.Transporter$Adaptive.connect(Transporter$Adaptive.java) at com.alibaba.dubbo.remoting.Transporters.connect(Transporters.java:75) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.connect(HeaderExchanger.java:39) at com.alibaba.dubbo.remoting.exchange.Exchangers.connect(Exchangers.java:109) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:417) ... 59 more Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /10.99.60.252:12345 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:325) at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:635) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:582) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:461) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.ConnectException: Connection refused ... 11 more </code></pre></div>
<ul dir="auto"> <li>[ * ] 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>[ * ] 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.7</li> <li>Operating System version: CentOS 7</li> <li>Java version: 1.8.0_202</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Code to reproduce: <a href="https://github.com/seraphain/dubbo-thread-leak">https://github.com/seraphain/dubbo-thread-leak</a></p> <ol dir="auto"> <li>Start a zookeeper on 127.0.0.1:2181.</li> <li>Run com.github.seraphain.demo.dubbo.Server. Before the server exits, run com.github.seraphain.demo.dubbo.Client.</li> <li>Use jps to get client pid: jps | grep Client.</li> <li>Use jstack to get dubbo threads number: jstack -l [pid] | grep Dubbo | wc -l. The result is 50 or 51.</li> <li>After the server exits, run com.github.seraphain.demo.dubbo.Server again.</li> <li>Use jstack to get dubbo thread number: jstack -l [pid] | grep Dubbo | wc -l. The result is 100 or 101.</li> <li>Repeat step 5 &amp; 6, dubbo thread number keep increasing everytime the server start.</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">Client dubbo thread number do not increase.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Client dubbo thread number keep increasing everytime the server start.</p>
0
<p dir="auto">Pretty much like the title says, private methods should stay private:</p> <h3 dir="auto">input:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class NoRespect { private priv() {} pub() { return this.priv(); } } "><pre class="notranslate"><code class="notranslate">class NoRespect { private priv() {} pub() { return this.priv(); } } </code></pre></div> <h3 dir="auto">actual output:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var NoRespect = (function () { function NoRespect() {} NoRespect.prototype.priv = function () { }; NoRespect.prototype.pub = function () { return this.priv(); }; return NoRespect; })();"><pre class="notranslate"><code class="notranslate">var NoRespect = (function () { function NoRespect() {} NoRespect.prototype.priv = function () { }; NoRespect.prototype.pub = function () { return this.priv(); }; return NoRespect; })(); </code></pre></div> <h3 dir="auto">expected output:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var NoRespect = (function () { function NoRespect() {} var priv = function () { }; NoRespect.prototype.pub = function () { priv.call(this); }; return NoRespect; })();"><pre class="notranslate"><code class="notranslate">var NoRespect = (function () { function NoRespect() {} var priv = function () { }; NoRespect.prototype.pub = function () { priv.call(this); }; return NoRespect; })(); </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ tsc --version message TS6029: Version 1.7.5"><pre class="notranslate"><code class="notranslate">➜ tsc --version message TS6029: Version 1.7.5 </code></pre></div>
<p dir="auto">Currently private functions are put on the prototype of a function so they are not really private. I suggest adding them as normal functions in the scope of the class so that they are in fact only accessible to the class.</p> <p dir="auto">Example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module Example { export class ExampleClass { method() { this.privateMethod(); } private privateMethod() { console.log(&quot;private&quot;); } } }"><pre class="notranslate"><code class="notranslate">module Example { export class ExampleClass { method() { this.privateMethod(); } private privateMethod() { console.log("private"); } } } </code></pre></div> <p dir="auto">would create</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Example; (function (Example) { var ExampleClass = (function () { function ExampleClass() { } function ExampleClass_privateMethod() { console.log(&quot;private&quot;); } ExampleClass.prototype.method = function () { privateMethod(); }; return ExampleClass; })(); Example.ExampleClass = ExampleClass; })(Example || (Example = {}));"><pre class="notranslate"><code class="notranslate">var Example; (function (Example) { var ExampleClass = (function () { function ExampleClass() { } function ExampleClass_privateMethod() { console.log("private"); } ExampleClass.prototype.method = function () { privateMethod(); }; return ExampleClass; })(); Example.ExampleClass = ExampleClass; })(Example || (Example = {})); </code></pre></div>
1
<ul dir="auto"> <li>VSCode Version: Version 0.10.11 (0.10.11)</li> <li>OS Version: OS X 10.10.5</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Create a javascript file and enter following code:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="expect(confNy.vars['config']).to.equal( `proxy=nyproxy.company.org1, port=8081`);"><pre class="notranslate"><code class="notranslate">expect(confNy.vars['config']).to.equal( `proxy=nyproxy.company.org1, port=8081`); </code></pre></div> <ol dir="auto"> <li>The code is highlighted this way:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2051078/13898731/6ce79f22-edec-11e5-887b-05ade5ad9d30.png"><img src="https://cloud.githubusercontent.com/assets/2051078/13898731/6ce79f22-edec-11e5-887b-05ade5ad9d30.png" alt="screen1" style="max-width: 100%;"></a></li> </ol>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/f111fei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/f111fei">@f111fei</a> on February 23, 2016 6:14</em></p> <p dir="auto">version: 0.10.10<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png"><img src="https://cloud.githubusercontent.com/assets/7069719/13243197/80630302-da37-11e5-9ccf-a63d6f23433d.png" alt="2" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">letter</code></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="135646950" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3270" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3270/hovercard" href="https://github.com/microsoft/vscode/issues/3270">microsoft/vscode#3270</a></em></p>
1
<p dir="auto">So I came across this, and the message I received asked me to create a bug report.</p> <p dir="auto">Mac OSX 10.9.3, x86_64</p> <p dir="auto">Original error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc -L /usr/local/lib/glfw -L lib/glfw-rs/lib -L lib/gl-rs/lib -L lib/cgmath-rs/lib -O --out-dir=target src/main.rs src/main.rs:79:14: 79:22 error: internal compiler error: borrow-vec associated with bad sty: &amp;ty_err src/main.rs:79 let size = (vertices.len() * mem::size_of::&lt;GLfloat&gt;()) as GLsizeiptr; ^~~~~~~~ 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 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:112"><pre class="notranslate"><code class="notranslate">rustc -L /usr/local/lib/glfw -L lib/glfw-rs/lib -L lib/gl-rs/lib -L lib/cgmath-rs/lib -O --out-dir=target src/main.rs src/main.rs:79:14: 79:22 error: internal compiler error: borrow-vec associated with bad sty: &amp;ty_err src/main.rs:79 let size = (vertices.len() * mem::size_of::&lt;GLfloat&gt;()) as GLsizeiptr; ^~~~~~~~ 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 'Box&lt;Any&gt;', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:112 </code></pre></div> <p dir="auto">rustc version is <code class="notranslate">rustc 0.11.0-nightly (b57d272e9908e164a72bd1a688141031705e1208 2014-07-11 01:11:36 +0000)</code></p> <p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#![feature(globs)] extern crate native; extern crate glfw; extern crate cgmath; extern crate gl; use glfw::Context; use gl::types::*; use std::mem; mod shader; #[start] fn start(argc: int, argv: *const *const u8) -&gt; int { native::start(argc, argv, main) } fn main() { // Init let context = glfw::init(glfw::FAIL_ON_ERRORS).unwrap(); // Set window hints to load OpenGL 3.2 on OSX context.window_hint(glfw::ContextVersion(3, 2)); context.window_hint(glfw::OpenglForwardCompat(true)); context.window_hint(glfw::OpenglProfile(glfw::OpenGlCoreProfile)); // Create a window let (window, events) = context.create_window(1100, 775, &quot;Post Processing Effects&quot;, glfw::Windowed).expect(&quot;Failed to create window!&quot;); window.set_key_polling(true); window.set_size_polling(true); window.make_current(); gl::load_with(|s| context.get_proc_address(s)); // Shaders let mut shader = shader::Shader::new(); shader.attach_from_file(&quot;vertex_shader.glsl&quot;, gl::VERTEX_SHADER); shader.attach_from_file(&quot;fragment_shader.glsl&quot;, gl::FRAGMENT_SHADER); shader.link(); shader.bind_frag_color_name(&quot;color&quot;); shader.set(); // VAO and VBO let vertices = [ -0.5, -0.5, 0.5, -0.5, 0.0, 0.5, ]; let mut vao = 0; let mut vbo = 0; unsafe { // Create a vertex array object gl::GenVertexArrays(1, &amp;mut vao); gl::BindVertexArray(vao); // Create a vertex buffer object gl::GenBuffers(1, &amp;mut vbo); gl::BindBuffer(gl::ARRAY_BUFFER, vbo); } // Calculate the size of the vertex data in bytes let size = (vertices.len() * mem::size_of::&lt;GLfloat&gt;()) as GLsizeiptr; unsafe { gl::BufferData( gl::ARRAY_BUFFER, size, mem::transmute(&amp;(vertices[0])), gl::STATIC_DRAW ); } // Shader attributes shader.layout_attribs(&quot;position_in&quot;); // Main loop while !window.should_close() { context.poll_events(); for (_, event) in glfw::flush_messages(&amp;events) { match event { glfw::KeyEvent(glfw::KeyEscape, _, glfw::Press, _) =&gt; { window.set_should_close(true); }, _ =&gt; {}, } } gl::ClearColor(0.0, 0.0, 0.0, 1.0); gl::Clear(gl::COLOR_BUFFER_BIT); let count = (vertices.len() / 2) as i32; gl::DrawArrays(gl::TRIANGLES, 0, count); window.swap_buffers(); } }"><pre class="notranslate"><code class="notranslate">#![feature(globs)] extern crate native; extern crate glfw; extern crate cgmath; extern crate gl; use glfw::Context; use gl::types::*; use std::mem; mod shader; #[start] fn start(argc: int, argv: *const *const u8) -&gt; int { native::start(argc, argv, main) } fn main() { // Init let context = glfw::init(glfw::FAIL_ON_ERRORS).unwrap(); // Set window hints to load OpenGL 3.2 on OSX context.window_hint(glfw::ContextVersion(3, 2)); context.window_hint(glfw::OpenglForwardCompat(true)); context.window_hint(glfw::OpenglProfile(glfw::OpenGlCoreProfile)); // Create a window let (window, events) = context.create_window(1100, 775, "Post Processing Effects", glfw::Windowed).expect("Failed to create window!"); window.set_key_polling(true); window.set_size_polling(true); window.make_current(); gl::load_with(|s| context.get_proc_address(s)); // Shaders let mut shader = shader::Shader::new(); shader.attach_from_file("vertex_shader.glsl", gl::VERTEX_SHADER); shader.attach_from_file("fragment_shader.glsl", gl::FRAGMENT_SHADER); shader.link(); shader.bind_frag_color_name("color"); shader.set(); // VAO and VBO let vertices = [ -0.5, -0.5, 0.5, -0.5, 0.0, 0.5, ]; let mut vao = 0; let mut vbo = 0; unsafe { // Create a vertex array object gl::GenVertexArrays(1, &amp;mut vao); gl::BindVertexArray(vao); // Create a vertex buffer object gl::GenBuffers(1, &amp;mut vbo); gl::BindBuffer(gl::ARRAY_BUFFER, vbo); } // Calculate the size of the vertex data in bytes let size = (vertices.len() * mem::size_of::&lt;GLfloat&gt;()) as GLsizeiptr; unsafe { gl::BufferData( gl::ARRAY_BUFFER, size, mem::transmute(&amp;(vertices[0])), gl::STATIC_DRAW ); } // Shader attributes shader.layout_attribs("position_in"); // Main loop while !window.should_close() { context.poll_events(); for (_, event) in glfw::flush_messages(&amp;events) { match event { glfw::KeyEvent(glfw::KeyEscape, _, glfw::Press, _) =&gt; { window.set_should_close(true); }, _ =&gt; {}, } } gl::ClearColor(0.0, 0.0, 0.0, 1.0); gl::Clear(gl::COLOR_BUFFER_BIT); let count = (vertices.len() / 2) as i32; gl::DrawArrays(gl::TRIANGLES, 0, count); window.swap_buffers(); } } </code></pre></div> <p dir="auto">I hope this is enough information, I can provide more if needed.</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let v = &amp;[]; let it = v.iter(); }"><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-k">let</span> v = <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">let</span> it = v<span class="pl-kos">.</span><span class="pl-en">iter</span><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="vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &amp;ty_err vec-ice.rs:3 let it = v.iter(); ^"><pre class="notranslate"><code class="notranslate">vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &amp;ty_err vec-ice.rs:3 let it = v.iter(); ^ </code></pre></div> <p dir="auto">(Doesn't happen with <code class="notranslate">.slice</code>.)</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">Other Airflow 2 version (please specify below)</p> <h3 dir="auto">What happened</h3> <p dir="auto">The <code class="notranslate">on_failure_callback</code> is invoked twice when a DAG fails due to a timeout. This leads to duplicate failure alerts in our Slack channels. It happens reliably and the invocations are roughly 5 seconds apart. Context and full stack trace in both invocations are identical.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The <code class="notranslate">on_failure_callback</code> should only be invoked once</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Here is the DAG which triggers the effect</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pendulum from datetime import timedelta from airflow import DAG from airflow.providers.databricks.operators.databricks import DatabricksSubmitRunOperator import logging import requests dag_settings = { &quot;dag_id&quot;: f&quot;INT_minimal_example&quot;, &quot;max_active_runs&quot;: 1, &quot;dagrun_timeout&quot;: timedelta(minutes=1), &quot;start_date&quot;: pendulum.today(&quot;UTC&quot;), &quot;default_args&quot;: { &quot;owner&quot;: &quot;airflow&quot;, &quot;catchup&quot;: False }, &quot;tags&quot;: [&quot;env:testing&quot;], &quot;on_failure_callback&quot;: ( lambda context: [ logging.info(f&quot;Minimal example - failure callback with context: {context}&quot;), # Since logging.info does not work for us, we add a request to RequestBin # See https://github.com/apache/airflow/issues/29442 requests.post( &quot;https://&lt;removed-for-publication&gt;.m.pipedream.net&quot;, json={&quot;payload&quot;: f&quot;Minimal example - failure callback with context: {context}&quot;} ) ] ) } dag = DAG(**dag_settings) logging.info(f&quot;Minimal example - Created DAG {dag.dag_id}.&quot;) DatabricksSubmitRunOperator( task_id=&quot;example_task&quot;, dag=dag, databricks_conn_id=&quot;databricks_default&quot;, spark_submit_task={ &quot;parameters&quot;: [ &quot;--class&quot;, &quot;com.example.Launcher&quot;, f&quot;dbfs:/libraries/scala/example-fat-jar.jar&quot; ] }, new_cluster={ &quot;spark_version&quot;: &quot;10.4.x-cpu-ml-scala2.12&quot;, &quot;spark_env_vars&quot;: { &quot;JNAME&quot;: &quot;zulu11-ca-amd64&quot; # Use JDK 11 }, &quot;spark_conf&quot;: { &quot;spark.sql.session.timeZone&quot;: &quot;UTC&quot; }, &quot;aws_attributes&quot;: { &quot;instance_profile_arn&quot;: &quot;arn:aws:iam::765&lt;removed-for-publication&gt;:instance-profile/DatabricksExecution&quot; }, &quot;instance_pool_id&quot;: &quot;1011-&lt;removed-for-publication&gt;&quot;, &quot;driver_instance_pool_id&quot;: &quot;1011-&lt;removed-for-publication&gt;&quot;, &quot;num_workers&quot;: 1 } )"><pre class="notranslate"><code class="notranslate">import pendulum from datetime import timedelta from airflow import DAG from airflow.providers.databricks.operators.databricks import DatabricksSubmitRunOperator import logging import requests dag_settings = { "dag_id": f"INT_minimal_example", "max_active_runs": 1, "dagrun_timeout": timedelta(minutes=1), "start_date": pendulum.today("UTC"), "default_args": { "owner": "airflow", "catchup": False }, "tags": ["env:testing"], "on_failure_callback": ( lambda context: [ logging.info(f"Minimal example - failure callback with context: {context}"), # Since logging.info does not work for us, we add a request to RequestBin # See https://github.com/apache/airflow/issues/29442 requests.post( "https://&lt;removed-for-publication&gt;.m.pipedream.net", json={"payload": f"Minimal example - failure callback with context: {context}"} ) ] ) } dag = DAG(**dag_settings) logging.info(f"Minimal example - Created DAG {dag.dag_id}.") DatabricksSubmitRunOperator( task_id="example_task", dag=dag, databricks_conn_id="databricks_default", spark_submit_task={ "parameters": [ "--class", "com.example.Launcher", f"dbfs:/libraries/scala/example-fat-jar.jar" ] }, new_cluster={ "spark_version": "10.4.x-cpu-ml-scala2.12", "spark_env_vars": { "JNAME": "zulu11-ca-amd64" # Use JDK 11 }, "spark_conf": { "spark.sql.session.timeZone": "UTC" }, "aws_attributes": { "instance_profile_arn": "arn:aws:iam::765&lt;removed-for-publication&gt;:instance-profile/DatabricksExecution" }, "instance_pool_id": "1011-&lt;removed-for-publication&gt;", "driver_instance_pool_id": "1011-&lt;removed-for-publication&gt;", "num_workers": 1 } ) </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">composer-2.0.32</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">Here is the full <code class="notranslate">requirements.txt</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-databricks==4.0.0 databricks-sql-connector==2.1.0 apache-beam~=2.43.0 sqlalchemy-bigquery==1.5.0 requests~=2.28.1 apache-airflow-providers-tableau==4.0.0 apache-airflow-providers-sendgrid==3.1.0 python-dotenv==0.21.0 urllib3~=1.26.8 tableauserverclient==0.23 apache-airflow-providers-http==4.1.0 # time library in airflow pendulum==2.1.2"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-databricks==4.0.0 databricks-sql-connector==2.1.0 apache-beam~=2.43.0 sqlalchemy-bigquery==1.5.0 requests~=2.28.1 apache-airflow-providers-tableau==4.0.0 apache-airflow-providers-sendgrid==3.1.0 python-dotenv==0.21.0 urllib3~=1.26.8 tableauserverclient==0.23 apache-airflow-providers-http==4.1.0 # time library in airflow pendulum==2.1.2 </code></pre></div> <h3 dir="auto">Deployment</h3> <p dir="auto">Composer</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">We are running a Cloud Compose environment with image <code class="notranslate">composer-2.0.32-airflow-2.3.4</code></p> <h3 dir="auto">Anything else</h3> <p dir="auto">Since logging inside the callback is not working for us (See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1578233527" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/29442" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/29442/hovercard" href="https://github.com/apache/airflow/issues/29442">#29442</a>), here is a screenshot from RequestBin. Both invocations share the same log line, the context and stack trace is also the same.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3661031/218069601-dada3f0e-4494-4cf3-a274-f5d3b8270ac8.png"><img src="https://user-images.githubusercontent.com/3661031/218069601-dada3f0e-4494-4cf3-a274-f5d3b8270ac8.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Here is the complete stack trace for either invocation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File &quot;/opt/python3.8/bin/airflow&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/__main__.py&quot;, line 38, in main args.func(args) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/cli/cli_parser.py&quot;, line 51, in command return func(*args, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/utils/cli.py&quot;, line 101, in wrapper return f(*args, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/cli/commands/scheduler_command.py&quot;, line 76, in scheduler _run_scheduler_job(args=args) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/cli/commands/scheduler_command.py&quot;, line 46, in _run_scheduler_job job.run() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/jobs/base_job.py&quot;, line 244, in run self._execute() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 748, in _execute self.processor_agent.start() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py&quot;, line 158, in start process.start() File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 121, in start self._popen = self._Popen(self) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/context.py&quot;, line 277, in _Popen return Popen(process_obj) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py&quot;, line 19, in __init__ self._launch(process_obj) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py&quot;, line 75, in _launch code = process_obj._bootstrap(parent_sentinel=child_r) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 315, in _bootstrap self.run() File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 108, in run self._target(*self._args, **self._kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py&quot;, line 255, in _run_processor_manager processor_manager.start() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py&quot;, line 486, in start return self._run_parsing_loop() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py&quot;, line 600, in _run_parsing_loop self.start_new_processes() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py&quot;, line 1003, in start_new_processes processor.start() File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py&quot;, line 194, in start process.start() File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 121, in start self._popen = self._Popen(self) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/context.py&quot;, line 277, in _Popen return Popen(process_obj) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py&quot;, line 19, in __init__ self._launch(process_obj) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py&quot;, line 75, in _launch code = process_obj._bootstrap(parent_sentinel=child_r) File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 315, in _bootstrap self.run() File &quot;/opt/python3.8/lib/python3.8/multiprocessing/process.py&quot;, line 108, in run self._target(*self._args, **self._kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py&quot;, line 155, in _run_file_processor result: Tuple[int, int] = dag_file_processor.process_file( File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 71, in wrapper return func(*args, session=session, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py&quot;, line 656, in process_file self.execute_callbacks(dagbag, callback_requests) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 71, in wrapper return func(*args, session=session, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py&quot;, line 581, in execute_callbacks self._execute_dag_callbacks(dagbag, request, session) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 68, in wrapper return func(*args, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py&quot;, line 595, in _execute_dag_callbacks dag.handle_callback( File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 68, in wrapper return func(*args, **kwargs) File &quot;/opt/python3.8/lib/python3.8/site-packages/airflow/models/dag.py&quot;, line 1178, in handle_callback callback(context) File &quot;/home/airflow/gcs/dags/integration_test/example.py&quot;"><pre class="notranslate"><code class="notranslate">File "/opt/python3.8/bin/airflow", line 8, in &lt;module&gt; sys.exit(main()) File "/opt/python3.8/lib/python3.8/site-packages/airflow/__main__.py", line 38, in main args.func(args) File "/opt/python3.8/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 51, in command return func(*args, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/utils/cli.py", line 101, in wrapper return f(*args, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/cli/commands/scheduler_command.py", line 76, in scheduler _run_scheduler_job(args=args) File "/opt/python3.8/lib/python3.8/site-packages/airflow/cli/commands/scheduler_command.py", line 46, in _run_scheduler_job job.run() File "/opt/python3.8/lib/python3.8/site-packages/airflow/jobs/base_job.py", line 244, in run self._execute() File "/opt/python3.8/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 748, in _execute self.processor_agent.start() File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py", line 158, in start process.start() File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/python3.8/lib/python3.8/multiprocessing/context.py", line 277, in _Popen return Popen(process_obj) File "/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py", line 75, in _launch code = process_obj._bootstrap(parent_sentinel=child_r) File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py", line 255, in _run_processor_manager processor_manager.start() File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py", line 486, in start return self._run_parsing_loop() File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py", line 600, in _run_parsing_loop self.start_new_processes() File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/manager.py", line 1003, in start_new_processes processor.start() File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py", line 194, in start process.start() File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/opt/python3.8/lib/python3.8/multiprocessing/context.py", line 277, in _Popen return Popen(process_obj) File "/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/opt/python3.8/lib/python3.8/multiprocessing/popen_fork.py", line 75, in _launch code = process_obj._bootstrap(parent_sentinel=child_r) File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/opt/python3.8/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py", line 155, in _run_file_processor result: Tuple[int, int] = dag_file_processor.process_file( File "/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py", line 71, in wrapper return func(*args, session=session, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py", line 656, in process_file self.execute_callbacks(dagbag, callback_requests) File "/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py", line 71, in wrapper return func(*args, session=session, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py", line 581, in execute_callbacks self._execute_dag_callbacks(dagbag, request, session) File "/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py", line 68, in wrapper return func(*args, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/dag_processing/processor.py", line 595, in _execute_dag_callbacks dag.handle_callback( File "/opt/python3.8/lib/python3.8/site-packages/airflow/utils/session.py", line 68, in wrapper return func(*args, **kwargs) File "/opt/python3.8/lib/python3.8/site-packages/airflow/models/dag.py", line 1178, in handle_callback callback(context) File "/home/airflow/gcs/dags/integration_test/example.py" </code></pre></div> <p dir="auto">Here is the log for the Databricks task that was marked skipped, because the DAG as a whole timed out.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** Reading remote log from gs://europe-west3-airflow-&lt;removed-for-publication&gt;-bucket/logs/dag_id=INT_minimal_example/run_id=manual__2023-02-10T09:34:38+00:00/task_id=example_task/attempt=1.log. [2023-02-10, 09:34:42 UTC] {taskinstance.py:1172} INFO - Dependencies all met for &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [queued]&gt; [2023-02-10, 09:34:42 UTC] {taskinstance.py:1172} INFO - Dependencies all met for &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [queued]&gt; [2023-02-10, 09:34:42 UTC] {taskinstance.py:1369} INFO - -------------------------------------------------------------------------------- [2023-02-10, 09:34:42 UTC] {taskinstance.py:1370} INFO - Starting attempt 1 of 3 [2023-02-10, 09:34:42 UTC] {taskinstance.py:1371} INFO - -------------------------------------------------------------------------------- [2023-02-10, 09:34:42 UTC] {taskinstance.py:1390} INFO - Executing &lt;Task(DatabricksSubmitRunOperator): example_task&gt; on 2023-02-10 09:34:38+00:00 [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:52} INFO - Started process 69373 to run task [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:79} INFO - Running: ['airflow', 'tasks', 'run', 'INT_minimal_example', 'example_task', 'manual__2023-02-10T09:34:38+00:00', '--job-id', '197269', '--raw', '--subdir', 'DAGS_FOLDER/integration_test/minimal_example.py', '--cfg-path', '/tmp/tmp4ffeji6u', '--error-file', '/tmp/tmpd5pieigz'] [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:80} INFO - Job 197269: Subtask example_task [2023-02-10, 09:34:43 UTC] {task_command.py:375} INFO - Running &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [running]&gt; on host airflow-worker-lhbx8 [2023-02-10, 09:34:43 UTC] {taskinstance.py:1583} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=INT_minimal_example AIRFLOW_CTX_TASK_ID=example_task AIRFLOW_CTX_EXECUTION_DATE=2023-02-10T09:34:38+00:00 AIRFLOW_CTX_TRY_NUMBER=1 AIRFLOW_CTX_DAG_RUN_ID=manual__2023-02-10T09:34:38+00:00 [2023-02-10, 09:34:43 UTC] {base.py:68} INFO - Using connection ID 'databricks_default' for task execution. [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks.py:75} INFO - Run submitted with run_id: 102832491 [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': ''} [2023-02-10, 09:34:43 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:34:43 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:13 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:13 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': 'Waiting for cluster'} [2023-02-10, 09:35:13 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:35:13 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:44 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': 'Waiting for cluster'} [2023-02-10, 09:35:44 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:35:44 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:44 UTC] {local_task_job.py:225} WARNING - DagRun timed out after 0:01:05.297413. [2023-02-10, 09:35:44 UTC] {local_task_job.py:226} WARNING - State of this instance has been externally set to skipped. Terminating instance. [2023-02-10, 09:35:44 UTC] {process_utils.py:125} INFO - Sending Signals.SIGTERM to group 69373. PIDs of all processes in the group: [69373] [2023-02-10, 09:35:44 UTC] {process_utils.py:80} INFO - Sending the signal Signals.SIGTERM to group 69373 [2023-02-10, 09:35:44 UTC] {taskinstance.py:1555} ERROR - Received SIGTERM. Terminating subprocesses. [2023-02-10, 09:35:44 UTC] {base.py:68} INFO - Using connection ID 'databricks_default' for task execution. [2023-02-10, 09:35:44 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:44 UTC] {databricks.py:345} INFO - Task: example_task with run_id: 102832491 was requested to be cancelled. [2023-02-10, 09:35:44 UTC] {process_utils.py:75} INFO - Process psutil.Process(pid=69373, status='terminated', exitcode=0, started='09:34:41') (69373) terminated with exit code 0"><pre class="notranslate"><code class="notranslate">*** Reading remote log from gs://europe-west3-airflow-&lt;removed-for-publication&gt;-bucket/logs/dag_id=INT_minimal_example/run_id=manual__2023-02-10T09:34:38+00:00/task_id=example_task/attempt=1.log. [2023-02-10, 09:34:42 UTC] {taskinstance.py:1172} INFO - Dependencies all met for &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [queued]&gt; [2023-02-10, 09:34:42 UTC] {taskinstance.py:1172} INFO - Dependencies all met for &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [queued]&gt; [2023-02-10, 09:34:42 UTC] {taskinstance.py:1369} INFO - -------------------------------------------------------------------------------- [2023-02-10, 09:34:42 UTC] {taskinstance.py:1370} INFO - Starting attempt 1 of 3 [2023-02-10, 09:34:42 UTC] {taskinstance.py:1371} INFO - -------------------------------------------------------------------------------- [2023-02-10, 09:34:42 UTC] {taskinstance.py:1390} INFO - Executing &lt;Task(DatabricksSubmitRunOperator): example_task&gt; on 2023-02-10 09:34:38+00:00 [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:52} INFO - Started process 69373 to run task [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:79} INFO - Running: ['airflow', 'tasks', 'run', 'INT_minimal_example', 'example_task', 'manual__2023-02-10T09:34:38+00:00', '--job-id', '197269', '--raw', '--subdir', 'DAGS_FOLDER/integration_test/minimal_example.py', '--cfg-path', '/tmp/tmp4ffeji6u', '--error-file', '/tmp/tmpd5pieigz'] [2023-02-10, 09:34:42 UTC] {standard_task_runner.py:80} INFO - Job 197269: Subtask example_task [2023-02-10, 09:34:43 UTC] {task_command.py:375} INFO - Running &lt;TaskInstance: INT_minimal_example.example_task manual__2023-02-10T09:34:38+00:00 [running]&gt; on host airflow-worker-lhbx8 [2023-02-10, 09:34:43 UTC] {taskinstance.py:1583} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=INT_minimal_example AIRFLOW_CTX_TASK_ID=example_task AIRFLOW_CTX_EXECUTION_DATE=2023-02-10T09:34:38+00:00 AIRFLOW_CTX_TRY_NUMBER=1 AIRFLOW_CTX_DAG_RUN_ID=manual__2023-02-10T09:34:38+00:00 [2023-02-10, 09:34:43 UTC] {base.py:68} INFO - Using connection ID 'databricks_default' for task execution. [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks.py:75} INFO - Run submitted with run_id: 102832491 [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:34:43 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': ''} [2023-02-10, 09:34:43 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:34:43 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:13 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:13 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': 'Waiting for cluster'} [2023-02-10, 09:35:13 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:35:13 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:43 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:44 UTC] {databricks.py:97} INFO - example_task in run state: {'life_cycle_state': 'PENDING', 'result_state': '', 'state_message': 'Waiting for cluster'} [2023-02-10, 09:35:44 UTC] {databricks.py:98} INFO - View run status, Spark UI, and logs at &lt;removed-for-publication&gt; [2023-02-10, 09:35:44 UTC] {databricks.py:99} INFO - Sleeping for 30 seconds. [2023-02-10, 09:35:44 UTC] {local_task_job.py:225} WARNING - DagRun timed out after 0:01:05.297413. [2023-02-10, 09:35:44 UTC] {local_task_job.py:226} WARNING - State of this instance has been externally set to skipped. Terminating instance. [2023-02-10, 09:35:44 UTC] {process_utils.py:125} INFO - Sending Signals.SIGTERM to group 69373. PIDs of all processes in the group: [69373] [2023-02-10, 09:35:44 UTC] {process_utils.py:80} INFO - Sending the signal Signals.SIGTERM to group 69373 [2023-02-10, 09:35:44 UTC] {taskinstance.py:1555} ERROR - Received SIGTERM. Terminating subprocesses. [2023-02-10, 09:35:44 UTC] {base.py:68} INFO - Using connection ID 'databricks_default' for task execution. [2023-02-10, 09:35:44 UTC] {databricks_base.py:333} INFO - Using basic auth. [2023-02-10, 09:35:44 UTC] {databricks.py:345} INFO - Task: example_task with run_id: 102832491 was requested to be cancelled. [2023-02-10, 09:35:44 UTC] {process_utils.py:75} INFO - Process psutil.Process(pid=69373, status='terminated', exitcode=0, started='09:34:41') (69373) terminated with exit code 0 </code></pre></div> <p dir="auto">Finally, a screenshot of the DAG failure for timing purposes:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3661031/218072255-4ab3f608-8dfc-442a-b59f-c87c4b20f834.png"><img src="https://user-images.githubusercontent.com/3661031/218072255-4ab3f608-8dfc-442a-b59f-c87c4b20f834.png" alt="image" style="max-width: 100%;"></a></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"> 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 version</h3> <p dir="auto">2.4.2</p> <h3 dir="auto">What happened</h3> <p dir="auto">I have applied task callback for failure and success case using Cluster policy for the specific dag <a href="https://gist.github.com/Bowrna/7fdca8b546fc274edd068ffdae5b76f9">https://gist.github.com/Bowrna/7fdca8b546fc274edd068ffdae5b76f9</a></p> <p dir="auto">I am attaching the cluster policy that I have applied here.<br> <a href="https://gist.github.com/Bowrna/1994894beea39fa8e1c269591b7f0346">https://gist.github.com/Bowrna/1994894beea39fa8e1c269591b7f0346</a></p> <p dir="auto">On executing the DAG, the success callback is correctly invoked once for every successful task, while failure callback is invoked twice for a failure in task</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Like success callback, failure callback also should get executed only once.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">I have attached the sample DAG and airflow_local_settings.py file in which i have added the cluster policy used. On running airflow with that and executing the DAG either manually/scheduled will cause to log the below details</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062485, &quot;task_name&quot;: &quot;runme_0&quot;, &quot;task_duration&quot;: 1.178738, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062486, &quot;task_name&quot;: &quot;runme_1&quot;, &quot;task_duration&quot;: 1.081635, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062488, &quot;task_name&quot;: &quot;runme_2&quot;, &quot;task_duration&quot;: 1.071424, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062495, &quot;task_name&quot;: &quot;also_run_this&quot;, &quot;task_duration&quot;: 0.075827, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062495, &quot;task_name&quot;: &quot;this_will_skip&quot;, &quot;task_duration&quot;: 0.072133, &quot;task_status&quot;: &quot;skipped&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;failure&quot;, &quot;unravel_timestamp&quot;: 1668062496, &quot;task_name&quot;: &quot;failure_case&quot;, &quot;task_duration&quot;: 0.066066, &quot;task_status&quot;: &quot;failed&quot;, &quot;task_operator&quot;: &quot;PythonOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;failure&quot;, &quot;unravel_timestamp&quot;: 1668062497, &quot;task_name&quot;: &quot;failure_case&quot;, &quot;task_duration&quot;: 0.655575, &quot;task_status&quot;: &quot;failed&quot;, &quot;task_operator&quot;: &quot;PythonOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062498, &quot;task_name&quot;: &quot;run_after_loop&quot;, &quot;task_duration&quot;: 0.073114, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;} {&quot;dag_name&quot;: &quot;test_bowrna&quot;, &quot;dag_run_name&quot;: &quot;scheduled__2022-11-09T00:00:00+00:00&quot;, &quot;status_callback&quot;: &quot;success&quot;, &quot;unravel_timestamp&quot;: 1668062500, &quot;task_name&quot;: &quot;run_this_last&quot;, &quot;task_duration&quot;: 0.078573, &quot;task_status&quot;: &quot;success&quot;, &quot;task_operator&quot;: &quot;BashOperator&quot;, &quot;dag_start_date&quot;: &quot;2022-11-10 06:41:22.757324+00:00&quot;, &quot;dag_end_date&quot;: null, &quot;dag_state&quot;: &quot;running&quot;}"><pre class="notranslate"><code class="notranslate">{"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062485, "task_name": "runme_0", "task_duration": 1.178738, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062486, "task_name": "runme_1", "task_duration": 1.081635, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062488, "task_name": "runme_2", "task_duration": 1.071424, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062495, "task_name": "also_run_this", "task_duration": 0.075827, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062495, "task_name": "this_will_skip", "task_duration": 0.072133, "task_status": "skipped", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "failure", "unravel_timestamp": 1668062496, "task_name": "failure_case", "task_duration": 0.066066, "task_status": "failed", "task_operator": "PythonOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "failure", "unravel_timestamp": 1668062497, "task_name": "failure_case", "task_duration": 0.655575, "task_status": "failed", "task_operator": "PythonOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062498, "task_name": "run_after_loop", "task_duration": 0.073114, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} {"dag_name": "test_bowrna", "dag_run_name": "scheduled__2022-11-09T00:00:00+00:00", "status_callback": "success", "unravel_timestamp": 1668062500, "task_name": "run_this_last", "task_duration": 0.078573, "task_status": "success", "task_operator": "BashOperator", "dag_start_date": "2022-11-10 06:41:22.757324+00:00", "dag_end_date": null, "dag_state": "running"} </code></pre></div> <p dir="auto">Here you can see for the failure case, it is logged twice. Also both of these failure case logging have different duration(I have verified if i am double logging in code by mistake, but that is not the case)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">macOS Monterey version 12.2.1</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-apache-hive==4.0.1<br> apache-airflow-providers-cncf-kubernetes==4.4.0<br> apache-airflow-providers-common-sql==1.2.0<br> apache-airflow-providers-ftp==3.1.0<br> apache-airflow-providers-http==4.0.0<br> apache-airflow-providers-imap==3.0.0<br> apache-airflow-providers-sqlite==3.2.1</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">I am currently running the airflow in development mode and testing callback and cluster policy</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Once it is getting executed as part of the <code class="notranslate">taskinstance</code> callback, while another time it is getting executed as part of <code class="notranslate">DagFileProcessorProcess</code><br> I pulled out the logs from the specific task that is getting logged twice and this is part of <code class="notranslate">taskinstance.py</code> flow</p> <p dir="auto">I found the below log in the task of the specific dag_run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/unravel/unravel_airflow/unravel_airflow/lib/python3.10/site-packages/airflow/operators/python.py&quot;, line 175, in execute return_value = self.execute_callable() File &quot;/Users/unravel/unravel_airflow/unravel_airflow/lib/python3.10/site-packages/airflow/operators/python.py&quot;, line 193, in execute_callable return self.python_callable(*self.op_args, **self.op_kwargs) File &quot;/Users/unravel/unravel_airflow/airflow/dags/test.py&quot;, line 67, in fail_case raise AirflowFailException('Failure case test for cluster policy') airflow.exceptions.AirflowFailException: Failure case test for cluster policy [2022-11-09, 09:59:40 UTC] {taskinstance.py:851} DEBUG - Refreshing TaskInstance &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [running]&gt; from DB [2022-11-09, 09:59:40 UTC] {taskinstance.py:2325} DEBUG - Task Duration set to 0.061723 [2022-11-09, 09:59:40 UTC] {taskinstance.py:1412} DEBUG - Clearing next_method and next_kwargs. [2022-11-09, 09:59:40 UTC] {taskinstance.py:1401} INFO - Immediate failure requested. Marking task as FAILED. dag_id=test_bowrna, task_id=failure_case, execution_date=20221109T095932, start_date=20221109T095940, end_date=20221109T095940 [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Cluster dag policy:Task has failed [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Cluster policy:context for failure case: &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Task id: failure_case [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Task id: &lt;function task_failure_alert at 0x10749a050&gt; [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Path to write: /Users/unravel/unravel_airflow/airflow/event_logger/test_bowrna/09-11-2022/manual__2022-11-09T09:59:32.540415+00:00.json [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Info details to log: {'dag_name': 'test_bowrna', 'dag_run_name': 'manual__2022-11-09T09:59:32.540415+00:00', 'status_callback': 'failure', 'unravel_timestamp': 1667987980, 'task_name': 'failure_case', 'task_duration': 0.061723, 'task_status': &lt;TaskInstanceState.FAILED: 'failed'&gt;, 'task_operator': 'PythonOperator', 'dag_start_date': datetime.datetime(2022, 11, 9, 9, 59, 34, 24988, tzinfo=Timezone('UTC')), 'dag_end_date': None, 'dag_state': 'running'} [2022-11-09, 09:59:40 UTC] {events.py:45} DEBUG - session flush listener: added [&lt;TaskInstanceState.FAILED: 'failed'&gt;] unchanged () deleted ['running'] - &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09, 09:59:40 UTC] {cli_action_loggers.py:83} DEBUG - Calling callbacks: [] [2022-11-09, 09:59:40 UTC] {standard_task_runner.py:100} ERROR - Failed to execute job 1318 for task failure_case ('TaskInstance' object has no attribute 'task'; 49534) [2022-11-09, 09:59:40 UTC] {local_task_job.py:164} INFO - Task exited with return code 1 [2022-11-09, 09:59:40 UTC] {dagrun.py:674} DEBUG - number of tis tasks for &lt;DagRun test_bowrna @ 2022-11-09 09:59:32.540415+00:00: manual__2022-11-09T09:59:32.540415+00:00, state:running, queued_at: 2022-11-09 09:59:32.551538+00:00. externally triggered: True&gt;: 0 task(s) [2022-11-09, 09:59:40 UTC] {local_task_job.py:273} INFO - 0 downstream tasks scheduled from follow-on schedule check"><pre lang="[2022-11-09," class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/Users/unravel/unravel_airflow/unravel_airflow/lib/python3.10/site-packages/airflow/operators/python.py", line 175, in execute return_value = self.execute_callable() File "/Users/unravel/unravel_airflow/unravel_airflow/lib/python3.10/site-packages/airflow/operators/python.py", line 193, in execute_callable return self.python_callable(*self.op_args, **self.op_kwargs) File "/Users/unravel/unravel_airflow/airflow/dags/test.py", line 67, in fail_case raise AirflowFailException('Failure case test for cluster policy') airflow.exceptions.AirflowFailException: Failure case test for cluster policy [2022-11-09, 09:59:40 UTC] {taskinstance.py:851} DEBUG - Refreshing TaskInstance &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [running]&gt; from DB [2022-11-09, 09:59:40 UTC] {taskinstance.py:2325} DEBUG - Task Duration set to 0.061723 [2022-11-09, 09:59:40 UTC] {taskinstance.py:1412} DEBUG - Clearing next_method and next_kwargs. [2022-11-09, 09:59:40 UTC] {taskinstance.py:1401} INFO - Immediate failure requested. Marking task as FAILED. dag_id=test_bowrna, task_id=failure_case, execution_date=20221109T095932, start_date=20221109T095940, end_date=20221109T095940 [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Cluster dag policy:Task has failed [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Cluster policy:context for failure case: &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Task id: failure_case [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Task id: &lt;function task_failure_alert at 0x10749a050&gt; [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Path to write: /Users/unravel/unravel_airflow/airflow/event_logger/test_bowrna/09-11-2022/manual__2022-11-09T09:59:32.540415+00:00.json [2022-11-09, 09:59:40 UTC] {logging_mixin.py:120} INFO - Info details to log: {'dag_name': 'test_bowrna', 'dag_run_name': 'manual__2022-11-09T09:59:32.540415+00:00', 'status_callback': 'failure', 'unravel_timestamp': 1667987980, 'task_name': 'failure_case', 'task_duration': 0.061723, 'task_status': &lt;TaskInstanceState.FAILED: 'failed'&gt;, 'task_operator': 'PythonOperator', 'dag_start_date': datetime.datetime(2022, 11, 9, 9, 59, 34, 24988, tzinfo=Timezone('UTC')), 'dag_end_date': None, 'dag_state': 'running'} [2022-11-09, 09:59:40 UTC] {events.py:45} DEBUG - session flush listener: added [&lt;TaskInstanceState.FAILED: 'failed'&gt;] unchanged () deleted ['running'] - &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09, 09:59:40 UTC] {cli_action_loggers.py:83} DEBUG - Calling callbacks: [] [2022-11-09, 09:59:40 UTC] {standard_task_runner.py:100} ERROR - Failed to execute job 1318 for task failure_case ('TaskInstance' object has no attribute 'task'; 49534) [2022-11-09, 09:59:40 UTC] {local_task_job.py:164} INFO - Task exited with return code 1 [2022-11-09, 09:59:40 UTC] {dagrun.py:674} DEBUG - number of tis tasks for &lt;DagRun test_bowrna @ 2022-11-09 09:59:32.540415+00:00: manual__2022-11-09T09:59:32.540415+00:00, state:running, queued_at: 2022-11-09 09:59:32.551538+00:00. externally triggered: True&gt;: 0 task(s) [2022-11-09, 09:59:40 UTC] {local_task_job.py:273} INFO - 0 downstream tasks scheduled from follow-on schedule check </code></pre></div> <p dir="auto">Also I found another log in <code class="notranslate">airflow scheduler</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-11-09T15:29:41.148+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.148+0530] {[dagbag.py:502](http://dagbag.py:502/)} DEBUG - Loaded DAG &lt;DAG: test_bowrna&gt; [2022-11-09T15:29:41.149+0530] {[processor.py:766](http://processor.py:766/)} INFO - DAG(s) dict_keys(['test_bowrna']) retrieved from /Users/unravel/unravel_airflow/airflow/dags/test.py [2022-11-09T15:29:41.149+0530] {[processor.py:639](http://processor.py:639/)} DEBUG - Processing Callback Request: {'full_filepath': '/Users/unravel/unravel_airflow/airflow/dags/test.py', 'processor_subdir': '/Users/unravel/unravel_airflow/airflow/dags', 'msg': &quot;{'DAG Id': 'test_bowrna', 'Task Id': 'failure_case', 'Run Id': 'manual__2022-11-09T09:59:32.540415+00:00', 'Hostname': 'unravels-macbook-pro.local'}&quot;, 'simple_task_instance': &lt;airflow.models.taskinstance.SimpleTaskInstance object at 0x1049f7a60&gt;, 'is_failure_callback': True} [2022-11-09T15:29:41.198+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.198+0530] {[taskinstance.py:1853](http://taskinstance.py:1853/)} ERROR - {'DAG Id': 'test_bowrna', 'Task Id': 'failure_case', 'Run Id': 'manual__2022-11-09T09:59:32.540415+00:00', 'Hostname': 'unravels-macbook-pro.local'} [2022-11-09T15:29:41.199+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.199+0530] {[taskinstance.py:851](http://taskinstance.py:851/)} DEBUG - Refreshing TaskInstance &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [running]&gt; from DB [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {[taskinstance.py:2325](http://taskinstance.py:2325/)} DEBUG - Task Duration set to 0.520437 [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {[taskinstance.py:1412](http://taskinstance.py:1412/)} DEBUG - Clearing next_method and next_kwargs. [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {plugins_manager.py:300} DEBUG - Loading plugins [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {plugins_manager.py:244} DEBUG - Loading plugins from directory: /Users/unravel/unravel_airflow/airflow/plugins [2022-11-09T15:29:41.202+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.202+0530] {plugins_manager.py:259} DEBUG - Importing plugin module /Users/unravel/unravel_airflow/airflow/plugins/plugin.py [2022-11-09T15:29:41.202+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.202+0530] {plugins_manager.py:259} DEBUG - Importing plugin module /Users/unravel/unravel_airflow/airflow/plugins/listener.py [2022-11-09T15:29:41.204+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.203+0530] {plugins_manager.py:224} DEBUG - Loading plugins from entrypoints [2022-11-09T15:29:41.228+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.228+0530] {plugins_manager.py:316} DEBUG - Loading 1 plugin(s) took 0.03 seconds [2022-11-09T15:29:41.228+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.228+0530] {plugins_manager.py:476} DEBUG - Integrate DAG plugins [2022-11-09T15:29:41.230+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.230+0530] {[taskinstance.py:1099](http://taskinstance.py:1099/)} DEBUG - previous_execution_date was called [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.231+0530] {[taskinstance.py:1401](http://taskinstance.py:1401/)} INFO - Marking task as FAILED. dag_id=test_bowrna, task_id=failure_case, execution_date=20221109T095932, start_date=20221109T095940, end_date=20221109T095941 [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Cluster dag policy:Task has failed [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Cluster policy:context for failure case: &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Task id: failure_case [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Task id: &lt;function task_failure_alert at 0x1048c9240&gt; [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Path to write: /Users/unravel/unravel_airflow/airflow/event_logger/test_bowrna/09-11-2022/manual__2022-11-09T09:59:32.540415+00:00.json [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Info details to log: {'dag_name': 'test_bowrna', 'dag_run_name': 'manual__2022-11-09T09:59:32.540415+00:00', 'status_callback': 'failure', 'unravel_timestamp': 1667987981, 'task_name': 'failure_case', 'task_duration': 0.520437, 'task_status': &lt;TaskInstanceState.FAILED: 'failed'&gt;, 'task_operator': 'PythonOperator', 'dag_start_date': datetime.datetime(2022, 11, 9, 9, 59, 34, 24988, tzinfo=Timezone('UTC')), 'dag_end_date': None, 'dag_state': 'running'} [2022-11-09T15:29:41.234+0530] {[processor.py:725](http://processor.py:725/)} INFO - Executed failure callback for &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; in state failed [2022-11-09T15:29:41.236+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.236+0530] {[dagbag.py:647](http://dagbag.py:647/)} DEBUG - Running dagbag.sync_to_db with retries. Try 1 of"><pre class="notranslate"><code class="notranslate">[2022-11-09T15:29:41.148+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.148+0530] {[dagbag.py:502](http://dagbag.py:502/)} DEBUG - Loaded DAG &lt;DAG: test_bowrna&gt; [2022-11-09T15:29:41.149+0530] {[processor.py:766](http://processor.py:766/)} INFO - DAG(s) dict_keys(['test_bowrna']) retrieved from /Users/unravel/unravel_airflow/airflow/dags/test.py [2022-11-09T15:29:41.149+0530] {[processor.py:639](http://processor.py:639/)} DEBUG - Processing Callback Request: {'full_filepath': '/Users/unravel/unravel_airflow/airflow/dags/test.py', 'processor_subdir': '/Users/unravel/unravel_airflow/airflow/dags', 'msg': "{'DAG Id': 'test_bowrna', 'Task Id': 'failure_case', 'Run Id': 'manual__2022-11-09T09:59:32.540415+00:00', 'Hostname': 'unravels-macbook-pro.local'}", 'simple_task_instance': &lt;airflow.models.taskinstance.SimpleTaskInstance object at 0x1049f7a60&gt;, 'is_failure_callback': True} [2022-11-09T15:29:41.198+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.198+0530] {[taskinstance.py:1853](http://taskinstance.py:1853/)} ERROR - {'DAG Id': 'test_bowrna', 'Task Id': 'failure_case', 'Run Id': 'manual__2022-11-09T09:59:32.540415+00:00', 'Hostname': 'unravels-macbook-pro.local'} [2022-11-09T15:29:41.199+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.199+0530] {[taskinstance.py:851](http://taskinstance.py:851/)} DEBUG - Refreshing TaskInstance &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [running]&gt; from DB [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {[taskinstance.py:2325](http://taskinstance.py:2325/)} DEBUG - Task Duration set to 0.520437 [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {[taskinstance.py:1412](http://taskinstance.py:1412/)} DEBUG - Clearing next_method and next_kwargs. [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {plugins_manager.py:300} DEBUG - Loading plugins [2022-11-09T15:29:41.201+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.201+0530] {plugins_manager.py:244} DEBUG - Loading plugins from directory: /Users/unravel/unravel_airflow/airflow/plugins [2022-11-09T15:29:41.202+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.202+0530] {plugins_manager.py:259} DEBUG - Importing plugin module /Users/unravel/unravel_airflow/airflow/plugins/plugin.py [2022-11-09T15:29:41.202+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.202+0530] {plugins_manager.py:259} DEBUG - Importing plugin module /Users/unravel/unravel_airflow/airflow/plugins/listener.py [2022-11-09T15:29:41.204+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.203+0530] {plugins_manager.py:224} DEBUG - Loading plugins from entrypoints [2022-11-09T15:29:41.228+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.228+0530] {plugins_manager.py:316} DEBUG - Loading 1 plugin(s) took 0.03 seconds [2022-11-09T15:29:41.228+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.228+0530] {plugins_manager.py:476} DEBUG - Integrate DAG plugins [2022-11-09T15:29:41.230+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.230+0530] {[taskinstance.py:1099](http://taskinstance.py:1099/)} DEBUG - previous_execution_date was called [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.231+0530] {[taskinstance.py:1401](http://taskinstance.py:1401/)} INFO - Marking task as FAILED. dag_id=test_bowrna, task_id=failure_case, execution_date=20221109T095932, start_date=20221109T095940, end_date=20221109T095941 [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Cluster dag policy:Task has failed [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Cluster policy:context for failure case: &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Task id: failure_case [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Task id: &lt;function task_failure_alert at 0x1048c9240&gt; [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Path to write: /Users/unravel/unravel_airflow/airflow/event_logger/test_bowrna/09-11-2022/manual__2022-11-09T09:59:32.540415+00:00.json [2022-11-09T15:29:41.231+0530] {logging_mixin.py:120} INFO - Info details to log: {'dag_name': 'test_bowrna', 'dag_run_name': 'manual__2022-11-09T09:59:32.540415+00:00', 'status_callback': 'failure', 'unravel_timestamp': 1667987981, 'task_name': 'failure_case', 'task_duration': 0.520437, 'task_status': &lt;TaskInstanceState.FAILED: 'failed'&gt;, 'task_operator': 'PythonOperator', 'dag_start_date': datetime.datetime(2022, 11, 9, 9, 59, 34, 24988, tzinfo=Timezone('UTC')), 'dag_end_date': None, 'dag_state': 'running'} [2022-11-09T15:29:41.234+0530] {[processor.py:725](http://processor.py:725/)} INFO - Executed failure callback for &lt;TaskInstance: test_bowrna.failure_case manual__2022-11-09T09:59:32.540415+00:00 [failed]&gt; in state failed [2022-11-09T15:29:41.236+0530] {logging_mixin.py:120} INFO - [2022-11-09T15:29:41.236+0530] {[dagbag.py:647](http://dagbag.py:647/)} DEBUG - Running dagbag.sync_to_db with retries. Try 1 of </code></pre></div> <p dir="auto">This also logs the failure case that gets executed from processor.py flow of the code</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>
1
<p dir="auto">Not sure if this is a duplicate, but, if I have a function like:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function f() a = 1 b = 1 f(a b) end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">f</span>() a <span class="pl-k">=</span> <span class="pl-c1">1</span> b <span class="pl-k">=</span> <span class="pl-c1">1</span> <span class="pl-c1">f</span>(a b) <span class="pl-k">end</span></pre></div> <p dir="auto">then I get an error like:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; include(&quot;test.jl&quot;) ERROR: syntax: missing comma or ) in argument list while loading /home/simon/Desktop/test.jl, in expression starting on line 1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">include</span>(<span class="pl-s"><span class="pl-pds">"</span>test.jl<span class="pl-pds">"</span></span>) ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> <span class="pl-c1">missing</span> comma or ) <span class="pl-k">in</span> argument list <span class="pl-k">while</span> loading <span class="pl-k">/</span>home<span class="pl-k">/</span>simon<span class="pl-k">/</span>Desktop<span class="pl-k">/</span>test<span class="pl-k">.</span>jl, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">1</span></pre></div> <p dir="auto">It would be nice if the line number matched up with the line where the error was actually encountered, rather than the start of the function.</p>
<p dir="auto">A code example where Julia does not abort gracefully:</p> <p dir="auto"><code class="notranslate">(::Type{T})(x::Int) where {T&lt;:Integer} = println("crash")</code></p> <p dir="auto">entered in the REPL leads to:</p> <blockquote> <p dir="auto">crashcrashcrashcrashcrash<br> crash</p> <p dir="auto">crash</p> <p dir="auto">crash</p> <p dir="auto">corrupted double-linked list</p> <p dir="auto">signal (6): Aborted<br> while loading no file, in expression starting on line 0</p> </blockquote> <p dir="auto">A variation that leads to a sigsegv</p> <p dir="auto"><code class="notranslate">(::Type{T})(x::Int) where {T&lt;:Integer} = println(:crash)</code></p> <p dir="auto">prints</p> <blockquote> <p dir="auto">crashcrashcrashcrashcrash<br> crash</p> <p dir="auto">crash</p> <p dir="auto">crash</p> <p dir="auto">signal (11): Segmentation fault<br> while loading no file, in expression starting on line 0<br> unknown function (ip: 0x7ff958329554)<br> _ZN4llvm10AllocaInstC2EPNS_4TypeEPNS_5ValueEjRKNS_5TwineEPNS_11InstructionE at /home/picaud/ExternalSoftware/julia-d386e40c17/bin/../lib/julia/libLLVM-3.9.so (unknown line)<br> emit_function at /buildworker/worker/package_linux64/build/src/codegen.cpp:5643<br> ....</p> </blockquote> <p dir="auto">My Julia version is:</p> <blockquote> <p dir="auto">Julia Version 0.6.2<br> Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/d386e40c17d43b79fc89d3e579fc04547241787c/hovercard" href="https://github.com/JuliaLang/julia/commit/d386e40c17d43b79fc89d3e579fc04547241787c"><tt>d386e40</tt></a> (2017-12-13 18:08 UTC)<br> Platform Info:<br> OS: Linux (x86_64-pc-linux-gnu)<br> CPU: Intel(R) Xeon(R) CPU E5-2603 v3 @ 1.60GHz<br> WORD_SIZE: 64<br> BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)<br> LAPACK: libopenblas64_<br> LIBM: libopenlibm<br> LLVM: libLLVM-3.9.1 (ORCJIT, haswell)</p> </blockquote> <p dir="auto">Obvioulsy this code is a non sense, the point is that Julia is really not happy with it.</p>
0
<p dir="auto">Numpy.power(a,b) doesn't seem to be handling large numbers properly.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9269983/39159452-30168168-472b-11e8-9660-59ac9532a3bd.png"><img src="https://user-images.githubusercontent.com/9269983/39159452-30168168-472b-11e8-9660-59ac9532a3bd.png" alt="screen shot 2018-04-23 at 7 18 48 pm" style="max-width: 100%;"></a><br> Maybe a bug in multiplying matrixes?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9269983/39159470-517e1eb0-472b-11e8-84ec-a5e9447bb6dd.png"><img src="https://user-images.githubusercontent.com/9269983/39159470-517e1eb0-472b-11e8-84ec-a5e9447bb6dd.png" alt="screen shot 2018-04-23 at 7 19 29 pm" style="max-width: 100%;"></a><br> Numpy info: numpy in /Users/usernameHere/miniconda3/envs/nnseries/lib/python3.6/site-packages (1.12.1)<br> Update:<br> This seems similar to my c++ program that couldn't handle numbers larger than 2^31. If numpy uses a c or c++, an arbitrary-length integer library may be need to handle large numbers.</p>
<p dir="auto">Simple demo:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: np.uint8(0) - np.uint8(1) RuntimeWarning: overflow encountered in ubyte_scalars Out[1]: 255 In [2]: np.uint8(0)[...] - np.uint8(1)[...] Out[2]: 255"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>) <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>) <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">overflow</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">ubyte_scalars</span> <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-c1">255</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>)[...] <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)[...] <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-c1">255</span></pre></div> <p dir="auto">Should we even warn at all for unsigned integers?</p>
1
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: WIN10 x64 - Home</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Write a sass-map<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9027363/13957459/5a2e4cbe-f02b-11e5-8f9f-56ece966ac6a.png"><img src="https://cloud.githubusercontent.com/assets/9027363/13957459/5a2e4cbe-f02b-11e5-8f9f-56ece966ac6a.png" alt="image" style="max-width: 100%;"></a></li> </ol>
<p dir="auto">If I add a map to a scss file, e.g. "$map: (key1: value1, key2: value2, key3: value3);" it shows as an error. Red squiggly appears under the ":" after the first key and hover message reads ") expected". Despite the error in editor node-sass evaluates map-get correctly over it.</p>
1
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li> <li>TensorFlow installed from (source or binary): from conda</li> <li>TensorFlow version (use command below): 1.10 gpu from conda</li> <li>Python version: 3.7 from conda</li> <li>Bazel version (if compiling from source): n/a</li> <li>GCC/Compiler version (if compiling from source): n/a</li> <li>CUDA/cuDNN version: 10</li> <li>GPU model and memory: GX 1070 maxq</li> </ul> <p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with<br> python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <p dir="auto"><strong>Describe the current behavior</strong></p> <p dir="auto">Suddenly running update row operations became laggy and never progressed...</p> <p dir="auto"><strong>Describe the expected behavior</strong></p> <p dir="auto">update row operations should not run indefinetly</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" from mymodule import ex import gc, resource, multiprocessing def run_ex(print_usage=False, *args, **kwargs): ex.run(config_updates=kwargs) if print_usage: usage = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss print('resources used: {}'.format(usage)) gc.collect() def pool_run(*args, processes=1, print_usage=False, **kwargs): with multiprocessing.Pool(processes=processes) as pool: results = pool.apply(run_ex, (print_usage, *args), kwargs) gc.collect() return results pool_run(processes=1, print_usage=True, **opts) # ex is a wrapper that calls def train_fn( model, # &lt;--- WALSModel input_tensor, # tf.SparseTensor iterations:int, sp_sparse=None, # sp.sparse.coo_matrix sacred_run=None, print_progress:bool=True, logger=None ): os.environ['KMP_DUPLICATE_LIB_OK']='True' # extract row and column factors row_factor = model.row_factors[0] col_factor = model.col_factors[0] # update operations row_update_op = model.update_row_factors(sp_input=input_tensor)#[1] col_update_op = model.update_col_factors(sp_input=input_tensor)#[1] with tf.Session() as sess: # init model sess.run(model.initialize_op) sess.run(model.worker_init) if print_progress: status = Sil(total=iterations) for i in range(iterations): if logger is not None: logger.debug('Training iteration {}/{}'.format(str(i), str(iterations))) # update rows if logger is not None: logger.debug('Updating rows') # &lt;--- I see this in logs sess.run(model.row_update_prep_gramian_op) sess.run(model.initialize_row_update_op) _, _, loss, reg, _ = sess.run(row_update_op) if sacred_run is not None: sacred_run.log_scalar(&quot;loss.row&quot;, loss, i) # update cols if logger is not None: logger.debug('Updating columns') # &lt;--- never makes it here sess.run(model.col_update_prep_gramian_op) sess.run(model.initialize_col_update_op) _, _, loss, reg, _ = sess.run(col_update_op) if sacred_run is not None: sacred_run.log_scalar(&quot;loss.col&quot;, loss, i) # update status if print_progress: status.tick(prefix='iteration') if sacred_run is not None and sp_sparse is not None: if logger is not None: logger.debug('Calculating rmse.') rf = row_factor.eval(session=sess) cf = col_factor.eval(session=sess) it_rmse = rmse(sp_sparse, rf, cf) sacred_run.log_scalar(&quot;rmse&quot;, it_rmse, i) # eval row / col factors output_row = row_factor.eval(session=sess) output_col = col_factor.eval(session=sess) sess.close() os.environ['KMP_DUPLICATE_LIB_OK']='False' return output_row, output_col "><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mymodule</span> <span class="pl-k">import</span> <span class="pl-s1">ex</span> <span class="pl-k">import</span> <span class="pl-s1">gc</span>, <span class="pl-s1">resource</span>, <span class="pl-s1">multiprocessing</span> <span class="pl-k">def</span> <span class="pl-en">run_ex</span>(<span class="pl-s1">print_usage</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-s1">ex</span>.<span class="pl-en">run</span>(<span class="pl-s1">config_updates</span><span class="pl-c1">=</span><span class="pl-s1">kwargs</span>) <span class="pl-k">if</span> <span class="pl-s1">print_usage</span>: <span class="pl-s1">usage</span> <span class="pl-c1">=</span> <span class="pl-s1">resource</span>.<span class="pl-en">getrusage</span>(<span class="pl-s1">resource</span>.<span class="pl-v">RUSAGE_SELF</span>).<span class="pl-s1">ru_maxrss</span> <span class="pl-en">print</span>(<span class="pl-s">'resources used: {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">usage</span>)) <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-k">def</span> <span class="pl-en">pool_run</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-s1">processes</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">print_usage</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-k">with</span> <span class="pl-s1">multiprocessing</span>.<span class="pl-v">Pool</span>(<span class="pl-s1">processes</span><span class="pl-c1">=</span><span class="pl-s1">processes</span>) <span class="pl-k">as</span> <span class="pl-s1">pool</span>: <span class="pl-s1">results</span> <span class="pl-c1">=</span> <span class="pl-s1">pool</span>.<span class="pl-en">apply</span>(<span class="pl-s1">run_ex</span>, (<span class="pl-s1">print_usage</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>), <span class="pl-s1">kwargs</span>) <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-k">return</span> <span class="pl-s1">results</span> <span class="pl-en">pool_run</span>(<span class="pl-s1">processes</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">print_usage</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-c1">**</span><span class="pl-s1">opts</span>) <span class="pl-c"># ex is a wrapper that calls</span> <span class="pl-k">def</span> <span class="pl-en">train_fn</span>( <span class="pl-s1">model</span>, <span class="pl-c"># &lt;--- WALSModel</span> <span class="pl-s1">input_tensor</span>, <span class="pl-c"># tf.SparseTensor</span> <span class="pl-s1">iterations</span>:<span class="pl-s1">int</span>, <span class="pl-s1">sp_sparse</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-c"># sp.sparse.coo_matrix</span> <span class="pl-s1">sacred_run</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">print_progress</span>:<span class="pl-s1">bool</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">logger</span><span class="pl-c1">=</span><span class="pl-c1">None</span> ): <span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">'KMP_DUPLICATE_LIB_OK'</span>]<span class="pl-c1">=</span><span class="pl-s">'True'</span> <span class="pl-c"># extract row and column factors</span> <span class="pl-s1">row_factor</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-s1">row_factors</span>[<span class="pl-c1">0</span>] <span class="pl-s1">col_factor</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-s1">col_factors</span>[<span class="pl-c1">0</span>] <span class="pl-c"># update operations</span> <span class="pl-s1">row_update_op</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">update_row_factors</span>(<span class="pl-s1">sp_input</span><span class="pl-c1">=</span><span class="pl-s1">input_tensor</span>)<span class="pl-c">#[1]</span> <span class="pl-s1">col_update_op</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">update_col_factors</span>(<span class="pl-s1">sp_input</span><span class="pl-c1">=</span><span class="pl-s1">input_tensor</span>)<span class="pl-c">#[1]</span> <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-c"># init model</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">initialize_op</span>) <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">worker_init</span>) <span class="pl-k">if</span> <span class="pl-s1">print_progress</span>: <span class="pl-s1">status</span> <span class="pl-c1">=</span> <span class="pl-v">Sil</span>(<span class="pl-s1">total</span><span class="pl-c1">=</span><span class="pl-s1">iterations</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">iterations</span>): <span class="pl-k">if</span> <span class="pl-s1">logger</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">logger</span>.<span class="pl-en">debug</span>(<span class="pl-s">'Training iteration {}/{}'</span>.<span class="pl-en">format</span>(<span class="pl-en">str</span>(<span class="pl-s1">i</span>), <span class="pl-en">str</span>(<span class="pl-s1">iterations</span>))) <span class="pl-c"># update rows</span> <span class="pl-k">if</span> <span class="pl-s1">logger</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">logger</span>.<span class="pl-en">debug</span>(<span class="pl-s">'Updating rows'</span>) <span class="pl-c"># &lt;--- I see this in logs</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">row_update_prep_gramian_op</span>) <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">initialize_row_update_op</span>) <span class="pl-s1">_</span>, <span class="pl-s1">_</span>, <span class="pl-s1">loss</span>, <span class="pl-s1">reg</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">row_update_op</span>) <span class="pl-k">if</span> <span class="pl-s1">sacred_run</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">sacred_run</span>.<span class="pl-en">log_scalar</span>(<span class="pl-s">"loss.row"</span>, <span class="pl-s1">loss</span>, <span class="pl-s1">i</span>) <span class="pl-c"># update cols</span> <span class="pl-k">if</span> <span class="pl-s1">logger</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">logger</span>.<span class="pl-en">debug</span>(<span class="pl-s">'Updating columns'</span>) <span class="pl-c"># &lt;--- never makes it here</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">col_update_prep_gramian_op</span>) <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">model</span>.<span class="pl-s1">initialize_col_update_op</span>) <span class="pl-s1">_</span>, <span class="pl-s1">_</span>, <span class="pl-s1">loss</span>, <span class="pl-s1">reg</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">col_update_op</span>) <span class="pl-k">if</span> <span class="pl-s1">sacred_run</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">sacred_run</span>.<span class="pl-en">log_scalar</span>(<span class="pl-s">"loss.col"</span>, <span class="pl-s1">loss</span>, <span class="pl-s1">i</span>) <span class="pl-c"># update status</span> <span class="pl-k">if</span> <span class="pl-s1">print_progress</span>: <span class="pl-s1">status</span>.<span class="pl-en">tick</span>(<span class="pl-s1">prefix</span><span class="pl-c1">=</span><span class="pl-s">'iteration'</span>) <span class="pl-k">if</span> <span class="pl-s1">sacred_run</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span> <span class="pl-c1">and</span> <span class="pl-s1">sp_sparse</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-k">if</span> <span class="pl-s1">logger</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">logger</span>.<span class="pl-en">debug</span>(<span class="pl-s">'Calculating rmse.'</span>) <span class="pl-s1">rf</span> <span class="pl-c1">=</span> <span class="pl-s1">row_factor</span>.<span class="pl-en">eval</span>(<span class="pl-s1">session</span><span class="pl-c1">=</span><span class="pl-s1">sess</span>) <span class="pl-s1">cf</span> <span class="pl-c1">=</span> <span class="pl-s1">col_factor</span>.<span class="pl-en">eval</span>(<span class="pl-s1">session</span><span class="pl-c1">=</span><span class="pl-s1">sess</span>) <span class="pl-s1">it_rmse</span> <span class="pl-c1">=</span> <span class="pl-en">rmse</span>(<span class="pl-s1">sp_sparse</span>, <span class="pl-s1">rf</span>, <span class="pl-s1">cf</span>) <span class="pl-s1">sacred_run</span>.<span class="pl-en">log_scalar</span>(<span class="pl-s">"rmse"</span>, <span class="pl-s1">it_rmse</span>, <span class="pl-s1">i</span>) <span class="pl-c"># eval row / col factors</span> <span class="pl-s1">output_row</span> <span class="pl-c1">=</span> <span class="pl-s1">row_factor</span>.<span class="pl-en">eval</span>(<span class="pl-s1">session</span><span class="pl-c1">=</span><span class="pl-s1">sess</span>) <span class="pl-s1">output_col</span> <span class="pl-c1">=</span> <span class="pl-s1">col_factor</span>.<span class="pl-en">eval</span>(<span class="pl-s1">session</span><span class="pl-c1">=</span><span class="pl-s1">sess</span>) <span class="pl-s1">sess</span>.<span class="pl-en">close</span>() <span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">'KMP_DUPLICATE_LIB_OK'</span>]<span class="pl-c1">=</span><span class="pl-s">'False'</span> <span class="pl-k">return</span> <span class="pl-s1">output_row</span>, <span class="pl-s1">output_col</span></pre></div> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3> <p dir="auto">x_nparray = $VERY_LARGE_NP_ARRAY(bigger than 2G)</p> <p dir="auto">x = tf.Variable(init_value=x_nparray)</p> <p dir="auto">saver=tf.Saver()<br> with tf.Session() as sess:<br> saver.save(sess, 'path/to/save')</p> <p dir="auto">that would generate very large metagraph binary file, when i try to restore the model, it would failed because of the meta graph file size exceed the protobuf limit size.</p> <p dir="auto">I cannot reduce the size of x_nparray, because it's generated by other training system like caffe.</p> <h3 dir="auto">What other attempted solutions have you tried?</h3> <p dir="auto">set bigger limit byte of protobuf, however, the x_nparray is bigger than 3G, while the largest limit i can set is 2G.</p>
0
<ul dir="auto"> <li>Electron version:1.2.0</li> <li>Operating system:Windows 10</li> </ul> <p dir="auto">Toggle device toolbar button don't work in undock mode.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/304166/15633713/109597e6-25e7-11e6-8122-bd209972ca4a.gif"><img src="https://cloud.githubusercontent.com/assets/304166/15633713/109597e6-25e7-11e6-8122-bd209972ca4a.gif" alt="undock" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Hey Guys,</p> <p dir="auto">I trying out the Developer Feature <a href="http://etoxin.net/blog/2014/06/25/chrome-38-introduces-a-responsive-design-view/" rel="nofollow">http://etoxin.net/blog/2014/06/25/chrome-38-introduces-a-responsive-design-view/</a> and still is not working. Any plans in future about that ?</p>
1
<p dir="auto">Looks like a change in v3 that never made it into the docs. Form size classes are now .input-small and .input-large instead of .input-sm and .input-lg.</p>
<p dir="auto">To increase/decrease the size of form controls, you can add the classes input-lg or input-sm (at least according to the website [http://getbootstrap.com/css/#forms] - which is the most consistent solution). In the css code, however, the classes are called input-large and input-small.</p>
1
<p dir="auto">I am installing tensorflow 1.0.0-rc0 with GPU, the environment is:<br> Operating System: Ubuntu 14.04.4 LTS<br> gcc version: 4.7<br> bazel:0.4.5<br> python 3.6<br> CUDA 8.0<br> cuDNN:5.1.5<br> cuDNN is installed at /home/scs4450/CaffeInstall/cuda ranther than /usr/local/cuda-8.0<br> when i ./configure my tensorflow, i get the error like this:<br> scs4450@scs4450:~/tensorflow-1.0.0-rc0$ bazel build --copt=-march=native -c opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package</p> <p dir="auto">INFO: Found 1 target...<br> ERROR: /home/scs4450/.cache/bazel/<em>bazel_scs4450/a3c5204dbd511f84e92c40ad5244a5e1/external/protobuf/BUILD:334:1: C++ compilation of rule '@protobuf//:protoc' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command<br> (cd /home/scs4450/.cache/bazel/<em>bazel_scs4450/a3c5204dbd511f84e92c40ad5244a5e1/execroot/tensorflow-1.0.0-rc0 &amp;&amp; <br> exec env - <br> LD_LIBRARY_PATH=:/usr/local/cuda/lib64 <br> PATH=/home/scs4450/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/cuda/bin <br> external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++11' -MD -MF bazel-out/host/bin/external/protobuf/<em>objs/protoc/external/protobuf/src/google/protobuf/compiler/main.d '-frandom-seed=bazel-out/host/bin/external/protobuf/<em>objs/protoc/external/protobuf/src/google/protobuf/compiler/main.o' -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE</em></em>="redacted"' '-D__TIMESTAMP</em></em>="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c external/protobuf/src/google/protobuf/compiler/main.cc -o bazel-out/host/bin/external/protobuf/_objs/protoc/external/protobuf/src/google/protobuf/compiler/main.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.<br> gcc: error: unrecognized command line option '-fno-canonical-system-headers'<br> Target //tensorflow/tools/pip_package:build_pip_package failed to build<br> INFO: Elapsed time: 0.692s, Critical Path: 0.16s</p>
<p dir="auto">when I run :<br> <code class="notranslate">bazel build --config=opt --config=cuda --verbose_failures //tensorflow/tools/pip_package:build_pip_package</code></p> <p dir="auto">INFO: Found 1 target...<br> ERROR: /home/qs/.cache/bazel/<em>bazel_qs/081cd1dbca77dcff65c775e7e860e873/external/farmhash_archive/BUILD.bazel:12:1: C++ compilation of rule '@farmhash_archive//:farmhash' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command<br> (cd /home/qs/.cache/bazel/<em>bazel_qs/081cd1dbca77dcff65c775e7e860e873/execroot/tensorflow &amp;&amp; <br> exec env - <br> LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64/:/usr/lib32/:/usr/lib/x86_64-linux-gnu/::/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64 <br> PATH=/bin:/usr/bin:/home/qs/mysoft/jdk1.8/bin <br> external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++11' -MD -MF bazel-out/host/bin/external/farmhash_archive/<em>objs/farmhash/external/farmhash_archive/src/farmhash.d '-frandom-seed=bazel-out/host/bin/external/farmhash_archive/<em>objs/farmhash/external/farmhash_archive/src/farmhash.o' -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem external/farmhash_archive/src -isystem bazel-out/host/genfiles/external/farmhash_archive/src -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE</em></em>="redacted"' '-D__TIMESTAMP</em></em>="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c external/farmhash_archive/src/farmhash.cc -o bazel-out/host/bin/external/farmhash_archive/_objs/farmhash/external/farmhash_archive/src/farmhash.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.<br> gcc: error: unrecognized command line option '-fno-canonical-system-headers'<br> Target //tensorflow/tools/pip_package:build_pip_package failed to build<br> INFO: Elapsed time: 1.003s, Critical Path: 0.49s</p> <p dir="auto">How to solve this problem?</p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.2.</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows... class Foo { bar: &quot;fizz&quot; | &quot;buzz&quot;; } class Bar extends Foo { bar = &quot;fizz&quot;; }"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">bar</span>: <span class="pl-s">"fizz"</span> <span class="pl-c1">|</span> <span class="pl-s">"buzz"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Bar</span> <span class="pl-k">extends</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-s">"fizz"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> <code class="notranslate">Bar.bar</code> is initialized to <code class="notranslate">"fizz"</code>;</p> <p dir="auto"><strong>Actual behavior:</strong><br> <code class="notranslate">Type 'string' is not assignable to type '"buzz"'</code></p>
<p dir="auto">Let's use:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A = { data: number; } interface B = { data: string; } interface C extends A, B {}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">B</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">This will throw an error as data has two separately defined types. I think that it would be really useful to allow C to become a union of the two interfaces either implicitly or to allow explicit unions of the conflicting types. The ultimate result being that:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface C extends A, B {} = { data: number | string; }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> data: <span class="pl-s1">number</span> <span class="pl-c1">|</span> <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Otherwise, a new interface would have to be created which would be a duplication of effort or the type would have to be overridden with any, which defeats the purpose of having strict types.</p> <p dir="auto">It's just a thought, but since TypeScript allows multiple inheritance with interfaces and has union types, I thought that this could be a beneficial merging of the two ideas.</p>
0
<p dir="auto">In Microsoft Visual Studio Professional you can click+hold on selected text and then drag that text to a new location. Like a cut/paste operation by dragging/dropping. Requesting that VS Code support this feature. Thanks!</p>
<p dir="auto">We've seen several users run into issues while trying to use a Debugger in VS Code with source mapping for JavaScript projects (From TypeScript, React-Native, etc...). It's not trivial to configure your build project to generate the correct source maps, and it's difficult to understand if, and when they are wrong.</p> <p dir="auto">I'd be amazing if you could add better diagnostic tools so it'd be easier for the users to debug these kind of issues. For example, you could add a new feature that when you put a breakpoint on TypeScript, if you hover over it you'll see a tooltip that shows you a snippet from the mapped JavaScript code, and where was the breakpoint put exactly on the JavaScript code. You could also have a "More info" button on that tooltip, that would decode the values that are included in the source map, and show you exactly how the source map says the characters around the breakpoint should be mapped to the source code.</p> <p dir="auto">We've also noticed that sometimes if you put breakpoints and the source map is not completely valid, the breakpoints might disappear completely, or appear at the end of the file. It'd be nice if you could also have more validations around this (for example check that the breakpoint line should be less than the total lines of the file where you are putting that breakpoint), and show a nice error message with diagnostic information when something doesn't appear to be right, instead of just "ignoring" that breakpoint or error silently.</p> <p dir="auto">For more information you can see an issue that was created against our extension: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147082652" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode-react-native/issues/206" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode-react-native/issues/206/hovercard?comment_id=209109389&amp;comment_type=issue_comment" href="https://github.com/microsoft/vscode-react-native/issues/206#issuecomment-209109389">microsoft/vscode-react-native#206 (comment)</a></p>
0
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform: OS X 10.13.3</li> <li>Custom code</li> <li>tensorflow version: 1.12.0</li> <li>python version: 3.6.5</li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> Tensorflow raises a TypeError when creating a dynamic_rnn with tf.int32 type in its input and state. When changing the type to tf.float32 the error is not raised.</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> Ideally, a dynamic_rnn should support tf.in32 types. If there's any reason why instantiating a dynamic_rnn with tf.int32 type in its input and state should not be allowed, a custom error should be raised.</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> The code below reproduces the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf X = tf.placeholder(tf.int32, [None, 10, 1]) cell = tf.nn.rnn_cell.LSTMCell(1, dtype=tf.int32) output, state = tf.nn.dynamic_rnn(cell=cell, inputs=X, dtype=tf.int32) "><pre class="notranslate"><code class="notranslate">import tensorflow as tf X = tf.placeholder(tf.int32, [None, 10, 1]) cell = tf.nn.rnn_cell.LSTMCell(1, dtype=tf.int32) output, state = tf.nn.dynamic_rnn(cell=cell, inputs=X, dtype=tf.int32) </code></pre></div> <p dir="auto">The code below doesn't:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import tensorflow as tf X = tf.placeholder(tf.float32, [None, 10, 1]) cell = tf.nn.rnn_cell.LSTMCell(1, dtype=tf.float32) output, state = tf.nn.dynamic_rnn(cell=cell, inputs=X, dtype=tf.float32) "><pre class="notranslate"><code class="notranslate"> import tensorflow as tf X = tf.placeholder(tf.float32, [None, 10, 1]) cell = tf.nn.rnn_cell.LSTMCell(1, dtype=tf.float32) output, state = tf.nn.dynamic_rnn(cell=cell, inputs=X, dtype=tf.float32) </code></pre></div> <p dir="auto">Note the change in dtype.</p> <h2 dir="auto"><strong>Other info / logs</strong><br> TRACEBACK:</h2> <p dir="auto">TypeError Traceback (most recent call last)<br> in ()<br> 2 X = tf.placeholder(tf.int32, [None, 10, 1])<br> 3 cell = tf.nn.rnn_cell.LSTMCell(1, dtype=tf.int32)<br> ----&gt; 4 output, state = tf.nn.dynamic_rnn(cell=cell, inputs=X, dtype=tf.int32)#, initial_state=state)<br> 5</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py in dynamic_rnn(cell, inputs, sequence_length, initial_state, dtype, parallel_iterations, swap_memory, time_major, scope)<br> 662 swap_memory=swap_memory,<br> 663 sequence_length=sequence_length,<br> --&gt; 664 dtype=dtype)<br> 665<br> 666 # Outputs of _dynamic_rnn_loop are always shaped [time, batch, depth].</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py in _dynamic_rnn_loop(cell, inputs, initial_state, parallel_iterations, swap_memory, sequence_length, dtype)<br> 870 parallel_iterations=parallel_iterations,<br> 871 maximum_iterations=time_steps,<br> --&gt; 872 swap_memory=swap_memory)<br> 873<br> 874 # Unpack final output if not using output tuples.</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py in while_loop(cond, body, loop_vars, shape_invariants, parallel_iterations, back_prop, swap_memory, name, maximum_iterations, return_same_structure)<br> 3289 ops.add_to_collection(ops.GraphKeys.WHILE_CONTEXT, loop_context)<br> 3290 result = loop_context.BuildLoop(cond, body, loop_vars, shape_invariants,<br> -&gt; 3291 return_same_structure)<br> 3292 if maximum_iterations is not None:<br> 3293 return result[1]</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py in BuildLoop(self, pred, body, loop_vars, shape_invariants, return_same_structure)<br> 3002 with ops.get_default_graph()._mutation_lock(): # pylint: disable=protected-access<br> 3003 original_body_result, exit_vars = self._BuildLoop(<br> -&gt; 3004 pred, body, original_loop_vars, loop_vars, shape_invariants)<br> 3005 finally:<br> 3006 self.Exit()</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py in _BuildLoop(self, pred, body, original_loop_vars, loop_vars, shape_invariants)<br> 2937 flat_sequence=vars_for_body_with_tensor_arrays)<br> 2938 pre_summaries = ops.get_collection(ops.GraphKeys._SUMMARY_COLLECTION) # pylint: disable=protected-access<br> -&gt; 2939 body_result = body(*packed_vars_for_body)<br> 2940 post_summaries = ops.get_collection(ops.GraphKeys._SUMMARY_COLLECTION) # pylint: disable=protected-access<br> 2941 if not nest.is_sequence(body_result):</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py in (i, lv)<br> 3258 cond = lambda i, lv: ( # pylint: disable=g-long-lambda<br> 3259 math_ops.logical_and(i &lt; maximum_iterations, orig_cond(*lv)))<br> -&gt; 3260 body = lambda i, lv: (i + 1, orig_body(*lv))<br> 3261<br> 3262 if context.executing_eagerly():</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py in _time_step(time, output_ta_t, state)<br> 838 skip_conditionals=True)<br> 839 else:<br> --&gt; 840 (output, new_state) = call_cell()<br> 841<br> 842 # Keras cells always wrap state as list, even if it's a single tensor.</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py in ()<br> 824 if is_keras_rnn_cell and not nest.is_sequence(state):<br> 825 state = [state]<br> --&gt; 826 call_cell = lambda: cell(input_t, state)<br> 827<br> 828 if sequence_length is not None:</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn_cell_impl.py in <strong>call</strong>(self, inputs, state, scope, *args, **kwargs)<br> 368 # method. See the class docstring for more details.<br> 369 return base_layer.Layer.<strong>call</strong>(self, inputs, state, scope=scope,<br> --&gt; 370 *args, **kwargs)<br> 371<br> 372</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/layers/base.py in <strong>call</strong>(self, inputs, *args, **kwargs)<br> 372<br> 373 # Actually call layer<br> --&gt; 374 outputs = super(Layer, self).<strong>call</strong>(inputs, *args, **kwargs)<br> 375<br> 376 if not context.executing_eagerly():</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py in <strong>call</strong>(self, inputs, *args, **kwargs)<br> 755 if not in_deferred_mode:<br> 756 self._in_call = True<br> --&gt; 757 outputs = self.call(inputs, *args, **kwargs)<br> 758 self._in_call = False<br> 759 if outputs is None:</p> <p dir="auto">~/jonassucks3/lib/python3.6/site-packages/tensorflow/python/ops/rnn_cell_impl.py in call(self, inputs, state)<br> 1003 sigmoid(i + self._w_i_diag * c_prev) * self._activation(j))<br> 1004 else:<br> -&gt; 1005 c = (sigmoid(f + self._forget_bias) * c_prev + sigmoid(i) *<br> 1006 self._activation(j))<br> 1007</p> <p dir="auto">TypeError: unsupported operand type(s) for +: 'Tensor' and 'float'</p>
<p dir="auto">This code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf x = tf.constant([ [[0,0],[5,0],[1,0],[1,0],[2,3],[4,0]], [[0,0],[0,0],[1,3],[2,0],[0,0],[0,0]] ], dtype=tf.int32) #changing this to tf.float32 solves the problem cell = tf.nn.rnn_cell.LSTMCell(num_units=15) initial_state = cell.zero_state(tf.shape(x)[0], dtype=tf.float32) outputs, state = tf.nn.dynamic_rnn(cell, x, initial_state=initial_state, dtype=tf.float32) init_op = tf.group(tf.global_variables_initializer(), tf.local_variables_initializer()) with tf.Session() as sess: sess.run(init_op) print(sess.run([outputs, state]))"><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-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">constant</span>([ [[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">5</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">2</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">4</span>,<span class="pl-c1">0</span>]], [[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">1</span>,<span class="pl-c1">3</span>],[<span class="pl-c1">2</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>],[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>]] ], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>) <span class="pl-c">#changing this to tf.float32 solves the problem</span> <span class="pl-s1">cell</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">rnn_cell</span>.<span class="pl-v">LSTMCell</span>(<span class="pl-s1">num_units</span><span class="pl-c1">=</span><span class="pl-c1">15</span>) <span class="pl-s1">initial_state</span> <span class="pl-c1">=</span> <span class="pl-s1">cell</span>.<span class="pl-en">zero_state</span>(<span class="pl-s1">tf</span>.<span class="pl-en">shape</span>(<span class="pl-s1">x</span>)[<span class="pl-c1">0</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>) <span class="pl-s1">outputs</span>, <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">dynamic_rnn</span>(<span class="pl-s1">cell</span>, <span class="pl-s1">x</span>, <span class="pl-s1">initial_state</span><span class="pl-c1">=</span><span class="pl-s1">initial_state</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>) <span class="pl-s1">init_op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">group</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>(), <span class="pl-s1">tf</span>.<span class="pl-en">local_variables_initializer</span>()) <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">init_op</span>) <span class="pl-en">print</span>(<span class="pl-s1">sess</span>.<span class="pl-en">run</span>([<span class="pl-s1">outputs</span>, <span class="pl-s1">state</span>]))</pre></div> <p dir="auto">Does not work, because the inputs to the LSTM are integers and they need to be float. However, in version 1.4.0 I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: Initializer for variable rnn/lstm_cell/kernel/ is from inside a control-flow construct, such as a loop or conditional. When creating a variable inside a loop or conditional, use a lambda as the initializer."><pre class="notranslate"><code class="notranslate">ValueError: Initializer for variable rnn/lstm_cell/kernel/ is from inside a control-flow construct, such as a loop or conditional. When creating a variable inside a loop or conditional, use a lambda as the initializer. </code></pre></div> <p dir="auto">Which has nothing to do with what is wrong with the code. Version 1.2.0 however, generates this error which correctly refers to the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [int32, float32] that don't all match."><pre class="notranslate"><code class="notranslate">TypeError: Tensors in list passed to 'values' of 'ConcatV2' Op have types [int32, float32] that don't all match. </code></pre></div>
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 a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Problem Description</h3> <p dir="auto">Currently, the <code class="notranslate">accelerator</code> property in <code class="notranslate">MenuItem</code> accepts only one string, therefore it's not possible to register multiple shortucts.</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">The <code class="notranslate">accelerator</code> property in <code class="notranslate">MenuItem</code> class should accept an array of strings.</p> <h3 dir="auto">Alternatives Considered</h3> <p dir="auto">Adding multiple basically the same <code class="notranslate">MenuItem</code>s.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ { accelerator: 'CmdOrCtrl+L', label: 'Toggle Overlay', click() { appWindow.webContents.send('toggle-overlay'); }, }, { accelerator: 'Ctrl+Space', label: 'Toggle Overlay', click() { appWindow.webContents.send('toggle-overlay'); }, }, ]"><pre class="notranslate"><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">accelerator</span>: <span class="pl-s">'CmdOrCtrl+L'</span><span class="pl-kos">,</span> <span class="pl-c1">label</span>: <span class="pl-s">'Toggle Overlay'</span><span class="pl-kos">,</span> <span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">appWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">'toggle-overlay'</span><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-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">accelerator</span>: <span class="pl-s">'Ctrl+Space'</span><span class="pl-kos">,</span> <span class="pl-c1">label</span>: <span class="pl-s">'Toggle Overlay'</span><span class="pl-kos">,</span> <span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">appWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s">'toggle-overlay'</span><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-kos">,</span> <span class="pl-kos">]</span></pre></div>
<p dir="auto">As mentioned in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="71426008" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/1507" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/1507/hovercard" href="https://github.com/electron/electron/issues/1507">#1507</a>, it would be nice to be able to specify accelerator aliases, or multiple accelerators.</p> <p dir="auto">The most obvious use case is for Zoom In. <code class="notranslate">Command+Plus</code> and <code class="notranslate">Command+=</code> generally both work for zooming in, but there is no way to specify this behavior in Electron.</p> <p dir="auto">One idea is to specify an array of accelerators, where the first is shown as the menu item's shortcut, and the rest are aliases.</p> <p dir="auto">For example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ label: 'Zoom In', accelerators: [ 'Command+Plus', 'Command+=' ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">'Zoom In'</span><span class="pl-kos">,</span> <span class="pl-c1">accelerators</span>: <span class="pl-kos">[</span> <span class="pl-s">'Command+Plus'</span><span class="pl-kos">,</span> <span class="pl-s">'Command+='</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div>
1
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <strong>3.0.9</strong></li> <li>Operating System (Platform and Version): <strong>Max OSX 10.14</strong></li> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable): <strong>Not sure</strong></li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Open and close without crashes or hickups.</p> <p dir="auto"><strong>Actual behavior</strong><br> Upon opening my app, first of all, the jumping application of your starting app in the dock (on Mac) is freezing a couple of times, which looks like something is already breaking there.</p> <p dir="auto">During application use, everything seems fine, nothing is broken. But upon closing the application, I receive following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff37b77ccc CFHash + 372 1 com.apple.CoreFoundation 0x00007fff37ba3547 CFBasicHashGetCountOfKey + 198 2 com.apple.CoreFoundation 0x00007fff37ba7524 CFSetContainsValue + 73 3 com.apple.CoreFoundation 0x00007fff37bc40d2 CFRunLoopRemoveSource + 366 4 com.github.electron.framework 0x00000001096335d4 extensions::GlobalShortcutListenerMac::StopWatchingMediaOrVolumeKeys() + 36 5 com.github.electron.framework 0x0000000109633f7a extensions::GlobalShortcutListenerMac::UnregisterAcceleratorImpl(ui::Accelerator const&amp;) + 202 6 com.github.electron.framework 0x0000000109632d3b extensions::GlobalShortcutListener::UnregisterAccelerator(ui::Accelerator const&amp;, extensions::GlobalShortcutListener::Observer*) + 139 7 com.github.electron.framework 0x0000000109632e88 extensions::GlobalShortcutListener::UnregisterAccelerators(extensions::GlobalShortcutListener::Observer*) + 280 8 com.github.electron.framework 0x0000000109527832 atom::api::GlobalShortcut::UnregisterAll() + 34 9 com.github.electron.framework 0x00000001095277ea atom::api::GlobalShortcut::~GlobalShortcut() + 58 10 com.github.electron.framework 0x0000000109527899 atom::api::GlobalShortcut::~GlobalShortcut() + 9 11 com.github.electron.framework 0x00000001095278ce atom::api::GlobalShortcut::~GlobalShortcut() + 14 12 com.github.electron.framework 0x00000001095278ed non-virtual thunk to atom::api::GlobalShortcut::~GlobalShortcut() + 13 13 com.github.electron.framework 0x0000000109595f0f mate::TrackableObjectBase::Destroy() + 15 14 com.github.electron.framework 0x0000000109591d2a 0x1094f9000 + 625962 15 com.github.electron.framework 0x0000000109591cf8 0x1094f9000 + 625912 16 com.github.electron.framework 0x0000000109591cbc 0x1094f9000 + 625852 17 com.github.electron.framework 0x0000000109595ff4 base::internal::Invoker&lt;base::internal::BindState&lt;void (mate::TrackableObjectBase::*)(), base::WeakPtr&lt;mate::TrackableObjectBase&gt; &gt;, void ()&gt;::RunOnce(base::internal::BindStateBase*) + 20 18 com.github.electron.framework 0x00000001094fecb5 0x1094f9000 + 23733 19 com.github.electron.framework 0x000000010959ce80 atom::AtomBrowserMainParts::PostMainMessageLoopRun() + 96 20 com.github.electron.framework 0x0000000109c25383 0x1094f9000 + 7521155 21 com.github.electron.framework 0x0000000109c50759 0x1094f9000 + 7698265 22 com.github.electron.framework 0x0000000109c21385 0x1094f9000 + 7504773 23 com.github.electron.framework 0x0000000109916d09 0x1094f9000 + 4316425 24 com.github.electron.framework 0x000000010b5c0662 0x1094f9000 + 34371170 25 com.github.electron.framework 0x0000000109915924 0x1094f9000 + 4311332 26 com.github.electron.framework 0x00000001094fbb84 AtomMain + 68 27 be.sneljo.auryo 0x00000001094f2f16 main + 38 28 libdyld.dylib 0x00007fff64c3d085 start + 1"><pre class="notranslate"><code class="notranslate">Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff37b77ccc CFHash + 372 1 com.apple.CoreFoundation 0x00007fff37ba3547 CFBasicHashGetCountOfKey + 198 2 com.apple.CoreFoundation 0x00007fff37ba7524 CFSetContainsValue + 73 3 com.apple.CoreFoundation 0x00007fff37bc40d2 CFRunLoopRemoveSource + 366 4 com.github.electron.framework 0x00000001096335d4 extensions::GlobalShortcutListenerMac::StopWatchingMediaOrVolumeKeys() + 36 5 com.github.electron.framework 0x0000000109633f7a extensions::GlobalShortcutListenerMac::UnregisterAcceleratorImpl(ui::Accelerator const&amp;) + 202 6 com.github.electron.framework 0x0000000109632d3b extensions::GlobalShortcutListener::UnregisterAccelerator(ui::Accelerator const&amp;, extensions::GlobalShortcutListener::Observer*) + 139 7 com.github.electron.framework 0x0000000109632e88 extensions::GlobalShortcutListener::UnregisterAccelerators(extensions::GlobalShortcutListener::Observer*) + 280 8 com.github.electron.framework 0x0000000109527832 atom::api::GlobalShortcut::UnregisterAll() + 34 9 com.github.electron.framework 0x00000001095277ea atom::api::GlobalShortcut::~GlobalShortcut() + 58 10 com.github.electron.framework 0x0000000109527899 atom::api::GlobalShortcut::~GlobalShortcut() + 9 11 com.github.electron.framework 0x00000001095278ce atom::api::GlobalShortcut::~GlobalShortcut() + 14 12 com.github.electron.framework 0x00000001095278ed non-virtual thunk to atom::api::GlobalShortcut::~GlobalShortcut() + 13 13 com.github.electron.framework 0x0000000109595f0f mate::TrackableObjectBase::Destroy() + 15 14 com.github.electron.framework 0x0000000109591d2a 0x1094f9000 + 625962 15 com.github.electron.framework 0x0000000109591cf8 0x1094f9000 + 625912 16 com.github.electron.framework 0x0000000109591cbc 0x1094f9000 + 625852 17 com.github.electron.framework 0x0000000109595ff4 base::internal::Invoker&lt;base::internal::BindState&lt;void (mate::TrackableObjectBase::*)(), base::WeakPtr&lt;mate::TrackableObjectBase&gt; &gt;, void ()&gt;::RunOnce(base::internal::BindStateBase*) + 20 18 com.github.electron.framework 0x00000001094fecb5 0x1094f9000 + 23733 19 com.github.electron.framework 0x000000010959ce80 atom::AtomBrowserMainParts::PostMainMessageLoopRun() + 96 20 com.github.electron.framework 0x0000000109c25383 0x1094f9000 + 7521155 21 com.github.electron.framework 0x0000000109c50759 0x1094f9000 + 7698265 22 com.github.electron.framework 0x0000000109c21385 0x1094f9000 + 7504773 23 com.github.electron.framework 0x0000000109916d09 0x1094f9000 + 4316425 24 com.github.electron.framework 0x000000010b5c0662 0x1094f9000 + 34371170 25 com.github.electron.framework 0x0000000109915924 0x1094f9000 + 4311332 26 com.github.electron.framework 0x00000001094fbb84 AtomMain + 68 27 be.sneljo.auryo 0x00000001094f2f16 main + 38 28 libdyld.dylib 0x00007fff64c3d085 start + 1 </code></pre></div> <p dir="auto">Full error: <a href="https://pastebin.com/NxYCxE02" rel="nofollow">https://pastebin.com/NxYCxE02</a></p> <p dir="auto"><strong>To Reproduce</strong><br> You can fork <a href="https://github.com/Superjo149/auryo">https://github.com/Superjo149/auryo</a>. If you want to be sure nothing is changed, please use <a href="https://github.com/Superjo149/auryo/tree/v2.2.1">https://github.com/Superjo149/auryo/tree/v2.2.1</a>.</p> <p dir="auto"><strong>Additional Information</strong><br> I'm pretty sure it started happening as of v3.X but I also updated some other dependencies, so I'm not sure if electron is the root cause here. Or if it is some package interfering.</p>
<ul dir="auto"> <li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v3.0.1 (Happens on older versions of Electron as well)</li> <li>Operating System (Platform and Version): macOS Mojave (10.14)</li> </ul> <p dir="auto">Steps:<br> 
- App launches<br> 
- Pop up saying “App” would like to control your computer using accessibility features… appears<br> 
- Press deny<br> 
- On app close, the app tries to unregister those shortcuts, it closes and then a popup saying app quit unexpectedly appears

</p> <p dir="auto">This seems to happen with the app registers accelerators related to media such as MediaPlayPause, MediaNextTrack, MediaPreviousTrack.</p> <p dir="auto">Tried checking for globalShortcut.isRegistered(accelerator) for each of the accelerators before unregistering them one by one but it didn't help.</p> <p dir="auto">Another related problem could be: globalShortcut.isRegistered(accelerator) still returns true even if the shortcut wasn't actually registered (because of the accessibility permissions)</p> <p dir="auto">Note:<br> The crash doesn't happen when the permissions for accessibility control for the app are allowed.</p> <details> <p dir="auto">Process: Anghami [11148]<br> Path: /Applications/Anghami.app/Contents/MacOS/Anghami<br> Identifier: Anghami<br> Version: 1.5.8 (10)<br> Code Type: X86-64 (Native)<br> Parent Process: ??? [1]<br> Responsible: Anghami [11148]<br> User ID: 501</p> <p dir="auto">Date/Time: 2018-09-27 12:35:43.320 +0300<br> OS Version: Mac OS X 10.14 (18A391)<br> Report Version: 12<br> Bridge OS Version: 3.0 (14Y664)<br> Anonymous UUID: F6EE7B12-0ED4-362F-F07B-E9054FE80EF0</p> <p dir="auto">Sleep/Wake UUID: 3E9DA367-D1A4-46C8-8055-7F4CC3C46863</p> <p dir="auto">Time Awake Since Boot: 37000 seconds<br> Time Since Wake: 6400 seconds</p> <p dir="auto">System Integrity Protection: enabled</p> <p dir="auto">Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread</p> <p dir="auto">Exception Type: EXC_BAD_INSTRUCTION (SIGILL)<br> Exception Codes: 0x0000000000000001, 0x0000000000000000<br> Exception Note: EXC_CORPSE_NOTIFY</p> <p dir="auto">Termination Signal: Illegal instruction: 4<br> Termination Reason: Namespace SIGNAL, Code 0x4<br> Terminating Process: exc handler [11148]</p> <p dir="auto">Application Specific Information:<br> *** CFHash() called with NULL ***</p> <p dir="auto">Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread<br> 0 com.apple.CoreFoundation 0x00007fff43ae9ccc CFHash + 372<br> 1 com.apple.CoreFoundation 0x00007fff43b15547 CFBasicHashGetCountOfKey + 198<br> 2 com.apple.CoreFoundation 0x00007fff43b19524 CFSetContainsValue + 73<br> 3 com.apple.CoreFoundation 0x00007fff43b360d2 CFRunLoopRemoveSource + 366<br> 4 com.github.electron.framework 0x0000000100ef5464 extensions::GlobalShortcutListenerMac::StopWatchingMediaOrVolumeKeys() + 36<br> 5 com.github.electron.framework 0x0000000100ef5ea7 extensions::GlobalShortcutListenerMac::UnregisterAcceleratorImpl(ui::Accelerator const&amp;) + 215<br> 6 com.github.electron.framework 0x0000000100ef4a76 extensions::GlobalShortcutListener::UnregisterAccelerator(ui::Accelerator const&amp;, extensions::GlobalShortcutListener::Observer*) + 150<br> 7 com.github.electron.framework 0x0000000100ef4bd9 extensions::GlobalShortcutListener::UnregisterAccelerators(extensions::GlobalShortcutListener::Observer*) + 297<br> 8 com.github.electron.framework 0x0000000100dd7a12 atom::api::GlobalShortcut::UnregisterAll() + 34<br> 9 com.github.electron.framework 0x0000000100dd79ca atom::api::GlobalShortcut::~GlobalShortcut() + 58<br> 10 com.github.electron.framework 0x0000000100dd7a79 atom::api::GlobalShortcut::~GlobalShortcut() + 9<br> 11 com.github.electron.framework 0x0000000100dd7aae atom::api::GlobalShortcut::~GlobalShortcut() + 14<br> 12 com.github.electron.framework 0x0000000100dd7acd non-virtual thunk to atom::api::GlobalShortcut::~GlobalShortcut() + 13<br> 13 com.github.electron.framework 0x0000000100e417ff mate::TrackableObjectBase::Destroy() + 15<br> 14 com.github.electron.framework 0x0000000100e41a6a 0x100da4000 + 645738<br> 15 com.github.electron.framework 0x0000000100e41a38 0x100da4000 + 645688<br> 16 com.github.electron.framework 0x0000000100e419fc 0x100da4000 + 645628<br> 17 com.github.electron.framework 0x0000000100e419c4 base::internal::Invoker&lt;base::internal::BindState&lt;void (mate::TrackableObjectBase::<em>)(), base::WeakPtrmate::TrackableObjectBase &gt;, void ()&gt;::Run(base::internal::BindStateBase</em>) + 20<br> 18 com.github.electron.framework 0x0000000100db9430 0x100da4000 + 87088<br> 19 com.github.electron.framework 0x0000000100e4b4ad atom::AtomBrowserMainParts::PostMainMessageLoopRun() + 77<br> 20 com.github.electron.framework 0x00000001012b4f89 0x100da4000 + 5312393<br> 21 com.github.electron.framework 0x00000001012b74cc 0x100da4000 + 5321932<br> 22 com.github.electron.framework 0x00000001012b0cc8 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/5295304f017434e0a52a8c61f2a5f64aa128ed93/hovercard" href="https://github.com/electron/electron/commit/5295304f017434e0a52a8c61f2a5f64aa128ed93"><tt>5295304</tt></a><br> 23 com.github.electron.framework 0x00000001011f9e90 0x100da4000 + 4546192<br> 24 com.github.electron.framework 0x0000000102def314 0x100da4000 + 33862420<br> 25 com.github.electron.framework 0x00000001011f8ca4 0x100da4000 + 4541604<br> 26 com.github.electron.framework 0x0000000100da6ac4 AtomMain + 68<br> 27 com.electron.anghami 0x0000000100d98f26 main + 38<br> 28 libdyld.dylib 0x00007fff70baf085 start + 1</p> <p dir="auto">Thread 1:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x0000000105943259 0x10580e000 + 1266265<br> 4 libnode.dylib 0x000000010594324c 0x10580e000 + 1266252<br> 5 libnode.dylib 0x0000000105943194 0x10580e000 + 1266068<br> 6 libnode.dylib 0x0000000105942ac2 0x10580e000 + 1264322<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 2:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x0000000105943259 0x10580e000 + 1266265<br> 4 libnode.dylib 0x000000010594324c 0x10580e000 + 1266252<br> 5 libnode.dylib 0x0000000105943194 0x10580e000 + 1266068<br> 6 libnode.dylib 0x0000000105942ac2 0x10580e000 + 1264322<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 3:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x0000000105943259 0x10580e000 + 1266265<br> 4 libnode.dylib 0x000000010594324c 0x10580e000 + 1266252<br> 5 libnode.dylib 0x0000000105943194 0x10580e000 + 1266068<br> 6 libnode.dylib 0x0000000105942ac2 0x10580e000 + 1264322<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 4:<br> 0 libsystem_pthread.dylib 0x00007fff70da0408 start_wqthread + 0<br> 1 ??? 0x0000000054485244 0 + 1414025796</p> <p dir="auto">Thread 5:: NetworkConfigWatcher<br> 0 libsystem_kernel.dylib 0x00007fff70ce7c2a mach_msg_trap + 10<br> 1 libsystem_kernel.dylib 0x00007fff70ce8174 mach_msg + 60<br> 2 com.apple.CoreFoundation 0x00007fff43b1b05e __CFRunLoopServiceMachPort + 337<br> 3 com.apple.CoreFoundation 0x00007fff43b1a5ad __CFRunLoopRun + 1654<br> 4 com.apple.CoreFoundation 0x00007fff43b19ce4 CFRunLoopRunSpecific + 463<br> 5 com.apple.Foundation 0x00007fff45e7a5da -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280<br> 6 com.github.electron.framework 0x00000001010338ae 0x100da4000 + 2685102<br> 7 com.github.electron.framework 0x000000010103245c 0x100da4000 + 2679900<br> 8 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 9 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 10 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 11 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 12 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 13 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 6:: DnsConfigService<br> 0 libsystem_kernel.dylib 0x00007fff70cee052 kevent + 10<br> 1 com.github.electron.framework 0x000000010109a2f9 0x100da4000 + 3105529<br> 2 com.github.electron.framework 0x000000010109948d 0x100da4000 + 3101837<br> 3 com.github.electron.framework 0x00000001010322bf 0x100da4000 + 2679487<br> 4 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 5 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 7:: CrShutdownDetector<br> 0 libsystem_kernel.dylib 0x00007fff70ce98a6 read + 10<br> 1 com.github.electron.framework 0x0000000100e4c07f 0x100da4000 + 688255<br> 2 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 3 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 4 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 5 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 8:: WorkerPool/26631<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 9:: WorkerPool/40455<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 10:: TaskSchedulerServiceThread<br> 0 libsystem_kernel.dylib 0x00007fff70cee052 kevent + 10<br> 1 com.github.electron.framework 0x000000010109a2f9 0x100da4000 + 3105529<br> 2 com.github.electron.framework 0x000000010109948d 0x100da4000 + 3101837<br> 3 com.github.electron.framework 0x00000001010322a6 0x100da4000 + 2679462<br> 4 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 5 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 11:: TaskSchedulerBackgroundWorker0<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 12:: TaskSchedulerBackgroundBlockingWorker0<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 13:: TaskSchedulerForegroundWorker0<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 14:: TaskSchedulerForegroundBlockingWorker0<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 15:: TaskSchedulerSingleThreadForegroundBlocking0<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 16:: TaskSchedulerSingleThreadForegroundBlocking1<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 17:: TaskSchedulerSingleThreadForegroundBlocking2<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c32a 0x100da4000 + 2786090<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 18:: TaskSchedulerSingleThreadForegroundBlocking3<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 19:: TaskSchedulerSingleThreadForegroundBlocking4<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 20:: Chrome_IOThread<br> 0 libsystem_kernel.dylib 0x00007fff70cee052 kevent + 10<br> 1 com.github.electron.framework 0x000000010109a2f9 0x100da4000 + 3105529<br> 2 com.github.electron.framework 0x000000010109948d 0x100da4000 + 3101837<br> 3 com.github.electron.framework 0x00000001010322a6 0x100da4000 + 2679462<br> 4 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 5 com.github.electron.framework 0x00000001012c29e4 0x100da4000 + 5368292<br> 6 com.github.electron.framework 0x00000001012c2aa4 0x100da4000 + 5368484<br> 7 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 8 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 9 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 10 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 11 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 21:: CompositorTileWorker1/36611<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x0000000101194c38 0x100da4000 + 4131896<br> 3 com.github.electron.framework 0x0000000101057ccd 0x100da4000 + 2833613<br> 4 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 5 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 6 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 7 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 22:: AudioThread<br> 0 libsystem_kernel.dylib 0x00007fff70ce7c2a mach_msg_trap + 10<br> 1 libsystem_kernel.dylib 0x00007fff70ce8174 mach_msg + 60<br> 2 com.apple.CoreFoundation 0x00007fff43b1b05e __CFRunLoopServiceMachPort + 337<br> 3 com.apple.CoreFoundation 0x00007fff43b1a5ad __CFRunLoopRun + 1654<br> 4 com.apple.CoreFoundation 0x00007fff43b19ce4 CFRunLoopRunSpecific + 463<br> 5 com.github.electron.framework 0x000000010103359f 0x100da4000 + 2684319<br> 6 com.github.electron.framework 0x000000010103245c 0x100da4000 + 2679900<br> 7 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 8 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 9 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 10 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 11 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 12 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 23:<br> 0 libsystem_kernel.dylib 0x00007fff70ceee82 __select + 10<br> 1 com.github.electron.framework 0x0000000100ee0762 atom::NodeBindingsMac::PollEvents() + 210<br> 2 com.github.electron.framework 0x0000000100edff8f atom::NodeBindings::EmbedThreadRunner(void*) + 63<br> 3 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 4 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 5 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 24:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x00000001059bba83 0x10580e000 + 1759875<br> 4 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 5 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 6 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 25:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x00000001059bba83 0x10580e000 + 1759875<br> 4 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 5 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 6 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 26:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x00000001059bba83 0x10580e000 + 1759875<br> 4 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 5 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 6 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 27:<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 libnode.dylib 0x00000001059c8179 uv_cond_wait + 9<br> 3 libnode.dylib 0x00000001059bba83 0x10580e000 + 1759875<br> 4 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 5 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 6 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 28:: NetworkConfigWatcher<br> 0 libsystem_kernel.dylib 0x00007fff70ce7c2a mach_msg_trap + 10<br> 1 libsystem_kernel.dylib 0x00007fff70ce8174 mach_msg + 60<br> 2 com.apple.CoreFoundation 0x00007fff43b1b05e __CFRunLoopServiceMachPort + 337<br> 3 com.apple.CoreFoundation 0x00007fff43b1a5ad __CFRunLoopRun + 1654<br> 4 com.apple.CoreFoundation 0x00007fff43b19ce4 CFRunLoopRunSpecific + 463<br> 5 com.apple.Foundation 0x00007fff45e7a5da -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280<br> 6 com.github.electron.framework 0x00000001010338ae 0x100da4000 + 2685102<br> 7 com.github.electron.framework 0x000000010103245c 0x100da4000 + 2679900<br> 8 com.github.electron.framework 0x00000001010489b3 0x100da4000 + 2771379<br> 9 com.github.electron.framework 0x000000010106cb89 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62/hovercard" href="https://github.com/electron/electron/commit/29193059fbbc55d779480a8085b6ed09ab4c2d62"><tt>2919305</tt></a><br> 10 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 11 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 12 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 13 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 29:: com.apple.NSEventThread<br> 0 libsystem_kernel.dylib 0x00007fff70ce7c2a mach_msg_trap + 10<br> 1 libsystem_kernel.dylib 0x00007fff70ce8174 mach_msg + 60<br> 2 com.apple.CoreFoundation 0x00007fff43b1b05e __CFRunLoopServiceMachPort + 337<br> 3 com.apple.CoreFoundation 0x00007fff43b1a5ad __CFRunLoopRun + 1654<br> 4 com.apple.CoreFoundation 0x00007fff43b19ce4 CFRunLoopRunSpecific + 463<br> 5 com.apple.AppKit 0x00007fff41079581 _NSEventThread + 160<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 30:: TaskSchedulerForegroundBlockingWorker1<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 31:: TaskSchedulerForegroundBlockingWorker2<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 32:: WorkerPool/130567<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 33:: WorkerPool/87811<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 34:: WorkerPool/129795<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 35:: WorkerPool/129283<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 36:: WorkerPool/127767<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 37:: WorkerPool/127235<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 38:: WorkerPool/127007<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 39:: WorkerPool/126483<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x0000000101094ed6 0x100da4000 + 3083990<br> 4 com.github.electron.framework 0x0000000101095368 0x100da4000 + 3085160<br> 5 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 6 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 7 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 8 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 40:: TaskSchedulerForegroundBlockingWorker3<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 41:: TaskSchedulerSingleThreadSharedForegroundBlocking5<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45cb _pthread_cond_wait + 724<br> 2 com.github.electron.framework 0x000000010109229e 0x100da4000 + <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b/hovercard" href="https://github.com/electron/electron/commit/307267016325b97f3ba8557dfeab502ca514af4b"><tt>3072670</tt></a><br> 3 com.github.electron.framework 0x000000010109214f 0x100da4000 + 3072335<br> 4 com.github.electron.framework 0x000000010104beda 0x100da4000 + 2784986<br> 5 com.github.electron.framework 0x000000010104c32a 0x100da4000 + 2786090<br> 6 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 42:: TaskSchedulerForegroundBlockingWorker4<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 43:: TaskSchedulerForegroundBlockingWorker5<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 44:: TaskSchedulerForegroundBlockingWorker6<br> 0 libsystem_kernel.dylib 0x00007fff70ceb1b2 __psynch_cvwait + 10<br> 1 libsystem_pthread.dylib 0x00007fff70da45fe _pthread_cond_wait + 775<br> 2 com.github.electron.framework 0x0000000100fec93b 0x100da4000 + 2394427<br> 3 com.github.electron.framework 0x00000001010922c0 0x100da4000 + 3072704<br> 4 com.github.electron.framework 0x00000001010923f1 0x100da4000 + 3073009<br> 5 com.github.electron.framework 0x000000010104bee8 0x100da4000 + 2785000<br> 6 com.github.electron.framework 0x000000010104c554 0x100da4000 + 2786644<br> 7 com.github.electron.framework 0x000000010103d547 0x100da4000 + 2725191<br> 8 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 9 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 10 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 45:<br> 0 libsystem_pthread.dylib 0x00007fff70da0408 start_wqthread + 0<br> 1 ??? 0x0000000100010000 0 + 4295032832</p> <p dir="auto">Thread 46:<br> 0 libsystem_pthread.dylib 0x00007fff70da0408 start_wqthread + 0<br> 1 ??? 0x0000000000001403 0 + 5123</p> <p dir="auto">Thread 47:<br> 0 libsystem_pthread.dylib 0x00007fff70da0408 start_wqthread + 0<br> 1 ??? 0x0000000000002503 0 + 9475</p> <p dir="auto">Thread 48:: com.apple.NSURLConnectionLoader<br> 0 libsystem_kernel.dylib 0x00007fff70ce7c2a mach_msg_trap + 10<br> 1 libsystem_kernel.dylib 0x00007fff70ce8174 mach_msg + 60<br> 2 com.apple.CoreFoundation 0x00007fff43b1b05e __CFRunLoopServiceMachPort + 337<br> 3 com.apple.CoreFoundation 0x00007fff43b1a5ad __CFRunLoopRun + 1654<br> 4 com.apple.CoreFoundation 0x00007fff43b19ce4 CFRunLoopRunSpecific + 463<br> 5 com.apple.CFNetwork 0x00007fff42a1def5 -[__CoreSchedulingSetRunnable runForever] + 195<br> 6 com.apple.Foundation 0x00007fff45e70234 <strong>NSThread__start</strong> + 1218<br> 7 libsystem_pthread.dylib 0x00007fff70da133d _pthread_body + 126<br> 8 libsystem_pthread.dylib 0x00007fff70da42a7 _pthread_start + 70<br> 9 libsystem_pthread.dylib 0x00007fff70da0425 thread_start + 13</p> <p dir="auto">Thread 0 crashed with X86 Thread State (64-bit):<br> rax: 0x00007fff43e6a5cb rbx: 0x0000000000000000 rcx: 0x00007fcdfe008000 rdx: 0x0080200c03060005<br> rdi: 0x0000000000000000 rsi: 0x0000000000000047 rbp: 0x00007ffeeee66dc0 rsp: 0x00007ffeeee66db0<br> r8: 0x0000000000000000 r9: 0x00006000029c4d20 r10: 0x0000600001bc8130 r11: 0x00007fff43b35f64<br> r12: 0x0000000000000006 r13: 0x0000000000000000 r14: 0x0000600001bc8110 r15: 0x0000600001bc8100<br> rip: 0x00007fff43ae9ccc rfl: 0x0000000000010246 cr2: 0x00000007b923d000</p> <p dir="auto">Logical CPU: 0<br> Error Code: 0x00000000<br> Trap Number: 6</p> <p dir="auto">Binary Images:<br> 0x100d98000 - 0x100d98ff7 +com.electron.anghami (1.5.8 - 10) &lt;0B6BC8C5-3D1D-345C-BD03-6ACAE257A78F&gt; /Applications/Anghami.app/Contents/MacOS/Anghami<br> 0x100da4000 - 0x10504af97 +com.github.electron.framework (0) &lt;73726D96-DA9B-3800-BE7E-4453B44CEC8F&gt; /Applications/Anghami.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework<br> 0x1056c0000 - 0x1056dbfff +com.github.Squirrel (1.0 - 1) /Applications/Anghami.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel<br> 0x105705000 - 0x105768ff7 +org.reactivecocoa.ReactiveCocoa (1.0 - 1) &lt;701B20DE-3ADD-3643-B52A-E05744C30DB3&gt; /Applications/Anghami.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa<br> 0x1057e1000 - 0x1057f5fff +org.mantle.Mantle (1.0 - ???) &lt;31915DD6-48E6-3706-A076-C9D4CE17F4F6&gt; /Applications/Anghami.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle<br> 0x10580e000 - 0x10668afff +libnode.dylib (0) &lt;041A9CC4-40EC-3D9B-9BE3-64628478FB84&gt; /Applications/Anghami.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib<br> 0x106970000 - 0x106bddfe7 +libffmpeg.dylib (0) &lt;875948D9-4D04-3B2E-9235-A52EFAD781D0&gt; /Applications/Anghami.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib<br> 0x10c5e6000 - 0x10c5e9047 libobjc-trampolines.dylib (750) /usr/lib/libobjc-trampolines.dylib<br> 0x10d55c000 - 0x10d5da6a7 dyld (625.13) /usr/lib/dyld<br> 0x7fff3c05d000 - 0x7fff3c2e5ff7 com.apple.driver.AppleIntelKBLGraphicsMTLDriver (12.0.34 - 12.0.0) /System/Library/Extensions/AppleIntelKBLGraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelKBLGraphicsMTLDriver<br> 0x7fff3fa46000 - 0x7fff3fc34ff3 com.apple.avfoundation (2.0 - 1540.118.2) &lt;1EE74E35-F16B-3034-AEA5-723198E519F8&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation<br> 0x7fff3fc35000 - 0x7fff3fd03ff7 com.apple.audio.AVFAudio (1.0 - ???) &lt;727A6D92-D1F2-3179-80D3-51F1481F5A87&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio<br> 0x7fff3fe11000 - 0x7fff3fe11fff com.apple.Accelerate (1.11 - Accelerate 1.11) &lt;2C602CED-72CA-37C2-BDF5-31697FC9100B&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate<br> 0x7fff3fe12000 - 0x7fff3fe28fe3 libCGInterfaces.dylib (506.19) &lt;6455899E-BAC7-34D1-802B-FFE19A2337E2&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib<br> 0x7fff3fe29000 - 0x7fff404c9fe3 com.apple.vImage (8.1 - ???) &lt;65912AFB-D4C1-3494-AE97-DDFDAF3BE1EB&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage<br> 0x7fff404ca000 - 0x7fff40741fd7 libBLAS.dylib (1243.200.4) &lt;76710990-AE2B-300E-88BB-797ABAD74956&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib<br> 0x7fff40742000 - 0x7fff407b4fe7 libBNNS.dylib (38.200.5) &lt;5F3A4021-8FF8-30E8-B84A-AA2BD70F4151&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib<br> 0x7fff407b5000 - 0x7fff40b5bfff libLAPACK.dylib (1243.200.4) &lt;45722A8A-5788-3C4C-ADD9-1812763FA635&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib<br> 0x7fff40b5c000 - 0x7fff40b71ffb libLinearAlgebra.dylib (1243.200.4) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib<br> 0x7fff40b72000 - 0x7fff40b77ff3 libQuadrature.dylib (3.200.2) &lt;6FFAC142-415D-3AF0-BC09-336302F11934&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib<br> 0x7fff40b78000 - 0x7fff40bf5ffb libSparse.dylib (79.200.5) &lt;0D7E71A4-10D2-3979-B386-D2426ADAF6D7&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib<br> 0x7fff40bf6000 - 0x7fff40c09ffb libSparseBLAS.dylib (1243.200.4) &lt;00D6FC17-B739-3259-90A4-92AC8BBE03D6&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib<br> 0x7fff40c0a000 - 0x7fff40deeff3 libvDSP.dylib (671.201.1) &lt;716585BD-04D7-30A9-B315-689184275E38&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib<br> 0x7fff40def000 - 0x7fff40ea4ff3 libvMisc.dylib (671.201.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib<br> 0x7fff40ea5000 - 0x7fff40ea5fff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib<br> 0x7fff41056000 - 0x7fff41e75ff3 com.apple.AppKit (6.9 - 1671) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit<br> 0x7fff41ec7000 - 0x7fff41ec7fff com.apple.ApplicationServices (50.1 - 50.1) &lt;1B71604B-9AC5-3A2F-8CB7-0EFA34A20F12&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices<br> 0x7fff41ec8000 - 0x7fff41f33ff7 com.apple.ApplicationServices.ATS (377 - 453.11) &lt;7599E619-EE21-3EB7-875B-AE3B8D3E13BB&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS<br> 0x7fff41fcc000 - 0x7fff420ebfff libFontParser.dylib (228.6) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib<br> 0x7fff420ec000 - 0x7fff42137fff libFontRegistry.dylib (228.12) &lt;480D472D-C8FB-321D-86EC-2EA6927A97AD&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib<br> 0x7fff42196000 - 0x7fff421c9ff7 libTrueTypeScaler.dylib (228.6) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib<br> 0x7fff42233000 - 0x7fff42237ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) &lt;90641B6B-D07B-3577-B594-965825544B60&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy<br> 0x7fff422d4000 - 0x7fff42326ff3 com.apple.HIServices (1.22 - 627.14.2) &lt;01F309D6-32E7-3C4F-A38B-8206EE3076CC&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices<br> 0x7fff42327000 - 0x7fff42335ff3 com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;67BC5855-B7A3-39E6-B5DD-52B287EB1532&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis<br> 0x7fff42336000 - 0x7fff42382fff com.apple.print.framework.PrintCore (14.0 - 503.7) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore<br> 0x7fff42383000 - 0x7fff423beff7 com.apple.QD (3.12 - 407.2) &lt;94A30038-C545-327A-B1C0-E19C79D62BAB&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD<br> 0x7fff423bf000 - 0x7fff423cbff7 com.apple.speech.synthesis.framework (8.0.15 - 8.0.15) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis<br> 0x7fff423cc000 - 0x7fff42668ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) &lt;89D2529D-CF36-3081-A700-70892F888718&gt; /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox<br> 0x7fff4266a000 - 0x7fff4266afff com.apple.audio.units.AudioUnit (1.14 - 1.14) &lt;8B9A5ADB-E62C-3838-BB5E-AF20CAE449CC&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit<br> 0x7fff429ce000 - 0x7fff42d8fff7 com.apple.CFNetwork (974.1 - 974.1) /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork<br> 0x7fff42da4000 - 0x7fff42da4fff com.apple.Carbon (158 - 158) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon<br> 0x7fff42da5000 - 0x7fff42da8ffb com.apple.CommonPanels (1.2.6 - 98) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels<br> 0x7fff42da9000 - 0x7fff430b0ff7 com.apple.HIToolbox (2.1.1 - 916.32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox<br> 0x7fff430b1000 - 0x7fff430b4ffb com.apple.help (1.3.8 - 66) &lt;4392A63F-9B58-3248-BF73-B46AD3744E6E&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help<br> 0x7fff430b5000 - 0x7fff430baff7 com.apple.ImageCapture (9.0 - 1529.7) &lt;364EDC6B-6374-31A7-A637-0044B73F8DBF&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture<br> 0x7fff430bb000 - 0x7fff4314fff3 com.apple.ink.framework (10.9 - 225) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink<br> 0x7fff43150000 - 0x7fff4316afff com.apple.openscripting (1.7 - 178) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting<br> 0x7fff4318b000 - 0x7fff4318cfff com.apple.print.framework.Print (14.0 - 267.3) &lt;5CD250DF-98AD-30B8-A5D5-47634FF9E74D&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print<br> 0x7fff4318d000 - 0x7fff4318fff7 com.apple.securityhi (9.0 - 55006) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI<br> 0x7fff43190000 - 0x7fff43196ff7 com.apple.speech.recognition.framework (6.0.3 - 6.0.3) &lt;1C38B9CB-DD45-3A7B-9D4C-631855A4EE32&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition<br> 0x7fff432bd000 - 0x7fff432bdfff com.apple.Cocoa (6.11 - 23) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa<br> 0x7fff432cb000 - 0x7fff43397fff com.apple.ColorSync (4.13.0 - 3340) &lt;0618DA46-5A5E-339D-BB2F-ED66A2BFCCF9&gt; /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync<br> 0x7fff43532000 - 0x7fff435c2fff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) &lt;5845D43B-BBB5-343B-A164-6F9E2C53CFA3&gt; /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio<br> 0x7fff43628000 - 0x7fff43653ff7 com.apple.CoreBluetooth (1.0 - 1) /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth<br> 0x7fff43654000 - 0x7fff439f4feb com.apple.CoreData (120 - 865.2) &lt;90A5058F-A5AF-311A-81CC-B20C2AC9E85E&gt; /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData<br> 0x7fff439f5000 - 0x7fff43adefff com.apple.CoreDisplay (101.3 - 101.17.6) &lt;4AE5C221-B8E1-3A4F-91E0-96ED5926E82B&gt; /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay<br> 0x7fff43adf000 - 0x7fff43f2efff com.apple.CoreFoundation (6.9 - 1555.10) &lt;4A4C87BC-4C8E-392A-ABEE-824D4074C485&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation<br> 0x7fff43f30000 - 0x7fff445bdfff com.apple.CoreGraphics (2.0 - 1245.8.4.8) /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics<br> 0x7fff445bf000 - 0x7fff448e4ff7 com.apple.CoreImage (14.0.0 - 700.2.220) /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage<br> 0x7fff44967000 - 0x7fff449c3ff7 com.apple.audio.midi.CoreMIDI (1.10 - 88) &lt;32CA3EA2-E1A4-34AC-97A6-5E71C2B10E6C&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI<br> 0x7fff449c6000 - 0x7fff44c35ff7 com.apple.CoreML (1.0 - 1) /System/Library/Frameworks/CoreML.framework/Versions/A/CoreML<br> 0x7fff44c36000 - 0x7fff44d37ff3 com.apple.CoreMedia (1.0 - 2280.133.4) &lt;5E733D6B-B683-3931-9D02-82300A43378D&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia<br> 0x7fff44d38000 - 0x7fff44d9afff com.apple.CoreMediaIO (900.0 - 5025) /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO<br> 0x7fff44d9b000 - 0x7fff44d9bfff com.apple.CoreServices (933 - 933) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices<br> 0x7fff44d9c000 - 0x7fff44e1affb com.apple.AE (768 - 768) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE<br> 0x7fff44e1b000 - 0x7fff450f3ff7 com.apple.CoreServices.CarbonCore (1178.11 - 1178.11) &lt;9FBE7BFB-3A81-37AC-8E15-E6F7932BBDC0&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore<br> 0x7fff450f4000 - 0x7fff4513eff7 com.apple.DictionaryServices (1.2 - 284.16.3) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices<br> 0x7fff4513f000 - 0x7fff45147ffb com.apple.CoreServices.FSEvents (1239.200.12 - 1239.200.12) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents<br> 0x7fff45148000 - 0x7fff45313ff7 com.apple.LaunchServices (933 - 933) &lt;4614A4B4-C358-3460-9FA7-DF8D6C466806&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices<br> 0x7fff45314000 - 0x7fff453b6ffb com.apple.Metadata (10.7.0 - 1191.51) &lt;6B9CCA98-6F68-3908-A7A9-96D3E2AE5968&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata<br> 0x7fff453b7000 - 0x7fff45402ff7 com.apple.CoreServices.OSServices (933 - 933) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices<br> 0x7fff45403000 - 0x7fff45471ff7 com.apple.SearchKit (1.4.0 - 1.4.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit<br> 0x7fff45472000 - 0x7fff45496ffb com.apple.coreservices.SharedFileList (71.27 - 71.27) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList<br> 0x7fff457d9000 - 0x7fff4593efff com.apple.CoreText (352.0 - 584.24) &lt;5B55B533-F4DE-32CE-8739-16FFFA1A64F8&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText<br> 0x7fff4593f000 - 0x7fff4597cfff com.apple.CoreVideo (1.8 - 0.0) /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo<br> 0x7fff4597d000 - 0x7fff45a13ffb com.apple.framework.CoreWLAN (13.0 - 1370.8) &lt;19E41424-B956-34DF-AE02-9822308FA3DC&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN<br> 0x7fff45baf000 - 0x7fff45c69ff7 com.apple.DiscRecording (9.0.3 - 9030.4.5) &lt;55E40DE0-500B-3AC4-81BA-4A54BC04740C&gt; /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording<br> 0x7fff45c90000 - 0x7fff45c95fff com.apple.DiskArbitration (2.7 - 2.7) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration<br> 0x7fff45e5e000 - 0x7fff4622cfff com.apple.Foundation (6.9 - 1555.10) &lt;0CCAF9AF-F7AF-3174-98D4-6C188B1079CC&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation<br> 0x7fff4629d000 - 0x7fff462cdff3 com.apple.GSS (4.0 - 2.0) &lt;74ACB1A1-A5A4-3180-AC00-688C94AA4434&gt; /System/Library/Frameworks/GSS.framework/Versions/A/GSS<br> 0x7fff462ce000 - 0x7fff462e6ff7 com.apple.GameController (1.0 - 1) &lt;47CC84DD-9316-3AA1-BF94-EC026AECF112&gt; /System/Library/Frameworks/GameController.framework/Versions/A/GameController<br> 0x7fff463e6000 - 0x7fff464efff3 com.apple.Bluetooth (6.0.8 - 6.0.8f6) &lt;6CB8A08E-1154-3333-83CC-2A939AC94562&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth<br> 0x7fff46551000 - 0x7fff465e2fff com.apple.framework.IOKit (2.0.2 - 1483.201.1) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit<br> 0x7fff465e4000 - 0x7fff465eeff7 com.apple.IOSurface (255.1 - 255.1) &lt;538F0257-A408-36AF-AB1E-1D7037D6359E&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface<br> 0x7fff465ef000 - 0x7fff46644ff7 com.apple.ImageCaptureCore (1.0 - 1529.7) &lt;3A387CA8-BC6E-3554-91FB-42C074EECDA7&gt; /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCore<br> 0x7fff46645000 - 0x7fff467d9ff7 com.apple.ImageIO.framework (3.3.0 - 1796.5.4.1) &lt;9D078F50-BB75-3D04-8636-3FDDAB9C95DA&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO<br> 0x7fff467da000 - 0x7fff467deffb libGIF.dylib (1796.5.4.1) &lt;93AD6FB9-03BA-350E-AF98-D371A2BFD58F&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib<br> 0x7fff467df000 - 0x7fff468c4fef libJP2.dylib (1796.5.4.1) &lt;3780EB9B-5219-385D-9472-17B0397697A5&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib<br> 0x7fff468c5000 - 0x7fff468eaff7 libJPEG.dylib (1796.5.4.1) &lt;83CA8BEB-34BD-3B58-A704-C6A875984FAD&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib<br> 0x7fff46bbd000 - 0x7fff46be3fe7 libPng.dylib (1796.5.4.1) &lt;9F30FA63-8AB2-3646-A6A8-FCE9F8436C35&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib<br> 0x7fff46be4000 - 0x7fff46be6ff7 libRadiance.dylib (1796.5.4.1) &lt;2C07887C-0584-3538-A9EC-3988AA5B234B&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib<br> 0x7fff46be7000 - 0x7fff46c35fff libTIFF.dylib (1796.5.4.1) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib<br> 0x7fff46f31000 - 0x7fff47cb3ff7 com.apple.JavaScriptCore (14606 - 14606.1.36.1.9) &lt;7FF80E53-3D6B-33BF-9538-A263513475EC&gt; /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore<br> 0x7fff47ccb000 - 0x7fff47ce4fff com.apple.Kerberos (3.0 - 1) &lt;8BE3D524-257D-3663-A937-F1AC76BDF4D9&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos<br> 0x7fff47fa1000 - 0x7fff47fabfff com.apple.MediaAccessibility (1.0 - 114.4) &lt;29D89F2B-6254-3D0D-BD0C-8472FCA373F4&gt; /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility<br> 0x7fff48065000 - 0x7fff48701ff7 com.apple.MediaToolbox (1.0 - 2280.133.4) /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox<br> 0x7fff48703000 - 0x7fff48796fff com.apple.Metal (157.55 - 157.55) &lt;49CD402F-20CB-3930-B997-BBDC495ABF64&gt; /System/Library/Frameworks/Metal.framework/Versions/A/Metal<br> 0x7fff48798000 - 0x7fff487b2ff3 com.apple.MetalKit (1.0 - 113) &lt;8949A0FA-337E-3C28-94D1-35853D69761B&gt; /System/Library/Frameworks/MetalKit.framework/Versions/A/MetalKit<br> 0x7fff487b3000 - 0x7fff487d3ff7 com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) &lt;9A841A76-43BC-3220-A4DA-99137C42A0BC&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore<br> 0x7fff487d4000 - 0x7fff48851fef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage<br> 0x7fff48852000 - 0x7fff4887afff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) &lt;8C57A3A2-8EBB-3401-87FC-368D1BE6DAAC&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix<br> 0x7fff4887b000 - 0x7fff489a2ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork<br> 0x7fff489a3000 - 0x7fff489beff7 com.apple.MetalPerformanceShaders.MPSRayIntersector (1.0 - 1) &lt;8F02CFCA-41E1-3194-915F-3106E8B48B32&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector<br> 0x7fff489bf000 - 0x7fff489bfff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) &lt;8B715D78-8357-38F4-A03C-926EE967CE71&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders<br> 0x7fff49bbe000 - 0x7fff49bcaffb com.apple.NetFS (6.0 - 4.0) &lt;529E29A9-5E77-3A8C-A982-CF55F949FE5D&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS<br> 0x7fff4c68a000 - 0x7fff4c6e3ff7 com.apple.opencl (2.12.1 - 2.12.1) &lt;3EAE5BC8-E948-3926-9319-9DAC2A8B5484&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL<br> 0x7fff4c6e4000 - 0x7fff4c700ff7 com.apple.CFOpenDirectory (10.14 - 207.200.4) &lt;7E4EFF02-2596-31E6-88DE-29C89E2837E4&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory<br> 0x7fff4c701000 - 0x7fff4c70dffb com.apple.OpenDirectory (10.14 - 207.200.4) &lt;52A3918E-0F7A-33FD-87EE-21A37B37D13B&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory<br> 0x7fff4d070000 - 0x7fff4d072fff libCVMSPluginSupport.dylib (17.0.37) &lt;38A18A32-BBF2-3A0F-AE37-51734B6CA91A&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib<br> 0x7fff4d073000 - 0x7fff4d078ff3 libCoreFSCache.dylib (163.20) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib<br> 0x7fff4d079000 - 0x7fff4d07dfff libCoreVMClient.dylib (163.20) &lt;45A2C724-F3D1-316A-9A41-CAB8E2A390EC&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib<br> 0x7fff4d07e000 - 0x7fff4d086ffb libGFXShared.dylib (17.0.37) &lt;267B40DF-2939-3D76-89FA-E8DBDEE96D92&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib<br> 0x7fff4d087000 - 0x7fff4d092fff libGL.dylib (17.0.37) &lt;2E25A83B-B560-34A1-B474-3027C8B75BA4&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib<br> 0x7fff4d093000 - 0x7fff4d0cdfef libGLImage.dylib (17.0.37) &lt;49C5F799-66E5-3A81-AF88-948DD0E583FA&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib<br> 0x7fff4d241000 - 0x7fff4d27efff libGLU.dylib (17.0.37) &lt;79555E42-B816-3106-8FA0-FC14A54AE8B3&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib<br> 0x7fff4dc2e000 - 0x7fff4dc3dff3 com.apple.opengl (17.0.37 - 17.0.37) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL<br> 0x7fff4dfbf000 - 0x7fff4e109fff com.apple.QTKit (7.7.3 - 3034) /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit<br> 0x7fff4e10a000 - 0x7fff4e365fff com.apple.imageKit (3.0 - 1067) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/ImageKit<br> 0x7fff4e366000 - 0x7fff4e452fff com.apple.PDFKit (1.0 - 737.3) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/PDFKit<br> 0x7fff4e453000 - 0x7fff4e969ff7 com.apple.QuartzComposer (5.1 - 370) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/QuartzComposer<br> 0x7fff4e96a000 - 0x7fff4e990ff3 com.apple.quartzfilters (1.10.0 - 83) &lt;06F25528-5474-39BF-BCD4-DD6B3203EA3C&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/QuartzFilters<br> 0x7fff4e991000 - 0x7fff4ea97ff7 com.apple.QuickLookUIFramework (5.0 - 775) &lt;41F1FDD0-C99A-36D3-AC3A-A5E604D77F63&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/QuickLookUI<br> 0x7fff4ea98000 - 0x7fff4ea98fff com.apple.quartzframework (1.5 - 23) &lt;103A742C-50F3-3A4A-B787-FDD35F36B6F1&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz<br> 0x7fff4ea99000 - 0x7fff4eceffff com.apple.QuartzCore (1.11 - 693.16.4.2) &lt;2C9E3279-3F97-3440-B937-E5FE888232E2&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore<br> 0x7fff4ecf0000 - 0x7fff4ed49ff7 com.apple.QuickLookFramework (5.0 - 775) /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook<br> 0x7fff4ef10000 - 0x7fff4ef28ffb com.apple.SafariServices.framework (14606 - 14606.1.36.1.9) &lt;99E7035E-6B88-3F4D-A042-A24BEDCB0666&gt; /System/Library/Frameworks/SafariServices.framework/Versions/A/SafariServices<br> 0x7fff4f53d000 - 0x7fff4f863fff com.apple.security (7.0 - 58286.200.222) /System/Library/Frameworks/Security.framework/Versions/A/Security<br> 0x7fff4f864000 - 0x7fff4f8f3fff com.apple.securityfoundation (6.0 - 55185.200.14) &lt;770D67D1-3DA6-3FD3-8531-376712BA4F60&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation<br> 0x7fff4f8f4000 - 0x7fff4f924ffb com.apple.securityinterface (10.0 - 55109.200.8) &lt;8BDA8A18-C4EB-3267-96AB-0C2F2321866D&gt; /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInterface<br> 0x7fff4f925000 - 0x7fff4f929ff3 com.apple.xpc.ServiceManagement (1.0 - 1) &lt;20DB899D-3BAF-36FD-86A6-F66A82074607&gt; /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement<br> 0x7fff4fb99000 - 0x7fff4fbaeffb com.apple.StoreKit (1.0 - 1) &lt;3A4D0B33-E43C-3D96-8870-0084DA848A18&gt; /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit<br> 0x7fff4fce6000 - 0x7fff4fd56ff3 com.apple.SystemConfiguration (1.17 - 1.17) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration<br> 0x7fff4ffb7000 - 0x7fff50319ff7 com.apple.VideoToolbox (1.0 - 2280.133.4) &lt;468A9F6D-33AB-31D3-A8A3-A6A432033C9E&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox<br> 0x7fff52fbb000 - 0x7fff53060ff7 com.apple.APFS (1.0 - 1) /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS<br> 0x7fff53a9c000 - 0x7fff53a9dff3 com.apple.AggregateDictionary (1.0 - 1) &lt;1DEBBE36-8945-3AD8-BD48-2850AD845711&gt; /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary<br> 0x7fff53e49000 - 0x7fff53f92ff3 com.apple.AnnotationKit (1.0 - 232.3.27) &lt;2F217C3B-CF60-355B-97B4-AF7CB62CA822&gt; /System/Library/PrivateFrameworks/AnnotationKit.framework/Versions/A/AnnotationKit<br> 0x7fff54098000 - 0x7fff540c4ff7 com.apple.framework.Apple80211 (13.0 - 1375.14) &lt;79EBF155-EAB2-37EE-BF8C-57BC453217B1&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211<br> 0x7fff543a0000 - 0x7fff543affcf com.apple.AppleFSCompression (96.200.3 - 1.0) /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression<br> 0x7fff544ad000 - 0x7fff544b8fff com.apple.AppleIDAuthSupport (1.0 - 1) &lt;5362D9AD-A2AE-3436-97CE-C353124504E5&gt; /System/Library/PrivateFrameworks/AppleIDAuthSupport.framework/Versions/A/AppleIDAuthSupport<br> 0x7fff544f9000 - 0x7fff54542ff3 com.apple.AppleJPEG (1.0 - 1) &lt;9A690E6E-F987-3660-BED6-B1A4D1906B6C&gt; /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG<br> 0x7fff54792000 - 0x7fff547baff7 com.apple.applesauce (1.0 - ???) &lt;60BB16D6-DE7E-356A-B9DE-F73EE179934A&gt; /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce<br> 0x7fff54881000 - 0x7fff54884ff7 com.apple.AppleSystemInfo (3.1.5 - 3.1.5) &lt;2449197F-DF0D-32BB-B0B1-D78855528692&gt; /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo<br> 0x7fff54885000 - 0x7fff548d5fff com.apple.AppleVAFramework (5.0.44 - 5.0.44) /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA<br> 0x7fff54920000 - 0x7fff54936ffb com.apple.AssertionServices (1.0 - 1) &lt;8FB0D908-6C46-3399-92D6-4E7D4B5F4F19&gt; /System/Library/PrivateFrameworks/AssertionServices.framework/Versions/A/AssertionServices<br> 0x7fff54c66000 - 0x7fff54f09ffb com.apple.AuthKit (1.0 - 1) /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit<br> 0x7fff550da000 - 0x7fff550e3ff3 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) &lt;972F41B3-7DF7-3BF1-ACCA-A093A4328ADF&gt; /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement<br> 0x7fff550e4000 - 0x7fff55186ff7 com.apple.backup.framework (1.10 - ???) &lt;46534B04-DD0E-357B-9CB5-F88AAC6AF4ED&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup<br> 0x7fff55187000 - 0x7fff551f8ffb com.apple.BaseBoard (360.18.4 - 360.18.4) &lt;709EF03C-5BCE-3F47-BD58-A48C1F9378A5&gt; /System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard<br> 0x7fff55201000 - 0x7fff55207ff3 com.apple.BezelServicesFW (317 - 317) &lt;44601C3E-4808-38A4-A554-71F36000B003&gt; /System/Library/PrivateFrameworks/BezelServices.framework/Versions/A/BezelServices<br> 0x7fff5609a000 - 0x7fff560e7fff com.apple.ChunkingLibrary (194 - 194) &lt;13F1F769-E8E7-372A-8F0B-2BB4B7753248&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary<br> 0x7fff56da7000 - 0x7fff56db0fff com.apple.CommonAuth (4.0 - 2.0) &lt;7105F266-35C3-3582-9383-A2A9D7184A7B&gt; /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth<br> 0x7fff57260000 - 0x7fff57637fef com.apple.CoreAUC (273.0.0 - 273.0.0) &lt;288EC7ED-A86A-30D0-ADE2-56C33CD93AA8&gt; /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC<br> 0x7fff57638000 - 0x7fff57669fff com.apple.CoreAVCHD (6.0.0 - 6000.4.1) &lt;507AC58B-4527-353B-99CB-67FF183BD4D5&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD<br> 0x7fff57700000 - 0x7fff57752ffb com.apple.corebrightness (1.0 - 1) &lt;84B0814D-7DE5-3518-9BA3-2DA235E0EA35&gt; /System/Library/PrivateFrameworks/CoreBrightness.framework/Versions/A/CoreBrightness<br> 0x7fff57aad000 - 0x7fff57ac0fff com.apple.CoreEmoji (1.0 - 69.15.9) &lt;011E7853-BDD6-3197-BA8D-D6B977EF56EB&gt; /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji<br> 0x7fff57c86000 - 0x7fff57d7aff7 com.apple.CoreHandwriting (161 - 1.2) &lt;0BD558D9-387B-34BA-8FAA-F1F75F1F9F01&gt; /System/Library/PrivateFrameworks/CoreHandwriting.framework/Versions/A/CoreHandwriting<br> 0x7fff57f3d000 - 0x7fff57f53ffb com.apple.CoreMediaAuthoring (2.2 - 958) /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring<br> 0x7fff58096000 - 0x7fff58108ff7 com.apple.CoreNLP (1.0 - 130.15.22) &lt;401F5284-A984-32A1-A547-CC8156381070&gt; /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP<br> 0x7fff58290000 - 0x7fff5831dff7 com.apple.CorePDF (4.0 - 414) &lt;28DEBFFB-BABE-3493-8230-12CE3E5EC1E3&gt; /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF<br> 0x7fff583c3000 - 0x7fff583cbffb com.apple.CorePhoneNumbers (1.0 - 1) /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/Versions/A/CorePhoneNumbers<br> 0x7fff5855a000 - 0x7fff5858bfff com.apple.CoreServicesInternal (357 - 357) &lt;2D012EB3-83BF-3E51-A2BE-41AF26F2DDF0&gt; /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal<br> 0x7fff58950000 - 0x7fff589deff7 com.apple.CoreSymbolication (10.0 - 64235.3.1) &lt;912C63C0-473B-3352-A255-60F7CA3FE3F2&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication<br> 0x7fff58a6e000 - 0x7fff58b9afff com.apple.coreui (2.1 - 498.46) &lt;05F9736C-5A62-33B3-9607-551A332AEF28&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI<br> 0x7fff58b9b000 - 0x7fff58d1affb com.apple.CoreUtils (5.7 - 570.70) &lt;2554BA12-16A2-399F-A13A-E5C8EB4FC1EC&gt; /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils<br> 0x7fff58d71000 - 0x7fff58dd4ffb com.apple.framework.CoreWiFi (13.0 - 1370.8) &lt;5C6ACF32-14D3-35FD-8A4A-629521090F41&gt; /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi<br> 0x7fff58dd5000 - 0x7fff58de6ffb com.apple.CrashReporterSupport (10.13 - 938.23) &lt;36754BB2-680F-36AE-A5DE-548B4F41F0AE&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport<br> 0x7fff58e69000 - 0x7fff58e78ff3 com.apple.framework.DFRFoundation (1.0 - 210) &lt;61EF0583-E946-3201-932D-7D117BC62CB2&gt; /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation<br> 0x7fff58e79000 - 0x7fff58e7dff7 com.apple.DSExternalDisplay (3.1 - 380) /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay<br> 0x7fff58f00000 - 0x7fff58f77ffb com.apple.datadetectorscore (7.0 - 590.24) &lt;2D4CFF51-BCD4-3D08-AE73-AB2B8BEC8659&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore<br> 0x7fff58fc5000 - 0x7fff59006fff com.apple.DebugSymbols (185 - 185) &lt;01F561DA-4724-32FD-B2C7-6436F4CEB980&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols<br> 0x7fff59007000 - 0x7fff59160ff7 com.apple.desktopservices (1.13 - ???) &lt;053D3A96-9263-3242-8625-101DDB9350DE&gt; /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv<br> 0x7fff59365000 - 0x7fff59429fff com.apple.DiskManagement (12.0 - 1530) /System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/DiskManagement<br> 0x7fff5942a000 - 0x7fff5942eff7 com.apple.DisplayServicesFW (3.1 - 380) /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayServices<br> 0x7fff594cf000 - 0x7fff594d2fff com.apple.EFILogin (2.0 - 2) &lt;8FCA68D2-CEA5-39F6-B222-AC31FCF79D1D&gt; /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin<br> 0x7fff59cb7000 - 0x7fff59fe9fff com.apple.vision.EspressoFramework (1.0 - 120) &lt;673D7C7E-62BC-3B81-8A32-B9AC3FD13A92&gt; /System/Library/PrivateFrameworks/Espresso.framework/Versions/A/Espresso<br> 0x7fff5a1a4000 - 0x7fff5a5ccfff com.apple.vision.FaceCore (3.3.4 - 3.3.4) /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore<br> 0x7fff5deee000 - 0x7fff5deeffff libmetal_timestamp.dylib (902.1.49) /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/3902/Libraries/libmetal_timestamp.dylib<br> 0x7fff5f594000 - 0x7fff5f599ff7 com.apple.GPUWrangler (3.22.9 - 3.22.9) /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler<br> 0x7fff5f949000 - 0x7fff5f96eff7 com.apple.GenerationalStorage (2.0 - 285.101) &lt;089301DF-60C9-3BED-9357-2F91336C1579&gt; /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage<br> 0x7fff603f8000 - 0x7fff60407fff com.apple.GraphVisualizer (1.0 - 5) /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer<br> 0x7fff604ee000 - 0x7fff60562fff com.apple.Heimdal (4.0 - 2.0) &lt;793E1D31-6166-37F2-A989-F98FE1706E5D&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal<br> 0x7fff60563000 - 0x7fff60592fff com.apple.HelpData (2.3 - 184) &lt;56A7277E-B1C3-3AD8-AF4B-8BAA41D6E640&gt; /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData<br> 0x7fff6193e000 - 0x7fff61945ffb com.apple.IOAccelerator (400.24 - 400.24) &lt;01551ED8-6AE1-307D-A3F0-DCA85FAA5210&gt; /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator<br> 0x7fff61949000 - 0x7fff61962ff7 com.apple.IOPresentment (1.0 - 37) &lt;751130A1-8639-3BDA-BF8F-A3BE54427E43&gt; /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment<br> 0x7fff61d75000 - 0x7fff61da4ff7 com.apple.IconServices (379 - 379) /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices<br> 0x7fff61ecf000 - 0x7fff61ed3fff com.apple.InternationalSupport (1.0 - 10.15.6) /System/Library/PrivateFrameworks/InternationalSupport.framework/Versions/A/InternationalSupport<br> 0x7fff62043000 - 0x7fff62056fff com.apple.security.KeychainCircle.KeychainCircle (1.0 - 1) &lt;10A17A9D-564E-3841-A433-D6D7401ED733&gt; /System/Library/PrivateFrameworks/KeychainCircle.framework/Versions/A/KeychainCircle<br> 0x7fff62071000 - 0x7fff62168fff com.apple.LanguageModeling (1.0 - 159.15.15) /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling<br> 0x7fff62169000 - 0x7fff621aaff7 com.apple.Lexicon-framework (1.0 - 33.15.10) &lt;90C1CFE1-9935-3F4F-8A9B-1DD697F2FF3D&gt; /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon<br> 0x7fff621b1000 - 0x7fff621b7ff7 com.apple.LinguisticData (1.0 - 238.15.29) /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData<br> 0x7fff62a14000 - 0x7fff62a17fff com.apple.Mangrove (1.0 - 25) &lt;8744DBF9-3375-392C-8EE6-24373E0D19E8&gt; /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove<br> 0x7fff62aa5000 - 0x7fff62accffb com.apple.MarkupUI (1.0 - 232.3.27) &lt;1A5E88CA-36C3-30A8-9D39-71CC6923D009&gt; /System/Library/PrivateFrameworks/MarkupUI.framework/Versions/A/MarkupUI<br> 0x7fff62b35000 - 0x7fff62b68ff3 com.apple.MediaKit (16 - 906) &lt;15D4EDA2-AAAC-3CF3-BB2B-3A92AECC932D&gt; /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit<br> 0x7fff62f11000 - 0x7fff62f39ffb com.apple.spotlight.metadata.utilities (1.0 - 1191.51) &lt;7CD28A81-F0D6-3575-8F83-3D45D53F72BB&gt; /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities<br> 0x7fff62f3a000 - 0x7fff62fccfff com.apple.gpusw.MetalTools (1.0 - 1) &lt;60BE7793-D8DE-3DF1-94D7-503301EC1E72&gt; /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools<br> 0x7fff63176000 - 0x7fff63191fff com.apple.MobileKeyBag (2.0 - 1.0) /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag<br> 0x7fff631a2000 - 0x7fff6321eff7 com.apple.Montreal (1.0 - 42.15.8) /System/Library/PrivateFrameworks/Montreal.framework/Versions/A/Montreal<br> 0x7fff6321f000 - 0x7fff63249ff7 com.apple.MultitouchSupport.framework (2400.15 - 2400.15) /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport<br> 0x7fff634bb000 - 0x7fff634c5fff com.apple.NetAuth (6.2 - 6.2) &lt;55DC741A-A01A-380C-B2D3-244241DA1F2C&gt; /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth<br> 0x7fff63d90000 - 0x7fff63de6fff com.apple.OTSVG (1.0 - ???) /System/Library/PrivateFrameworks/OTSVG.framework/Versions/A/OTSVG<br> 0x7fff64e42000 - 0x7fff64f48fff com.apple.PencilKit (1.0 - 1) &lt;30261DA0-5099-3ECE-8DF6-E2D15BFA2B5C&gt; /System/Library/PrivateFrameworks/PencilKit.framework/Versions/A/PencilKit<br> 0x7fff64f49000 - 0x7fff64f58ff3 com.apple.PerformanceAnalysis (1.217 - 217) &lt;8560F263-31F4-3CCA-84B1-30C296DC1A7D&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis<br> 0x7fff66eb9000 - 0x7fff66f10fff com.apple.ProtectedCloudStorage (1.0 - 1) &lt;737DEC8B-342E-3BB2-AF69-D4428D467E4E&gt; /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage<br> 0x7fff66f11000 - 0x7fff66f2fff7 com.apple.ProtocolBuffer (1 - 263) /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer<br> 0x7fff670c3000 - 0x7fff670c6ff3 com.apple.QuickLookNonBaseSystem (1.0 - 1) &lt;941AB8E3-BA18-326D-AA59-BA30FFC4C6AC&gt; /System/Library/PrivateFrameworks/QuickLookNonBaseSystem.framework/Versions/A/QuickLookNonBaseSystem<br> 0x7fff670c7000 - 0x7fff670ddff3 com.apple.QuickLookThumbnailing (1.0 - 1) /System/Library/PrivateFrameworks/QuickLookThumbnailing.framework/Versions/A/QuickLookThumbnailing<br> 0x7fff670de000 - 0x7fff67136f0f com.apple.ROCKit (24 - 24) &lt;5437F6F7-453F-3D75-9E87-D2A090D82D25&gt; /System/Library/PrivateFrameworks/ROCKit.framework/Versions/A/ROCKit<br> 0x7fff671f7000 - 0x7fff67203ff3 com.apple.xpc.RemoteServiceDiscovery (1.0 - 1336.201.2) /System/Library/PrivateFrameworks/RemoteServiceDiscovery.framework/Versions/A/RemoteServiceDiscovery<br> 0x7fff67216000 - 0x7fff67239ffb com.apple.RemoteViewServices (2.0 - 128) &lt;68530B4D-B2C0-3271-941B-D9EA62095727&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices<br> 0x7fff6723a000 - 0x7fff6724efff com.apple.xpc.RemoteXPC (1.0 - 1336.201.2) &lt;1E00A78B-1934-39A0-8F35-48CBEB93D04C&gt; /System/Library/PrivateFrameworks/RemoteXPC.framework/Versions/A/RemoteXPC<br> 0x7fff68ba7000 - 0x7fff68cc6fff com.apple.Sharing (1176.11 - 1176.11) &lt;9881AEAD-5410-33F7-A852-770C7FE677C9&gt; /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing<br> 0x7fff68cc7000 - 0x7fff68ce6ff3 com.apple.shortcut (2.16 - 101) /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut<br> 0x7fff69a78000 - 0x7fff69d28ff7 com.apple.SkyLight (1.600.0 - 336.80.6) &lt;5F7D2312-0003-354C-82BC-DC346B1A98E6&gt; /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight<br> 0x7fff6a4f7000 - 0x7fff6a504fff com.apple.SpeechRecognitionCore (5.0.21 - 5.0.21) &lt;816EC315-3E76-37B7-A495-B4AE031DA439&gt; /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore<br> 0x7fff6b365000 - 0x7fff6b3f2ff7 com.apple.Symbolication (10.0 - 64254.5) &lt;7D5FB79E-1121-3DB0-9CBE-C023835ACE60&gt; /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication<br> 0x7fff6b8fb000 - 0x7fff6b908ff3 com.apple.TCC (1.0 - 1) &lt;55C045F7-D8AB-3BE6-970B-9457FA78E7E3&gt; /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC<br> 0x7fff6bb77000 - 0x7fff6bc3eff7 com.apple.TextureIO (3.8.4 - 3.8.1) /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO<br> 0x7fff6bcff000 - 0x7fff6beb9fff com.apple.UIFoundation (1.0 - 550.35) &lt;1CAAA3AC-1477-3E24-B55C-07A704D7CA03&gt; /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation<br> 0x7fff6cba7000 - 0x7fff6cc90fff com.apple.ViewBridge (400.1 - 400.1) &lt;0BCCA232-710B-3F84-8341-A30F77B3A4E9&gt; /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge<br> 0x7fff6d4ab000 - 0x7fff6d4aefff com.apple.dt.XCTTargetBootstrap (1.0 - 1) &lt;63A533F6-988D-3FED-A1C7-20BC725A0D4B&gt; /System/Library/PrivateFrameworks/XCTTargetBootstrap.framework/Versions/A/XCTTargetBootstrap<br> 0x7fff6d8df000 - 0x7fff6d8e1ff3 com.apple.loginsupport (1.0 - 1) &lt;5F1E000D-0674-3413-AB3E-83F7974666FB&gt; /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport<br> 0x7fff6db9b000 - 0x7fff6dbd3fff libCRFSuite.dylib (41.15.4) &lt;62EDD39F-6D1B-334B-A9A2-5800714255BB&gt; /usr/lib/libCRFSuite.dylib<br> 0x7fff6dbd6000 - 0x7fff6dbe1ff7 libChineseTokenizer.dylib (28.15.3) &lt;8CD1C213-7F62-3F02-BFB1-D0A5EFF92AB0&gt; /usr/lib/libChineseTokenizer.dylib<br> 0x7fff6dbe2000 - 0x7fff6dc6eff7 libCoreStorage.dylib (546.50.1) /usr/lib/libCoreStorage.dylib<br> 0x7fff6dc72000 - 0x7fff6dc73ff7 libDiagnosticMessagesClient.dylib (107) /usr/lib/libDiagnosticMessagesClient.dylib<br> 0x7fff6dcaa000 - 0x7fff6de6dff7 libFosl_dynamic.dylib (18.3.2) &lt;6EF1CB2A-2BDA-3458-B631-F794D72660FD&gt; /usr/lib/libFosl_dynamic.dylib<br> 0x7fff6de8e000 - 0x7fff6de95fff libMatch.1.dylib (31.200.1) &lt;20216A5F-C625-3D87-9D95-C577F8687F6F&gt; /usr/lib/libMatch.1.dylib<br> 0x7fff6dec3000 - 0x7fff6dee2ffb libMobileGestalt.dylib (645.200.76) /usr/lib/libMobileGestalt.dylib<br> 0x7fff6dee3000 - 0x7fff6dee3fff libOpenScriptingUtil.dylib (178) &lt;2EEBF84D-9E00-3570-AC0C-C49C8D25A8BF&gt; /usr/lib/libOpenScriptingUtil.dylib<br> 0x7fff6e024000 - 0x7fff6e025ffb libSystem.B.dylib (1252.200.5) /usr/lib/libSystem.B.dylib<br> 0x7fff6e0af000 - 0x7fff6e0b0fff libThaiTokenizer.dylib (2.15.1) /usr/lib/libThaiTokenizer.dylib<br> 0x7fff6e0c3000 - 0x7fff6e0d9ffb libapple_nghttp2.dylib (1.24.1) /usr/lib/libapple_nghttp2.dylib<br> 0x7fff6e0da000 - 0x7fff6e103ffb libarchive.2.dylib (54.200.3) /usr/lib/libarchive.2.dylib<br> 0x7fff6e104000 - 0x7fff6e183fef libate.dylib (1.13.8) /usr/lib/libate.dylib<br> 0x7fff6e187000 - 0x7fff6e187ff3 libauto.dylib (187) &lt;01824E49-F2EF-3FC1-ABF3-782EFDF6CA17&gt; /usr/lib/libauto.dylib<br> 0x7fff6e188000 - 0x7fff6e25eff7 libboringssl.dylib (109.201.1) /usr/lib/libboringssl.dylib<br> 0x7fff6e25f000 - 0x7fff6e26fff3 libbsm.0.dylib (39.200.18) &lt;5E5098D0-F7B2-32A1-8038-E709F6718D4E&gt; /usr/lib/libbsm.0.dylib<br> 0x7fff6e270000 - 0x7fff6e27efff libbz2.1.0.dylib (38.200.3) &lt;4EE3C5E8-BEF3-3910-A231-B1AE2B437E01&gt; /usr/lib/libbz2.1.0.dylib<br> 0x7fff6e27f000 - 0x7fff6e2d6ff7 libc++.1.dylib (400.9.4) /usr/lib/libc++.1.dylib<br> 0x7fff6e2d7000 - 0x7fff6e2ecfff libc++abi.dylib (400.17) /usr/lib/libc++abi.dylib<br> 0x7fff6e2ed000 - 0x7fff6e2edff3 libcharset.1.dylib (51.200.6) /usr/lib/libcharset.1.dylib<br> 0x7fff6e2ee000 - 0x7fff6e2feffb libcmph.dylib (6.15.1) &lt;5D776FF6-DF7F-3EDD-B920-C07ED76C672B&gt; /usr/lib/libcmph.dylib<br> 0x7fff6e2ff000 - 0x7fff6e317ffb libcompression.dylib (52.200.13) /usr/lib/libcompression.dylib<br> 0x7fff6e5c2000 - 0x7fff6e5d8fff libcoretls.dylib (155.200.6) &lt;6E68F922-752C-311F-B56D-EE391E6AE1F7&gt; /usr/lib/libcoretls.dylib<br> 0x7fff6e5d9000 - 0x7fff6e5daff3 libcoretls_cfhelpers.dylib (155.200.6) &lt;7300BA76-39D2-349E-9FB8-EBE5947A708A&gt; /usr/lib/libcoretls_cfhelpers.dylib<br> 0x7fff6ec3d000 - 0x7fff6ec48ff7 libcsfde.dylib (546.50.1) &lt;65E8F1F1-665A-381E-8932-D7CBA451991B&gt; /usr/lib/libcsfde.dylib<br> 0x7fff6ec51000 - 0x7fff6eca7ffb libcups.2.dylib (462.9) &lt;51E06E95-891F-3B88-A8C3-35B514C57239&gt; /usr/lib/libcups.2.dylib<br> 0x7fff6eddf000 - 0x7fff6eddffff libenergytrace.dylib (17.200.1) /usr/lib/libenergytrace.dylib<br> 0x7fff6ede0000 - 0x7fff6edf9ffb libexpat.1.dylib (16.1.1) /usr/lib/libexpat.1.dylib<br> 0x7fff6ee11000 - 0x7fff6ee16ff7 libgermantok.dylib (17.15.2) &lt;9CBF0658-E83B-32E6-B674-3EE72D22C041&gt; /usr/lib/libgermantok.dylib<br> 0x7fff6ee17000 - 0x7fff6ee1cff7 libheimdal-asn1.dylib (520.200.17) &lt;58971629-3850-3905-A9A1-09FCF7A32815&gt; /usr/lib/libheimdal-asn1.dylib<br> 0x7fff6ee48000 - 0x7fff6ef39ff7 libiconv.2.dylib (51.200.6) &lt;3240A278-F537-3EC8-BE0C-983797520A50&gt; /usr/lib/libiconv.2.dylib<br> 0x7fff6ef3a000 - 0x7fff6f19dffb libicucore.A.dylib (62107.0.1) /usr/lib/libicucore.A.dylib<br> 0x7fff6f1ea000 - 0x7fff6f1ebfff liblangid.dylib (128.15.1) /usr/lib/liblangid.dylib<br> 0x7fff6f1ec000 - 0x7fff6f204fff liblzma.5.dylib (10.200.3) &lt;3ADDFA63-F37A-3C9C-91E4-58EE3113B9A1&gt; /usr/lib/liblzma.5.dylib<br> 0x7fff6f21c000 - 0x7fff6f2ccfff libmecab.1.0.0.dylib (779.15.23) &lt;6A38FCDA-17CE-30C3-AB66-A714CF645384&gt; /usr/lib/libmecab.1.0.0.dylib<br> 0x7fff6f2cd000 - 0x7fff6f50afff libmecabra.dylib (779.15.23) &lt;30E102AA-F3D3-3572-A1AE-1F2287DEF696&gt; /usr/lib/libmecabra.dylib<br> 0x7fff6f6e2000 - 0x7fff6fa3afff libnetwork.dylib (1229.200.109) /usr/lib/libnetwork.dylib<br> 0x7fff6facb000 - 0x7fff70251fe7 libobjc.A.dylib (750) &lt;2E868147-8818-359E-8CD7-A8B80665928F&gt; /usr/lib/libobjc.A.dylib<br> 0x7fff70264000 - 0x7fff70268ffb libpam.2.dylib (22.200.1) &lt;8C419238-675A-3C41-B8D4-95E391CA630F&gt; /usr/lib/libpam.2.dylib<br> 0x7fff7026b000 - 0x7fff702a1ff7 libpcap.A.dylib (79.200.4) &lt;5939AB23-B2A9-3C03-B6C1-4F0E5A21D9FC&gt; /usr/lib/libpcap.A.dylib<br> 0x7fff703bb000 - 0x7fff703d3ffb libresolv.9.dylib (65.200.2) &lt;0FEAEB01-B926-37FA-AB47-99BAC481C10B&gt; /usr/lib/libresolv.9.dylib<br> 0x7fff703d5000 - 0x7fff70411ff7 libsandbox.1.dylib (851.201.1) &lt;4498F061-7DEA-323C-88AC-3310556CE865&gt; /usr/lib/libsandbox.1.dylib<br> 0x7fff70425000 - 0x7fff70426ffb libspindump.dylib (266) &lt;0E60D709-0A48-3905-ACD1-9DDE6FD8B476&gt; /usr/lib/libspindump.dylib<br> 0x7fff70427000 - 0x7fff705fefe7 libsqlite3.dylib (274.20) &lt;4434B695-BC65-30D6-AFED-1B6488DB3D2E&gt; /usr/lib/libsqlite3.dylib<br> 0x7fff7082b000 - 0x7fff7088aff3 libusrtcp.dylib (1229.200.109) &lt;07B2AEC8-5FD4-34BE-B35B-B595283D9DC9&gt; /usr/lib/libusrtcp.dylib<br> 0x7fff7088b000 - 0x7fff7088effb libutil.dylib (51.200.4) &lt;91EE9BF4-FB06-3260-B502-7EFDAD5AF59B&gt; /usr/lib/libutil.dylib<br> 0x7fff7088f000 - 0x7fff7089cfff libxar.1.dylib (404) &lt;4B4D0206-0B62-3E89-AD07-E7BB9E4DFA68&gt; /usr/lib/libxar.1.dylib<br> 0x7fff708a1000 - 0x7fff70984fff libxml2.2.dylib (32.6) /usr/lib/libxml2.2.dylib<br> 0x7fff70985000 - 0x7fff709adff3 libxslt.1.dylib (16.1) /usr/lib/libxslt.1.dylib<br> 0x7fff709ae000 - 0x7fff709c0ffb libz.1.dylib (70.200.4) &lt;99A3D725-8388-38B4-B66C-5E9006E6F072&gt; /usr/lib/libz.1.dylib<br> 0x7fff70a31000 - 0x7fff70a35ff3 libcache.dylib (81) /usr/lib/system/libcache.dylib<br> 0x7fff70a36000 - 0x7fff70a40ff3 libcommonCrypto.dylib (60118.200.6) &lt;78093D4F-91DB-35C8-981A-13375778B2E7&gt; /usr/lib/system/libcommonCrypto.dylib<br> 0x7fff70a41000 - 0x7fff70a48fff libcompiler_rt.dylib (63.4) /usr/lib/system/libcompiler_rt.dylib<br> 0x7fff70a49000 - 0x7fff70a52ff3 libcopyfile.dylib (146.200.3) &lt;4BCDADBF-79F5-3829-B47D-64DA0D44BCBF&gt; /usr/lib/system/libcopyfile.dylib<br> 0x7fff70a53000 - 0x7fff70ad7fff libcorecrypto.dylib (602.200.50) &lt;7AEC5B72-0B92-37E8-808B-6732DB714139&gt; /usr/lib/system/libcorecrypto.dylib<br> 0x7fff70b5d000 - 0x7fff70b97ff7 libdispatch.dylib (1008.200.78) /usr/lib/system/libdispatch.dylib<br> 0x7fff70b98000 - 0x7fff70bc7fff libdyld.dylib (625.13) &lt;4B16C209-83D4-3817-9B62-C2F7FFB23755&gt; /usr/lib/system/libdyld.dylib<br> 0x7fff70bc8000 - 0x7fff70bc8ffb libkeymgr.dylib (30) /usr/lib/system/libkeymgr.dylib<br> 0x7fff70bc9000 - 0x7fff70bd5ff7 libkxld.dylib (4903.201.2) /usr/lib/system/libkxld.dylib<br> 0x7fff70bd6000 - 0x7fff70bd6ff7 liblaunch.dylib (1336.201.2) &lt;43E6698E-155E-3EAE-BAFF-CA5FCB35325C&gt; /usr/lib/system/liblaunch.dylib<br> 0x7fff70bd7000 - 0x7fff70bdcfff libmacho.dylib (917) &lt;17BF7038-9C70-3EE1-9E96-3AE10D49669E&gt; /usr/lib/system/libmacho.dylib<br> 0x7fff70bdd000 - 0x7fff70bdfff3 libquarantine.dylib (86.200.11) /usr/lib/system/libquarantine.dylib<br> 0x7fff70be0000 - 0x7fff70be1ff3 libremovefile.dylib (45.200.2) /usr/lib/system/libremovefile.dylib<br> 0x7fff70be2000 - 0x7fff70bf9ff3 libsystem_asl.dylib (356.200.4) /usr/lib/system/libsystem_asl.dylib<br> 0x7fff70bfa000 - 0x7fff70bfafff libsystem_blocks.dylib (73) &lt;26419398-C30C-30F1-B656-A92AFA9560F6&gt; /usr/lib/system/libsystem_blocks.dylib<br> 0x7fff70bfb000 - 0x7fff70c83fff libsystem_c.dylib (1272.200.26) &lt;3DEEE96E-6DF6-35AD-8654-D69AC26B907B&gt; /usr/lib/system/libsystem_c.dylib<br> 0x7fff70c84000 - 0x7fff70c87ff7 libsystem_configuration.dylib (963.200.27) &lt;02CC3996-B34E-333C-8806-AE2699D34424&gt; /usr/lib/system/libsystem_configuration.dylib<br> 0x7fff70c88000 - 0x7fff70c8bff7 libsystem_coreservices.dylib (66) &lt;254B6849-2C8F-302C-8616-B8324A11AB30&gt; /usr/lib/system/libsystem_coreservices.dylib<br> 0x7fff70c8c000 - 0x7fff70c92ffb libsystem_darwin.dylib (1272.200.26) &lt;974E9EF7-DE72-34B7-B056-0A81C10DF8EB&gt; /usr/lib/system/libsystem_darwin.dylib<br> 0x7fff70c93000 - 0x7fff70c99ff7 libsystem_dnssd.dylib (878.200.35) /usr/lib/system/libsystem_dnssd.dylib<br> 0x7fff70c9a000 - 0x7fff70ce6ff3 libsystem_info.dylib (517.200.9) &lt;0707C387-D7DE-372E-8FF1-3DE5C91932D6&gt; /usr/lib/system/libsystem_info.dylib<br> 0x7fff70ce7000 - 0x7fff70d0eff7 libsystem_kernel.dylib (4903.201.2) &lt;45FAA4C0-D553-34FD-ADF8-884886AE0D2A&gt; /usr/lib/system/libsystem_kernel.dylib<br> 0x7fff70d0f000 - 0x7fff70d5aff7 libsystem_m.dylib (3158.200.7) &lt;43D1796B-954F-37D6-B1AC-9D80DF0655A2&gt; /usr/lib/system/libsystem_m.dylib<br> 0x7fff70d5b000 - 0x7fff70d7fff7 libsystem_malloc.dylib (166.200.60) &lt;846F6898-117C-3427-A8FB-3772FFC2410B&gt; /usr/lib/system/libsystem_malloc.dylib<br> 0x7fff70d80000 - 0x7fff70d8bffb libsystem_networkextension.dylib (767.200.40) /usr/lib/system/libsystem_networkextension.dylib<br> 0x7fff70d8c000 - 0x7fff70d93fff libsystem_notify.dylib (172.200.21) /usr/lib/system/libsystem_notify.dylib<br> 0x7fff70d94000 - 0x7fff70d9dfef libsystem_platform.dylib (177.200.16) /usr/lib/system/libsystem_platform.dylib<br> 0x7fff70d9e000 - 0x7fff70da8fff libsystem_pthread.dylib (330.201.1) &lt;87A6B136-E423-3B6D-A58A-137F392D7D9D&gt; /usr/lib/system/libsystem_pthread.dylib<br> 0x7fff70da9000 - 0x7fff70dacff7 libsystem_sandbox.dylib (851.201.1) /usr/lib/system/libsystem_sandbox.dylib<br> 0x7fff70dad000 - 0x7fff70dafff7 libsystem_secinit.dylib (30.200.13) /usr/lib/system/libsystem_secinit.dylib<br> 0x7fff70db0000 - 0x7fff70db7ff7 libsystem_symptoms.dylib (820.207.88) /usr/lib/system/libsystem_symptoms.dylib<br> 0x7fff70db8000 - 0x7fff70dcdff7 libsystem_trace.dylib (906.200.86) &lt;7983ED77-18B5-39A5-BE19-AE4F2832ADEA&gt; /usr/lib/system/libsystem_trace.dylib<br> 0x7fff70dcf000 - 0x7fff70dd4ffb libunwind.dylib (35.4) &lt;41222EF6-2233-3CF4-947A-15D48CB8C030&gt; /usr/lib/system/libunwind.dylib<br> 0x7fff70dd5000 - 0x7fff70e05fff libxpc.dylib (1336.201.2) &lt;0A8747D1-33AA-37E1-B97A-BA9B95FE4E8C&gt; /usr/lib/system/libxpc.dylib</p> <p dir="auto">External Modification Summary:<br> Calls made by other processes targeting this process:<br> task_for_pid: 0<br> thread_create: 0<br> thread_set_state: 0<br> Calls made by this process:<br> task_for_pid: 0<br> thread_create: 0<br> thread_set_state: 0<br> Calls made by all processes on this machine:<br> task_for_pid: 20109<br> thread_create: 0<br> thread_set_state: 0</p> <p dir="auto">VM Region Summary:<br> ReadOnly portion of Libraries: Total=518.9M resident=0K(0%) swapped_out_or_unallocated=518.9M(100%)<br> Writable regions: Total=895.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=895.3M(100%)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" VIRTUAL REGION "><pre class="notranslate"><code class="notranslate"> VIRTUAL REGION </code></pre></div> <p dir="auto">REGION TYPE SIZE COUNT (non-coalesced)<br> =========== ======= =======<br> Accelerate framework 256K 3<br> Activity Tracing 256K 2<br> CG backing stores 2540K 5<br> CG image 1508K 14<br> CoreAnimation 680K 9<br> CoreGraphics 8K 2<br> CoreImage 76K 7<br> CoreUI image data 1344K 16<br> CoreUI image file 416K 6<br> Foundation 4K 2<br> IOKit 7940K 2<br> Kernel Alloc Once 12K 3<br> MALLOC 190.8M 46<br> MALLOC guard page 48K 13<br> MALLOC_NANO (reserved) 384.0M 2 reserved VM address space (unallocated)<br> Memory Tag 242 12K 2<br> Memory Tag 255 530.0M 68<br> SQLite page cache 64K 2<br> STACK GUARD 56.2M 50<br> Stack 269.4M 50<br> VM_ALLOCATE 20.2M 22<br> __DATA 37.3M 306<br> __FONT_DATA 4K 2<br> __LINKEDIT 222.4M 11<br> __TEXT 296.5M 306<br> __UNICODE 560K 2<br> libnetwork 1664K 8<br> mapped file 73.2M 43<br> shared memory 2752K 16<br> =========== ======= =======<br> TOTAL 2.1G 991<br> TOTAL, minus reserved VM space 1.7G 991</p> <p dir="auto">Model: MacBookPro14,2, BootROM MBP142.0178.B00, 2 processors, Intel Core i5, 3.1 GHz, 8 GB, SMC 2.44f1<br> Graphics: Intel Iris Plus Graphics 650, Intel Iris Plus Graphics 650, Built-In<br> Memory Module: BANK 0/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039<br> Memory Module: BANK 1/DIMM0, 4 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C3531324D3332443250462D3039<br> AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x171), Broadcom BCM43xx 1.0 (7.77.61.1 AirPortDriverBrcmNIC-1305.2)<br> Bluetooth: Version 6.0.8f6, 3 services, 27 devices, 1 incoming serial ports<br> Network Service: iPhone, Ethernet, en7<br> Network Service: Wi-Fi, AirPort, en0<br> USB Device: USB 3.0 Bus<br> USB Device: MHA-L29<br> USB Device: iPhone<br> USB Device: iBridge<br> Thunderbolt Bus: MacBook Pro, Apple Inc., 37.1<br> Thunderbolt Bus: MacBook Pro, Apple Inc., 37.1</p> </details>
1
<p dir="auto">Generally, when using babel / <code class="notranslate">babel-loader</code> it is common to ignore <code class="notranslate">node_modules</code> for faster compilation speed.</p> <p dir="auto">The definition of the <code class="notranslate">$$typeof</code> attribute we're looking for is:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var REACT_ELEMENT_TYPE = typeof Symbol === 'function' &amp;&amp; Symbol['for'] &amp;&amp; Symbol['for']('react.element') || 0xeac7;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-c1">REACT_ELEMENT_TYPE</span> <span class="pl-c1">=</span> <span class="pl-k">typeof</span> <span class="pl-v">Symbol</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-v">Symbol</span><span class="pl-kos">[</span><span class="pl-s">'for'</span><span class="pl-kos">]</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-v">Symbol</span><span class="pl-kos">[</span><span class="pl-s">'for'</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s">'react.element'</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-c1">0xeac7</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And this is pushed into a shared module that exports it when using the <code class="notranslate">react.inlineElements</code> transform.</p> <p dir="auto">Here's the problem:</p> <p dir="auto">On older browsers that don't support <code class="notranslate">Symbol</code>, like Safari 7 / Chromium 30, <code class="notranslate">Symbol</code> is polyfilled by the core-js runtime. But the same definition of <code class="notranslate">REACT_ELEMENT_TYPE</code> is present inside <code class="notranslate">node_modules/react/lib/ReactElement.js</code>, and this is <em>not</em> polyfilled by oore-js and therefore equals <code class="notranslate">0xeac7</code>.</p> <p dir="auto">This causes the element test to fail on render (comparing a shimmed Symbol to <code class="notranslate">0xeac7</code>) and breaks the render on those browsers.</p> <p dir="auto">I propose, rather than redefining <code class="notranslate">REACT_ELEMENT_TYPE</code> directly so it can be used in the inline elements (and thus having it break if upstream ever changes it), let's just instantiate an element and export its <code class="notranslate">$$typeof</code>.</p>
<p dir="auto">I am using 6to5 with jsx, gulp and browserify. After several file changes 6to5 crashes with error: <code class="notranslate">FATAL ERROR: JS Allocation failed - process out of memory</code>. I've found out that the problem is with my jsx source by simply switching entry point to js file instead jsx. See the console trace and my configuration below. Pay attention on increasing build time after each bundle change.</p> <p dir="auto"><strong>Tested with the latest 6to5-core</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[20:08:04] Running 'bundle'... [20:08:05] Finished 'bundle' in 73 ms [BS] File changed: build/app.js [20:08:10] Running 'bundle'... [20:08:11] Finished 'bundle' in 88 ms [BS] File changed: build/app.js [20:08:13] Running 'bundle'... [20:08:14] Finished 'bundle' in 367 ms [BS] File changed: build/app.js [20:08:18] Running 'bundle'... [20:08:36] Finished 'bundle' in 17 s [BS] File changed: build/app.js [20:08:42] Running 'bundle'... FATAL ERROR: JS Allocation failed - process out of memory [1] 23299 abort gulp"><pre class="notranslate">[20:08:04] Running <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span>... [20:08:05] Finished <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span> <span class="pl-k">in</span> 73 ms [BS] File changed: build/app.js [20:08:10] Running <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span>... [20:08:11] Finished <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span> <span class="pl-k">in</span> 88 ms [BS] File changed: build/app.js [20:08:13] Running <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span>... [20:08:14] Finished <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span> <span class="pl-k">in</span> 367 ms [BS] File changed: build/app.js [20:08:18] Running <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span>... [20:08:36] Finished <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span> <span class="pl-k">in</span> 17 s [BS] File changed: build/app.js [20:08:42] Running <span class="pl-s"><span class="pl-pds">'</span>bundle<span class="pl-pds">'</span></span>... FATAL ERROR: JS Allocation failed - process out of memory [1] 23299 abort gulp</pre></div> <p dir="auto">Browserify Gulp task:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var browserify = require('browserify'); var watchify = require('watchify'); var bundleLogger = require('../util/bundleLogger'); var gulp = require('gulp'); var handleErrors = require('../util/handleErrors'); var source = require('vinyl-source-stream'); var _6to5 = require('./6to5ify'); var externalLibs = require('../external-libs'); gulp.task('browserify', function() { var bundler = browserify({ cache: {}, packageCache: {}, fullPaths: true, entries: ['./src/scripts/test_app.jsx'], extensions: ['.js', '.jsx'], debug: false, paths: ['./src/scripts'], fast: true, detectGlobals: false }); var bundle = function() { bundleLogger.start(); return bundler .external(externalLibs) .transform(_6to5) .bundle() .on('error', handleErrors) .pipe(source('app.js')) .pipe(gulp.dest('./build/')) .on('end', bundleLogger.end); if(global.isWatching) { bundler = watchify(bundler); bundler.on('update', bundle); } return bundle(); });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">browserify</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'browserify'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">watchify</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'watchify'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">bundleLogger</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'../util/bundleLogger'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">gulp</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'gulp'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">handleErrors</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'../util/handleErrors'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">source</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'vinyl-source-stream'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_6to5</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./6to5ify'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">externalLibs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'../external-libs'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">gulp</span><span class="pl-kos">.</span><span class="pl-c1">task</span><span class="pl-kos">(</span><span class="pl-s">'browserify'</span><span class="pl-kos">,</span> <span class="pl-k">function</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">bundler</span> <span class="pl-c1">=</span> <span class="pl-s1">browserify</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">cache</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">packageCache</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">fullPaths</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">entries</span>: <span class="pl-kos">[</span><span class="pl-s">'./src/scripts/test_app.jsx'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">extensions</span>: <span class="pl-kos">[</span><span class="pl-s">'.js'</span><span class="pl-kos">,</span> <span class="pl-s">'.jsx'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">debug</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">paths</span>: <span class="pl-kos">[</span><span class="pl-s">'./src/scripts'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">fast</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">detectGlobals</span>: <span class="pl-c1">false</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-en">bundle</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">bundleLogger</span><span class="pl-kos">.</span><span class="pl-en">start</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">bundler</span> <span class="pl-kos">.</span><span class="pl-en">external</span><span class="pl-kos">(</span><span class="pl-s1">externalLibs</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">transform</span><span class="pl-kos">(</span><span class="pl-s1">_6to5</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">bundle</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'error'</span><span class="pl-kos">,</span> <span class="pl-s1">handleErrors</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">pipe</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">(</span><span class="pl-s">'app.js'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">pipe</span><span class="pl-kos">(</span><span class="pl-s1">gulp</span><span class="pl-kos">.</span><span class="pl-en">dest</span><span class="pl-kos">(</span><span class="pl-s">'./build/'</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'end'</span><span class="pl-kos">,</span> <span class="pl-s1">bundleLogger</span><span class="pl-kos">.</span><span class="pl-c1">end</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">global</span><span class="pl-kos">.</span><span class="pl-c1">isWatching</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">bundler</span> <span class="pl-c1">=</span> <span class="pl-s1">watchify</span><span class="pl-kos">(</span><span class="pl-s1">bundler</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">bundler</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'update'</span><span class="pl-kos">,</span> <span class="pl-en">bundle</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-en">bundle</span><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-kos">;</span></pre></div> <p dir="auto">test_app.jsx:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var React = require('react'); var Test = React.createClass({ render: function() { return ( &lt;h1&gt;Test&lt;/h1&gt; ); } }); React.render(&lt;Test /&gt;, document.getElementById('root')); "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">React</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'react'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-v">Test</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span>Test<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <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-kos">;</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-v">Test</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'root'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<p dir="auto"><strong>I'm submitting a bug report</strong><br> <strong>Webpack version:</strong><br> 1.13.2</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 7</p> <p dir="auto"><strong>Current behavior:</strong><br> For the following code snippet</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" require.ensure( ['./module'], (syncedRequire) =&gt; { doSomething(syncedRequire('./module')); }, 'module');"><pre class="notranslate"><code class="notranslate"> require.ensure( ['./module'], (syncedRequire) =&gt; { doSomething(syncedRequire('./module')); }, 'module'); </code></pre></div> <p dir="auto">webpack generates this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" __webpack_require__.e/* nsure */(1, function (syncedRequire) { doSomething(syncedRequire('./module')); });"><pre class="notranslate"><code class="notranslate"> __webpack_require__.e/* nsure */(1, function (syncedRequire) { doSomething(syncedRequire('./module')); }); </code></pre></div> <p dir="auto">This is invalid, because syncedRequire will be the <strong>webpack_require</strong> function, and that function expects a number instead of a string. For the string it'll fail.</p> <p dir="auto"><strong>Expected/desired behavior:</strong><br> One solution is to remove the callback argument that won't be required anyway, if you're implementing the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" require.ensure( ['./module'], () =&gt; { doSomething(require('./module')); }, 'module');"><pre class="notranslate"><code class="notranslate"> require.ensure( ['./module'], () =&gt; { doSomething(require('./module')); }, 'module'); </code></pre></div> <p dir="auto">Webpack generates this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" __webpack_require__.e/* nsure */(1, function () { doSomething(__webpack_require__(2)); });"><pre class="notranslate"><code class="notranslate"> __webpack_require__.e/* nsure */(1, function () { doSomething(__webpack_require__(2)); }); </code></pre></div> <p dir="auto">You can see, the require('./module') call is now compiled into <strong>webpack_require</strong>(2) and now everything will work correctly.</p> <p dir="auto">Other solution is that the callback will receive a function that can handle the string as an input parameter. That means:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" __webpack_require__.e/* nsure */(1, function (syncedRequire) { doSomething(syncedRequire('./module')); });"><pre class="notranslate"><code class="notranslate"> __webpack_require__.e/* nsure */(1, function (syncedRequire) { doSomething(syncedRequire('./module')); }); </code></pre></div> <p dir="auto">in this code webpack has to pass a different function than <strong>webpack_require</strong> into this callback. So the syncedRequire shouldn't be the <strong>webpack_require</strong> function. Instead of that it has to be capable to handle the string input parameter.</p> <ul dir="auto"> <li><strong>Browser:</strong> [all]</li> <li><strong>Language:</strong> [all]</li> </ul> <p dir="auto">Feel free to close this bug anyway, if it's fixed in webpack version 2, as the workaround basically just to write require inside the function and not expecting any parameter in the callback function.</p> <p dir="auto">So workaround again:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" require.ensure( ['./module'], () =&gt; { doSomething(require('./module')); }, 'module');"><pre class="notranslate"><code class="notranslate"> require.ensure( ['./module'], () =&gt; { doSomething(require('./module')); }, 'module'); </code></pre></div>
<p dir="auto">Once i want to develop a custom loader which can receive an <code class="notranslate">JSON</code> options in the <code class="notranslate">query</code> as following:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var urls = JSON.stringify({ value: { cdnUrl: 'http://xxx.domain.com/imgs/' } }); module.exports = { entry: { index: path.resolve(__dirname, 'public', 'js', 'index.js') }, output: { path: path.resolve(__dirname, '..', '..', '..', '..', 'public', 'build', 'js'), filename: '[name].bundle.js', chunkFilename: '[id].bundle.js', publicPath: '/build/js/' }, module: { loaders: [ { test: /\.scss$/, loader: 'my-custom-loader?' + urls } ] } };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">urls</span> <span class="pl-c1">=</span> <span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-kos">{</span> <span class="pl-c1">cdnUrl</span>: <span class="pl-s">'http://xxx.domain.com/imgs/'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</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-kos">{</span> <span class="pl-c1">index</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">'public'</span><span class="pl-kos">,</span> <span class="pl-s">'js'</span><span class="pl-kos">,</span> <span class="pl-s">'index.js'</span><span class="pl-kos">)</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">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'..'</span><span class="pl-kos">,</span> <span class="pl-s">'public'</span><span class="pl-kos">,</span> <span class="pl-s">'build'</span><span class="pl-kos">,</span> <span class="pl-s">'js'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">filename</span>: <span class="pl-s">'[name].bundle.js'</span><span class="pl-kos">,</span> <span class="pl-c1">chunkFilename</span>: <span class="pl-s">'[id].bundle.js'</span><span class="pl-kos">,</span> <span class="pl-c1">publicPath</span>: <span class="pl-s">'/build/js/'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">loaders</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>scss<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-s">'my-custom-loader?'</span> <span class="pl-c1">+</span> <span class="pl-s1">urls</span> <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">The thing i found is the <code class="notranslate">this.query</code> always remove one <code class="notranslate">/</code> right after <code class="notranslate">http:</code> from the passed options:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = function(source) { 'use strict'; this.cacheable &amp;&amp; this.cacheable(); console.log(this.query);//?{&quot;value&quot;:{&quot;cdnUrl&quot;:&quot;http:/xxx.domain.com/imgs/&quot;}} };"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">cacheable</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">cacheable</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-c">//?{"value":{"cdnUrl":"http:/xxx.domain.com/imgs/"}}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Is this by design?</p>
0
<p dir="auto">Implement Chrome DevTools Protocol for Node-like debug</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// main.ts import { parse } from &quot;https://deno.land/std/flags/mod.ts&quot; console.log(parse(Deno.args))"><pre class="notranslate"><span class="pl-c">// main.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">parse</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/flags/mod.ts"</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">parse</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</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="Platform: macos aarch64 Version: 1.25.0 Args: [&quot;deno&quot;, &quot;compile&quot;, &quot;main.ts&quot;] thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/ib/.cargo/registry/src/github.com-1ecc6299db9ec823/eszip-0.25.0/src/v2.rs:512:60 stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: core::panicking::panic 3: eszip::v2::EszipV2::from_graph::visit_module 4: eszip::v2::EszipV2::from_graph::visit_module 5: deno::compile_command::{{closure}} 6: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 7: deno::main::{{closure}} 8: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 9: deno_runtime::tokio_util::run_local 10: deno::main note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace."><pre class="notranslate"><code class="notranslate">Platform: macos aarch64 Version: 1.25.0 Args: ["deno", "compile", "main.ts"] thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/ib/.cargo/registry/src/github.com-1ecc6299db9ec823/eszip-0.25.0/src/v2.rs:512:60 stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: core::panicking::panic 3: eszip::v2::EszipV2::from_graph::visit_module 4: eszip::v2::EszipV2::from_graph::visit_module 5: deno::compile_command::{{closure}} 6: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 7: deno::main::{{closure}} 8: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 9: deno_runtime::tokio_util::run_local 10: deno::main note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. </code></pre></div>
0
<p dir="auto">Although the startup database folder is always clean, this test fails. I think it has something to do with the underlying lucene index.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Test public void quickBenchmark2() { for(int i=0;i&lt;3000;i++) batchInserter.createNode(4766131808L+i,new HashMap&lt;&gt;()); batchInserter.shutdown(); }"><pre class="notranslate"><code class="notranslate">@Test public void quickBenchmark2() { for(int i=0;i&lt;3000;i++) batchInserter.createNode(4766131808L+i,new HashMap&lt;&gt;()); batchInserter.shutdown(); } </code></pre></div> <p dir="auto">with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.neo4j.kernel.impl.store.UnderlyingStorageException: java.io.IOException: Exception in the page eviction thread at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1171) at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1147) at org.neo4j.unsafe.impl.batchimport.staging.ReadRecordsStep.nextBatchOrNull(ReadRecordsStep.java:85) at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep.process(ProducerStep.java:78) at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep$1.run(ProducerStep.java:56) Caused by: java.io.IOException: Exception in the page eviction thread at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.assertHealthy(MuninnPageCache.java:654) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.grabFreeAndExclusivelyLockedPage(MuninnPageCache.java:708) at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.grabFreeAndExclusivelyLockedPage(MuninnPagedFile.java:521) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pageFault(MuninnPageCursor.java:317) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.initiatePageFault(MuninnPageCursor.java:290) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.uncommonPin(MuninnPageCursor.java:271) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pin(MuninnPageCursor.java:254) at org.neo4j.io.pagecache.impl.muninn.MuninnReadPageCursor.next(MuninnReadPageCursor.java:60) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.next(MuninnPageCursor.java:121) at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1026) at org.neo4j.kernel.impl.store.CommonAbstractStore.access$000(CommonAbstractStore.java:63) at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1166) ... 4 more Caused by: java.io.IOException: No space left on device at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) at sun.nio.ch.IOUtil.write(IOUtil.java:51) at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764) at org.neo4j.io.fs.StoreFileChannel.write(StoreFileChannel.java:50) at org.neo4j.io.fs.StoreFileChannel.writeAll(StoreFileChannel.java:65) at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.swapOut(SingleFilePageSwapper.java:270) at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.write(SingleFilePageSwapper.java:435) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.doFlush(MuninnPage.java:154) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.flush(MuninnPage.java:142) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.evict(MuninnPage.java:209) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.evictPage(MuninnPageCache.java:979) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.evictPages(MuninnPageCache.java:937) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.continuouslySweepPages(MuninnPageCache.java:863) at org.neo4j.io.pagecache.impl.muninn.EvictionTask.run(EvictionTask.java:39) at org.neo4j.io.pagecache.impl.muninn.BackgroundTask.run(BackgroundTask.java:45) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) "><pre class="notranslate"><code class="notranslate">org.neo4j.kernel.impl.store.UnderlyingStorageException: java.io.IOException: Exception in the page eviction thread at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1171) at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1147) at org.neo4j.unsafe.impl.batchimport.staging.ReadRecordsStep.nextBatchOrNull(ReadRecordsStep.java:85) at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep.process(ProducerStep.java:78) at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep$1.run(ProducerStep.java:56) Caused by: java.io.IOException: Exception in the page eviction thread at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.assertHealthy(MuninnPageCache.java:654) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.grabFreeAndExclusivelyLockedPage(MuninnPageCache.java:708) at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.grabFreeAndExclusivelyLockedPage(MuninnPagedFile.java:521) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pageFault(MuninnPageCursor.java:317) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.initiatePageFault(MuninnPageCursor.java:290) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.uncommonPin(MuninnPageCursor.java:271) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pin(MuninnPageCursor.java:254) at org.neo4j.io.pagecache.impl.muninn.MuninnReadPageCursor.next(MuninnReadPageCursor.java:60) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.next(MuninnPageCursor.java:121) at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1026) at org.neo4j.kernel.impl.store.CommonAbstractStore.access$000(CommonAbstractStore.java:63) at org.neo4j.kernel.impl.store.CommonAbstractStore$1.next(CommonAbstractStore.java:1166) ... 4 more Caused by: java.io.IOException: No space left on device at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) at sun.nio.ch.IOUtil.write(IOUtil.java:51) at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764) at org.neo4j.io.fs.StoreFileChannel.write(StoreFileChannel.java:50) at org.neo4j.io.fs.StoreFileChannel.writeAll(StoreFileChannel.java:65) at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.swapOut(SingleFilePageSwapper.java:270) at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.write(SingleFilePageSwapper.java:435) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.doFlush(MuninnPage.java:154) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.flush(MuninnPage.java:142) at org.neo4j.io.pagecache.impl.muninn.MuninnPage.evict(MuninnPage.java:209) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.evictPage(MuninnPageCache.java:979) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.evictPages(MuninnPageCache.java:937) at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.continuouslySweepPages(MuninnPageCache.java:863) at org.neo4j.io.pagecache.impl.muninn.EvictionTask.run(EvictionTask.java:39) at org.neo4j.io.pagecache.impl.muninn.BackgroundTask.run(BackgroundTask.java:45) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) </code></pre></div>
<p dir="auto">Hi,</p> <p dir="auto">I'd like to have the ability to easily get the start or end note of a relationship in Cypher. I have certain key information about a relationships, which are many (in my case tens thousands) and which all have the same start node.<br> Example:<br> start r=rel:transactions(sender_address='KEY')<br> match n-[r]-&gt;()<br> return n limit 1</p> <p dir="auto">This query apparently first gets the list of all qualifying relationships and then outputs the first hit, which is quite slow.</p> <p dir="auto">A solution like this would be great:<br> start r=rel:transactions(sender_address='KEY')<br> return startNode(r) / return endNode(r)</p>
0
<p dir="auto"><a href="https://github.com/symfony/security/blob/master/Csrf/TokenGenerator/UriSafeTokenGenerator.php#L48">https://github.com/symfony/security/blob/master/Csrf/TokenGenerator/UriSafeTokenGenerator.php#L48</a></p> <p dir="auto">I have polyfill-php70 installed. It does not help.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3941091/11628353/6e9a27a0-9cf1-11e5-8a27-8210c7a4ecea.png"><img src="https://cloud.githubusercontent.com/assets/3941091/11628353/6e9a27a0-9cf1-11e5-8a27-8210c7a4ecea.png" alt="screenshot from 2015-12-07 14 44 37" style="max-width: 100%;"></a></p>
<p dir="auto">Currently, EntityChoiceList and ModelChoiceList share quite a lot of duplicated code. This duplication should be reduced by introducing a common base class or something similar.</p>
0
<p dir="auto">Failed: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-prod-parallel/839/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-prod-parallel/839/</a></p> <p dir="auto">Run so broken it didn't make JUnit output!</p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-prod-parallel/82/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-prod-parallel/82/</a></p> <p dir="auto">Multiple broken tests:</p> <p dir="auto">Failed: [k8s.io] EmptyDir volumes should support (non-root,0666,tmpfs) [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/empty_dir.go:85 Expected error: &lt;*errors.errorString | 0xc8208e1250&gt;: { s: &quot;expected container test-container success: gave up waiting for pod 'pod-6c83abaa-aee8-11e6-9144-0242ac110004' to be 'success or failure' after 5m0s&quot;, } expected container test-container success: gave up waiting for pod 'pod-6c83abaa-aee8-11e6-9144-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/empty_dir.go:85 Expected error: &lt;*errors.errorString | 0xc8208e1250&gt;: { s: "expected container test-container success: gave up waiting for pod 'pod-6c83abaa-aee8-11e6-9144-0242ac110004' to be 'success or failure' after 5m0s", } expected container test-container success: gave up waiting for pod 'pod-6c83abaa-aee8-11e6-9144-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182659473" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34658" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34658/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34658">#34658</a></p> <p dir="auto">Failed: [k8s.io] EmptyDir wrapper volumes should becomes running {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/empty_dir_wrapper.go:180 Expected error: &lt;*errors.errorString | 0xc8200e37c0&gt;: { s: &quot;timed out waiting for the condition&quot;, } timed out waiting for the condition not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/empty_dir_wrapper.go:179"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/empty_dir_wrapper.go:180 Expected error: &lt;*errors.errorString | 0xc8200e37c0&gt;: { s: "timed out waiting for the condition", } timed out waiting for the condition not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/empty_dir_wrapper.go:179 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163609166" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28450" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28450/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28450">#28450</a></p> <p dir="auto">Failed: [k8s.io] Secrets should be consumable from pods in volume [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/secrets.go:88 Expected error: &lt;*errors.errorString | 0xc820cf4660&gt;: { s: &quot;expected container secret-volume-test success: gave up waiting for pod 'pod-secrets-7f6f77a6-aee8-11e6-9ba3-0242ac110004' to be 'success or failure' after 5m0s&quot;, } expected container secret-volume-test success: gave up waiting for pod 'pod-secrets-7f6f77a6-aee8-11e6-9ba3-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/secrets.go:88 Expected error: &lt;*errors.errorString | 0xc820cf4660&gt;: { s: "expected container secret-volume-test success: gave up waiting for pod 'pod-secrets-7f6f77a6-aee8-11e6-9ba3-0242ac110004' to be 'success or failure' after 5m0s", } expected container secret-volume-test success: gave up waiting for pod 'pod-secrets-7f6f77a6-aee8-11e6-9ba3-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="166415314" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29221" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29221/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29221">#29221</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Kubectl label should update the label on a resource [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:753 Expected &lt;bool&gt;: false to be true /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:752"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:753 Expected &lt;bool&gt;: false to be true /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:752 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163811600" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28493" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28493/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28493">#28493</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169031166" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29964" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29964/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29964">#29964</a></p> <p dir="auto">Failed: [k8s.io] ServiceAccounts should mount an API token into pods [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service_accounts.go:240 Expected error: &lt;*errors.errorString | 0xc820a3add0&gt;: { s: &quot;expected container token-test success: gave up waiting for pod 'pod-service-account-89578277-aee8-11e6-9d7a-0242ac110004' to be 'success or failure' after 5m0s&quot;, } expected container token-test success: gave up waiting for pod 'pod-service-account-89578277-aee8-11e6-9d7a-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service_accounts.go:240 Expected error: &lt;*errors.errorString | 0xc820a3add0&gt;: { s: "expected container token-test success: gave up waiting for pod 'pod-service-account-89578277-aee8-11e6-9d7a-0242ac110004' to be 'success or failure' after 5m0s", } expected container token-test success: gave up waiting for pod 'pod-service-account-89578277-aee8-11e6-9d7a-0242ac110004' to be 'success or failure' after 5m0s not to have occurred /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:2283 </code></pre></div> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Kubectl apply should apply a new configuration to an existing RC {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134 Nov 19 22:18:13.412: Couldn't delete ns: &quot;e2e-tests-kubectl-vzbxd&quot;: namespace e2e-tests-kubectl-vzbxd was not deleted with limit: timed out waiting for the condition, pods remaining: 1, pods missing deletion timestamp: 0 (&amp;errors.errorString{s:&quot;namespace e2e-tests-kubectl-vzbxd was not deleted with limit: timed out waiting for the condition, pods remaining: 1, pods missing deletion timestamp: 0&quot;}) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134 Nov 19 22:18:13.412: Couldn't delete ns: "e2e-tests-kubectl-vzbxd": namespace e2e-tests-kubectl-vzbxd was not deleted with limit: timed out waiting for the condition, pods remaining: 1, pods missing deletion timestamp: 0 (&amp;errors.errorString{s:"namespace e2e-tests-kubectl-vzbxd was not deleted with limit: timed out waiting for the condition, pods remaining: 1, pods missing deletion timestamp: 0"}) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338 </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="160589538" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27524" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27524/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27524">#27524</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174995468" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32057" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32057/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32057">#32057</a></p>
1
<p dir="auto">I am not 100% sure if this is a symfony bug because I am using FoSUserBundle, but from my debugging it seems to be a symfony error.</p> <p dir="auto">The Symfony Session caller saves two sessions on authentication. One of them is a blank session with an array that looks like an empty _sf2_attributes array, and the other is the actual session. The PHPSESSID cookie is then changed to the new, different session id.</p> <p dir="auto">Technically, everything works. I am able to authenticate my users. but my redis cache is double the size it needs to be and Im starting to get short on memory. I want to get rid of these duplicate keys.</p> <p dir="auto">I have also tried memcached and file storage ontop of sncRedisBundle. They both also produce double sessions when authenticated. So I do believe it is a symfony issue.</p> <p dir="auto">You can see this in the logs by watching for the REDIS commands being logged by SncRedisBundle (the memcache and file storage do not have debug logs)<br> Here is some examples</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO - Matched route &quot;fos_user_security_check&quot; (parameters: &quot;_controller&quot;: &quot;FOS\UserBundle\Controller\SecurityController::checkAction&quot;, &quot;_route&quot;: &quot;fos_user_security_check&quot;) INFO - Executing command &quot;SETNX SESSIONagj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1.lock 1&quot; INFO - Executing command &quot;EXPIRE SESSIONagj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1.lock 61&quot; INFO - Executing command &quot;GET SESSION:agj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1&quot; INFO - User &quot;Austin&quot; has been authenticated successfully INFO - Executing command &quot;SETEX SESSION:lu735ketuop9dgfh3qitmujge6491274vadfdsdfafadBLAH BLAH SERIALIZED TOKEN CODE HERE;}}i:3;a:0:{}}&quot;;}} INFO - Executing command &quot;DEL SESSIONagj232vmqo5ngavqvha016lv1oqe7g22q2eta9skv0lftqr1.lock&quot; "><pre class="notranslate"><code class="notranslate">INFO - Matched route "fos_user_security_check" (parameters: "_controller": "FOS\UserBundle\Controller\SecurityController::checkAction", "_route": "fos_user_security_check") INFO - Executing command "SETNX SESSIONagj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1.lock 1" INFO - Executing command "EXPIRE SESSIONagj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1.lock 61" INFO - Executing command "GET SESSION:agj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr1" INFO - User "Austin" has been authenticated successfully INFO - Executing command "SETEX SESSION:lu735ketuop9dgfh3qitmujge6491274vadfdsdfafadBLAH BLAH SERIALIZED TOKEN CODE HERE;}}i:3;a:0:{}}";}} INFO - Executing command "DEL SESSIONagj232vmqo5ngavqvha016lv1oqe7g22q2eta9skv0lftqr1.lock" </code></pre></div> <p dir="auto">As you can see there are two keys being authenticated here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lu735ketuop9dgfh3qitmujge6491274vadfdsdfafad VS agj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr"><pre class="notranslate"><code class="notranslate">lu735ketuop9dgfh3qitmujge6491274vadfdsdfafad VS agj232vmqo5ngavqvha016lv1oh00oqe7g22q2eta9skv0lftqr </code></pre></div> <p dir="auto">I can also show you two session files that have the same thing when using the default session File Handler</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sess_bcf61a9jhticgmlec8q32i3vp8hculhojt8e15p20fte8k1 sess_tbtp0p5dsfdl6hu6pelkpr64vlq1sjrlpg4nsuq2fc2l00"><pre class="notranslate"><code class="notranslate">sess_bcf61a9jhticgmlec8q32i3vp8hculhojt8e15p20fte8k1 sess_tbtp0p5dsfdl6hu6pelkpr64vlq1sjrlpg4nsuq2fc2l00 </code></pre></div> <p dir="auto">Two session files. First one contains empty sf_attributes{} and the second the logged in session.</p> <p dir="auto">Something changes after "DEBUG - Write SecurityContext in the session " call. That's how far I have narrowed it down (so...not much)</p> <p dir="auto">Anyway this can get fixed? or maybe it's something on my end? I'm not so great with Framework internals, so maybe someone can help me out.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>latest</td> </tr> </tbody> </table> <p dir="auto">If you have an entity with a state machine attached, you can still just set any state as current and save if you're not using <code class="notranslate">apply()</code>.</p> <p dir="auto">It would make sense to add a validator specifically enforcing the attached state machine, it would:</p> <ol dir="auto"> <li>figure out if the state being set is actually a valid state at all</li> <li>figure out if the state being set is a valid state <strong>from current state</strong></li> <li>(this is debateable) try to apply the state so event listeners are able to block the transition?</li> </ol> <p dir="auto">It would allow for more easier integration of the component into common workflows, IMO.</p> <p dir="auto"><strong>Edit:</strong> if 3) is considered, listeners should probably be able to provide an explanation why they've blocked the transition (<code class="notranslate">ConstraintViolationInterface</code> or similar?)</p> <p dir="auto">WDYT?</p>
0
<p dir="auto">I just did a pull from the HEAD and using mesos 0.25. To reproduce, I use a very simple guestbook yaml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Pod metadata: name: guestbook spec: containers: - name: redis image: redis - name: guestbook image: google/guestbook-python-redis ports: - name: www containerPort: 80"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Pod metadata: name: guestbook spec: containers: - name: redis image: redis - name: guestbook image: google/guestbook-python-redis ports: - name: www containerPort: 80 </code></pre></div> <p dir="auto">Creating the pod with <code class="notranslate">kubect create -f guestbook.yaml</code>. After the pod is showing as RUNNING, run <code class="notranslate">kubectl logs -c redis guestbook</code> will result in the following error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error from server: the server could not find the requested resource ( Pod guestbook)"><pre class="notranslate"><code class="notranslate">Error from server: the server could not find the requested resource ( Pod guestbook) </code></pre></div> <p dir="auto">This only seems to impact k8sm setup, and k8s-standalone works as expected.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jdef/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jdef">@jdef</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sttts/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sttts">@sttts</a></p>
<p dir="auto"><strong>Is this a request for help?</strong> (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>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</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>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.0 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">Dag processor failed to start if <code class="notranslate">[core] sql_alchemy_conn</code> not defined</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="airflow-local-airflow-dag-processor-1 | [2022-05-08 16:42:35,835] {configuration.py:494} WARNING - section/key [core/sql_alchemy_conn] not found in config airflow-local-airflow-dag-processor-1 | Traceback (most recent call last): airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/bin/airflow&quot;, line 8, in &lt;module&gt; airflow-local-airflow-dag-processor-1 | sys.exit(main()) airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/__main__.py&quot;, line 38, in main airflow-local-airflow-dag-processor-1 | args.func(args) airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/cli_parser.py&quot;, line 51, in command airflow-local-airflow-dag-processor-1 | return func(*args, **kwargs) airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/cli.py&quot;, line 99, in wrapper airflow-local-airflow-dag-processor-1 | return f(*args, **kwargs) airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/commands/dag_processor_command.py&quot;, line 53, in dag_processor airflow-local-airflow-dag-processor-1 | sql_conn: str = conf.get('core', 'sql_alchemy_conn').lower() airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py&quot;, line 486, in get airflow-local-airflow-dag-processor-1 | return self._get_option_from_default_config(section, key, **kwargs) airflow-local-airflow-dag-processor-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py&quot;, line 496, in _get_option_from_default_config airflow-local-airflow-dag-processor-1 | raise AirflowConfigException(f&quot;section/key [{section}/{key}] not found in config&quot;) airflow-local-airflow-dag-processor-1 | airflow.exceptions.AirflowConfigException: section/key [core/sql_alchemy_conn] not found in config"><pre class="notranslate"><code class="notranslate">airflow-local-airflow-dag-processor-1 | [2022-05-08 16:42:35,835] {configuration.py:494} WARNING - section/key [core/sql_alchemy_conn] not found in config airflow-local-airflow-dag-processor-1 | Traceback (most recent call last): airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/bin/airflow", line 8, in &lt;module&gt; airflow-local-airflow-dag-processor-1 | sys.exit(main()) airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/__main__.py", line 38, in main airflow-local-airflow-dag-processor-1 | args.func(args) airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/cli_parser.py", line 51, in command airflow-local-airflow-dag-processor-1 | return func(*args, **kwargs) airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/cli.py", line 99, in wrapper airflow-local-airflow-dag-processor-1 | return f(*args, **kwargs) airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/cli/commands/dag_processor_command.py", line 53, in dag_processor airflow-local-airflow-dag-processor-1 | sql_conn: str = conf.get('core', 'sql_alchemy_conn').lower() airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py", line 486, in get airflow-local-airflow-dag-processor-1 | return self._get_option_from_default_config(section, key, **kwargs) airflow-local-airflow-dag-processor-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py", line 496, in _get_option_from_default_config airflow-local-airflow-dag-processor-1 | raise AirflowConfigException(f"section/key [{section}/{key}] not found in config") airflow-local-airflow-dag-processor-1 | airflow.exceptions.AirflowConfigException: section/key [core/sql_alchemy_conn] not found in config </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1169624280" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/22284" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22284/hovercard" href="https://github.com/apache/airflow/pull/22284">#22284</a> <code class="notranslate">sql_alchemy_conn</code> moved to <code class="notranslate">[database]</code> section <code class="notranslate">dag-processor</code> should use this configuration</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Run <code class="notranslate">airflow dag-processor</code> without defined <code class="notranslate">[core] sql_alchemy_conn</code></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/apache/airflow/blob/6e5955831672c71bfc0424dd50c8e72f6fd5b2a7/airflow/cli/commands/dag_processor_command.py#L52-L53">airflow/airflow/cli/commands/dag_processor_command.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 52 to 53 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/6e5955831672c71bfc0424dd50c8e72f6fd5b2a7">6e59558</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="L52" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="52"></td> <td id="LC52" 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="L53" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="53"></td> <td id="LC53" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">sql_conn</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">conf</span>.<span class="pl-en">get</span>(<span class="pl-s">'core'</span>, <span class="pl-s">'sql_alchemy_conn'</span>).<span class="pl-en">lower</span>() </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Operating System</h3> <p dir="auto">Arch Linux</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-amazon==3.3.0 apache-airflow-providers-celery==2.1.4 apache-airflow-providers-cncf-kubernetes==4.0.1 apache-airflow-providers-docker==2.6.0 apache-airflow-providers-elasticsearch==3.0.3 apache-airflow-providers-ftp==2.1.2 apache-airflow-providers-google==6.8.0 apache-airflow-providers-grpc==2.0.4 apache-airflow-providers-hashicorp==2.2.0 apache-airflow-providers-http==2.1.2 apache-airflow-providers-imap==2.2.3 apache-airflow-providers-microsoft-azure==3.8.0 apache-airflow-providers-mysql==2.2.3 apache-airflow-providers-odbc==2.0.4 apache-airflow-providers-postgres==4.1.0 apache-airflow-providers-redis==2.0.4 apache-airflow-providers-sendgrid==2.0.4 apache-airflow-providers-sftp==2.6.0 apache-airflow-providers-slack==4.2.3 apache-airflow-providers-snowflake==2.6.0 apache-airflow-providers-sqlite==2.1.3 apache-airflow-providers-ssh==2.4.3"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-amazon==3.3.0 apache-airflow-providers-celery==2.1.4 apache-airflow-providers-cncf-kubernetes==4.0.1 apache-airflow-providers-docker==2.6.0 apache-airflow-providers-elasticsearch==3.0.3 apache-airflow-providers-ftp==2.1.2 apache-airflow-providers-google==6.8.0 apache-airflow-providers-grpc==2.0.4 apache-airflow-providers-hashicorp==2.2.0 apache-airflow-providers-http==2.1.2 apache-airflow-providers-imap==2.2.3 apache-airflow-providers-microsoft-azure==3.8.0 apache-airflow-providers-mysql==2.2.3 apache-airflow-providers-odbc==2.0.4 apache-airflow-providers-postgres==4.1.0 apache-airflow-providers-redis==2.0.4 apache-airflow-providers-sendgrid==2.0.4 apache-airflow-providers-sftp==2.6.0 apache-airflow-providers-slack==4.2.3 apache-airflow-providers-snowflake==2.6.0 apache-airflow-providers-sqlite==2.1.3 apache-airflow-providers-ssh==2.4.3 </code></pre></div> <h3 dir="auto">Deployment</h3> <p dir="auto">Docker-Compose</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></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>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.0 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">Running a standalone Dag Processor instance with <code class="notranslate">airflow dag-processor</code> throws the following exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Standalone DagProcessor is not supported when using sqlite."><pre class="notranslate"><code class="notranslate">Standalone DagProcessor is not supported when using sqlite. </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The <code class="notranslate">airflow dag-processor</code> should start without an exception in case of Postgres database</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">The error is in the following line: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/6f146e721c81e9304bf7c0af66fc3d203d902dab/airflow/cli/commands/dag_processor_command.py#L53">airflow/airflow/cli/commands/dag_processor_command.py</a> </p> <p class="mb-0 color-fg-muted"> Line 53 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/6f146e721c81e9304bf7c0af66fc3d203d902dab">6f146e7</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="L53" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="53"></td> <td id="LC53" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">sql_conn</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">conf</span>.<span class="pl-en">get</span>(<span class="pl-s">'core'</span>, <span class="pl-s">'sql_alchemy_conn'</span>).<span class="pl-en">lower</span>() </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">It should be</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sql_conn: str = conf.get('database', 'sql_alchemy_conn').lower() "><pre class="notranslate"><span class="pl-s1">sql_conn</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">conf</span>.<span class="pl-en">get</span>(<span class="pl-s">'database'</span>, <span class="pl-s">'sql_alchemy_conn'</span>).<span class="pl-en">lower</span>() </pre></div> <p dir="auto">due to the change in the configuration file done in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1169624280" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/22284" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22284/hovercard" href="https://github.com/apache/airflow/pull/22284">#22284</a></p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Virtualenv installation</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></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"> 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>
1
<p dir="auto">Julia currently links to OpenSSL (via libgit2). However, OpenSSL has a GPL-incompatible license. Since a build of Julia that links to FFTW is under the GPL this is a serious problem.</p> <p dir="auto">The only solution that I can think of is to use a different crypto lib (such as Mozilla Network Security Services).</p>
<p dir="auto">Inspired by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57738567" data-permission-text="Title is private" data-url="https://github.com/JuliaWeb/Roadmap/issues/5" data-hovercard-type="issue" data-hovercard-url="/JuliaWeb/Roadmap/issues/5/hovercard?comment_id=84493845&amp;comment_type=issue_comment" href="https://github.com/JuliaWeb/Roadmap/issues/5#issuecomment-84493845">JuliaWeb/Roadmap#5 (comment)</a>, I wanted to check here. Since Julia uses libgit2, which is in turn built using OpenSSL, are we OK with using OpenSSL derivatives elsewhere within Julia or are there licensing issues with the dual-licensed OpenSSL stuff?</p> <p dir="auto">If there <em>are</em> licensing issues associated with the use of OpenSSL in Julia, does Julia's reliance on libgit2 (and libgit2's reliance on OpenSSL) pose any problem?</p> <p dir="auto">(Bottom line: I'd love to be able to use OpenSSL within Julia without having to worry about license restrictions / violations. IANAL. Please tell me how to do this.)</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8292714/11541646/8090137a-98f0-11e5-97ed-f561727b68b3.PNG"><img src="https://cloud.githubusercontent.com/assets/8292714/11541646/8090137a-98f0-11e5-97ed-f561727b68b3.PNG" alt="padding-long" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8292714/11541647/809fa376-98f0-11e5-8e53-6556fa19d218.PNG"><img src="https://cloud.githubusercontent.com/assets/8292714/11541647/809fa376-98f0-11e5-8e53-6556fa19d218.PNG" alt="padding-short" style="max-width: 100%;"></a></p> <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-different-padding-to-each-side-of-an-element?solution=%3Cstyle%3E%0A%20%20.injected-text%20%7B%0A%20%20%20%20margin-bottom%3A%20-25px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.box%20%7B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-color%3A%20black%3B%0A%20%20%20%20border-width%3A%205px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%20%20padding-bottom%3A%2020px%3B%0A%20%20%7D%0A%0A%20%20.yellow-box%20%7B%0A%20%20%20%20background-color%3A%20yellow%3B%0A%20%20%20%20padding%3A10px%3B%0A%20%20%7D%0A%20%20%0A%20%20.red-box%20%7B%0A%20%20%20%20background-color%3Ared%3B%0A%20%20%20%20padding-top%3A%2040px%3B%0A%20%20%20%20padding-right%3A%2020px%3B%0A%20%20%20%20padding-bottom%3A%2020px%3B%0A%20%20%20%20padding-left%3A%2040px%3B%0A%20%20%7D%0A%0A%20%20.green-box%20%7B%0A%20%20%20%20background-color%3A%20green%3B%0A%20%20%20%20padding%3A%2040px%2020px%2020px%2040px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%3Ch5%20class%3D%22injected-text%22%3Emargin%3C%2Fh5%3E%0A%0A%3Cdiv%20class%3D%22box%20yellow-box%22%3E%0A%20%20%3Ch5%20class%3D%22box%20red-box%22%3Epadding%3C%2Fh5%3E%0A%20%20%3Ch5%20class%3D%22box%20green-box%22%3Epadding%3C%2Fh5%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Add Different Padding to Each Side of an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; padding-bottom: 20px; } .yellow-box { background-color: yellow; padding:10px; } .red-box { background-color:red; padding-top: 40px; padding-right: 20px; padding-bottom: 20px; padding-left: 40px; } .green-box { background-color: green; padding: 40px 20px 20px 40px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; <span class="pl-c1">padding-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span><span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span>red; <span class="pl-c1">padding-top</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; <span class="pl-c1">padding-right</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; <span class="pl-c1">padding-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; <span class="pl-c1">padding-left</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-clockwise-notation-to-specify-the-padding-of-an-element?solution=%3Cstyle%3E%0A%20%20.injected-text%20%7B%0A%20%20%20%20margin-bottom%3A%20-25px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.box%20%7B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-color%3A%20black%3B%0A%20%20%20%20border-width%3A%205px%3B%0A%20%20%20%20text-align%3A%20center%3B%0A%20%20%7D%0A%0A%20%20.yellow-box%20%7B%0A%20%20%20%20background-color%3A%20yellow%3B%0A%20%20%20%20padding%3A%2020px%2040px%2020px%2040px%3B%0A%20%20%7D%0A%20%20%0A%20%20.red-box%20%7B%0A%20%20%20%20background-color%3Ared%3B%0A%20%20%20%20padding%3A%2020px%2040px%2020px%2040px%3B%0A%20%20%7D%0A%0A%20%20.green-box%20%7B%0A%20%20%20%20background-color%3A%20green%3B%0A%20%20%20%20padding%3A%2040px%2020px%2020px%2040px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%3Ch5%20class%3D%22injected-text%22%3Emargin%3C%2Fh5%3E%0A%0A%3Cdiv%20class%3D%22box%20yellow-box%22%3E%0A%20%20%3Ch5%20class%3D%22box%20red-box%22%3Epadding%3C%2Fh5%3E%0A%20%20%3Ch5%20class%3D%22box%20green-box%22%3Epadding%3C%2Fh5%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Use Clockwise Notation to Specify the Padding of an Element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; } .yellow-box { background-color: yellow; padding: 20px 40px 20px 40px; } .red-box { background-color:red; padding: 20px 40px 20px 40px; } .green-box { background-color: green; padding: 40px 20px 20px 40px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span>red; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">What am I doing wrong???</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.1 (WITH_HPX=ON)</li> <li>Operating System / Platform =&gt; LUbuntu 16.04.6 x86_64</li> <li>Compiler =&gt; CMake (uses c++)</li> <li>HPX =&gt; 1.2.1</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When reading from a VideoCapture(0) object the program crashes with an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'hpx::exception_list' what(): HPX(unknown_error) [1] 7651 abort (core dumped) ./cpp_hpx_crash"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'hpx::exception_list' what(): HPX(unknown_error) [1] 7651 abort (core dumped) ./cpp_hpx_crash </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;opencv2/opencv.hpp&quot; int main() { cv::VideoCapture cap(0); cv::Mat frame; if(!cap.isOpened()) { exit(1); } cap.read(frame); return 0; } "><pre class="notranslate"><code class="notranslate">#include "opencv2/opencv.hpp" int main() { cv::VideoCapture cap(0); cv::Mat frame; if(!cap.isOpened()) { exit(1); } cap.read(frame); return 0; } </code></pre></div> <h5 dir="auto">GDB Info</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(gdb) r Starting program: /home/REDACTED/cpp_hpx_crash [Thread debugging using libthread_db enabled] Using host libthread_db library &quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;. terminate called after throwing an instance of 'hpx::exception_list' what(): HPX(unknown_error) Program received signal SIGABRT, Aborted. 0x00007ffff5f8a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) where #0 0x00007ffff5f8a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x00007ffff5f8c02a in __GI_abort () at abort.c:89 #2 0x00007ffff65c484d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff65c26b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff65c2701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff65c2969 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007ffff6bd9b7b in cv::parallel_for_(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) () from /usr/local/lib/libopencv_core.so.4.0 #7 0x00007ffff1f4d355 in cv::hal::cvtOnePlaneYUVtoBGR(unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, int, bool, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #8 0x00007ffff1f4f08d in cv::cvtColorOnePlaneYUV2BGR(cv::_InputArray const&amp;, cv::_OutputArray const&amp;, int, bool, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #9 0x00007ffff1e0e5b5 in cv::cvtColor(cv::_InputArray const&amp;, cv::_OutputArray const&amp;, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #10 0x00007ffff7bbdfdc in cv::CvCaptureCAM_V4L::convertToRgb(cv::Buffer const&amp;) () from /usr/local/lib/libopencv_videoio.so.4.0 #11 0x00007ffff7bbf0d3 in cv::CvCaptureCAM_V4L::retrieveFrame(int) () from /usr/local/lib/libopencv_videoio.so.4.0 #12 0x00007ffff7ba762c in cv::VideoCapture::retrieve(cv::_OutputArray const&amp;, int) () from /usr/local/lib/libopencv_videoio.so.4.0 #13 0x00007ffff7ba6ffc in cv::VideoCapture::read(cv::_OutputArray const&amp;) () from /usr/local/lib/libopencv_videoio.so.4.0 #14 0x0000000000406ca5 in main () at /home/REDACTED/cpp_hpx_crash.cpp:12"><pre class="notranslate"><code class="notranslate">(gdb) r Starting program: /home/REDACTED/cpp_hpx_crash [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". terminate called after throwing an instance of 'hpx::exception_list' what(): HPX(unknown_error) Program received signal SIGABRT, Aborted. 0x00007ffff5f8a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) where #0 0x00007ffff5f8a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54 #1 0x00007ffff5f8c02a in __GI_abort () at abort.c:89 #2 0x00007ffff65c484d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff65c26b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff65c2701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff65c2969 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007ffff6bd9b7b in cv::parallel_for_(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) () from /usr/local/lib/libopencv_core.so.4.0 #7 0x00007ffff1f4d355 in cv::hal::cvtOnePlaneYUVtoBGR(unsigned char const*, unsigned long, unsigned char*, unsigned long, int, int, int, bool, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #8 0x00007ffff1f4f08d in cv::cvtColorOnePlaneYUV2BGR(cv::_InputArray const&amp;, cv::_OutputArray const&amp;, int, bool, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #9 0x00007ffff1e0e5b5 in cv::cvtColor(cv::_InputArray const&amp;, cv::_OutputArray const&amp;, int, int) () from /usr/local/lib/libopencv_imgproc.so.4.0 #10 0x00007ffff7bbdfdc in cv::CvCaptureCAM_V4L::convertToRgb(cv::Buffer const&amp;) () from /usr/local/lib/libopencv_videoio.so.4.0 #11 0x00007ffff7bbf0d3 in cv::CvCaptureCAM_V4L::retrieveFrame(int) () from /usr/local/lib/libopencv_videoio.so.4.0 #12 0x00007ffff7ba762c in cv::VideoCapture::retrieve(cv::_OutputArray const&amp;, int) () from /usr/local/lib/libopencv_videoio.so.4.0 #13 0x00007ffff7ba6ffc in cv::VideoCapture::read(cv::_OutputArray const&amp;) () from /usr/local/lib/libopencv_videoio.so.4.0 #14 0x0000000000406ca5 in main () at /home/REDACTED/cpp_hpx_crash.cpp:12 </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.3</li> <li>Operating System / Platform =&gt; Windows 7 64 Bit</li> <li>Compiler =&gt; using this release : <a href="https://github.com/opencv/opencv/releases/download/3.4.3/opencv-3.4.3-vc14_vc15.exe">https://github.com/opencv/opencv/releases/download/3.4.3/opencv-3.4.3-vc14_vc15.exe</a> with JDK 8</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Hi ! I'm trying to translate this code sample <a href="https://github.com/opencv/opencv/blob/3.4/samples/dnn/text_detection.cpp">https://github.com/opencv/opencv/blob/3.4/samples/dnn/text_detection.cpp</a> to Java (whithout the video capture part).<br> I downloaded the model here : <a href="https://www.dropbox.com/s/r2ingd0l3zt8hxs/frozen_east_text_detection.tar.gz?dl=1" rel="nofollow">https://www.dropbox.com/s/r2ingd0l3zt8hxs/frozen_east_text_detection.tar.gz?dl=1</a>.<br> I'm having this error :<br> Exception in thread "main" java.lang.Exception: unknown exception<br> at org.opencv.dnn.Net.forward_4(Native Method)<br> at org.opencv.dnn.Net.forward(Net.java:334)<br> at TextDetection.main(TextDetection.java:25)</p> <p dir="auto">This error appears when I use the forward() method from the Net object. It seems to me, that when you use the forward method with two parameters (outs and outNames cf below), it won't work with more than one name. I try with only "feature_fusion/Conv_7/Sigmoid" or "feature_fusion/concat_3" and the method doesn't fail.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System.loadLibrary(Core.NATIVE_LIBRARY_NAME); //input model Net net = Dnn.readNet(&quot;frozen_east_text_detection.pb&quot;); // input image Mat frame = Imgcodecs.imread(&quot;picture.jpg&quot;); Mat blob = Dnn.blobFromImage(frame, 1.0, new Size(320,320), new Scalar(123.68, 116.78, 103.94), true, false); net.setInput(blob); List&lt;Mat&gt; outs = new ArrayList&lt;&gt;(2); List&lt;String&gt; outNames = Arrays.asList(&quot;feature_fusion/Conv_7/Sigmoid&quot;, &quot;feature_fusion/concat_3&quot;); net.forward(outs, outNames);"><pre class="notranslate"><span class="pl-smi">System</span>.<span class="pl-en">loadLibrary</span>(<span class="pl-smi">Core</span>.<span class="pl-c1">NATIVE_LIBRARY_NAME</span>); <span class="pl-c">//input model</span> <span class="pl-smi">Net</span> <span class="pl-s1">net</span> = <span class="pl-smi">Dnn</span>.<span class="pl-en">readNet</span>(<span class="pl-s">"frozen_east_text_detection.pb"</span>); <span class="pl-c">// input image</span> <span class="pl-smi">Mat</span> <span class="pl-s1">frame</span> = <span class="pl-smi">Imgcodecs</span>.<span class="pl-en">imread</span>(<span class="pl-s">"picture.jpg"</span>); <span class="pl-smi">Mat</span> <span class="pl-s1">blob</span> = <span class="pl-smi">Dnn</span>.<span class="pl-en">blobFromImage</span>(<span class="pl-s1">frame</span>, <span class="pl-c1">1.0</span>, <span class="pl-k">new</span> <span class="pl-smi">Size</span>(<span class="pl-c1">320</span>,<span class="pl-c1">320</span>), <span class="pl-k">new</span> <span class="pl-smi">Scalar</span>(<span class="pl-c1">123.68</span>, <span class="pl-c1">116.78</span>, <span class="pl-c1">103.94</span>), <span class="pl-c1">true</span>, <span class="pl-c1">false</span>); <span class="pl-s1">net</span>.<span class="pl-en">setInput</span>(<span class="pl-s1">blob</span>); <span class="pl-smi">List</span>&lt;<span class="pl-smi">Mat</span>&gt; <span class="pl-s1">outs</span> = <span class="pl-k">new</span> <span class="pl-smi">ArrayList</span>&lt;&gt;(<span class="pl-c1">2</span>); <span class="pl-smi">List</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-s1">outNames</span> = <span class="pl-smi">Arrays</span>.<span class="pl-en">asList</span>(<span class="pl-s">"feature_fusion/Conv_7/Sigmoid"</span>, <span class="pl-s">"feature_fusion/concat_3"</span>); <span class="pl-s1">net</span>.<span class="pl-en">forward</span>(<span class="pl-s1">outs</span>, <span class="pl-s1">outNames</span>);</pre></div> <p dir="auto">Is there anything I can do to bypass this error ?</p> <p dir="auto">Thanks,</p> <p dir="auto">Antoine</p>
0
<blockquote> <p dir="auto">This issue was previously <a href="https://typescript.codeplex.com/workitem/2425" rel="nofollow">reported</a> as bug at codeplex, now trying to submit as suggestion.</p> </blockquote> <p dir="auto">Below, the <code class="notranslate">Collection.model</code> field is supposed to accept <strong>type of <code class="notranslate">TModel</code></strong> rather than <strong>instance of <code class="notranslate">TModel</code></strong>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Model { } class Collection&lt;TModel extends Model&gt; { model: typeof TModel; //Error: Could not find symbold 'TModel'. models: TModel[]; } class MyModel extends Model { } class MyCollection extends Collection&lt;MyModel&gt; { // This is what we want model: typeof MyModel = MyModel; // This is what we don't want //model: MyModel = new MyModel; } var coll = new MyCollection(); var modelType = coll.model; var newModel = new modelType(); "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Collection</span><span class="pl-c1">&lt;</span><span class="pl-smi">TModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">model</span>: <span class="pl-k">typeof</span> <span class="pl-smi">TModel</span><span class="pl-kos">;</span> <span class="pl-c">//Error: Could not find symbold 'TModel'.</span> <span class="pl-c1">models</span>: <span class="pl-smi">TModel</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">class</span> <span class="pl-smi">MyModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">MyCollection</span> <span class="pl-k">extends</span> <span class="pl-smi">Collection</span><span class="pl-kos">&lt;</span><span class="pl-smi">MyModel</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// This is what we want</span> <span class="pl-c1">model</span>: <span class="pl-k">typeof</span> <span class="pl-smi">MyModel</span> <span class="pl-c1">=</span> <span class="pl-smi">MyModel</span><span class="pl-kos">;</span> <span class="pl-c">// This is what we don't want</span> <span class="pl-c">//model: MyModel = new MyModel;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">coll</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">MyCollection</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">modelType</span> <span class="pl-c1">=</span> <span class="pl-s1">coll</span><span class="pl-kos">.</span><span class="pl-c1">model</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">newModel</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">modelType</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Use of <code class="notranslate">typeof</code> keyword seems to be appropriate here, but compiler doesn't understand <code class="notranslate">typeof</code> of generic type. If we said <code class="notranslate">model: typeof Model;</code> it would compile but that is not exactly what we want.</p> <p dir="auto">Some of the workarounds we found are the followings:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Model { } class Collection&lt;TModel extends Model&gt; { model: { new(): TModel; }; models: TModel[]; } class MyModel extends Model { } class MyCollection extends Collection&lt;MyModel&gt; { }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Collection</span><span class="pl-c1">&lt;</span><span class="pl-smi">TModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">model</span>: <span class="pl-kos">{</span> <span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">TModel</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c1">models</span>: <span class="pl-smi">TModel</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">class</span> <span class="pl-smi">MyModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">MyCollection</span> <span class="pl-k">extends</span> <span class="pl-smi">Collection</span><span class="pl-kos">&lt;</span><span class="pl-smi">MyModel</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">and</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Model { } class Collection&lt;TModelConstructor extends typeof Model, TModel extends Model&gt; { model: TModelConstructor; models: TModel[]; } class MyModel extends Model { } class MyCollection extends Collection&lt;typeof MyModel, MyModel&gt; { }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Collection</span><span class="pl-c1">&lt;</span><span class="pl-smi">TModelConstructor</span> <span class="pl-k">extends</span> <span class="pl-k">typeof</span> <span class="pl-smi">Model</span><span class="pl-kos">,</span> <span class="pl-smi">TModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">model</span>: <span class="pl-smi">TModelConstructor</span><span class="pl-kos">;</span> <span class="pl-c1">models</span>: <span class="pl-smi">TModel</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">class</span> <span class="pl-smi">MyModel</span> <span class="pl-k">extends</span> <span class="pl-smi">Model</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">MyCollection</span> <span class="pl-k">extends</span> <span class="pl-smi">Collection</span><span class="pl-kos">&lt;</span><span class="pl-k">typeof</span> <span class="pl-smi">MyModel</span><span class="pl-kos">,</span> <span class="pl-smi">MyModel</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Feature suggestion is to allow <code class="notranslate">typeof</code> generic type.</p>
<p dir="auto">This issue tracks our plans and discussion around the current situation with package typings.</p> <p dir="auto">Internally, we've been talking about how to better package, locate, and discover typings for packages which do not include their own typings.</p> <p dir="auto">The issues which arise around packages and their typings include:</p> <ul dir="auto"> <li>Reuse - the ability to take typings written for long-ago TS (ambient declarations) and continue to use them with little or no modification</li> <li>Dependency management - typings typically depend on the same things that their host js packages do - and usually on their typings, not their js.</li> <li>De-duplication and flattening - Deeply nested typings (with potentially duplicated dependencies at multiple levels) lead to a lot of duplicated work in the compiler, and could result in longer build times. We'd like to head this off before it becomes an issue in practice if possible.</li> <li>Discovery - if I'm using package the node package <code class="notranslate">bluebird</code>, how can I find types for it without skipping a beat?</li> </ul> <p dir="auto">We've spoken with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blakeembrey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blakeembrey">@blakeembrey</a> and his plans for <a href="https://github.com/typings"><code class="notranslate">typings</code></a> (a tool to replace/improve upon <a href="https://github.com/DefinitelyTyped/tsd"><code class="notranslate">tsd</code></a>). We believe that we're both setting out to solve a lot of the same problems, and we'd love to help build much of that functionality into the compiler and language service to create a seamless development experience.</p> <p dir="auto">We've come up with a number of improvements to pursue on our end, including:</p> <ul dir="auto"> <li>Package scopes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107619192" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4913" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/4913/hovercard" href="https://github.com/microsoft/TypeScript/pull/4913">#4913</a>) to help with typing reuse and isolation issues</li> <li>Extending our node module resolution for typings to have a concept of a fallback-typings package - a package which provides typings for a correspondingly named package. (For example, <code class="notranslate">typed-debug</code> can be installed and provides types for the <code class="notranslate">debug</code> module.)</li> <li>Reducing the volume of type checking done for packages (ie, don't typecheck them)</li> </ul> <p dir="auto">We want to make it <em>seamless</em> for users to use typescript with their existing tools and processes, and this includes their dealings with typings. Ideally, we want users to be able to <code class="notranslate">npm install</code> their dependencies as they already do and have everything "just work" without further steps or instructions.</p> <p dir="auto">Tagging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhegazy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhegazy">@mhegazy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ahejlsberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ahejlsberg">@ahejlsberg</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vladima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vladima">@vladima</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DanielRosenwasser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DanielRosenwasser">@DanielRosenwasser</a> and probably many others who should get tagged for discussion.</p> <p dir="auto">I'm sure I've forgetting things from our discussion earlier, so feel free to chime in with the relevant conversion points I've missed.</p>
0
<p dir="auto">Material-UI provides a way to know the device size and perform rendering based on screen size. However, documentation doesn't detail any way that indicates that Grid is device/screen orientation aware.</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/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">Material UI should expose an attribute within grid content or make a component available to the user that would allow one to know the device orientation. This would allow one to know create a layout based on screen orientation in addition to device size.</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.16</td> </tr> <tr> <td>React</td> <td>15.3.0</td> </tr> </tbody> </table>
<h3 dir="auto">Problem description</h3> <p dir="auto">When I use <code class="notranslate">Grid</code> component, I always see horizontal scrollbar. I found this page on StackOverflow: <a href="https://stackoverflow.com/questions/45519275/grid-in-material-ui-causes-horizontal-scroll-react" rel="nofollow">https://stackoverflow.com/questions/45519275/grid-in-material-ui-causes-horizontal-scroll-react</a> where it is explained more.</p> <h3 dir="auto">Steps to reproduce</h3> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as ui from 'material-ui'; &lt;ui.Grid container&gt; &lt;ui.Grid item xs={12}&gt; content of the cell &lt;/ui.Grid&gt; &lt;/ui.Grid&gt;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ui</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui'</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">Grid</span> <span class="pl-smi">container</span><span class="pl-kos">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">Grid</span> <span class="pl-s1">item</span> <span class="pl-smi">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-s1">content</span> <span class="pl-k">of</span> <span class="pl-s1">the</span> <span class="pl-s1">cell</span> <span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>ui.Grid&gt;</span> <span class="pl-pds"><span class="pl-c1">&lt;</span><span class="pl-c1">/</span>ui</span><span class="pl-kos">.</span><span class="pl-c1">Grid</span><span class="pl-c1">&gt;</span></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-beta.6</li> <li>React: 15.6.1</li> <li>Browser: Google Chrome 60.0.3112.101</li> </ul>
0
<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/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> <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>Material-UI</td> <td></td> </tr> <tr> <td>React</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<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/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> <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>Material-UI</td> <td></td> </tr> <tr> <td>React</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">I tried following the official docker based local cluster setup guide <a href="http://kubernetes.io/docs/getting-started-guides/docker/#prerequisites" rel="nofollow">here</a> on OSX and it fails to work in the case of v1.2.</p> <p dir="auto">There are several issues. Enumerating a few of them.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> API server is not accessible from outside of the docker VM host.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Image garbage collection fails</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Problem with nsinit - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123685826" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/19069" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/19069/hovercard" href="https://github.com/kubernetes/kubernetes/pull/19069">#19069</a> might solve this.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Volumes cleanup - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="140423920" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/22911" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/22911/hovercard" href="https://github.com/kubernetes/kubernetes/issues/22911">#22911</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Master node setup is racy - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="141925925" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23197" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23197/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23197">#23197</a></li> </ul> <p dir="auto">Some of the issues above are common to other linux based platforms too. This issue will serve as an umbrella issue for getting hyperkube functional soon.</p>
<p dir="auto"><strong>Is this a request for help?</strong> (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>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117485967" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/17406" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/17406/hovercard" href="https://github.com/kubernetes/kubernetes/issues/17406">#17406</a> is the only one I found that might be related, I think this is a feature request to implement the dnsPolicy support.</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">Kubernetes version: 1.3.6</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k07:~# kubectl version Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3&quot;, GitVersion:&quot;v1.3.6&quot;, GitCommit:&quot;ae4550cc9c89a593bcda6678df201db1b208133b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-08-26T18:13:23Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3+&quot;, GitVersion:&quot;cfc-0.1.0-dirty&quot;, GitCommit:&quot;7577a50e5c71505e3458884f83590270bb693351&quot;, GitTreeState:&quot;dirty&quot;, BuildDate:&quot;2016-10-25T17:24:22Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;} root@c910f04x19k07:~# "><pre class="notranslate"><code class="notranslate">root@c910f04x19k07:~# kubectl version Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:13:23Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"cfc-0.1.0-dirty", GitCommit:"7577a50e5c71505e3458884f83590270bb693351", GitTreeState:"dirty", BuildDate:"2016-10-25T17:24:22Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} root@c910f04x19k07:~# </code></pre></div> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: hardware configuration</li> <li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu 16.04</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux c910f04x19k07 4.4.0-45-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35537132" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/66" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/66/hovercard" href="https://github.com/kubernetes/kubernetes/issues/66">#66</a>-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li> <li><strong>Install tools</strong>: Run kubernetes in containers</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">For some service discovery issue with the software I am running, I have to run some PODs with hostNetwork=true, however, I still need to have the POD access the other PODs through Kubernetes service, but it turned out that the dnsPolicy=ClusterFirst does not help, the POD uses the /etc/resolv.conf from the docker host and could not resolve the Kubernete service hostnames.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">With hostNetwork=true and dnsPolicy=ClusterFirst, the POD should use the kube-dns to resolve the hostnames in Kubernetes cluster.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">1 create the yaml file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k07:~/yaml# cat nginx.yaml apiVersion: v1 kind: Service metadata: name: my-nginx labels: app: my-nginx spec: type: LoadBalancer ports: - port: 8800 targetPort: 80 selector: app: my-nginx --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: my-nginx spec: replicas: 1 template: metadata: labels: app: my-nginx spec: hostNetwork: true dnsPolicy: ClusterFirst containers: - name: my-nginx image: nginx:1.8.1 ports: - containerPort: 31556 root@c910f04x19k07:~/yaml# "><pre class="notranslate"><code class="notranslate">root@c910f04x19k07:~/yaml# cat nginx.yaml apiVersion: v1 kind: Service metadata: name: my-nginx labels: app: my-nginx spec: type: LoadBalancer ports: - port: 8800 targetPort: 80 selector: app: my-nginx --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: my-nginx spec: replicas: 1 template: metadata: labels: app: my-nginx spec: hostNetwork: true dnsPolicy: ClusterFirst containers: - name: my-nginx image: nginx:1.8.1 ports: - containerPort: 31556 root@c910f04x19k07:~/yaml# </code></pre></div> <p dir="auto">2 create the deployment and service</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k07:~/yaml# kubectl create -f nginx.yaml service &quot;my-nginx&quot; created deployment &quot;my-nginx&quot; created root@c910f04x19k07:~/yaml#"><pre class="notranslate"><code class="notranslate">root@c910f04x19k07:~/yaml# kubectl create -f nginx.yaml service "my-nginx" created deployment "my-nginx" created root@c910f04x19k07:~/yaml# </code></pre></div> <p dir="auto">3 Make sure the service and POD are up and running</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k07:~/yaml# kubectl get service | grep my-nginx my-nginx 20.0.0.66 &lt;pending&gt; 8800/TCP 31s root@c910f04x19k07:~/yaml#"><pre class="notranslate"><code class="notranslate">root@c910f04x19k07:~/yaml# kubectl get service | grep my-nginx my-nginx 20.0.0.66 &lt;pending&gt; 8800/TCP 31s root@c910f04x19k07:~/yaml# </code></pre></div> <p dir="auto">4 kubectl exec into the POD and try to access the Kubernete service nodename:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k07:~/yaml# kubectl get pod | grep nginx my-nginx-103987416-1r8z6 1/1 Running 0 40s root@c910f04x19k07:~/yaml# root@c910f04x19k07:~/yaml# kubectl exec -it my-nginx-103987416-1r8z6 -- /bin/bash root@c910f04x19k09:/# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.2.1.2 search pok.stglabs.ibm.com root@c910f04x19k09:/# ping my-nginx ping: unknown host"><pre class="notranslate"><code class="notranslate">root@c910f04x19k07:~/yaml# kubectl get pod | grep nginx my-nginx-103987416-1r8z6 1/1 Running 0 40s root@c910f04x19k07:~/yaml# root@c910f04x19k07:~/yaml# kubectl exec -it my-nginx-103987416-1r8z6 -- /bin/bash root@c910f04x19k09:/# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 10.2.1.2 search pok.stglabs.ibm.com root@c910f04x19k09:/# ping my-nginx ping: unknown host </code></pre></div> <p dir="auto">5 Update the /etc/resolv.conf with the Kubernetes DNS and ping the service name again</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@c910f04x19k09:/#echo &quot;search default.svc.cluster.local svc.cluster.local cluster.local pok.stglabs.ibm.com nameserver 20.0.0.10 options ndots:5&quot; &gt; /etc/resolv.conf root@c910f04x19k09:/#ping my-nginx PING my-nginx.default.svc.cluster.local (20.0.0.66): 56 data bytes ^C--- my-nginx.default.svc.cluster.local ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss root@c910f04x19k09:/# "><pre class="notranslate"><code class="notranslate">root@c910f04x19k09:/#echo "search default.svc.cluster.local svc.cluster.local cluster.local pok.stglabs.ibm.com nameserver 20.0.0.10 options ndots:5" &gt; /etc/resolv.conf root@c910f04x19k09:/#ping my-nginx PING my-nginx.default.svc.cluster.local (20.0.0.66): 56 data bytes ^C--- my-nginx.default.svc.cluster.local ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss root@c910f04x19k09:/# </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<p dir="auto">This looks to be an issue introduced in 2.0.</p> <p dir="auto">If you look in the 2.0 example below you'll see that the zoom and street view controls become corrupted. When the marker is clicked, the infobox for it is also messed up.</p> <p dir="auto">Bootstrap 2.0 - <a href="http://jsbin.com/obilec/" rel="nofollow">http://jsbin.com/obilec/</a></p> <p dir="auto">No Bootstrap - <a href="http://jsbin.com/obilec/2/" rel="nofollow">http://jsbin.com/obilec/2/</a></p> <p dir="auto">Bootstrap 1.4 - <a href="http://jsbin.com/obilec/3" rel="nofollow">http://jsbin.com/obilec/3</a></p>
<p dir="auto">First of all thanks for your fantastic work. It does SAVE me a lot of time.</p> <p dir="auto">When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set <strong>img max-width to 100%</strong>. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.</p> <p dir="auto">Bootstrap and Google Maps<br> <a href="http://jsfiddle.net/jhnRD/1/" rel="nofollow">http://jsfiddle.net/jhnRD/1/</a></p> <p dir="auto">Google Maps without Bootstrap<br> <a href="http://jsfiddle.net/aVx8L/" rel="nofollow">http://jsfiddle.net/aVx8L/</a></p> <p dir="auto">Cheers,</p>
1
<p dir="auto">Ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="230647406" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/22034" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/22034/hovercard?comment_id=303506385&amp;comment_type=issue_comment" href="https://github.com/JuliaLang/julia/pull/22034#issuecomment-303506385">#22034 (comment)</a>, on 0.6 and master I can only produce one deprecation warning per julia session.</p> <p dir="auto">master and 0.6-rc2:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f2(x) = 2; f4(x) = 4; julia&gt; @deprecate f1(x) f2(x); julia&gt; @deprecate f3(x) f4(x); julia&gt; f1(1) WARNING: f1(x) is deprecated, use f2(x) instead. Stacktrace: [1] depwarn(::String, ::Symbol) at ./deprecated.jl:64 [2] f1(::Int64) at ./deprecated.jl:51 [3] eval(::Module, ::Any) at ./boot.jl:235 [4] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66 [5] macro expansion at ./REPL.jl:97 [inlined] [6] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73 while loading no file, in expression starting on line 0 2 julia&gt; f3(1) # why does this not warn? 4"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">f2</span>(x) <span class="pl-k">=</span> <span class="pl-c1">2</span>; <span class="pl-en">f4</span>(x) <span class="pl-k">=</span> <span class="pl-c1">4</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">@deprecate</span> <span class="pl-c1">f1</span>(x) <span class="pl-c1">f2</span>(x); julia<span class="pl-k">&gt;</span> <span class="pl-c1">@deprecate</span> <span class="pl-c1">f3</span>(x) <span class="pl-c1">f4</span>(x); julia<span class="pl-k">&gt;</span> <span class="pl-c1">f1</span>(<span class="pl-c1">1</span>) WARNING<span class="pl-k">:</span> <span class="pl-c1">f1</span>(x) is deprecated, use <span class="pl-c1">f2</span>(x) instead. Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] <span class="pl-c1">depwarn</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Symbol</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> [<span class="pl-c1">2</span>] <span class="pl-c1">f1</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">51</span> [<span class="pl-c1">3</span>] <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">235</span> [<span class="pl-c1">4</span>] <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">66</span> [<span class="pl-c1">5</span>] <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">97</span> [inlined] [<span class="pl-c1">6</span>] (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#1#2{Base.REPL.REPLBackend})() at ./event.jl:73</span> <span class="pl-k">while</span> loading no file, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">0</span> <span class="pl-c1">2</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">f3</span>(<span class="pl-c1">1</span>) <span class="pl-c"><span class="pl-c">#</span> why does this not warn?</span> <span class="pl-c1">4</span></pre></div> <p dir="auto">And on 0.5.2:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f2(x) = 2; f4(x) = 4; julia&gt; @deprecate f1(x) f2(x); julia&gt; @deprecate f3(x) f4(x); julia&gt; f1(1) WARNING: f1(x) is deprecated, use f2(x) instead. in depwarn(::String, ::Symbol) at ./deprecated.jl:64 in f1(::Int64) at ./deprecated.jl:50 in eval(::Module, ::Any) at ./boot.jl:234 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64 in macro expansion at ./REPL.jl:95 [inlined] in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68 while loading no file, in expression starting on line 0 2 julia&gt; f3(1) WARNING: f3(x) is deprecated, use f4(x) instead. in depwarn(::String, ::Symbol) at ./deprecated.jl:64 in f3(::Int64) at ./deprecated.jl:50 in eval(::Module, ::Any) at ./boot.jl:234 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64 in macro expansion at ./REPL.jl:95 [inlined] in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68 while loading no file, in expression starting on line 0 4"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">f2</span>(x) <span class="pl-k">=</span> <span class="pl-c1">2</span>; <span class="pl-en">f4</span>(x) <span class="pl-k">=</span> <span class="pl-c1">4</span>; julia<span class="pl-k">&gt;</span> <span class="pl-c1">@deprecate</span> <span class="pl-c1">f1</span>(x) <span class="pl-c1">f2</span>(x); julia<span class="pl-k">&gt;</span> <span class="pl-c1">@deprecate</span> <span class="pl-c1">f3</span>(x) <span class="pl-c1">f4</span>(x); julia<span class="pl-k">&gt;</span> <span class="pl-c1">f1</span>(<span class="pl-c1">1</span>) WARNING<span class="pl-k">:</span> <span class="pl-c1">f1</span>(x) is deprecated, use <span class="pl-c1">f2</span>(x) instead. <span class="pl-k">in</span> <span class="pl-c1">depwarn</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Symbol</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> <span class="pl-k">in</span> <span class="pl-c1">f1</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">50</span> <span class="pl-k">in</span> <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">234</span> <span class="pl-k">in</span> <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> <span class="pl-k">in</span> <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">95</span> [inlined] <span class="pl-k">in</span> (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#3#4{Base.REPL.REPLBackend})() at ./event.jl:68</span> <span class="pl-k">while</span> loading no file, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">0</span> <span class="pl-c1">2</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">f3</span>(<span class="pl-c1">1</span>) WARNING<span class="pl-k">:</span> <span class="pl-c1">f3</span>(x) is deprecated, use <span class="pl-c1">f4</span>(x) instead. <span class="pl-k">in</span> <span class="pl-c1">depwarn</span>(<span class="pl-k">::</span><span class="pl-c1">String</span>, <span class="pl-k">::</span><span class="pl-c1">Symbol</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> <span class="pl-k">in</span> <span class="pl-c1">f3</span>(<span class="pl-k">::</span><span class="pl-c1">Int64</span>) at <span class="pl-k">./</span>deprecated<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">50</span> <span class="pl-k">in</span> <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">234</span> <span class="pl-k">in</span> <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span> <span class="pl-k">in</span> <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">95</span> [inlined] <span class="pl-k">in</span> (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#3#4{Base.REPL.REPLBackend})() at ./event.jl:68</span> <span class="pl-k">while</span> loading no file, <span class="pl-k">in</span> expression starting on line <span class="pl-c1">0</span> <span class="pl-c1">4</span></pre></div> <p dir="auto">Seems like a bad bug in these days of new releases and fixing deprecation warnings.</p>
<p dir="auto">Referring to the discussion here (<a href="https://groups.google.com/forum/#!topic/julia-users/0XTidbuInbQ" rel="nofollow">https://groups.google.com/forum/#!topic/julia-users/0XTidbuInbQ</a>), launching with small number of workers and small matrix size works fine, but as workers and size of matrix is increased, the code breaks.<br> test code : <a href="https://github.com/kapiliitr/JuliaBenchmarks/blob/master/ptrans.jl">https://github.com/kapiliitr/JuliaBenchmarks/blob/master/ptrans.jl</a><br> error : <a href="https://github.com/kapiliitr/JuliaBenchmarks/blob/master/error.txt">https://github.com/kapiliitr/JuliaBenchmarks/blob/master/error.txt</a></p> <p dir="auto">This code has been run using Julia v0.3.1, 0.3.3, v0.4.0-dev+1061.</p>
0
<h3 dir="auto">Problem description</h3> <p dir="auto">If you leave a selectField as empty (i.e. value is undefined) it defaults to 0, whereas it used to show an empty selectField.</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create a selectField without a value prop.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.3</li> <li>React: 15.2.1</li> <li>Browser: Chrome 51</li> </ul>
<h3 dir="auto">Problem description</h3> <p dir="auto">Floating Labels (0.15.3) render like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1571918/17381333/404a271e-5980-11e6-8a85-fc3d53b3b1a6.png"><img width="389" alt="screen shot 2016-08-03 at 1 39 15 pm" src="https://cloud.githubusercontent.com/assets/1571918/17381333/404a271e-5980-11e6-8a85-fc3d53b3b1a6.png" style="max-width: 100%;"></a></p> <p dir="auto">in 0.15.2 they looked like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1571918/17381337/431daaa6-5980-11e6-91d6-fb9c8e008e9f.png"><img width="355" alt="screen shot 2016-08-03 at 1 43 08 pm" src="https://cloud.githubusercontent.com/assets/1571918/17381337/431daaa6-5980-11e6-91d6-fb9c8e008e9f.png" style="max-width: 100%;"></a></p> ### Steps to reproduce <p dir="auto">Go to <a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">http://www.material-ui.com/#/components/select-field</a> and go to the Floating Label section.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const items = [ &lt;MenuItem key={1} value={1} primaryText=&quot;Never&quot; /&gt;, &lt;MenuItem key={2} value={2} primaryText=&quot;Every Night&quot; /&gt;, &lt;MenuItem key={3} value={3} primaryText=&quot;Weeknights&quot; /&gt;, &lt;MenuItem key={4} value={4} primaryText=&quot;Weekends&quot; /&gt;, &lt;MenuItem key={5} value={5} primaryText=&quot;Weekly&quot; /&gt;, ]; &lt;SelectField value={this.state.value} onChange={this.handleChange} floatingLabelText=&quot;Floating Label Text&quot; &gt; {items} &lt;/SelectField&gt;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><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">value</span><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">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Never"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Every Night"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">3</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">3</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weeknights"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">4</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">4</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weekends"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">5</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">5</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weekly"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">SelectField</span> <span class="pl-c1">value</span><span class="pl-c1">=</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-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">}</span> <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleChange</span><span class="pl-kos">}</span> <span class="pl-c1">floatingLabelText</span><span class="pl-c1">=</span><span class="pl-s">"Floating Label Text"</span> <span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">items</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">SelectField</span><span class="pl-c1">&gt;</span></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.3</li> <li>React: 15.3.0</li> <li>Browser: Chrome</li> </ul>
1
<p dir="auto">Only the half of the last line is seen when a horizontal bar is present in the editor.</p> <p dir="auto">Tested under Mac OS X 10.9.2, Atom 0.95.0</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3011068/2984101/7599e41c-dc2e-11e3-86c8-5ed426f306c1.png"><img src="https://cloud.githubusercontent.com/assets/3011068/2984101/7599e41c-dc2e-11e3-86c8-5ed426f306c1.png" alt="screen shot 2014-05-15 at 15 42 47" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4571899/3486067/2d146022-041b-11e4-8852-89205968296e.png"><img src="https://cloud.githubusercontent.com/assets/4571899/3486067/2d146022-041b-11e4-8852-89205968296e.png" alt="2014-07-05 4 05 36" style="max-width: 100%;"></a></p> <p dir="auto">As the picture shows, when the line-wrap is toggled it works normally with Latin letters but misbehaves when there are Chinese characters.</p> <p dir="auto">I am using Atom 0.108.0(the latest) with Mac OS X 10.9.4.</p>
0
<p dir="auto">Currently multiple assignemnt is supported at declaration like this</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let (critPos, period) = if critPos1 &gt; critPos2 { (critPos1, period1) } else { (critPos2, period2) };"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-kos">(</span>critPos<span class="pl-kos">,</span> period<span class="pl-kos">)</span> = <span class="pl-k">if</span> critPos1 &gt; critPos2 <span class="pl-kos">{</span> <span class="pl-kos">(</span>critPos1<span class="pl-kos">,</span> period1<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span>critPos2<span class="pl-kos">,</span> period2<span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I think it would be nice to be able do something like this:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// &quot;improved&quot; version of maximal_suffix in src/libcore/str.rs fn maximal_suffix(arr: &amp;[u8], reversed: bool) -&gt; (uint, uint) { let mut left = -1; // Corresponds to i in the paper let mut right = 0; // Corresponds to j in the paper let mut offset = 1; // Corresponds to k in the paper let mut period = 1; // Corresponds to p in the paper while right + offset &lt; arr.len() { let (a, b) = if reversed { (arr[left + offset], arr[right + offset]) } else { (arr[right + offset], arr[left + offset]) }; // THIS IS THE IMPORTANT PART (left, right, offset, period) = if a &lt; b { // Suffix is smaller, period is entire prefix so far. (left, right + offset, 1, right - left) } else if a == b { // Advance through repetition of the current period. if offset == period { (left, right + offset, 1, period) } else { (left, right, offset + 1, period) } } else { // Suffix is larger, start over from current location. (right, right + 1, 1, 1) }; } (left + 1, period) }"><pre class="notranslate"><span class="pl-c">// "improved" version of maximal_suffix in src/libcore/str.rs</span> <span class="pl-k">fn</span> <span class="pl-en">maximal_suffix</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">reversed</span><span class="pl-kos">:</span> <span class="pl-smi">bool</span><span class="pl-kos">)</span> -&gt; <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span> <span class="pl-smi">uint</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> left = -<span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to i in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> right = <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to j in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> offset = <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to k in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> period = <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to p in the paper</span> <span class="pl-k">while</span> right + offset &lt; arr<span class="pl-kos">.</span><span class="pl-en">len</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-kos">(</span>a<span class="pl-kos">,</span> b<span class="pl-kos">)</span> = <span class="pl-k">if</span> reversed <span class="pl-kos">{</span> <span class="pl-kos">(</span>arr<span class="pl-kos">[</span>left + offset<span class="pl-kos">]</span><span class="pl-kos">,</span> arr<span class="pl-kos">[</span>right + offset<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-kos">(</span>arr<span class="pl-kos">[</span>right + offset<span class="pl-kos">]</span><span class="pl-kos">,</span> arr<span class="pl-kos">[</span>left + offset<span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// THIS IS THE IMPORTANT PART</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right<span class="pl-kos">,</span> offset<span class="pl-kos">,</span> period<span class="pl-kos">)</span> = <span class="pl-k">if</span> a &lt; b <span class="pl-kos">{</span> <span class="pl-c">// Suffix is smaller, period is entire prefix so far.</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right + offset<span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> right - left<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> a == b <span class="pl-kos">{</span> <span class="pl-c">// Advance through repetition of the current period.</span> <span class="pl-k">if</span> offset == period <span class="pl-kos">{</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right + offset<span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> period<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right<span class="pl-kos">,</span> offset + <span class="pl-c1">1</span><span class="pl-kos">,</span> period<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-c">// Suffix is larger, start over from current location.</span> <span class="pl-kos">(</span>right<span class="pl-kos">,</span> right + <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">1</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-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">(</span>left + <span class="pl-c1">1</span><span class="pl-kos">,</span> period<span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Currently something similar is at the moment only possible with a small workaround:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn maximal_suffix(arr: &amp;[u8], reversed: bool) -&gt; (uint, uint) { let mut left = -1; // Corresponds to i in the paper let mut right = 0; // Corresponds to j in the paper let mut offset = 1; // Corresponds to k in the paper let mut period = 1; // Corresponds to p in the paper while right + offset &lt; arr.len() { let (a, b) = if reversed { (arr[left + offset], arr[right + offset]) } else { (arr[right + offset], arr[left + offset]) }; // HERE I NEED TO INTRODUCE TEMPORARY VARIABLES let (left_temp, right_temp, offset_temp, period_temp) = if a &lt; b { // Suffix is smaller, period is entire prefix so far. (left, right + offset, 1, right - left) } else if a == b { // Advance through repetition of the current period. if offset == period { (left, right + offset, 1, period) } else { (left, right, offset + 1, period) } } else { // Suffix is larger, start over from current location. (right, right + 1, 1, 1) }; // AND NOW I CAN PUT THE VALUES BACK IN THE REAL VARIABLES left = left_temp; right = right_temp; offset = offset_temp; period = period_temp; } (left + 1, period) }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">maximal_suffix</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">reversed</span><span class="pl-kos">:</span> <span class="pl-smi">bool</span><span class="pl-kos">)</span> -&gt; <span class="pl-kos">(</span><span class="pl-smi">uint</span><span class="pl-kos">,</span> <span class="pl-smi">uint</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> left = -<span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to i in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> right = <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to j in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> offset = <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to k in the paper</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> period = <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Corresponds to p in the paper</span> <span class="pl-k">while</span> right + offset &lt; arr<span class="pl-kos">.</span><span class="pl-en">len</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-kos">(</span>a<span class="pl-kos">,</span> b<span class="pl-kos">)</span> = <span class="pl-k">if</span> reversed <span class="pl-kos">{</span> <span class="pl-kos">(</span>arr<span class="pl-kos">[</span>left + offset<span class="pl-kos">]</span><span class="pl-kos">,</span> arr<span class="pl-kos">[</span>right + offset<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-kos">(</span>arr<span class="pl-kos">[</span>right + offset<span class="pl-kos">]</span><span class="pl-kos">,</span> arr<span class="pl-kos">[</span>left + offset<span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// HERE I NEED TO INTRODUCE TEMPORARY VARIABLES</span> <span class="pl-k">let</span> <span class="pl-kos">(</span>left_temp<span class="pl-kos">,</span> right_temp<span class="pl-kos">,</span> offset_temp<span class="pl-kos">,</span> period_temp<span class="pl-kos">)</span> = <span class="pl-k">if</span> a &lt; b <span class="pl-kos">{</span> <span class="pl-c">// Suffix is smaller, period is entire prefix so far.</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right + offset<span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> right - left<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> a == b <span class="pl-kos">{</span> <span class="pl-c">// Advance through repetition of the current period.</span> <span class="pl-k">if</span> offset == period <span class="pl-kos">{</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right + offset<span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> period<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span>left<span class="pl-kos">,</span> right<span class="pl-kos">,</span> offset + <span class="pl-c1">1</span><span class="pl-kos">,</span> period<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-c">// Suffix is larger, start over from current location.</span> <span class="pl-kos">(</span>right<span class="pl-kos">,</span> right + <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">1</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-kos">;</span> <span class="pl-c">// AND NOW I CAN PUT THE VALUES BACK IN THE REAL VARIABLES</span> left = left_temp<span class="pl-kos">;</span> right = right_temp<span class="pl-kos">;</span> offset = offset_temp<span class="pl-kos">;</span> period = period_temp<span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">(</span>left + <span class="pl-c1">1</span><span class="pl-kos">,</span> period<span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">How about we add a new command line option to change the entry point from "fn main()" to another?</p> <p dir="auto">for example<br> $ rustc a.rs --entry=myEntry</p>
0